/* =============================================================================
   Akash Ravi — portfolio
   "A product leader with an engineer's craft": editorial ink-and-amber,
   a monospaced spec-sheet signature, the live résumé as the centerpiece.
   System-aware theming (prefers-color-scheme) + manual [data-theme] override.
   ========================================================================== */

/* 1. Fonts (self-hosted variable woff2) ----------------------------------- */
@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  ascent-override: 95%;
}
@font-face {
  font-family: "Space Grotesk Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url("../fonts/space-grotesk-latin-wght-normal.woff2") format("woff2-variations");
}
@font-face {
  font-family: "JetBrains Mono Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url("../fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2-variations");
}

/* 2. Tokens --------------------------------------------------------------- */
:root {
  color-scheme: light dark;

  --font-display: "Space Grotesk Variable", system-ui, sans-serif;
  --font-body: "Inter Variable", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono:
    "JetBrains Mono Variable", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --step--2: clamp(0.69rem, 0.66rem + 0.13vw, 0.76rem);
  --step--1: clamp(0.8rem, 0.76rem + 0.18vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.18vw, 1.08rem);
  --step-1: clamp(1.15rem, 1.07rem + 0.36vw, 1.37rem);
  --step-2: clamp(1.4rem, 1.26rem + 0.62vw, 1.85rem);
  --step-3: clamp(1.7rem, 1.46rem + 1.05vw, 2.5rem);
  --step-4: clamp(2.1rem, 1.7rem + 1.8vw, 3.35rem);
  --step-5: clamp(2.7rem, 1.95rem + 3.4vw, 5rem);

  --sp-2xs: 0.4rem;
  --sp-xs: 0.65rem;
  --sp-sm: 0.95rem;
  --sp-md: 1.4rem;
  --sp-lg: 2.1rem;
  --sp-xl: 3.25rem;
  --sp-2xl: 5rem;
  --sp-3xl: 7.5rem;

  --radius: 8px;
  --radius-lg: 14px;
  --content: 68rem;
  --reading: 40rem;
  --header-h: 4rem;
  --section-pad: clamp(var(--sp-xl), 6vw, var(--sp-2xl));

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.26s;

  /* LIGHT theme (default) */
  --ink-0: #f5f6f7;
  --ink-1: #eceef0;
  --surface: #fff;
  --surface-2: #f2f3f5;
  --line: rgba(17, 20, 26, 0.1);
  --line-strong: rgba(17, 20, 26, 0.18);
  --paper: #16181d;
  --paper-dim: #565b63;
  --paper-faint: #595f68;
  --accent: #946008;
  --accent-strong: #7c4f06;
  --accent-deco: #e0a92e;
  --accent-soft: rgba(148, 96, 8, 0.1);
  --on-accent: #16181d;
  --ring: #946008;
  --shadow: 0 1px 2px rgba(20, 24, 32, 0.05), 0 12px 30px -18px rgba(20, 24, 32, 0.3);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --ink-0: #0b0d10;
    --ink-1: #101317;
    --surface: #121519;
    --surface-2: #171b20;
    --line: rgba(255, 255, 255, 0.09);
    --line-strong: rgba(255, 255, 255, 0.16);
    --paper: #eceef1;
    --paper-dim: #9aa1ab;
    --paper-faint: #828a95;
    --accent: #efb45e;
    --accent-strong: #f6c47e;
    --accent-deco: #efb45e;
    --accent-soft: rgba(239, 180, 94, 0.13);
    --on-accent: #16181d;
    --ring: #f0b35e;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 16px 40px -22px rgba(0, 0, 0, 0.7);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ink-0: #0b0d10;
  --ink-1: #101317;
  --surface: #121519;
  --surface-2: #171b20;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --paper: #eceef1;
  --paper-dim: #9aa1ab;
  --paper-faint: #828a95;
  --accent: #efb45e;
  --accent-strong: #f6c47e;
  --accent-deco: #efb45e;
  --accent-soft: rgba(239, 180, 94, 0.13);
  --on-accent: #16181d;
  --ring: #f0b35e;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 16px 40px -22px rgba(0, 0, 0, 0.7);
}

/* 3. Reset & base --------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
  -webkit-tap-highlight-color: transparent;
}
body {
  min-height: 100svh;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--paper);
  background: var(--ink-0);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img,
svg,
iframe {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}
a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}
ul,
ol {
  list-style: none;
  padding: 0;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}
input,
textarea {
  font: inherit;
  color: inherit;
}
::selection {
  background: var(--accent-soft);
}
:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 3px;
  border-radius: 3px;
}
:focus:not(:focus-visible) {
  outline: none;
}

/* 4. Typography ----------------------------------------------------------- */
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--paper);
  text-wrap: balance;
}
h2 {
  font-size: var(--step-3);
}
h3 {
  font-size: var(--step-1);
}
p {
  text-wrap: pretty;
}

.mono {
  font-family: var(--font-mono);
  font-feature-settings: "ss02" 1;
}

/* Section label — a code-comment motif (his vernacular), not arbitrary numbering */
.label {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.label::before {
  content: "// ";
  color: var(--paper-faint);
}

.lead {
  font-size: var(--step-1);
  color: var(--paper-dim);
  line-height: 1.55;
}
.dim {
  color: var(--paper-dim);
}

/* 5. Layout --------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--content);
  margin-inline: auto;
  padding-inline: clamp(1.15rem, 5vw, 2.5rem);
}
.section {
  padding-block: var(--section-pad);
  border-top: 1px solid var(--line);
}
.section-head {
  max-width: var(--reading);
  margin-bottom: var(--sp-lg);
}
.section-head h2 {
  margin-top: var(--sp-sm);
}
.section-head .lead {
  margin-top: var(--sp-sm);
}

/* 6. Header / nav --------------------------------------------------------- */
.skip {
  position: fixed;
  top: 0.7rem;
  left: 0.7rem;
  z-index: 200;
  padding: 0.55em 0.9em;
  background: var(--accent-deco);
  color: var(--on-accent);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  transform: translateY(-160%);
  transition: transform var(--dur) var(--ease);
}
.skip:focus {
  transform: translateY(0);
  color: var(--on-accent);
}

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: var(--ink-0);
  background: color-mix(in srgb, var(--ink-0) 60%, transparent);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition:
    background var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}
.nav.stuck {
  background: var(--ink-0);
  background: color-mix(in srgb, var(--ink-0) 85%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
@media (max-width: 33.99em) {
  .nav-right .nav-links {
    display: none;
  }
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-md);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  color: var(--paper);
}
.brand:hover {
  color: var(--paper);
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 7px;
  background: linear-gradient(135deg, #f6c873, #e0992e);
  color: #16181d;
  font-weight: 700;
  font-size: 0.95rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.1rem, 1vw, 0.4rem);
}
.nav-links a {
  position: relative;
  padding: 0.45em 0.7em;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--paper-dim);
  border-radius: var(--radius);
}
.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--paper);
}
.nav-links a.active {
  color: var(--paper);
}
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0.7em;
  right: 0.7em;
  bottom: 0.1em;
  height: 1.5px;
  background: var(--accent-deco);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: clamp(0.25rem, 1.5vw, 1rem);
}

/* 7. Buttons & links ------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.7em 1.15em;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  font-weight: 500;
  line-height: 1;
  border: 1px solid transparent;
  transition:
    transform var(--dur) var(--ease),
    background var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    color var(--dur) var(--ease);
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: var(--accent-deco);
  color: var(--on-accent);
}
.btn-primary:hover {
  color: var(--on-accent);
  background: var(--accent-deco);
  background: color-mix(in srgb, var(--accent-deco) 85%, white);
}
.btn-ghost {
  border-color: var(--line-strong);
  color: var(--paper);
}
.btn-ghost:hover {
  color: var(--paper);
  border-color: var(--accent);
  background: var(--accent-soft);
}
.btn svg {
  width: 1.05em;
  height: 1.05em;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  color: var(--paper-dim);
  transition:
    color var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    background var(--dur) var(--ease);
}
.icon-btn:hover {
  color: var(--paper);
  border-color: var(--line-strong);
  background: var(--surface-2);
}
.icon-btn svg {
  width: 1.1rem;
  height: 1.1rem;
}

/* Text links inside prose */
.link {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent);
  text-underline-offset: 0.2em;
  transition:
    color var(--dur) var(--ease),
    text-decoration-color var(--dur) var(--ease);
}
.link:hover {
  color: var(--accent-strong);
  text-decoration-color: var(--accent);
}

/* 8. Icons ---------------------------------------------------------------- */
.icon {
  width: 1.2em;
  height: 1.2em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}
.icon-brand {
  fill: currentColor;
  stroke: none;
}

/* Theme toggle: show the icon for the theme you'll switch TO */
.theme-toggle .moon {
  display: block;
}
.theme-toggle .sun {
  display: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun {
    display: block;
  }
  :root:not([data-theme="light"]) .theme-toggle .moon {
    display: none;
  }
}
:root[data-theme="dark"] .theme-toggle .sun {
  display: block;
}
:root[data-theme="dark"] .theme-toggle .moon {
  display: none;
}
:root[data-theme="light"] .theme-toggle .sun {
  display: none;
}
:root[data-theme="light"] .theme-toggle .moon {
  display: block;
}

/* 9. Hero ----------------------------------------------------------------- */
.hero {
  padding-block: clamp(2.5rem, 7vw, 5.5rem) var(--section-pad);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.75rem, 5vw, 3.5rem);
  align-items: center;
}
.hero-grid > * {
  min-width: 0;
}
@media (min-width: 52em) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.85fr);
  }
}
.hero h1 {
  font-family: var(--font-display);
  font-size: var(--step-5);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin-top: 0.5rem;
}
.hero-tagline {
  margin-top: var(--sp-md);
  max-width: 32ch;
  font-size: var(--step-1);
  color: var(--paper-dim);
  line-height: 1.5;
}
.hero-tagline b {
  color: var(--paper);
  font-weight: 500;
}
.hero-loc {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin-top: var(--sp-md);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--paper-dim);
}
.hero-loc svg {
  width: 1.05em;
  height: 1.05em;
  color: var(--accent);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: var(--sp-lg);
}
.hero-social {
  display: flex;
  gap: 0.5rem;
  margin-top: var(--sp-md);
}

/* Portrait — sharp, framed, no glow */
.portrait {
  position: relative;
  justify-self: center;
  width: min(17rem, 78%);
}
.portrait img {
  width: 100%;
  aspect-ratio: 726 / 880;
  object-fit: cover;
  object-position: center 18%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
}
.portrait figcaption {
  position: absolute;
  left: 0.85rem;
  bottom: 0.85rem;
  padding: 0.25em 0.6em;
  border-radius: 6px;
  background: var(--ink-0);
  background: color-mix(in srgb, var(--ink-0) 78%, transparent);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: var(--step--2);
  color: var(--paper-dim);
}

/* Signature: the monospaced spec-sheet rail */
.spec {
  margin-top: clamp(2rem, 5vw, 3.25rem);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: var(--sp-md);
  display: grid;
  gap: 0.7rem;
}
.spec-row {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: var(--sp-sm);
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: var(--step--1);
}
.spec-row dt {
  color: var(--accent);
  font-size: var(--step--2);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.spec-row dd {
  color: var(--paper-dim);
}
.spec-row dd b {
  color: var(--paper);
  font-weight: 500;
}
@media (max-width: 28em) {
  .spec-row {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
}

/* 10. About --------------------------------------------------------------- */
.prose {
  max-width: var(--reading);
}
.prose p {
  font-size: var(--step-1);
  line-height: 1.65;
  color: var(--paper-dim);
}
.prose p b {
  color: var(--paper);
  font-weight: 500;
}
.prose p + p {
  margin-top: var(--sp-md);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: var(--sp-lg);
}
.tag {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--paper-dim);
  padding: 0.35em 0.75em;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* 11. Résumé — the living artifact ---------------------------------------- */
.doc {
  margin-top: var(--sp-lg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.doc-frame {
  position: relative;
  height: min(86vh, 980px);
}
@media (max-width: 50em) {
  .doc-frame {
    height: min(70vh, 640px);
  }
}
.doc-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  z-index: 1;
}
.doc-frame .placeholder {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.85rem;
  text-align: center;
  padding: var(--sp-md);
  color: var(--paper-dim);
  font-family: var(--font-mono);
  font-size: var(--step--1);
}
.spinner {
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  border: 2px solid var(--line-strong);
  border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.doc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: var(--sp-md);
}

/* 12. Elsewhere (profiles) ------------------------------------------------ */
.links-grid {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
}
.ext {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--paper);
  transition:
    border-color var(--dur) var(--ease),
    background var(--dur) var(--ease);
}
.ext:hover {
  color: var(--paper);
  border-color: var(--line-strong);
  background: var(--surface-2);
}
.ext .ico {
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  flex: none;
  color: var(--paper-dim);
}
.ext:hover .ico {
  color: var(--accent);
}
.ext .ico svg {
  width: 1.2rem;
  height: 1.2rem;
}
.ext .t {
  min-width: 0;
  flex: 1;
}
.ext .t b {
  display: block;
  font-weight: 500;
  font-size: var(--step-0);
  line-height: 1.25;
}
.ext .t span {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  color: var(--paper-faint);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ext .arrow {
  color: var(--paper-faint);
  transition:
    transform var(--dur) var(--ease),
    color var(--dur) var(--ease);
}
.ext:hover .arrow {
  color: var(--accent);
  transform: translate(2px, -2px);
}
.group + .group {
  margin-top: var(--sp-lg);
}
.group-label {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper-faint);
  margin-bottom: var(--sp-sm);
}

/* 13. Contact ------------------------------------------------------------- */
.contact-grid {
  display: grid;
  gap: var(--sp-lg);
}
@media (min-width: 50em) {
  .contact-grid {
    grid-template-columns: 0.8fr 1.2fr;
    align-items: start;
  }
}
.form {
  display: grid;
  gap: var(--sp-md);
}
.field {
  display: grid;
  gap: 0.4rem;
}
.field-row {
  display: grid;
  gap: var(--sp-md);
}
@media (min-width: 34em) {
  .field-row {
    grid-template-columns: 1fr 1fr;
  }
}
.field label {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paper-dim);
}
.field input,
.field textarea {
  width: 100%;
  padding: 0.7em 0.85em;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--paper);
  transition:
    border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}
.field textarea {
  resize: vertical;
  min-height: 7.5rem;
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--paper-faint);
}
.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field input:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 1px;
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-status {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  min-height: 1.2em;
}
.form-status[data-state="success"] {
  color: #15803d;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .form-status[data-state="success"] {
    color: #4ade80;
  }
}
:root[data-theme="dark"] .form-status[data-state="success"] {
  color: #4ade80;
}
.form-status[data-state="error"] {
  color: #c81e1e;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .form-status[data-state="error"] {
    color: #f87171;
  }
}
:root[data-theme="dark"] .form-status[data-state="error"] {
  color: #f87171;
}
.contact-aside p {
  color: var(--paper-dim);
  font-size: var(--step-1);
}
.contact-aside .hero-social {
  margin-top: var(--sp-md);
}

/* 14. Footer -------------------------------------------------------------- */
.foot {
  border-top: 1px solid var(--line);
  padding-block: var(--sp-lg);
}
.foot .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-sm);
}
.foot p {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  color: var(--paper-faint);
}
.foot .links {
  display: flex;
  gap: 0.3rem;
}
.foot .links a {
  color: var(--paper-faint);
  padding: 0.35rem;
}
.foot .links a:hover {
  color: var(--accent);
}

/* 15. Utilities ----------------------------------------------------------- */
.vh {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.error {
  min-height: 66vh;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  gap: var(--sp-sm);
}
.error h1 {
  font-size: var(--step-3);
  line-height: 1.05;
  margin-top: 0;
}
.error .code {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(3.5rem, 14vw, 7rem);
  line-height: 1;
  color: var(--accent);
}
.error .hero-actions {
  justify-content: center;
  margin-top: var(--sp-sm);
}

/* 16. Motion -------------------------------------------------------------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.5s var(--ease),
    transform 0.5s var(--ease);
}
.js [data-reveal].in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* 17. Print --------------------------------------------------------------- */
@media print {
  .nav,
  .hero-actions,
  .theme-toggle,
  .form,
  .foot .links {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
}
