/* =========================================================================
   type.css — typographic voice (lane: type-color)
   One display gesture (the serif, enormous); everything else stays quiet:
   small caps-tracked labels, dim secondary ink, tabular figures.
   ========================================================================= */

/* ---- base -------------------------------------------------------------- */

body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 400;
  line-height: 1.55;
  font-synthesis: none; /* only real weights — never faux bold/italic */
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* ---- header ------------------------------------------------------------ */

.brand {
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}

.site-nav a {
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-dim);
}

.site-nav a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.4em;
}

/* ---- hero — the one big voice ------------------------------------------ */

.hero-name {
  font-family: var(--font-display);
  font-size: var(--step-4);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
  margin-block: 0;
}

.hero-role {
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-block: 0;
}

.hero-hint {
  font-family: var(--font-body);
  font-size: var(--step--1);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

/* ---- sections ---------------------------------------------------------- */

.sec-title {
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-block: 0;
}

/* ---- work index -------------------------------------------------------- */

.work-item::marker {
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
  color: var(--ink-dim);
}

.work-item a {
  text-decoration: none;
  color: inherit;
}

.work-name {
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.005em;
  color: var(--ink);
}

.work-item a:hover .work-name,
.work-item a:focus-visible .work-name {
  color: var(--accent);
}

.work-meta {
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  color: var(--ink-dim);
}

/* ---- about ------------------------------------------------------------- */

.about-text {
  font-family: var(--font-body);
  font-size: var(--step-1);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -0.004em;
  color: var(--ink);
  max-width: 32em; /* measure ≈ 66ch — layout may override */
  text-wrap: pretty;
}

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

.contact-link {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.005em;
  color: var(--ink);
}

/* underline rides on the label, not the whole link — the platform mark stays clean */
.contact-label {
  text-decoration: underline;
  text-decoration-thickness: 0.045em;
  text-underline-offset: 0.14em;
}

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

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

.site-end small {
  font-family: var(--font-body);
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  color: var(--ink-dim);
  font-variant-numeric: tabular-nums;
}
