/* ==========================================================================
   Sathvik V Anand · Personal Brand Microsite
   site.css — the single shared stylesheet (Design Brief §8.4, R12)
   Direction: D4 Pole Position, tempered hero D4.1 (D-1, Addendum A)
   Phase 3 · Step 1 · Build
   ========================================================================== */

/* --------------------------------------------------------------------------
   1 · FONT FACES — self-hosted woff2 (D-13, §8.1)
   Five files total: Anton, Archivo VF (roman + italic, wdth pinned to 100),
   Space Mono 400/700. ≤180KB budget: 128KB shipped.
   -------------------------------------------------------------------------- */

@font-face {
  font-family: "Anton";
  src: url("../fonts/anton-latin.woff2") format("woff2");
  font-weight: 100 900; /* single-cut face claims the range: no synthetic bold ever */
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-wght-latin.woff2") format("woff2-variations"),
       url("../fonts/archivo-wght-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-italic-wght-latin.woff2") format("woff2-variations"),
       url("../fonts/archivo-italic-wght-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Space Mono";
  src: url("../fonts/spacemono-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Mono";
  src: url("../fonts/spacemono-700-latin.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* A3 glyph pin — scoped face, engineered regardless of the coverage test.
   Pins ₹ (U+20B9), × (U+00D7), · (U+00B7) inside wall numerals to Archivo 700.
   Same woff2 resource as the body face: zero extra files; the numeral element
   requests weight 700, so the variable font instantiates wght=700. */
@font-face {
  font-family: "SVA Wall Pin";
  src: url("../fonts/archivo-wght-latin.woff2") format("woff2-variations"),
       url("../fonts/archivo-wght-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+20B9, U+00D7, U+00B7;
}

/* Metric-tuned local fallbacks (§8.1) — pre-swap render stays composed.
   size-adjust values approximate; verify at the A10 pass. */
@font-face {
  font-family: "Anton-fallback";
  src: local("Arial Narrow"), local("Impact"), local("Arial");
  size-adjust: 88%;
  ascent-override: 104%;
}
@font-face {
  font-family: "Archivo-fallback";
  src: local("Arial"), local("Helvetica Neue");
  size-adjust: 100.5%;
}
@font-face {
  font-family: "SpaceMono-fallback";
  src: local("Courier New"), local("Courier");
  size-adjust: 103%;
}

/* --------------------------------------------------------------------------
   2 · TOKENS — the A2 set, verbatim. Nothing outside this set renders (§3.3).
   Muted tones are contrast floors: may increase, never reduce (A2).
   -------------------------------------------------------------------------- */

:root {
  /* colour */
  --track:         #0e0f11;  /* dark shell ground */
  --paper:         #f4f4f1;  /* reading ground */
  --ink:           #17181a;  /* text on paper · the Record chip ground */
  --muted-dark:    #8a8d93;  /* muted on track · 5.76:1 floor */
  --muted-light:   #5e6166;  /* muted on paper · 5.64:1 floor */
  --volt:          #c8f03c;  /* labels, markers, states · dark surfaces only */
  --hairline-dark: #26282c;
  --hairline-light:#e2e3df;

  /* type — three voices, fixed jobs (§3.1) */
  --font-display: "Anton", "Anton-fallback", sans-serif;
  --font-wall:    "SVA Wall Pin", "Anton", "Anton-fallback", sans-serif; /* wall numerals only */
  --font-body:    "Archivo", "Archivo-fallback", sans-serif;
  --font-utility: "Space Mono", "SpaceMono-fallback", monospace;

  /* spacing — 8px base (§3.2) */
  --space-1: 8px;  --space-2: 16px; --space-3: 24px; --space-4: 32px;
  --space-5: 40px; --space-6: 48px; --space-8: 64px; --space-9: 72px;
  --section-pad: 56px;          /* paper section padding-block: 56+56 = 112px rhythm */
  --gutter: 72px;               /* desktop; overridden at L and S/M */
  --content-max: 1140px;
  --nav-h: 64px;

  /* type scale (modular ≈1.25 from 17px; ≤5 active sizes/page outside the wall) */
  --size-body: 17px;
  --size-small: 15.5px;
  --size-utility: 10.5px;
  --size-h1: clamp(40px, 4.5vw, 56px);          /* D4.1 tempered hero name (D-1) */
  --size-wall: clamp(48px, 6vw, 84px);          /* wall numerals, monumental scale (A4) */
  --size-pq: clamp(24px, 2.4vw, 34px);          /* pull-quote, §4.6 28–40 desktop */
}

/* --------------------------------------------------------------------------
   3 · BASE
   -------------------------------------------------------------------------- */

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

html { scroll-padding-top: calc(var(--nav-h) + 24px); } /* §5.4 anchor margin */

body {
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--size-body)/1.7 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

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

.wrap {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* surfaces — hard edges, hairline on the dark side (A1); no gradients, no fades */
.surface-track { background: var(--track); color: var(--paper); }
.surface-track + .surface-paper,
.surface-paper + .surface-track { border-top: 1px solid var(--hairline-dark); }
.surface-paper { background: var(--paper); color: var(--ink); }

/* focus — volt on dark, ink on paper, 2px offset, always (A2) */
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.surface-track :focus-visible,
.site-nav :focus-visible,
.site-footer :focus-visible { outline-color: var(--volt); }

/* skip link (D-8) */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  font: 700 12px var(--font-utility); letter-spacing: .06em; text-transform: uppercase;
  background: var(--ink); color: var(--paper); padding: 12px 18px; text-decoration: none;
}
.skip:focus { left: 0; }

/* --------------------------------------------------------------------------
   4 · THE TELEMETRY VOICE (utility) — the component system's machinery (§3.1)
   On dark: volt or muted-dark per A2. On paper: ink or muted-light, never volt.
   -------------------------------------------------------------------------- */

.tel {
  font: 400 var(--size-utility)/1.5 var(--font-utility);
  letter-spacing: .16em;
  text-transform: uppercase;
}
.tel--volt  { color: var(--volt); }        /* dark surfaces only — A2 allowlist */
.tel--muted { color: var(--muted-dark); }  /* on track */
.surface-paper .tel        { color: var(--ink); }
.surface-paper .tel--muted { color: var(--muted-light); }

/* --------------------------------------------------------------------------
   5 · BUTTONS — Device D construction (A6). The only button-styled elements
   site-wide are Device D pairs and the nav CTA (§3.4 exclusivity ledger).
   Volt never fills a button. Hover = fill-swap; never colour alone.
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; min-width: 44px;
  font: 700 12px/1 var(--font-utility); letter-spacing: .06em; text-transform: uppercase;
  padding: 13px 22px; text-decoration: none; cursor: pointer;
  background: none;
  border: 1.5px solid var(--ink); color: var(--ink);     /* on paper: ink outline */
}
.btn:hover { background: var(--ink); color: var(--paper); }
.surface-track .btn, .site-nav .btn {
  border-color: var(--paper); color: var(--paper);        /* on dark: paper outline */
}
.surface-track .btn:hover, .site-nav .btn:hover {
  background: var(--paper); color: var(--ink);
}
.btn--compact { min-height: 40px; padding: 10px 18px; }

@media (prefers-reduced-motion: no-preference) {
  .btn, a { transition: background-color .15s, color .15s, border-color .15s; }
}

/* --------------------------------------------------------------------------
   6 · PARTIAL — NAV (§5.1–5.3) · chrome attached to the dark shell
   One nav, identical on all five pages. No hamburger at any width.
   -------------------------------------------------------------------------- */

.site-nav {
  position: sticky; top: 0; z-index: 10;
  background: var(--track); color: var(--paper);
  border-bottom: 1px solid var(--hairline-dark);
  height: var(--nav-h);
}
.site-nav .wrap {
  height: 100%; display: flex; align-items: center; gap: 28px;
  max-width: none; /* nav runs full-bleed with gutters */
}
.nav-wordmark {
  font: 400 17px/1 var(--font-display);
  text-transform: uppercase; letter-spacing: .05em;
  color: var(--paper); text-decoration: none;
  margin-right: auto;
}
.nav-wordmark .monogram { display: none; }
.site-nav a:not(.btn):not(.nav-wordmark) {
  color: var(--paper); text-decoration: none; font-size: 14.5px;
}
.site-nav a:not(.btn):not(.nav-wordmark):hover { color: var(--volt); }       /* A2 allowlist */
.site-nav a[aria-current="page"],
.site-nav a[aria-current="true"] {
  color: var(--volt);
  border-bottom: 2px solid currentColor; /* non-colour cue: structural rule (§7) */
}
/* nav CTA on /contact renders active-state, non-navigating (§5.3) — class hook */
.site-nav .btn[aria-current="page"] { background: var(--paper); color: var(--ink); pointer-events: none; }

/* --------------------------------------------------------------------------
   7 · PARTIAL — DEVICE C · THE PROOF BAR / NUMERAL WALL (§4.3, A4, A6)
   Homepage + story cover: the full dark wall, monumental scale (the only
   full-bleed track component — exclusivity ledger as amended by A6).
   /work featured block: 5-cell ink-ruled band on paper (.proofbar--paper).
   Semantics: <dl>; numeral = dd, label = dt, visually reordered.
   -------------------------------------------------------------------------- */

.proofbar {
  background: var(--track); color: var(--paper);
  border-top: 1px solid var(--hairline-dark);
  border-bottom: 1px solid var(--hairline-dark);
}
.proofbar__cells {
  max-width: var(--content-max); margin-inline: auto;
  padding: var(--section-pad) var(--gutter);
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 44px 32px;
}
.proofbar .cell { display: flex; flex-direction: column-reverse; } /* dt above dd in source; numeral on top visually */
.proofbar .cell dd {
  font-family: var(--font-wall);   /* A3 pin: ₹ × · render in Archivo 700 */
  font-weight: 700;                /* Anton claims 100–900: renders its single cut */
  font-size: var(--size-wall);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .005em;
}
.proofbar .cell dt {
  font: 400 10px/1.45 var(--font-utility);
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted-dark);
  margin-bottom: 10px; /* sits below numeral after reverse */
}

/* /work featured variant: ink-ruled band on paper, no fill (A6) */
.proofbar--paper {
  background: none; color: var(--ink);
  border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
}
.proofbar--paper .cell dt { color: var(--muted-light); }
.proofbar--paper .proofbar__cells { grid-template-columns: repeat(5, 1fr); padding-block: var(--space-4); }

/* --------------------------------------------------------------------------
   8 · PARTIAL — DEVICE A · THE DECISION RECORD (§4.1, A6, R2)
   One identity, every instance identical: 4px ink left rule, ink chip with
   volt label text (the only volt on a paper page — it sits on the chip's ink),
   run-in mono field labels. Never collapsed. 8 of 12 columns at XL.
   -------------------------------------------------------------------------- */

.record {
  border-left: 4px solid var(--ink);
  padding-left: 28px;
  max-width: 66.6667%; /* 8 of 12 columns */
}
.record__chip {
  display: inline-block;
  font: 700 10px/1 var(--font-utility); letter-spacing: .14em; text-transform: uppercase;
  background: var(--ink); color: var(--volt);   /* 13.52:1 — A2 */
  padding: 6px 10px; margin-bottom: 18px;
}
.record dl { margin: 0; }
.record dt {
  font: 700 10px/1.5 var(--font-utility); letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted-light);
  margin: 18px 0 4px;
}
.record dd { font-size: var(--size-small); line-height: 1.7; }
/* no icons, no alert tinting, no per-field colour — guaranteed by the token set */

/* --------------------------------------------------------------------------
   9 · PARTIAL — DEVICE B · THE ROLE LENS (§4.2)
   A colophon: single hairline above and below, full prose measure, quiet.
   -------------------------------------------------------------------------- */

.rolelens {
  border-top: 1px solid var(--hairline-light);
  border-bottom: 1px solid var(--hairline-light);
  padding: var(--space-3) 0;
  max-width: 70ch;
}
.surface-track .rolelens { border-color: var(--hairline-dark); }
.rolelens .tel { display: block; margin-bottom: 10px; }
.rolelens p { font-size: var(--size-small); }
.rolelens strong { font-weight: 600; }

/* --------------------------------------------------------------------------
   10 · PARTIAL — DEVICE D · THE STANDING CTA (§4.4, A6)
   The page's closing breath: short heavy rule above, centred, two equal
   buttons. No primary/secondary weighting — the paths are deliberately equal.
   -------------------------------------------------------------------------- */

.standing-cta {
  text-align: center;
  padding-top: var(--space-8);
}
.standing-cta::before {
  content: ""; display: block;
  width: 56px; height: 3px; background: var(--ink);
  margin: 0 auto var(--space-5);
}
.surface-track .standing-cta::before { background: var(--paper); }
.standing-cta p { max-width: 54ch; margin: 0 auto var(--space-4); }
.standing-cta .cta-pair { display: flex; gap: 14px; justify-content: center; }

/* --------------------------------------------------------------------------
   11 · PARTIAL — FOOTER (§5.5, D-15) · dark, minimal, identical site-wide
   wordmark (full name) · Work · About · Contact · LinkedIn · © line
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--track); color: var(--muted-dark);
  border-top: 1px solid var(--hairline-dark);
  font-size: 13.5px;
}
.site-footer .wrap {
  padding-block: var(--space-6);
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px;
}
.footer-wordmark {
  font: 400 15px/1 var(--font-display); text-transform: uppercase; letter-spacing: .05em;
  color: var(--paper); text-decoration: none; margin-right: auto;
}
.site-footer a:not(.footer-wordmark) { color: var(--paper); text-decoration: none; }
.site-footer a:not(.footer-wordmark):hover { text-decoration: underline; text-underline-offset: 3px; }
.site-footer .copy { flex-basis: 100%; margin-top: var(--space-2); }

/* --------------------------------------------------------------------------
   12 · SHARED TYPOGRAPHIC COMPONENTS (homepage + interiors)
   -------------------------------------------------------------------------- */

/* prose — the reading column (§3.1, A7) */
.prose { max-width: 70ch; }
.prose p + p { margin-top: 1em; }
.prose a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { text-decoration-thickness: 2px; }

/* typographic links (all non-button links on paper) */
.textlink {
  font-weight: 600; color: var(--ink); text-decoration: none;
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 1px;
}
.textlink:hover { border-bottom-width: 3px; }

/* pull-quote (§4.6) — one per site; Archivo 600, never Anton (A3) */
.pq {
  font: 600 var(--size-pq)/1.38 var(--font-body);
  max-width: 720px;
}
.pq::before {
  content: ""; display: block;
  width: 56px; height: 4px; background: var(--ink);
  margin-bottom: var(--space-3);
}

/* paper sections — rhythm (§3.2) */
.sec { padding-block: var(--section-pad); border-bottom: 1px solid var(--hairline-light); }
.sec:last-of-type { border-bottom: 0; }

/* paper section heads — the gear-change pattern (§4.16 mechanism):
   heavy ink rule opening the section + Archivo 600 title.
   Anton stays dark-moment-only (A1). */
.sec--headed { border-top: 2px solid var(--ink); }
.sec-title { font: 600 22px/1.3 var(--font-body); margin-bottom: 32px; }
.sec--open { border-bottom: 0; } /* a headed section's heavy rule replaces the hairline above it */

/* Option 2 (Phase 3 QA round 2) — louder paper section head: uppercase
   Archivo 700, wide tracking, opened by a 4px ink rule with extra space
   above, so the section break reads unmistakably. Anton stays
   dark-moment-only (A1); this is the heaviest legal paper header. */
.sec--headed.sec--loud { border-top-width: 4px; padding-top: 8px; }
.sec-title--loud { font: 700 30px/1.05 var(--font-body); text-transform: uppercase; letter-spacing: .04em; }
@media (max-width: 767px) { .sec-title--loud { font-size: 26px; } }

/* stacked Anton section heads — dark moments only (A1) */
.shead {
  font: 400 clamp(56px, 8vw, 96px)/0.95 var(--font-display);
  text-transform: uppercase; letter-spacing: .005em;
}

/* PARTIAL — dark page head (/work, /about, /contact per A1):
   telemetry caption + stacked Anton title; prose never sits here */
.page-head { background: var(--track); color: var(--paper); padding: 72px 0 56px; }
.page-head .tel { display: block; margin-bottom: 20px; }
.page-head h1 {
  font: 400 clamp(52px, 7vw, 88px)/0.95 var(--font-display);
  text-transform: uppercase; letter-spacing: .005em;
}

/* --------------------------------------------------------------------------
   13 · RESPONSIVE (§6)
   -------------------------------------------------------------------------- */

@media (max-width: 1023px) { /* L */
  :root { --gutter: 48px; }
}

@media (max-width: 767px) { /* M */
  :root { --gutter: 24px; --section-pad: 40px; --nav-h: 56px; }

  /* Proof Bar 2-col grid; 7th cell spans; numerals ~30% down (§4.3 / R5) */
  .proofbar__cells { grid-template-columns: 1fr 1fr; gap: 36px 20px; }
  .proofbar .cell:nth-child(7) { grid-column: 1 / -1; }
  .proofbar .cell dd { font-size: clamp(34px, 9vw, 58px); }
  .proofbar .cell dt { font-size: 10px; } /* labels never below 10px */

  .record { max-width: none; padding-left: 18px; }
}

@media (max-width: 479px) { /* S */
  .nav-wordmark .full { display: none; }
  .nav-wordmark .monogram { display: inline; }  /* SVA monogram (D-14) */
  .nav-q { display: none; }                     /* nav: "Careervira" only on S, keeps one row */
  .standing-cta .cta-pair { flex-direction: column; align-items: stretch; }
  .site-nav .wrap { gap: 16px; }
  .site-nav a:not(.btn):not(.nav-wordmark) { font-size: 13.5px; }
  .site-nav .btn--compact { padding: 10px 12px; }
}

/* --------------------------------------------------------------------------
   14 · PRINT (§8.5, D-18, A8) — dark inverts to paper; volt maps to ink;
   chrome hidden. Story page is the guaranteed gate; all pages best-effort.
   -------------------------------------------------------------------------- */

@media print {
  .site-nav, .skip, .standing-cta .cta-pair { display: none; }
  body, .surface-track, .proofbar, .site-footer {
    background: #fff !important; color: #000 !important;
  }
  .tel--volt, .tel--muted, .surface-track .tel { color: #000 !important; }
  .surface-track p, .surface-track .rolelens p { color: #000 !important; }
  .proofbar { border-top: 2px solid #000; border-bottom: 2px solid #000; }
  .proofbar .cell dt { color: #333 !important; }
  .record__chip { background: none; color: #000; border: 1px solid #000; } /* ink-on-white outline (A8) */
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 11px; }
}
