:root {
  color-scheme: dark;
  --background: #030c13;
  --text: #f0eff5;
  --muted: #b2bfd1;
  --faint: #8190a5;
  --border: #193044;
  --blue: #88c4ff;
  --purple: #b394f7;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text);
  background: var(--background);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100svh; display: flex; flex-direction: column; isolation: isolate; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--blue); }
a:focus-visible { outline: 2px solid var(--purple); outline-offset: 5px; border-radius: 3px; }
main:focus { outline: none; }
a { -webkit-tap-highlight-color: transparent; }
h1, h2, p { margin: 0; }
h1, h2 { font-weight: 700; text-wrap: balance; }
svg { flex-shrink: 0; vertical-align: middle; }
::selection { color: #fff; background: #66548c; }
.container { width: min(100% - 8rem, 1400px); margin-inline: auto; }
.skip-link { position: fixed; top: 0.75rem; left: 1rem; padding: 0.6rem 1rem; background: var(--text); color: var(--background); z-index: 20; transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); color: var(--background); }

/* The artwork is decorative; the page remains readable without it. */
.landscape { position: absolute; top: -4rem; right: 0; width: min(78vw, 1250px); aspect-ratio: 1672 / 941; z-index: -1; pointer-events: none; overflow: hidden; }
.landscape img { width: 100%; height: 100%; display: block; object-fit: cover; }
.landscape::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--background), rgba(3, 12, 19, 0.35) 25%, transparent 65%), linear-gradient(0deg, var(--background), transparent 55%); }
.page-about .landscape, .page-blog .landscape, .page-error .landscape { opacity: 0.4; }

.site-header { border-bottom: 1px solid rgba(33, 53, 71, 0.45); background: rgba(2, 9, 15, 0.18); }
.header-inner { min-height: 58px; display: flex; align-items: center; gap: 4.5rem; }
.wordmark { font-size: 1.125rem; font-weight: 700; white-space: nowrap; padding-block: 0.5rem; }
.main-nav { display: flex; align-self: stretch; gap: 2.25rem; }
.main-nav a { display: flex; align-items: center; position: relative; min-height: 44px; padding-inline: 0.5rem; font-size: 0.975rem; color: #c6cddd; }
.main-nav a:hover, .main-nav a[aria-current] { color: #fff; }
.main-nav a[aria-current]::after { content: ""; position: absolute; height: 1px; bottom: 0; left: 0; right: 0; background: linear-gradient(90deg, var(--purple), #b4d4ff, transparent); box-shadow: 0 -2px 10px #a292e54d; }
.social-links { display: flex; gap: 0.5rem; margin-left: auto; }
.social-links a { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid #b7a5d72e; border-radius: 5px; background: #090d1bb3; color: #e6e0ee; }
.social-links a:hover { color: #d2bdff; border-color: #9279b9; background: #17172a; }
.social-links .icon { width: 22px; height: 22px; }

.hero { padding-block: 25px 49px; }
.hero-copy { max-width: 850px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.23em; font-size: 0.7rem; color: #c8b9f5; margin-bottom: 12px; line-height: 1.5; }
h1 { font-size: clamp(2.35rem, 3.85vw, 3.75rem); line-height: 1.08; letter-spacing: -0.025em; }
.hero h1 { max-width: 830px; text-wrap: initial; }
.accent-text { color: var(--blue); background: linear-gradient(105deg, #82c8ff 8%, #ab9cff 60%, #cb83ec); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; white-space: nowrap; }
.hero-subtitle { max-width: 700px; margin-top: 16px; font-size: clamp(1.05rem, 1.35vw, 1.25rem); line-height: 1.5; color: #c0c9da; letter-spacing: 0.005em; }

.competencies { padding-bottom: 26px; }
.competencies ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; }
.competencies li { display: flex; align-items: flex-start; gap: 19px; padding: 5px 24px 5px 0; min-width: 0; }
.competencies li + li { border-left: 1px solid #264056; padding-left: 28px; }
.competency-icon { width: 49px; height: 49px; display: grid; place-items: center; flex-shrink: 0; border: 1px solid #a48ce8; border-radius: 10px; color: #ad9af8; background: linear-gradient(135deg, #14152d4d, #040d1600); box-shadow: inset 0 0 12px #8e75e00a; }
.competency-icon .icon { width: 31px; height: 31px; stroke-width: 1.5; }
.competencies h2 { font-size: 1rem; line-height: 1.35; margin-bottom: 4px; text-wrap: initial; }
.competencies p { color: var(--muted); font-size: 0.9rem; line-height: 1.4; }

.skills { display: flex; align-items: center; gap: 32px; border-bottom: 1px solid var(--border); padding-block: 8px 26px; }
.skills h2 { font-size: 1.7rem; letter-spacing: -0.02em; white-space: nowrap; }
.skill-list { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; padding: 0; margin: 0; }
.skill-badge { display: flex; align-items: center; gap: 12px; padding: 10px 15px; min-height: 43px; border: 1px solid #1a3043; border-radius: 7px; color: #d1d9e8; background: linear-gradient(130deg, #0a1823a6, #05101980); font-size: 0.875rem; white-space: nowrap; }
.skill-badge .icon { width: 21px; height: 21px; }
.skill-rose .icon { color: #cc9da6; }
.skill-coral .icon { color: #de876b; }
.skill-amber .icon { color: #ebbb70; }
.skill-purple .icon { color: #9d91ff; }
.skill-green .icon { color: #83d3a5; }
.skill-blue .icon { color: #80b6e7; }
.skill-lilac .icon { color: #c6a6ed; }

.page-intro { padding-block: 66px 64px; }
.page-intro h1 { margin-bottom: 30px; }
.prose { max-width: 750px; }
.prose > p:not(.eyebrow) { color: #c0c9da; font-size: 1.125rem; line-height: 1.85; margin-top: 20px; }
.page-about .skills { padding-top: 0; }
.blog-empty { max-width: 760px; padding: 44px 40px; margin-top: 40px; border-block: 1px solid var(--border); background: radial-gradient(ellipse at 0 0, #725caf0d, transparent 65%); }
.empty-icon { width: 48px; height: 48px; display: grid; place-items: center; color: #b3a0e8; border: 1px solid #594c7b; border-radius: 10px; margin-bottom: 24px; }
.blog-empty h2 { font-size: 1.65rem; margin-bottom: 12px; }
.blog-empty p { color: var(--muted); font-size: 1.05rem; line-height: 1.7; max-width: 460px; }
.empty-rule { display: block; width: 64px; height: 1px; background: linear-gradient(90deg, var(--purple), transparent); margin-top: 32px; }
.error-page > p:not(.eyebrow) { color: var(--muted); font-size: 1.1rem; }
.back-link { display: inline-flex; align-items: center; gap: 16px; min-height: 44px; margin-top: 24px; color: var(--blue); }
.site-footer { margin-top: auto; padding-block: 30px; display: flex; justify-content: space-between; gap: 20px; font-size: 0.8rem; color: var(--faint); }
main { padding-bottom: 72px; }

@media (max-width: 1200px) {
  .container { width: calc(100% - 5rem); }
  .header-inner { gap: 3rem; }
  .competencies li { gap: 12px; padding-right: 18px; }
  .competencies li + li { padding-left: 18px; }
  .competency-icon { width: 42px; height: 42px; border-radius: 8px; }
  .competency-icon .icon { width: 27px; height: 27px; }
  .competencies h2 { font-size: 0.95rem; }
  .skills { gap: 24px; }
  .skill-list { gap: 9px; }
  .skill-badge { padding: 9px 12px; gap: 9px; }
}

@media (max-width: 1000px) {
  .landscape { width: 100%; top: -16px; opacity: 0.85; }
  .landscape::after { background: linear-gradient(90deg, var(--background), #030c1366 40%, transparent), linear-gradient(0deg, var(--background), transparent 75%); }
  .hero-copy { max-width: 740px; }
  .hero { padding-top: 44px; }
  .hero h1 { font-size: clamp(2.6rem, 5.5vw, 3.5rem); }
  .hero-subtitle { max-width: 580px; }
  .competencies ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 0; }
  .competencies li { padding-right: 26px; }
  .competencies li + li { padding-left: 26px; }
  .competencies li:nth-child(3) { padding-left: 0; border-left: 0; }
  .competencies h2 { font-size: 1.05rem; }
  .skills { align-items: flex-start; flex-direction: column; gap: 18px; padding-top: 12px; }
  .skills h2 { font-size: 1.65rem; }
  .skill-list { gap: 10px; }
  .skill-badge { padding: 9px 14px; gap: 12px; }
}

@media (max-width: 700px) {
  .container { width: calc(100% - 2.5rem); }
  .header-inner { min-height: auto; flex-wrap: wrap; column-gap: 16px; row-gap: 0; padding-top: 10px; }
  .wordmark { font-size: 1.05rem; }
  .social-links { gap: 7px; }
  .social-links a { width: 40px; height: 40px; }
  .main-nav { order: 3; width: 100%; gap: 24px; margin-top: 5px; }
  .main-nav a { min-height: 46px; padding-inline: 5px; }
  .landscape { top: 105px; width: 100%; aspect-ratio: 1.55; opacity: 1; }
  .landscape img { object-position: 65% 35%; }
  .landscape::after { background: linear-gradient(0deg, var(--background) 2%, transparent 75%), linear-gradient(180deg, #030c1366, transparent 35%); }
  .hero { padding-block: clamp(190px, 58vw, 280px) 36px; }
  .hero h1 { font-size: clamp(2rem, 9vw, 2.85rem); line-height: 1.12; letter-spacing: -0.035em; }
  .hero h1 br { display: none; }
  .hero-subtitle { margin-top: 18px; font-size: 1.05rem; line-height: 1.65; }
  .eyebrow { font-size: 0.65rem; letter-spacing: 0.2em; margin-bottom: 13px; }
  .competencies { padding-bottom: 26px; }
  .competencies ul { grid-template-columns: 1fr; gap: 0; }
  .competencies li, .competencies li + li { padding: 18px 0; gap: 18px; border-left: 0; border-top: 1px solid #19304499; }
  .competency-icon { width: 46px; height: 46px; }
  .competencies h2 { font-size: 1.05rem; }
  .competencies p { font-size: 0.925rem; max-width: 300px; }
  .skills { padding-top: 2px; padding-bottom: 30px; gap: 18px; }
  .skills h2 { font-size: 1.55rem; }
  .skill-list { gap: 9px; }
  .skill-badge { padding: 9px 12px; gap: 9px; font-size: 0.825rem; }
  .skill-badge .icon { width: 19px; height: 19px; }
  .page-about .landscape, .page-blog .landscape, .page-error .landscape { opacity: 0.24; }
  .page-intro { padding-top: 60px; padding-bottom: 44px; }
  .page-intro h1 { font-size: 2.75rem; margin-bottom: 26px; }
  .prose > p:not(.eyebrow) { font-size: 1.05rem; line-height: 1.8; }
  .blog-empty { padding: 32px 0; margin-top: 32px; }
  .blog-empty h2 { font-size: 1.5rem; }
  .site-footer { padding-block: 24px; flex-direction: column; gap: 6px; font-size: 0.75rem; }
  .site-footer a { width: fit-content; min-height: 32px; display: flex; align-items: center; }
  main { padding-bottom: 44px; }
}
