/* ============================================================
   adityan.dev — design system
   Editorial minimal · PPEiko display serif · Space Grotesk body
   Palette: neutral zinc + blue accent · light & dark
   ============================================================ */

:root {
  --bg: #FAFAFA;
  --surface: #FFFFFF;
  --ink: #09090B;
  --ink-2: #52525B;
  --ink-3: #6B6B73;
  --line: #E4E4E7;
  --accent: #2563EB;
  --accent-soft: rgba(37, 99, 235, 0.08);
  --nav-bg: rgba(250, 250, 250, 0.82);
  --shadow: 0 1px 2px rgba(9, 9, 11, 0.04), 0 8px 24px rgba(9, 9, 11, 0.06);
  --radius: 16px;
  --font-display: 'PPEiko', 'Times New Roman', Georgia, serif;
  --font-body: 'Space Grotesk', 'Helvetica Neue', sans-serif;
  --font-script: 'Pinyon Script', cursive;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0C0C0E;
    --surface: #151518;
    --ink: #FAFAFA;
    --ink-2: #B4B4BD;
    --ink-3: #8E8E98;
    --line: #27272A;
    --accent: #60A5FA;
    --accent-soft: rgba(96, 165, 250, 0.1);
    --nav-bg: rgba(12, 12, 14, 0.78);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.5);
  }
}

@font-face {
  font-family: 'PPEiko';
  src: url('PPEiko-Thin.otf') format('opentype');
  font-weight: 100 400;
  font-style: normal;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

::selection {
  background: var(--accent);
  color: #fff;
}

img {
  max-width: 100%;
  display: block;
}

/* ---------- layout ---------- */

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

main {
  padding-top: 100px;
}

section {
  margin: 64px 0;
}

/* ---------- typography ---------- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 20px;
}

.section-title {
  font-size: clamp(30px, 4vw, 44px);
  margin-bottom: 12px;
}

.section-title .script {
  font-family: var(--font-script);
  font-weight: 400;
  color: var(--accent);
  font-size: 0.9em;
}

.lede {
  color: var(--ink-2);
  font-size: 19px;
  max-width: 58ch;
  margin: 0;
}

/* ---------- shader background ---------- */

.shader-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, black 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 55%, transparent 100%);
}

.shader-bg canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* ---------- floating nav ---------- */

.site-nav {
  position: fixed;
  top: 16px;
  left: 16px;
  right: 16px;
  z-index: 50;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.site-nav .nav-inner {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 1100px;
  width: 100%;
  padding: 10px 12px 10px 22px;
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.brand {
  font-family: var(--font-script);
  font-size: 26px;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
  margin-right: auto;
  padding-bottom: 4px;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-links a:hover {
  color: var(--ink);
  background: var(--accent-soft);
}

.nav-links a[aria-current="page"] {
  color: var(--ink);
  background: var(--accent-soft);
}

.nav-cta {
  margin-left: 8px;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  padding: 12px 24px;
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.btn-solid {
  background: var(--ink);
  color: var(--bg);
}

.btn-solid:hover {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--ink);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--ink);
}

.btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: calc(78vh - 100px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 0 24px;
}

/* soft, full-bleed scrim to lift hero text off the shader haze.
   Spans the whole viewport width so its edges sit off-screen and
   fade like a vignette — no hard seam at the container edge. */
.hero::before {
  content: "";
  position: absolute;
  top: -12%;
  bottom: -6%;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  z-index: -1;
  background: radial-gradient(70% 65% at 30% 44%, var(--bg) 0%, rgba(0, 0, 0, 0) 68%);
  opacity: 0.62;
  pointer-events: none;
}

.hero .kicker {
  font-family: var(--font-script);
  font-size: clamp(24px, 3.4vw, 36px);
  color: var(--accent);
  margin: 0 0 4px;
  text-shadow: 0 1px 16px rgba(250, 250, 250, 0.5);
}

@media (prefers-color-scheme: dark) {
  .hero .kicker {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6), 0 2px 22px rgba(0, 0, 0, 0.45);
  }
}

.hero h1 {
  font-size: clamp(52px, 8.5vw, 104px);
  margin: 0 0 24px;
}

.hero .lede {
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-meta {
  margin-top: 44px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  color: var(--ink-2);
  font-size: 13.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-meta span {
  position: relative;
  padding-left: 20px;
}

.hero-meta span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-radius: 999px;
  background: var(--accent);
}

/* hero entrance animation */
.hero > * {
  animation: rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero > *:nth-child(1) { animation-delay: 0.05s; }
.hero > *:nth-child(2) { animation-delay: 0.15s; }
.hero > *:nth-child(3) { animation-delay: 0.28s; }
.hero > *:nth-child(4) { animation-delay: 0.4s; }
.hero > *:nth-child(5) { animation-delay: 0.52s; }

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ---------- featured project cards ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(288px, 1fr));
  gap: 20px;
  margin-top: 36px;
}

.feature-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 26px 22px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.feature-card:hover {
  border-color: var(--ink-3);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.feature-card .fc-num {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}

.feature-card h3 {
  font-size: clamp(25px, 2.8vw, 31px);
  margin: 10px 0 0;
}

/* stretched-link: whole card is clickable via the title link */
.feature-card h3 a {
  color: inherit;
  text-decoration: none;
}

.feature-card h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
}

.feature-card .fc-purpose {
  color: var(--ink);
  font-weight: 500;
  font-size: 16px;
  margin: 12px 0 0;
}

.feature-card .fc-desc {
  color: var(--ink-2);
  font-size: 15px;
  margin: 8px 0 0;
}

.feature-card .fc-tech {
  font-family: 'SF Mono', ui-monospace, 'Cascadia Code', Menlo, Consolas, monospace;
  font-size: 12.5px;
  letter-spacing: 0.01em;
  color: var(--ink-3);
  margin: 18px 0 0;
}

.feature-card .fc-links {
  display: flex;
  gap: 18px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.feature-card .fc-links a {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.feature-card .fc-links a::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.feature-card .fc-links a:hover {
  color: var(--accent);
}

.feature-card .fc-links a:hover::before {
  transform: scaleX(1);
}

.feature-card .fc-links svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.feature-card:hover h3 { color: var(--accent); }

/* ---------- project cards (grid page) ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.project-card:hover {
  border-color: var(--ink-3);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

/* stretched-link: the whole card follows the title link, while
   the explicit Live/GitHub actions stay independently clickable */
.project-card h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
}

.project-card .card-links a {
  z-index: 1;
}

.project-card:hover h3 a {
  color: var(--accent);
}

.project-card .card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.project-card h3 {
  font-size: 30px;
}

.project-card h3 a {
  color: inherit;
  text-decoration: none;
}

.project-card h3 a:hover {
  color: var(--accent);
}

.project-card p {
  color: var(--ink-2);
  font-size: 15.5px;
  margin: 0 0 20px;
  flex-grow: 1;
}

.tag {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 4px 12px;
  white-space: nowrap;
}

.card-links {
  display: flex;
  gap: 18px;
}

.card-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  position: relative;
  padding: 4px 0;
}

.card-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.card-links a:hover::after {
  transform: scaleX(1);
}

.card-links svg {
  width: 15px;
  height: 15px;
}

/* ---------- split section (about teaser / about page) ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  align-items: start;
}

.split .sticky-col {
  position: sticky;
  top: 120px;
}

.prose p {
  color: var(--ink-2);
  margin: 0 0 20px;
  max-width: 62ch;
}

.prose strong {
  color: var(--ink);
  font-weight: 600;
}

.prose a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.prose a:hover {
  border-bottom-color: var(--accent);
}

/* ---------- fact list / toolbox ---------- */

.fact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.fact-list li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 24px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.fact-list .label {
  color: var(--ink-3);
  flex-shrink: 0;
  letter-spacing: 0.04em;
}

.fact-list .value {
  color: var(--ink);
  text-align: right;
  min-width: 0;
}

.fact-list .value a {
  word-break: break-word;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.chip {
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-2);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.toolbox-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px 40px;
  margin-top: 28px;
}

.toolbox-group .tb-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 14px;
}

.toolbox-group .chip-row {
  margin-top: 0;
}

/* ---------- blog list ---------- */

.post-list {
  border-top: 1px solid var(--line);
  margin-top: 32px;
}

.post-row {
  display: grid;
  grid-template-columns: 124px 1fr 22px;
  gap: 8px 28px;
  align-items: baseline;
  padding: 20px 12px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: background-color 0.25s ease;
}

.post-row:hover {
  background: var(--accent-soft);
}

.post-row time {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.post-row h3 {
  font-size: clamp(21px, 2.4vw, 27px);
  transition: color 0.2s ease;
}

.post-row:hover h3 {
  color: var(--accent);
}

.post-row p {
  color: var(--ink-2);
  font-size: 15px;
  margin: 6px 0 0;
  max-width: 60ch;
}

.post-row .row-arrow {
  width: 20px;
  height: 20px;
  align-self: center;
  color: var(--ink-3);
  transition: transform 0.25s ease, color 0.25s ease;
}

.post-row:hover .row-arrow,
.post-row:focus-visible .row-arrow {
  transform: translateX(3px);
  color: var(--accent);
}

.post-row:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 8px;
}

/* ---------- blog post (article) ---------- */

.article {
  max-width: 720px;
  margin: 0 auto;
}

.back-link {
  color: var(--ink-3);
  text-decoration: none;
  transition: color 0.2s ease;
}

.back-link:hover {
  color: var(--accent);
}

.article-title {
  font-size: clamp(38px, 6vw, 64px);
  margin: 12px 0 20px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding-bottom: 28px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--line);
}

.article-meta time {
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.post-tag {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-2);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 3px 12px;
}

.article-body {
  font-size: 17.5px;
}

.article-body h1,
.article-body h2,
.article-body h3 {
  color: var(--ink);
  margin: 44px 0 16px;
}

.article-body h1 { font-size: clamp(30px, 4.4vw, 40px); }
.article-body h2 { font-size: clamp(26px, 3.6vw, 32px); }
.article-body h3 { font-size: clamp(21px, 2.8vw, 25px); }

.article-body p {
  max-width: none;
}

.article-body ul,
.article-body ol {
  color: var(--ink-2);
  margin: 0 0 20px;
  padding-left: 24px;
}

.article-body li {
  margin: 8px 0;
}

.article-body li::marker {
  color: var(--ink-3);
}

.article-body img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  margin: 28px 0;
}

.article-body code {
  font-family: 'SF Mono', ui-monospace, 'Cascadia Code', Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: var(--accent-soft);
  color: var(--ink);
  padding: 2px 6px;
  border-radius: 6px;
}

.article-body pre {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  overflow-x: auto;
  margin: 24px 0;
}

.article-body pre code {
  background: none;
  padding: 0;
  font-size: 14px;
  line-height: 1.55;
}

.article-body blockquote {
  margin: 24px 0;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--accent);
  color: var(--ink-2);
  font-style: italic;
}

.article-body hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 40px 0;
}

.article-foot {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

/* ---------- contact ---------- */

.contact-hero {
  text-align: left;
  padding: 24px 0 0;
}

.big-link {
  font-family: var(--font-display);
  font-size: clamp(30px, 6vw, 72px);
  color: var(--ink);
  text-decoration: none;
  display: inline-block;
  position: relative;
  line-height: 1.15;
  word-break: break-word;
}

.big-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.big-link:hover::after {
  transform: scaleX(1);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 56px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.contact-card:hover {
  border-color: var(--ink-3);
  box-shadow: var(--shadow);
}

.contact-card svg {
  width: 24px;
  height: 24px;
  color: var(--ink-2);
  flex-shrink: 0;
}

.contact-card .cc-label {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: block;
}

.contact-card .cc-value {
  font-weight: 500;
  color: var(--ink);
}

/* ---------- CTA band ---------- */

.cta-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 56px 0;
  text-align: center;
}

.cta-band h2 {
  font-size: clamp(30px, 4.5vw, 48px);
  margin-bottom: 14px;
}

.cta-band .script {
  font-family: var(--font-script);
  color: var(--accent);
  font-weight: 400;
}

.cta-band p {
  color: var(--ink-2);
  margin: 0 auto 36px;
  max-width: 48ch;
}

/* ---------- footer ---------- */

.site-footer {
  padding: 44px 0 40px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
  font-weight: 300;
}

.footer-tagline {
  font-size: 14.5px;
  color: var(--ink-3);
  margin: 0;
}

.socials {
  display: flex;
  gap: 8px;
}

.socials a {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--ink-3);
  transition: color 0.2s ease, background-color 0.2s ease;
}

.socials a:hover {
  color: var(--ink);
  background: var(--accent-soft);
}

.socials svg {
  width: 20px;
  height: 20px;
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 13.5px;
  color: var(--ink-3);
}

.footer-bottom a {
  color: inherit;
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--ink);
}

/* ---------- page hero (interior pages) ---------- */

.page-hero {
  padding: 40px 0 8px;
}

.page-hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  margin-bottom: 18px;
}

.page-hero h1 .script {
  font-family: var(--font-script);
  color: var(--accent);
  font-size: 0.85em;
  font-weight: 400;
}

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .split {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .split .sticky-col {
    position: static;
  }

  .post-row {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .post-row .row-arrow {
    display: none;
  }

  .feature-card .fc-purpose {
    font-size: 15.5px;
  }
}

@media (max-width: 640px) {
  main {
    padding-top: 104px;
  }

  section {
    margin: 52px 0;
  }

  .site-nav {
    top: 12px;
    left: 12px;
    right: 12px;
  }

  .site-nav .nav-inner {
    padding: 8px 12px;
    gap: 4px;
  }

  .brand {
    font-size: 19px;
  }

  .nav-links {
    gap: 0;
  }

  .nav-links a {
    padding: 8px 7px;
    font-size: 13.5px;
  }

  .nav-cta {
    display: none;
  }

  .hero-meta {
    gap: 8px 24px;
  }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero > * {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ---------- focus states ---------- */

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
