/* cv page — editorial, shares warm tokens with index */

body.cv { line-height: 1.65; }
body.cv main {
  width: min(40rem, 100% - 3rem);
  min-height: auto;
  display: block;
  margin-inline: auto;
  padding-block: clamp(2.5rem, 7vh, 5rem);
}

.back { margin-bottom: 3rem; font-family: var(--mono); }
.back a { color: var(--soft); text-decoration: none; font-size: 0.8rem; transition: color .16s ease; }
.back a:hover { color: var(--accent); }
.back a:focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; border-radius: 3px; }

body.cv header h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 1.5rem + 2vw, 2.9rem);
  letter-spacing: -0.015em;
  line-height: 1.05;
  margin-bottom: 1rem;
}
body.cv header > p {
  color: var(--fg);
  font-size: 1.0625rem;
  line-height: 1.7;
  max-width: 60ch;
}
body.cv header .links {
  margin-top: 1rem;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--faint);
}
body.cv .links a { color: var(--soft); text-decoration: none; }
body.cv .links a:hover { color: var(--accent); }
body.cv a { color: var(--fg); text-decoration-color: var(--line); text-underline-offset: 2px; }
body.cv a:hover { text-decoration-color: var(--accent); }

section { margin-top: 3rem; }
section h2 {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--faint);
  padding-bottom: 0.6rem;
  margin-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
}
section > p {
  font-size: 1rem;
  line-height: 1.75;
  max-width: 62ch;
  color: var(--fg);
}

.cv-list { display: grid; gap: 1.35rem; }
.cv-list dt {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.1rem;
  letter-spacing: -0.005em;
}
.cv-list dd {
  color: var(--soft);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-top: 0.2rem;
  max-width: 60ch;
}

a:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; border-radius: 2px; }

/* mobile: full width with even gutters, never let text run off the edge */
@media (max-width: 34rem) {
  body.cv main {
    width: 100%;
    padding-inline: 1.5rem;
    padding-block: clamp(2.5rem, 9vh, 4rem);
  }
  body.cv header h1 { font-size: clamp(1.6rem, 1.1rem + 4vw, 2.4rem); }
  body.cv header > p,
  section > p,
  .cv-list dd { max-width: none; overflow-wrap: anywhere; }
  section > p { font-size: 0.95rem; }
}
