/* ==========================================================================
   Resume Check

   Design language taken from markvrma.github.io/assets/css/retro.css — the
   16-bit desktop styling that actually ships on the portfolio, not the
   indigo/cyan mv- set in _sass/_custom.scss that retro.css loads after and
   overrides.

   Its rules, quoted from that file's header: "hard black lines, eggshell or
   dull black backgrounds, colour only as an accent, emphasis carried by
   weight, italics and underlines rather than by colour."

   So: one monospace stack for everything, border-radius 0 throughout, 2px
   lines on controls and 3px on panels, offset shadows with no blur, and
   inversion — ink ground, page-coloured text — as the hover state rather
   than a colour shift.

   Tokens are the portfolio's --rt-* variables verbatim, renamed only to drop
   the prefix, so the two stay in step if that palette moves.

   Dark mode follows the OS only. The portfolio also ships a manual toggle and
   a pre-paint anti-FOUC script; for a single-page tool nobody revisits, that
   is ~25 lines buying nothing.
   ========================================================================== */

:root {
  color-scheme: light dark;

  --bg: #f0ebe0;
  --surface: #faf7ef;
  --sunk: #e5dfd1;
  --ink: #14120f;
  --line: #14120f;
  --muted: #5f584c;
  --accent: #a8341f;
  --accent-2: #1b5f57;

  --shadow: 4px 4px 0 var(--line);
  --shadow-sm: 3px 3px 0 var(--line);

  --font: ui-monospace, "SF Mono", "JetBrains Mono", "Roboto Mono", Menlo,
    Consolas, "DejaVu Sans Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17171a;
    --surface: #202027;
    --sunk: #16161b;
    --ink: #ece6da;
    --line: #ece6da;
    --muted: #a39b8c;
    --accent: #e2765f;
    --accent-2: #6fbfb3;

    /* On the dark ground the offset can't be struck in the line colour — a
       light shadow reads as a second border. The portfolio drops to black. */
    --shadow: 4px 4px 0 rgba(0, 0, 0, 0.75);
    --shadow-sm: 3px 3px 0 rgba(0, 0, 0, 0.75);
  }
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
  margin: 0;
  padding: 0 1.2rem 4rem;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  font-variant-ligatures: none;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 780px; margin: 0 auto; }

h1, h2 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* --- masthead ----------------------------------------------------------- */

.mv-masthead {
  padding: 3rem 0 2rem;
  text-align: center;
}

.mv-masthead h1 {
  /* .page__title on the portfolio — mono headings at theme sizes run
     enormous, so it pulls them back to 1.7em with a rule underneath. */
  font-size: 1.7em;
  margin: 0 0 0.5em;
  display: inline-block;
  border-bottom: 3px solid var(--line);
  padding-bottom: 0.2em;
}

/* retro.css kills its own animated gradient headline right here, with the
   note "the animated gradient headline was colour-as-emphasis, this is
   weight instead". Same call. */
.mv-tagline {
  display: block;
  margin: 0;
  font-weight: 700;
  color: var(--ink);
}

.mv-privacy {
  display: inline-block;
  margin-top: 1.2em;
  font-size: 0.72em;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0;
  color: var(--ink);
  background: var(--sunk);
  border: 2px solid var(--line);
  padding: 0.15em 0.55em;
}

/* --- panels ------------------------------------------------------------- */

.mv-card {
  position: relative;
  background: var(--surface);
  border: 3px solid var(--line);
  box-shadow: var(--shadow);
  padding: 1.5rem 1.6rem;
  margin-bottom: 1.6em;
}

/* The accent bar retro.css puts across .mv-project-card. Static here: these
   are page furniture, not a hoverable grid of links. */
.mv-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: var(--accent);
}

.mv-section-title {
  font-size: 1.35em;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 1.1rem;
  padding-bottom: 0.2em;
  border-bottom: 4px solid var(--line);
}

/* The square accent tick stamped before every section title. */
.mv-section-title::before {
  content: "";
  display: inline-block;
  width: 0.55em;
  height: 0.55em;
  margin-right: 0.45em;
  background: var(--accent);
  vertical-align: 0.05em;
}

/* --- links -------------------------------------------------------------- */

a, a:visited {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover, a:focus {
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
select:focus-visible,
textarea:focus-visible,
.mv-drop:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* --- form --------------------------------------------------------------- */

.mv-label {
  display: block;
  font-size: 0.8em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
  color: var(--muted);
  margin-bottom: 0.5em;
}

.mv-field { margin-bottom: 1.5rem; }

select, textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: 0;
  padding: 0.5em 0.7em;
  box-shadow: var(--shadow-sm);
}

option:disabled { color: var(--muted); }

.mv-drop {
  display: block;
  width: 100%;
  border: 3px dashed var(--line);
  background: var(--sunk);
  padding: 2.2rem 1rem;
  text-align: center;
  cursor: pointer;
  color: var(--muted);
  /* steps() rather than a smooth ease — retro.css animates in chunks. */
  transition: background 0.12s steps(2), color 0.12s steps(2);
}

.mv-drop strong {
  display: block;
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 0.2em;
}

.mv-drop:hover,
.mv-drop.is-over {
  background: var(--ink);
  color: var(--bg);
  border-style: solid;
}

.mv-drop:hover strong,
.mv-drop.is-over strong { color: var(--bg); }

.mv-linkbtn {
  background: none;
  border: none;
  padding: 0;
  margin-top: 1rem;
  font: inherit;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  cursor: pointer;
}

.mv-linkbtn:hover {
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
}

/* Buttons are retro.css's .btn: surface plate, hard border, offset shadow,
   and a press that moves the plate into its own shadow. */
.mv-btn {
  font: inherit;
  font-weight: 700;
  color: var(--ink);
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: 0;
  box-shadow: var(--shadow-sm);
  padding: 0.5em 1.2em;
  cursor: pointer;
  transition: background 0.12s steps(2), color 0.12s steps(2);
}

.mv-btn:hover { background: var(--ink); color: var(--bg); }
.mv-btn:active { transform: translate(2px, 2px); box-shadow: none; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* --- status ------------------------------------------------------------- */

/* retro.css's .notice: sunk ground, hard border, one fat edge. */
.mv-status {
  margin-top: 1.2rem;
  padding: 0.7em 1em;
  background: var(--sunk);
  border: 3px solid var(--line);
  border-left-width: 10px;
  box-shadow: var(--shadow-sm);
  font-size: 0.95em;
  color: var(--ink);
}

.mv-status--error {
  border-left-color: var(--accent);
  font-weight: 700;
}

/* --- hero score --------------------------------------------------------- */

.mv-hero {
  text-align: center;
  padding: 0.4rem 0 1.5rem;
  border-bottom: 3px solid var(--line);
  margin-bottom: 1.5rem;
}

.mv-hero-number {
  font-size: 3.8rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.mv-hero-number span {
  font-size: 0.3em;
  font-weight: 700;
  color: var(--muted);
}

.mv-hero-verdict {
  font-size: 1.05em;
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 0.4em;
}

.mv-hero-sub {
  color: var(--muted);
  font-size: 0.8em;
  margin-top: 0.5em;
}

/* --- score bars --------------------------------------------------------- */
/* Magnitude against a fixed 0–100 scale, so the bar is the whole chart: no
   axis, no gridlines, no legend (one series). No benchmark reference line,
   because scores are normalised so that meeting the benchmark IS 100 — a
   marker would sit at the end of every track. The raw figure and the
   benchmark it is measured against are stated in .mv-dim-detail instead.

   The band is carried by fill PATTERN, not hue: solid, half dither, quarter
   dither, all struck in ink. That answers the theme's "colour only as an
   accent" rule and the accessibility one in the same stroke — the bands stay
   distinct in greyscale and to a colourblind reader, and .mv-verdict repeats
   the band as a word regardless. Dither as a value ramp is also period
   correct: it is how 16-bit desktops shaded with no palette to spend. */

.mv-dim { margin-bottom: 1.5rem; }

.mv-dim-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8em;
  margin-bottom: 0.5em;
}

.mv-dim-name { font-weight: 700; }

.mv-dim-score {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.mv-verdict {
  display: inline-block;
  font-size: 0.72em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
  padding: 0.1em 0.5em;
  margin-left: 0.5em;
  vertical-align: middle;
  border: 2px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}

.mv-track {
  position: relative;
  height: 16px;
  background: var(--sunk);
  border: 2px solid var(--line);
  overflow: hidden;
}

.mv-fill {
  height: 100%;
  background: var(--ink);
  transition: width 0.4s steps(12);
}

/* half dither */
.mv-fill--fair {
  background: repeating-linear-gradient(
    45deg,
    var(--ink) 0 3px,
    transparent 3px 6px
  );
}

/* quarter dither */
.mv-fill--poor {
  background: repeating-linear-gradient(
    45deg,
    var(--ink) 0 2px,
    transparent 2px 8px
  );
}

.mv-dim-detail {
  font-size: 0.8em;
  color: var(--muted);
  margin: 0.6em 0 0;
}

/* retro.css's blockquote: fat accent edge, sunk ground, italic. */
.mv-tip {
  font-size: 0.95em;
  margin: 0.6em 0 0;
  padding: 0.5em 0.9em;
  background: var(--sunk);
  border-left: 10px solid var(--accent);
  font-style: italic;
}

/* --- pills & footer ----------------------------------------------------- */

.mv-pill-row { display: flex; flex-wrap: wrap; gap: 0.5em; margin-top: 0.8em; }

.mv-pill {
  font-size: 0.72em;
  font-weight: 700;
  letter-spacing: 0;
  padding: 0.1em 0.5em;
  border: 2px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  transition: background 0.12s steps(2), color 0.12s steps(2);
}

.mv-pill:hover { background: var(--ink); color: var(--bg); }

.mv-actions { display: flex; gap: 0.8em; flex-wrap: wrap; margin-top: 1.8rem; }

.mv-foot {
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 3px solid var(--line);
  font-size: 0.8em;
  color: var(--muted);
  text-align: center;
  line-height: 1.7;
}

.mv-foot a { color: var(--ink); }

[hidden] { display: none !important; }

.mv-sr {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --- job match ---------------------------------------------------------- */

.mv-note {
  font-size: 0.85em;
  color: var(--muted);
  margin: 0 0 1.3rem;
  padding: 0.6em 0.9em;
  background: var(--sunk);
  border: 2px solid var(--line);
}

.mv-note strong { color: var(--ink); }

.mv-req {
  border-top: 2px solid var(--line);
  padding: 0.9rem 0;
}

.mv-req:last-child { border-bottom: 2px solid var(--line); }

.mv-req-head {
  display: flex;
  align-items: baseline;
  gap: 0.7em;
}

.mv-req-text { font-weight: 700; }

/* Band is spelled out in the pill text, so the fills below are reinforcement,
   never the only carrier — same rule as the score bars. Missing gets the
   accent because it is the one a reader is here to find. */
.mv-verdict--covered { background: var(--ink); color: var(--bg); }

/* Not dithered like the score bars: at pill size the stripes ran straight
   through the word and swallowed it. Weight and italics carry this one, which
   is the treatment retro.css uses for .mv-badge anyway. */
.mv-verdict--partial {
  background: var(--sunk);
  color: var(--ink);
  font-style: italic;
}

.mv-verdict--missing { background: var(--accent); color: var(--bg); border-color: var(--accent); }

.mv-req-evidence {
  font-size: 0.8em;
  color: var(--muted);
  margin: 0.5em 0 0;
  padding-left: 0.9em;
  border-left: 3px solid var(--line);
}

.mv-btn:disabled {
  color: var(--muted);
  cursor: wait;
  box-shadow: none;
  transform: translate(2px, 2px);
}
