/* Newsreader only, roman, optical sizes 16–72 and weights 400–600: exactly what the
   components below use (sheet 400/16, price 500/48, headings 600/24–32, wordmark 600/30,
   score 600/72). Body and mono text use system fonts, so nothing else is downloaded. */
@import url("https://fonts.googleapis.com/css2?family=Newsreader:opsz,wght@16..72,400..600&display=swap");

/* HonestCV design system: tokens and components. Generated from the design system artifact.
   Colour roles:
   - --pen (red) is kept for bad news and the brand mark only: the gaps block and its
     crosses, errors (error notices, over-limit counter, file errors) and the wordmark underline.
   - --ink carries everything else, including the score circle and link underlines.
   - --tick (green) marks good news: strengths, ticks and success notices.
   - --marker (yellow) highlights keywords. --caution (amber) is for warnings. */
:root {
  --ground: #f1f3ee;
  --sheet: #ffffff;
  --sheet-sunk: #e6e9e1;
  --ink: #161b17;
  --ink-soft: #445046;
  --ink-faint: #5f6b61;
  --rule: #cbd1c7;
  --rule-strong: #738076;
  --pen: #b3261e;
  --on-pen: #ffffff;
  --pen-soft: #fbe9e6;
  --marker: #f2e25a;
  --on-marker: #161b17;
  --tick: #1b6b49;
  --tick-soft: #e1f0e8;
  --caution: #7a5200;
  --caution-soft: #faefd2;
  --action: var(--ink);
  --on-action: var(--ground);
  --focus: var(--ink);
  --shadow-sheet: 0 1px 2px rgba(22, 27, 23, 0.06), 0 12px 28px -16px rgba(22, 27, 23, 0.22);
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 72px;
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;
  --measure: 38rem;
  --touch-target: 48px;
  --gutter: 16px;
  --font-display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, Menlo, Consolas, monospace;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
:root {
  --ground: #121512;
  --sheet: #1b201c;
  --sheet-sunk: #0d0f0d;
  --ink: #ecefe8;
  --ink-soft: #b9c1b6;
  --ink-faint: #97a194;
  --rule: #2d342e;
  --rule-strong: #6a766b;
  --pen: #ff8a7e;
  --on-pen: #1a0705;
  --pen-soft: #3b1d1a;
  --marker: #e2d24a;
  --on-marker: #161b17;
  --tick: #6fd7a3;
  --tick-soft: #173223;
  --caution: #e8be55;
  --caution-soft: #352a10;
  --shadow-sheet: 0 1px 0 rgba(0, 0, 0, 0.4), 0 12px 28px -16px rgba(0, 0, 0, 0.6);
}
}


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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 17px/26px var(--font-body);
}

/* Wordmark */
.hc-wordmark { display: inline-block; position: relative; padding-bottom: 8px; font: 600 30px/1 var(--font-display); letter-spacing: -0.01em; color: var(--ink); }
.hc-wordmark svg { position: absolute; left: 0; bottom: 0; width: 64%; height: 8px; overflow: visible; fill: none; stroke: var(--pen); stroke-width: 2.5; stroke-linecap: round; }
.hc-tagline { margin: 0; font: 400 15px/22px var(--font-body); color: var(--ink-soft); }

/* Buttons */
.hc-btn { appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: var(--touch-target); padding: 0 var(--space-5); border: 1px solid transparent; border-radius: var(--radius-md); background: var(--action); color: var(--on-action); font: 700 17px/1 var(--font-body); text-decoration: none; cursor: pointer; transition: background-color 120ms; }
.hc-btn:hover { background: var(--ink-soft); }
.hc-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.hc-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hc-btn--secondary { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.hc-btn--secondary:hover { background: var(--sheet-sunk); }
.hc-btn--quiet { background: transparent; color: var(--ink); padding: 0 var(--space-2); text-decoration: underline; text-decoration-color: var(--ink); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.hc-btn--quiet:hover { background: transparent; text-decoration-thickness: 3px; }
.hc-btn--wide { width: 100%; }
/* Disabled: readable text (--ink-soft, 6.9:1 light / 10.4:1 dark) and a visible border, but clearly not the ink primary. */
.hc-btn[disabled] { background: var(--sheet-sunk); color: var(--ink-soft); border-color: var(--rule-strong); border-style: dashed; cursor: not-allowed; }
.hc-btn[disabled]:hover { background: var(--sheet-sunk); }

/* Field */
.hc-field { display: grid; gap: var(--space-2); }
.hc-label { font: 700 13px/16px var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.hc-hint { margin: 0; font: 400 15px/22px var(--font-body); color: var(--ink-soft); }
.hc-textarea { display: block; width: 100%; min-height: 200px; padding: var(--space-3); border: 1px solid var(--rule-strong); border-radius: var(--radius-sm); background: var(--sheet-sunk); color: var(--ink); font: 400 17px/26px var(--font-body); resize: vertical; }
.hc-textarea::placeholder { color: var(--ink-faint); }
.hc-textarea:focus { outline: 3px solid var(--focus); outline-offset: 2px; background: var(--sheet); }
.hc-count { margin: 0; text-align: right; font: 400 13px/18px var(--font-body); color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.hc-count--over { color: var(--pen); font-weight: 700; }

/* Dropzone and file chip */
.hc-drop { display: grid; grid-template-columns: auto 1fr; gap: var(--space-3); align-items: center; min-height: var(--touch-target); padding: var(--space-4); border: 1.5px dashed var(--rule-strong); border-radius: var(--radius-sm); background: var(--sheet); color: var(--ink); }
.hc-drop svg { width: 28px; height: 28px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hc-drop p { margin: 0; font: 400 15px/22px var(--font-body); color: var(--ink-soft); }
.hc-drop p strong { display: block; font: 700 17px/24px var(--font-body); color: var(--ink); }
.hc-drop--over { border-style: solid; border-color: var(--ink); background: var(--sheet-sunk); }
.hc-drop--error { border-style: solid; border-color: var(--pen); }
.hc-file { display: inline-flex; align-items: center; gap: var(--space-2); padding: 6px 6px 6px var(--space-3); border: 1px solid var(--rule-strong); border-radius: var(--radius-sm); background: var(--sheet); color: var(--ink); font: 400 15px/22px var(--font-body); }
.hc-file small { color: var(--ink-faint); font-size: 13px; }
.hc-file button { appearance: none; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--ink); cursor: pointer; }
.hc-file button:hover { background: var(--sheet-sunk); }
.hc-file button:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.hc-file svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* Score mark */
.hc-score { display: grid; grid-template-columns: auto 1fr; gap: var(--space-5); align-items: center; }
.hc-score__num { position: relative; display: grid; place-items: center; width: 176px; height: 136px; }
.hc-score__num span { font: 600 96px/88px var(--font-display); font-variation-settings: "opsz" 72; font-feature-settings: "lnum", "tnum"; letter-spacing: -0.02em; color: var(--ink); }
.hc-score__num svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; fill: none; stroke: var(--ink); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.hc-score__num path { stroke-dasharray: 1; stroke-dashoffset: 0; animation: hc-draw 600ms ease-out both; }
.hc-score__label { margin: 0 0 var(--space-1); font: 700 13px/16px var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.hc-score__text { margin: 0; font: 400 17px/26px var(--font-body); color: var(--ink); }
@keyframes hc-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@media (max-width: 480px) { .hc-score { grid-template-columns: 1fr; } }

/* Gaps */
.hc-gaps { padding: var(--space-4); border: 1px solid var(--pen); border-radius: var(--radius-sm); background: var(--pen-soft); color: var(--ink); }
.hc-gaps h3 { margin: 0 0 var(--space-3); font: 600 24px/30px var(--font-display); font-variation-settings: "opsz" 24; text-decoration: underline; text-decoration-color: var(--pen); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.hc-gaps ul { margin: 0; padding: 0; list-style: none; }
.hc-gaps li { display: grid; grid-template-columns: 24px 1fr; gap: var(--space-3); padding: var(--space-3) 0; border-top: 1px solid var(--rule-strong); font: 400 17px/26px var(--font-body); }
.hc-gaps li:first-child { border-top: 0; }
.hc-gaps li svg { width: 22px; height: 22px; margin-top: 2px; fill: none; stroke: var(--pen); stroke-width: 2.5; stroke-linecap: round; }

/* Strengths: same shape as Gaps, in the tick (good news) colours */
.hc-strengths { padding: var(--space-4); border: 1px solid var(--tick); border-radius: var(--radius-sm); background: var(--tick-soft); color: var(--ink); }
.hc-strengths h3 { margin: 0 0 var(--space-3); font: 600 24px/30px var(--font-display); font-variation-settings: "opsz" 24; text-decoration: underline; text-decoration-color: var(--tick); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.hc-strengths ul { margin: 0; padding: 0; list-style: none; }
.hc-strengths li { display: grid; grid-template-columns: 24px 1fr; gap: var(--space-3); padding: var(--space-3) 0; border-top: 1px solid var(--rule-strong); font: 400 17px/26px var(--font-body); }
.hc-strengths li:first-child { border-top: 0; }
.hc-strengths li svg { width: 22px; height: 22px; margin-top: 2px; fill: none; stroke: var(--tick); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* Quick fixes: numbered steps in ink */
.hc-fixes h3 { margin: 0 0 var(--space-3); font: 600 24px/30px var(--font-display); font-variation-settings: "opsz" 24; }
.hc-fixes ol { display: grid; gap: var(--space-3); margin: 0; padding: 0; list-style: none; counter-reset: hc-fix; }
.hc-fixes li { display: grid; grid-template-columns: 28px 1fr; gap: var(--space-3); counter-increment: hc-fix; font: 400 17px/26px var(--font-body); }
.hc-fixes li::before { content: counter(hc-fix); display: grid; place-items: center; width: 28px; height: 28px; border: 2px solid var(--ink); border-radius: 50%; font: 700 15px/1 var(--font-body); font-variant-numeric: tabular-nums; }

/* Disclosure (e.g. the example result) */
.hc-details { border: 1px solid var(--rule-strong); border-radius: var(--radius-sm); background: var(--sheet); color: var(--ink); }
.hc-details > summary { display: flex; align-items: center; gap: var(--space-3); min-height: var(--touch-target); padding: 0 var(--space-4); cursor: pointer; list-style: none; font: 700 17px/24px var(--font-body); }
.hc-details > summary::-webkit-details-marker { display: none; }
.hc-details > summary::before { content: ""; flex: none; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform 120ms; }
.hc-details[open] > summary::before { transform: rotate(45deg); }
.hc-details > summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.hc-details__body { padding: 0 var(--space-4) var(--space-5); }

/* Keywords */
.hc-keys { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.hc-key { padding: 2px 10px 3px; border-radius: var(--radius-sm); background: var(--marker); color: var(--on-marker); font: 700 15px/22px var(--font-body); }

/* Locked panel */
.hc-locked { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-4); padding: var(--space-5); border: 1px solid var(--ink); border-radius: var(--radius-sm); background: var(--sheet); color: var(--ink); }
.hc-locked h3 { margin: 0; font: 600 24px/30px var(--font-display); font-variation-settings: "opsz" 24; }
.hc-redact { display: grid; gap: 10px; }
.hc-redact i { display: block; height: 14px; border-radius: 1px; background: var(--ink); }
.hc-price { display: flex; align-items: baseline; gap: var(--space-3); }
.hc-price strong { font: 500 32px/36px var(--font-display); font-variation-settings: "opsz" 48; letter-spacing: -0.01em; }
.hc-price span { font: 400 15px/22px var(--font-body); color: var(--ink-soft); }
.hc-unlock { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-2); }
/* Same row, but the button drops under the input (full width) when they don't fit side by side (below about 400px). */
.hc-unlock--wrap { display: flex; flex-wrap: wrap; }
.hc-unlock--wrap > .hc-code { flex: 999 1 9rem; width: auto; min-width: 0; }
.hc-unlock--wrap > .hc-btn { flex: 1 0 auto; }
.hc-code { width: 100%; min-height: var(--touch-target); padding: 0 var(--space-3); border: 1px solid var(--rule-strong); border-radius: var(--radius-sm); background: var(--sheet-sunk); color: var(--ink); text-align: center; text-transform: uppercase; font: 500 18px/24px var(--font-mono); letter-spacing: 0.2em; }
/* --ink-soft: 6.9:1 (light) and 10.4:1 (dark) on the box; --ink-faint was only 4.55:1 in light. */
.hc-code::placeholder { color: var(--ink-soft); opacity: 1; letter-spacing: 0.12em; }
.hc-code:focus { outline: 3px solid var(--focus); outline-offset: 2px; background: var(--sheet); }
.hc-locked a:not(.hc-btn) { color: var(--ink); text-decoration-color: var(--ink); text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* Result sheet and export bar */
/* The whole rewritten CV shows on the page: no max-height, no inner scroll. */
.hc-sheet { overflow-wrap: anywhere; padding: var(--space-5); border: 1px solid var(--rule); border-radius: var(--radius-sm); background: var(--sheet); box-shadow: var(--shadow-sheet); color: var(--ink); font: 400 16px/25px var(--font-display); font-variation-settings: "opsz" 16; white-space: pre-wrap; }
/* Export bar: stacked full-width below 480px, one row of equal-width buttons from 480px up.
   Labels are 15px so each fits on one line; between 480 and 599px the icons drop out to make room. */
.hc-export { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-3); }
.hc-export .hc-btn { min-width: 0; padding: 0 var(--space-2); font-size: 15px; line-height: 1.2; text-align: center; white-space: nowrap; }
@media (min-width: 480px) { .hc-export { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 480px) and (max-width: 599px) { .hc-export .hc-btn svg { display: none; } }

/* Notice */
.hc-notice { display: grid; grid-template-columns: 24px 1fr; gap: var(--space-3); padding: var(--space-3) var(--space-4); border: 1px solid var(--rule-strong); border-radius: var(--radius-sm); background: var(--sheet-sunk); color: var(--ink); font: 400 15px/22px var(--font-body); }
.hc-notice svg { width: 22px; height: 22px; margin-top: 0; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.hc-notice strong { display: block; font-weight: 700; }
.hc-notice--error { border-color: var(--pen); background: var(--pen-soft); }
.hc-notice--error svg { stroke: var(--pen); }
.hc-notice--warn { border-color: var(--caution); background: var(--caution-soft); }
.hc-notice--warn svg { stroke: var(--caution); }
.hc-notice--ok { border-color: var(--tick); background: var(--tick-soft); }
.hc-notice--ok svg { stroke: var(--tick); }
.hc-bar { grid-column: 1 / -1; height: 3px; overflow: hidden; background: var(--rule); }
.hc-bar::after { content: ""; display: block; width: 35%; height: 100%; background: var(--ink); animation: hc-slide 1.4s ease-in-out infinite; }
@keyframes hc-slide { from { transform: translateX(-100%); } to { transform: translateX(300%); } }

@media (prefers-reduced-motion: reduce) {
  .hc-score__num path, .hc-bar::after { animation: none; }
  .hc-btn, .hc-details > summary::before { transition: none; }
}
