/* ==========================================================================
   cv.css — the facts version
   A short, CV-style cut of the About page: header · timeline · skills · langs.
   Relies on base.css for tokens, reset, cursor, topbar and .section-label.
   ========================================================================== */

main {
  max-width: 980px;
  margin: 0 auto;
  padding: 150px 32px 60px;
}

/* The CV runs its section labels a little looser than the global default. */
.section-label { margin: 80px 0 30px; }

/* -- Header --------------------------------------------------------------- */
.head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: end;
  border-bottom: 1px solid var(--line);
  padding-bottom: 36px;
}
.eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 20px;
}
.head h1 {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: clamp(52px, 7vw, 96px);
  line-height: 0.9;
  letter-spacing: -0.04em;
}
.head h1 em {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-weight: 400;
  color: var(--acc);
}
.head .dry {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-size: 18px;
  color: var(--ink-2);
  margin-top: 18px;
  max-width: 480px;
}
.head .dry a { color: var(--acc); border-bottom: 1px solid var(--acc); }

.pdf-btn {
  appearance: none; -webkit-appearance: none; background: transparent; font: inherit;
  display: inline-flex; align-items: center; gap: 12px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  border: 1px solid var(--line); padding: 14px 20px; color: var(--ink);
  transition: background .25s, color .25s, border-color .25s;
  cursor: none; white-space: nowrap;
}
.pdf-btn:hover { background: var(--acc); color: var(--acc-ink); border-color: var(--acc); }
.pdf-btn .arr { font-family: "Syne", sans-serif; }
@media (hover: none), (pointer: coarse) { .pdf-btn { cursor: pointer; } }

/* -- Timeline ------------------------------------------------------------- */
.tl { border-top: 1px solid var(--line); }
.tl-row {
  display: grid;
  grid-template-columns: 150px 1fr 110px;
  gap: 28px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.tl-row .yrs {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px; letter-spacing: 0.1em; color: var(--acc);
}
.tl-row .yrs .st {
  display: block; font-size: 10px; color: var(--ink-3);
  margin-top: 6px; text-transform: uppercase; letter-spacing: 0.12em;
}
.tl-row h3 {
  font-family: "Syne", sans-serif; font-weight: 700;
  font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -0.02em; line-height: 1.05;
}
.tl-row h3 .at {
  font-family: "Instrument Serif", serif; font-style: italic;
  font-weight: 400; color: var(--ink-2);
}
.tl-row .what {
  font-family: "Instrument Serif", serif; font-size: 17px;
  color: var(--ink-2); margin-top: 8px; max-width: 560px;
}
.tl-row .proof {
  margin-top: 12px; font-family: "JetBrains Mono", monospace;
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
}
.tl-row .proof a {
  color: var(--ink-3); border-bottom: 1px solid var(--line);
  padding-bottom: 2px; transition: color .2s, border-color .2s;
}
.tl-row .proof a:hover { color: var(--acc); border-color: var(--acc); }
.tl-row .proof .k { color: var(--acc); margin-right: 8px; }
.tl-row .loc {
  font-family: "JetBrains Mono", monospace; font-size: 10px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); text-align: right;
}

.tl-row.thread { background: linear-gradient(90deg, transparent, oklch(0.20 0.014 80 / 0.6), transparent); }
.tl-row.thread .yrs { color: var(--ink-2); }
.tl-row.thread .yrs::before { content: "∥ "; color: var(--acc); }

/* -- Skills tiers --------------------------------------------------------- */
.tiers { display: grid; grid-template-columns: 170px 1fr; border-top: 1px solid var(--line); }
.tier-l { padding: 26px 0; border-bottom: 1px solid var(--line); }
.tier-l .nm { font-family: "Syne", sans-serif; font-weight: 700; font-size: 19px; letter-spacing: -0.015em; }
.tier-l .nt {
  font-family: "Instrument Serif", serif; font-style: italic; font-size: 14px;
  color: var(--ink-3); margin-top: 4px; max-width: 140px; line-height: 1.3;
}
.tier-r {
  padding: 26px 0; border-bottom: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start;
}
.chip {
  font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: 0.06em;
  border: 1px solid var(--line); padding: 8px 14px; color: var(--ink);
  transition: border-color .2s;
}
.chip:hover { border-color: var(--ink-2); }
.tier-1 .chip { background: var(--bg-2); border-color: oklch(0.4 0.02 90 / 0.6); }
.tier-3 .chip { color: var(--ink-3); border-style: dashed; }
.chip .sub { color: var(--ink-3); margin-left: 6px; }

/* -- Languages ------------------------------------------------------------ */
.langs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.lang { background: var(--bg); padding: 24px 22px; }
.lang .nm { font-family: "Syne", sans-serif; font-weight: 700; font-size: 24px; letter-spacing: -0.02em; }
.lang .lv {
  font-family: "JetBrains Mono", monospace; font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--acc); margin-top: 8px;
}
.lang .nt { font-family: "Instrument Serif", serif; font-style: italic; font-size: 15px; color: var(--ink-3); margin-top: 6px; }

/* -- Footer --------------------------------------------------------------- */
.cv-foot {
  margin-top: 90px; border-top: 1px solid var(--line); padding-top: 36px;
  display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center;
}
.cv-foot .dry { font-family: "Instrument Serif", serif; font-style: italic; font-size: 17px; color: var(--ink-2); max-width: 440px; }
.meta-foot {
  display: flex; justify-content: space-between; margin-top: 60px; padding-top: 24px;
  border-top: 1px solid var(--line); font-family: "JetBrains Mono", monospace;
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3);
}
.meta-foot a:hover { color: var(--acc); }

/* -- Responsive ----------------------------------------------------------- */
@media (max-width: 760px) {
  main { padding: 130px 20px 50px; }
  .head { grid-template-columns: 1fr; }
  .tl-row { grid-template-columns: 1fr; gap: 8px; }
  .tl-row .loc { text-align: left; }
  .tiers { grid-template-columns: 1fr; }
  .tier-l { border-bottom: none; padding-bottom: 8px; }
  .langs { grid-template-columns: 1fr; }
  .cv-foot { grid-template-columns: 1fr; }
}

/* Print-only blocks (letterhead / footer band) stay hidden on screen. */
.print-only { display: none; }

/* ===== Print / PDF: a styled, on-brand A4 document ======================
   Keeps the site's dark olive + lime identity instead of dumping the page
   to black-on-white. Needs "Background graphics" enabled when saving to PDF
   (Chrome's print dialog has it on by default). ======================== */
@page { size: A4 portrait; margin: 0; }
@media print {
  html, body { background: var(--bg) !important; }
  body {
    cursor: auto;
    font-size: 10pt;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; animation: none !important; transition: none !important; }

  /* Drop all screen chrome + the on-screen header/footers. */
  .cursor-dot, .cursor-ring, .topbar, .urlplay, .pdf-btn,
  .head, .meta-foot { display: none !important; }

  main { padding: 15mm 16mm 24mm; max-width: 100%; margin: 0; }

  /* -- Letterhead -------------------------------------------------------- */
  .print-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--acc);
  }
  .ph-kicker {
    font-family: "JetBrains Mono", monospace;
    font-size: 7.5pt; letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--acc); margin-bottom: 10px;
  }
  .ph-name {
    font-family: "Syne", sans-serif; font-weight: 800;
    font-size: 30pt; line-height: 0.92; letter-spacing: -0.03em; color: var(--ink);
  }
  .ph-name span { color: var(--acc); }
  .ph-role {
    font-family: "Instrument Serif", serif; font-style: italic;
    font-size: 12pt; color: var(--ink-2); margin-top: 8px;
  }
  .ph-right { text-align: right; white-space: nowrap; }
  .ph-row {
    font-family: "JetBrains Mono", monospace; font-size: 8pt;
    letter-spacing: 0.04em; color: var(--ink); line-height: 1.9;
  }
  .ph-row span {
    display: inline-block; min-width: 56px; text-align: left;
    color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.12em;
    margin-right: 10px;
  }

  /* -- Section labels ---------------------------------------------------- */
  .section-label { margin: 22px 0 12px; font-size: 8pt; }
  .section-label::before { width: 22px; }

  /* -- Timeline ---------------------------------------------------------- */
  .tl-row { padding: 11px 0; gap: 20px; break-inside: avoid; }
  .tl-row .yrs { font-size: 8.5pt; }
  .tl-row .yrs .st { font-size: 7pt; margin-top: 4px; }
  .tl-row h3 { font-size: 14pt; }
  .tl-row .what { font-size: 10pt; margin-top: 5px; }
  .tl-row .proof { font-size: 7.5pt; margin-top: 7px; }
  .tl-row.thread { background: linear-gradient(90deg, oklch(0.88 0.22 120 / 0.10), transparent 70%); }
  .tl-row .loc { font-size: 7.5pt; }

  /* -- Skills + languages ------------------------------------------------ */
  .tier-l, .tier-r { padding: 10px 0; }
  .tier-l .nm { font-size: 12pt; }
  .tier-l .nt { font-size: 9pt; }
  .chip { font-size: 8pt; padding: 5px 10px; }
  .lang { padding: 14px 14px; }
  .lang .nm { font-size: 16pt; }
  .langs, .tiers, .tl { break-inside: avoid-page; }

  /* -- Closing line + footer band ---------------------------------------- */
  .cv-foot {
    grid-template-columns: 1fr; margin-top: 26px; padding-top: 18px;
  }
  .cv-foot .dry { font-size: 10.5pt; max-width: 100%; }

  .print-foot {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line);
  }
  .pf-mark {
    font-family: "JetBrains Mono", monospace; font-size: 9pt;
    letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2);
  }
  .pf-mark span { color: var(--acc); }
  .pf-meta {
    font-family: "JetBrains Mono", monospace; font-size: 7.5pt;
    letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3);
  }
}
