/* ============================================================
   RESUME SHEET (.cv)
   One sheet, two uses: resume/resume.html prints it to the PDF
   (A4), and site/resume.html shows it on the site as a page of
   paper. Built by build-resume.js from content/resume.json.
   Single column, real text in reading order, so applicant
   tracking systems read it top to bottom. Every size is in em of
   the sheet's base size (--cv-size), so print and screen scale
   together.
   ============================================================ */
.cv {
  --cv-size: 9.4pt;
  --cv-ink: #141414;
  --cv-dim: #3b3b3b;
  --cv-mute: #5f5f5f;
  --cv-line: #e3e3e3;
  --cv-paper: #ffffff;
  --t-floweraura: #E0517A;
  --t-bakingo: #F0A32B;
  --t-seamsfriendly: #7FA88C;
  --t-zestta: #4C6FFF;
  --t-systems: #8B7BE0;
  --t-fnpvenues: #1F8A63;
  --t-builtright: #6E56F8;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: var(--cv-size);
  font-weight: 400;
  line-height: 1.5;
  color: var(--cv-ink);
  background: var(--cv-paper);
  -webkit-font-smoothing: antialiased;
  font-synthesis-weight: none;
  text-align: left;
}
.cv *, .cv *::before, .cv *::after { box-sizing: border-box; }
.cv h1, .cv h2, .cv h3, .cv p, .cv ul, .cv dl, .cv dd { margin: 0; }
.cv ul { padding: 0; list-style: none; }
.cv a { color: inherit; text-decoration: none; }
.cv b, .cv strong { font-weight: 600; }
.cv .nowrap { white-space: nowrap; }

/* ---------- head: name, role, contact; the mark ---------- */
.cv__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "who art" "contact contact";
  align-items: end;
  gap: 1.2em 2em;
  padding-bottom: 1.5em;
  border-bottom: 1px solid var(--cv-ink);
}
.cv__name {
  font-size: 3.7em;
  font-weight: 300;
  line-height: 0.98;
  letter-spacing: -0.045em;
}
.cv__role {
  margin-top: 0.55em;
  font-size: 1.22em;
  font-weight: 500;
  letter-spacing: -0.012em;
}
.cv__role span { font-weight: 300; color: var(--cv-mute); }
.cv__who { grid-area: who; }
.cv__art { grid-area: art; }
.cv__contact {
  grid-area: contact;
  display: flex;
  flex-wrap: wrap;
  gap: 0.2em 0.9em;
  margin-top: -0.2em;
  font-size: 0.95em;
  color: var(--cv-dim);
}
.cv__contact li { display: flex; gap: 0.9em; }
.cv__contact li + li::before { content: '\00b7'; color: #b5b5b5; }
/* the mark alone (the funnel drawing came off, 3 Oct 2026), the size it was
   in the drawing, level with the top of the name */
.cv__art { width: 2.45em; align-self: start; }
.cv__art svg { display: block; width: 100%; height: auto; overflow: visible; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.cv__art .cv__mark { fill: var(--cv-ink); stroke: none; }

/* ---------- the line, then the summary ---------- */
.cv__intro { display: grid; gap: 0.7em; padding-block: 1.5em 1.3em; }
.cv__statement { font-size: 1.62em; font-weight: 300; line-height: 1.2; letter-spacing: -0.025em; }
.cv__summary { max-width: 62em; color: var(--cv-dim); line-height: 1.58; }

/* ---------- key figures ---------- */
.cv__stats {
  display: grid;
  grid-template-columns: 0.75fr 0.8fr 1.4fr 1.25fr;
  border-top: 1px solid var(--cv-line);
  border-bottom: 1px solid var(--cv-line);
}
.cv__stat { display: grid; gap: 0.3em; align-content: start; padding: 0.95em 1em 0.9em; }
.cv__stat + .cv__stat { border-left: 1px solid var(--cv-line); }
.cv__stat:first-child { padding-left: 0; }
.cv__stat b { white-space: nowrap; font-size: 1.5em; font-weight: 300; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.cv__stat > span { font-size: 0.86em; line-height: 1.35; color: var(--cv-mute); text-wrap: balance; }

/* ---------- sections ---------- */
.cv__sec { padding-top: 1.7em; }
.cv__sec-head {
  display: flex;
  align-items: baseline;
  gap: 0.9em;
  margin-bottom: 1.1em;
  font-size: 0.84em;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.cv__sec-head i { font-style: normal; font-weight: 400; color: var(--cv-mute); letter-spacing: 0.06em; }
.cv__sec-head::after { content: ''; flex: 1; height: 1px; background: var(--cv-line); transform: translateY(-0.3em); }

/* ---------- roles ---------- */
/* a role may run on to the next page between its points, never inside one,
   and never leaves its title behind */
.cv__role-top, .cv__where { break-after: avoid; page-break-after: avoid; }
.cv__points li { break-inside: avoid; page-break-inside: avoid; }
.cv__role-block + .cv__role-block { margin-top: 1.45em; }
.cv__role-top { display: flex; justify-content: space-between; align-items: baseline; gap: 1.2em; }
.cv__role-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 0.45em; font-size: 1.14em; font-weight: 600; letter-spacing: -0.015em; }
.cv__co { font-weight: 400; color: var(--cv-dim); }
.cv__when { flex: none; font-size: 0.92em; color: var(--cv-mute); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cv__where { margin-top: 0.1em; font-size: 0.92em; color: var(--cv-mute); }
.cv__dots { display: inline-flex; gap: 0.25em; align-self: center; margin-right: 0.15em; }
.cv__dots i { width: 0.55em; height: 0.55em; border-radius: 50%; background: var(--tint, #999); }
.cv__points { display: grid; gap: 0.5em; margin-top: 0.65em; }
/* every text box stays in normal flow (Chrome writes a positioned box's text out
   of reading order in the PDF), so the dash is a background, not a pseudo-element */
.cv__points li {
  padding-left: 1.15em;
  color: var(--cv-dim);
  line-height: 1.52;
  background: linear-gradient(var(--cv-ink), var(--cv-ink)) 0.1em 0.76em / 0.55em 1px no-repeat;
}
/* a result, the way the reference brackets its figures: a soft wash of the brand's tint */
.cv__result {
  display: inline;
  margin-left: 0.25em;
  padding: 0.08em 0.45em;
  border-radius: 0.35em;
  background: color-mix(in srgb, var(--tint, #999) 17%, var(--cv-paper));
  color: var(--cv-ink);
  font-weight: 500;
  white-space: nowrap;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ---------- selected case studies ---------- */
.cv__cases { display: grid; gap: 0.7em; }
.cv__case { break-inside: avoid; page-break-inside: avoid; }
.cv__case-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.5em; font-weight: 600; letter-spacing: -0.01em; }
.cv__case-title i { flex: none; width: 0.55em; height: 0.55em; border-radius: 50%; background: var(--tint, #999); align-self: center; }
.cv__case-title em { font-style: normal; font-weight: 400; color: var(--cv-mute); font-size: 0.92em; }
.cv__case p + p { margin-top: 0.1em; padding-left: 1.05em; color: var(--cv-dim); }

/* ---------- skills ---------- */
.cv__skills { display: grid; gap: 0.45em; }
.cv__skills li { color: var(--cv-dim); text-wrap: pretty; }
.cv__skills b { margin-right: 0.55em; color: var(--cv-ink); }

/* ============================================================
   On the site (site/resume.html): the sheet as a page of paper
   ============================================================ */
.cv--web {
  --cv-size: clamp(14px, 0.4vw + 9px, 15px);
  width: 100%;
  max-width: 900px;
  margin-inline: auto;
  padding: clamp(24px, 6vw, 64px) clamp(20px, 6.5vw, 72px) clamp(32px, 6vw, 64px);
  border-radius: 14px;
  box-shadow: 0 40px 90px -40px var(--shadow-deep, rgba(0, 0, 0, 0.9)), 0 0 0 1px var(--sheet-ring, rgba(255, 255, 255, 0.06));
}
.cv--web a:focus-visible { outline: 2px solid var(--cv-ink); outline-offset: 3px; border-radius: 2px; }
.cv--web .cv__case-name,
.cv--web .cv__contact a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: #bdbdbd;
  text-underline-offset: 0.22em;
  transition: text-decoration-color var(--dur, 400ms) var(--ease, ease);
}
.cv--web a:hover .cv__case-name,
.cv--web .cv__contact a:hover { text-decoration-color: currentColor; }
/* the contact line stacks before it could wrap with a dot leading a line */
@media (max-width: 800px) {
  .cv--web .cv__contact { flex-direction: column; gap: 0.15em; }
  .cv--web .cv__contact li + li::before { display: none; }
}
/* four figures side by side need about 880px in Inter (the third, a range,
   is the widest); at 900px and below they go two by two */
@media (max-width: 900px) {
  .cv--web .cv__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cv--web .cv__stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .cv--web .cv__stat:nth-child(n + 3) { border-top: 1px solid var(--cv-line); }
}
@media (max-width: 767px) {
  .cv--web .cv__head { grid-template-columns: minmax(0, 1fr); }
  .cv--web .cv__art { display: none; }
  .cv--web .cv__name { font-size: 2.9em; }
  .cv--web .cv__role-top { flex-direction: column; gap: 0.1em; }
  /* the company goes under the title, without its separator */
  .cv--web .cv__sep { display: none; }
  .cv--web .cv__co { flex-basis: 100%; }
  .cv--web .cv__result { white-space: normal; }
  /* a figure may wrap on a phone, between its ranges, never inside one */
  .cv--web .cv__stat b { white-space: normal; }
}
