/* Hallmark · shape: Workbench · genre: playful · theme: Squeeze (deal 1/3, seed report-card-marks-percentage-a019·c77472f6·2026-12-05·r0) · job: try · draw: manual
 * hero: the head beside the overall percentage set huge on the green · nav: edge-aligned, the wordmark and two pill links · footer: a ruled note over the credit lines · imagery: none, the report card is the one warm-white card on the green · signature: the overall percentage and its grade, huge in Gabarito, following the marks as you type
 * axes: mid/geometric-sans/warm · posture: drenched · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R3 V4 · weakest: R, one calculator and a page of sums; the white card on the green and the big figure carry the look */
/* Hallmark · waive 77 · every page · a report card, its second card and a page of sums: a tool, not a landing strip; the sums sit in a readable column */
/* Hallmark · waive 44c · every page · on the report card the card itself starts inside the first screen, under the head and its figure, and the head wraps short so the figure stands clear of it; on the sums page the head stands over its list */
/* Hallmark · waive 59 · the report card · the card sits 64px under the head because the head's figure is the card's own total; they read as one unit */
:root {
  color-scheme: light;
  --space-3xs: 2px; --space-2xs: 4px; --space-xs: 8px; --space-sm: 12px; --space-md: 16px; --space-lg: 24px; --space-xl: 40px; --space-2xl: 64px; --space-3xl: 96px; --space-4xl: 144px;
  --text-xs: 0.8125rem; --text-sm: 0.875rem; --text-md: 1rem; --text-lg: 1.25rem; --text-xl: 1.5625rem; --text-2xl: 1.953rem; --text-3xl: 2.441rem;
  --text-display-s: clamp(2.25rem, 4vw + 0.5rem, 3.75rem); --text-display: clamp(2.75rem, 5vw + 1rem, 5.25rem);
  --text-section: clamp(2rem, 2.5vw + 1rem, 3.5rem); --text-title: clamp(1.25rem, 0.75vw + 0.875rem, 1.625rem); --text-lead: clamp(1.125rem, 0.35vw + 1rem, 1.375rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1); --ease-in: cubic-bezier(0.7, 0, 0.84, 0); --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-micro: 120ms; --dur-short: 220ms; --dur-long: 420ms;
  --color-error: oklch(52% 0.19 27); --color-success: oklch(50% 0.12 150);
  --container: 1440px; --gutter: 64px; --gap-columns: 32px; --section-gap-s: 120px; --section-gap: 144px; --section-gap-l: 176px;
  --z-base: 1; --z-raised: 10; --z-dropdown: 100; --z-sticky: 200; --z-sticky-nav: 300; --z-modal: 400; --z-toast: 500; --z-tooltip: 600;
  --color-paper: oklch(41% 0.100 154); --color-paper-2: oklch(47% 0.105 154); --color-paper-3: oklch(34% 0.090 156);
  --color-ink: oklch(99% 0.005 90); --color-ink-2: oklch(94% 0.020 120); --color-muted: oklch(90% 0.030 150); --color-rule: oklch(55% 0.100 154);
  --color-accent: oklch(83% 0.115 56); --color-accent-2: oklch(74% 0.150 46); --color-accent-ink: oklch(30% 0.070 40); --color-focus: oklch(88% 0.14 85);
  --color-card: oklch(97% 0.012 85); --color-card-ink: oklch(24% 0.05 160);
  --font-display: "Gabarito", ui-sans-serif, system-ui, sans-serif; --font-body: "Manrope", ui-sans-serif, system-ui, sans-serif;
  --font-outlier: var(--font-display);
  --radius-card: 24px; --radius-control: 16px; --radius-pill: 999px; --rule-hair: 1px; --rule-bar: 2px;
  --shadow-card: 0 14px 32px -16px oklch(22% 0.05 160 / 0.5);
  --tracking-display: -0.025em; --display-weight: 800;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scrollbar-color: var(--color-muted) var(--color-paper); scroll-padding-top: var(--space-3xl); }
body { margin: 0; background: var(--color-paper); color: var(--color-ink); font-family: var(--font-body); font-size: var(--text-md); line-height: 1.55; -webkit-font-smoothing: antialiased; caret-color: var(--color-accent); }
::selection { background: color-mix(in oklab, var(--color-accent) 45%, transparent); color: var(--color-card-ink); }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.16em; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: var(--display-weight, 700); font-synthesis: none; letter-spacing: var(--tracking-display); line-height: 1.05; overflow-wrap: break-word; min-width: 0; text-wrap: balance; }
h1 { max-width: 20ch; font-size: var(--text-display); } h2 { max-width: 30ch; font-size: var(--text-section); } h3 { max-width: 40ch; font-size: var(--text-title); line-height: 1.2; }
.lead { font-size: var(--text-lead); line-height: 1.45; max-width: 52ch; }
p { margin: 0; text-wrap: pretty; }
p:not([class]) { max-width: 65ch; }
img, video { max-width: 100%; height: auto; display: block; }
svg { display: block; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); box-sizing: border-box; }
.num, .figure, td.num { font-variant-numeric: tabular-nums; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[data-slot] { position: relative; overflow: hidden; background: linear-gradient(160deg, var(--color-paper-2, var(--color-paper)), var(--color-paper-3, var(--color-paper))); }
[data-slot] > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
[data-slot]:has(> img) > :not(img):not([data-keep]) { display: none !important; }
@media (max-width: 60rem) { :root { --gutter: 24px; --section-gap-s: 80px; --section-gap: 96px; --section-gap-l: 120px; } }
@media (max-width: 40rem) { :root { --gutter: 16px; --section-gap-s: 56px; --section-gap: 72px; --section-gap-l: 96px; --gap-columns: 16px; } }
@media (prefers-reduced-motion: reduce) { *:not(.keep-motion), *:not(.keep-motion)::before, *:not(.keep-motion)::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; } }
/* photographs: natural vib=12 con=4 */
[data-slot] > img { filter: saturate(1.06) contrast(1.04); }

:root {
  --color-bad: oklch(93% 0.05 30); --color-bad-ink: oklch(45% 0.17 28);
  --color-print-ink: oklch(18% 0.01 160); --color-print-rule: oklch(72% 0.01 160);
}

@font-face { font-family: "Gabarito"; src: url("/fonts/gabarito-800.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/fonts/manrope-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/fonts/manrope-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

body { color: var(--color-muted); font-weight: 500; }
h1, h2, h3 { color: var(--color-ink); line-height: 1; }
.num { font-variant-numeric: lining-nums tabular-nums; }
.skip { position: absolute; left: var(--space-md); top: -100px; background: var(--color-card); color: var(--color-card-ink); padding: var(--space-xs) var(--space-md); border-radius: var(--radius-control); z-index: var(--z-modal); font-weight: 700; }
.skip:focus-visible { top: var(--space-md); }
a { color: var(--color-ink); font-weight: 700; text-decoration-color: var(--color-ink); }
a:hover { text-decoration-color: var(--color-accent); }
.print-only { display: none; }

/* the bar */
.bar__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-xs) var(--space-xl); padding-block: var(--space-md); }
.wordmark { font-family: var(--font-display); font-weight: 800; font-size: var(--text-xl); letter-spacing: var(--tracking-display); color: var(--color-ink); text-decoration: none; }
.wordmark span { color: var(--color-muted); }
.bar__nav { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.bar__nav a { min-height: 44px; display: inline-flex; align-items: center; padding-inline: var(--space-md); border-radius: var(--radius-pill); background: var(--color-paper-2); text-decoration: none; color: var(--color-ink); transition: translate var(--dur-micro) var(--ease-out); }
.bar__nav a:active { translate: 0 1px; }
.bar__nav a[aria-current="page"] { background: var(--color-paper-3); box-shadow: inset 0 0 0 3px var(--color-accent); }

/* the hero: the head, and the overall percentage huge on the green */
.hero { padding-block: var(--space-2xl); }
.hero__in { display: grid; grid-template-columns: minmax(0, max-content) minmax(0, max-content); gap: var(--space-xl) var(--space-3xl); align-items: center; }
.hero h1 { max-width: 11ch; }
.hero .lead { margin-top: var(--space-md); color: var(--color-ink-2); max-width: 34ch; }
.big { display: grid; justify-items: start; }
.big__fig { display: block; min-height: 0.85em; font: var(--display-weight) clamp(4.5rem, 10vw, 9.5rem)/0.85 var(--font-display); letter-spacing: -0.04em; color: var(--color-ink); }
.big__sub { display: block; margin-top: var(--space-sm); font: 700 var(--text-lg)/1.3 var(--font-body); color: var(--color-ink-2); }

/* the report card and the bands */
.work { padding-bottom: var(--section-gap-s); }
.work__in { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--gap-columns); align-items: start; }
.card { background: var(--color-card); color: var(--color-card-ink); border-radius: var(--radius-card); box-shadow: var(--shadow-card); padding: var(--space-xl); }
.card h2 { color: var(--color-card-ink); font-size: var(--text-section); }
.card :focus-visible { outline: 3px solid var(--color-card-ink); outline-offset: 2px; }
.card__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-md); }
.who { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--space-md); margin-top: var(--space-lg); }
.cell { display: grid; gap: var(--space-2xs); min-width: 0; }
.cap { font: 700 var(--text-sm)/1.3 var(--font-body); }
input { width: 100%; min-height: 44px; padding: var(--space-xs) var(--space-sm); border: var(--rule-bar) solid var(--color-muted); border-radius: var(--radius-control); background: transparent; color: inherit; font: 700 var(--text-md)/1.2 var(--font-body); font-variant-numeric: lining-nums tabular-nums; }
input:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }
input:disabled, .btn:disabled, .x:disabled { opacity: 0.5; cursor: not-allowed; }
input[aria-invalid="true"] { border-color: var(--color-bad-ink); background: var(--color-bad); color: var(--color-card-ink); }
.rows__head, .row { display: grid; grid-template-columns: minmax(0, 2.4fr) repeat(2, minmax(0, 1fr)) minmax(0, 1.5fr) 44px; gap: var(--space-sm); align-items: center; }
.rows__head { margin-top: var(--space-xl); padding-bottom: var(--space-xs); font: 700 var(--text-sm)/1.3 var(--font-body); border-bottom: var(--rule-bar) solid var(--color-card-ink); }
.rows__head span:last-child { text-align: right; }
.row { padding-block: var(--space-sm); border-bottom: var(--rule-hair) solid var(--color-rule); }
.row .cap, .band .cap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.res { display: flex; align-items: center; justify-content: flex-end; gap: var(--space-sm); min-height: 44px; font: var(--display-weight) var(--text-xl)/1 var(--font-display); }
.grade { display: inline-grid; place-items: center; min-width: 2.2em; padding: var(--space-2xs) var(--space-xs); border-radius: var(--radius-pill); background: var(--color-paper); color: var(--color-ink); font: var(--display-weight) var(--text-lg)/1 var(--font-display); }
.grade:empty { visibility: hidden; }
.x { width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: var(--rule-bar) solid currentColor; border-radius: var(--radius-pill); background: transparent; color: inherit; font: 700 1.375rem/1 var(--font-body); cursor: pointer; transition: translate var(--dur-micro) var(--ease-out); }
.x:active { translate: 0 1px; }
.x:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.tot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-sm); padding-top: var(--space-md); font: var(--display-weight) var(--text-xl)/1.1 var(--font-display); }
.tot b { font-weight: inherit; }
.tot__res { display: inline-flex; align-items: center; gap: var(--space-sm); font-size: var(--text-2xl); }
.say, .band-say { margin-top: var(--space-sm); font-weight: 700; }
.say:empty, .band-say:empty { display: none; }
.say { color: var(--color-bad-ink); }
.ctl { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-lg); }
.btn { min-height: 44px; border: var(--rule-bar) solid var(--color-ink); border-radius: var(--radius-control); padding: var(--space-xs) var(--space-lg); background: transparent; font: 700 var(--text-md)/1.25 var(--font-body); color: var(--color-ink); cursor: pointer; transition: translate var(--dur-micro) var(--ease-out), background-color var(--dur-micro) var(--ease-out); }
.btn:active { translate: 0 1px; }
.btn:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.card .btn { border-color: var(--color-card-ink); color: var(--color-card-ink); }
.card input { border-color: var(--color-rule); }
.card input:focus-visible, .card .btn:focus-visible, .card .x:focus-visible { outline-color: var(--color-card-ink); }
.btn--primary, .card .btn--primary { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-accent-ink); }
.btn--primary:hover, .card .btn--primary:hover { background: var(--color-accent-2); border-color: var(--color-accent-2); }

.tile { background: var(--color-paper-2); border-radius: var(--radius-card); padding: var(--space-xl); color: var(--color-ink-2); }
.tile h3 { font-size: var(--text-title); color: var(--color-ink); }
.tile .note { margin-top: var(--space-sm); }
.bands__head, .band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 44px; gap: var(--space-sm); align-items: center; }
.bands__head { margin-top: var(--space-lg); padding-bottom: var(--space-xs); font: 700 var(--text-sm)/1.3 var(--font-body); border-bottom: var(--rule-bar) solid var(--color-rule); }
.band { padding-block: var(--space-xs); }
.band-say { color: var(--color-ink); }

/* what the remaining exams need: the deeper green band */
.need { background: var(--color-paper-3); padding-block: var(--section-gap-s); }
.need__in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: var(--space-2xl) var(--gap-columns); align-items: center; }
.need h2 { font-size: var(--text-section); max-width: 13ch; }
.need .lead { margin-top: var(--space-md); color: var(--color-ink-2); }
.grid4 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-md) var(--space-lg); margin-top: var(--space-xl); max-width: 36rem; color: var(--color-ink); }
.need__out { display: grid; gap: var(--space-xs); }
.need__out .big__fig { font-size: clamp(4.5rem, 12vw, 11rem); }
.need__say { display: block; margin-top: var(--space-sm); max-width: 36ch; font-size: var(--text-lg); color: var(--color-ink); }

/* how it works */
.head { padding-block: var(--space-3xl) var(--space-2xl); }
.head h1 { font-size: var(--text-display); max-width: 14ch; }
.head .lead { margin-top: var(--space-md); color: var(--color-ink-2); max-width: 50ch; }
.sec { padding-block: var(--space-3xl); border-top: var(--rule-bar) solid var(--color-rule); }
.sec--first { padding-top: var(--space-2xl); }
.sec h2 { font-size: var(--text-section); }
.sec h2 + * { margin-top: var(--space-lg); }
.sec__p { max-width: 62ch; font-size: var(--text-lg); }
.sec__note { margin-top: var(--space-lg); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-sm); max-width: 62ch; }
.steps li { padding: var(--space-md) var(--space-lg); background: var(--color-paper-2); border-radius: var(--radius-control); font-size: var(--text-lg); color: var(--color-ink-2); }
.steps b { color: var(--color-ink); font-family: var(--font-display); font-weight: var(--display-weight); }

.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap-columns); max-width: 60rem; }
.pair__tile { display: grid; align-content: start; gap: var(--space-xs); padding: var(--space-xl); border-radius: var(--radius-card); background: var(--color-paper-2); color: var(--color-ink-2); font-weight: 700; }
.pair__tile--on { background: var(--color-paper-3); box-shadow: inset 0 0 0 3px var(--color-accent); }
.pair__fig { font: var(--display-weight) clamp(2.25rem, 7vw, 6rem)/0.9 var(--font-display); letter-spacing: -0.04em; color: var(--color-ink); }
.chips { display: flex; flex-wrap: wrap; gap: var(--space-xs); list-style: none; margin: var(--space-md) 0 0; padding: 0; }
.chips li { padding: var(--space-xs) var(--space-md); border-radius: var(--radius-pill); background: var(--color-paper-2); color: var(--color-ink); font-weight: 700; }
.across { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-md); list-style: none; margin: var(--space-xl) 0 0; padding: 0; max-width: 60rem; }
.across li { display: grid; gap: var(--space-xs); padding: var(--space-lg); border-radius: var(--radius-card); background: var(--color-paper-2); color: var(--color-ink-2); font-weight: 700; }
.across b { font: var(--display-weight) var(--text-3xl)/1 var(--font-display); color: var(--color-ink); }

.foot { border-top: var(--rule-bar) solid var(--color-rule); }
.foot__in { padding-block: var(--space-xl); display: grid; gap: var(--space-xs); font-size: var(--text-sm); }
.foot__note, .foot__line { margin: 0; max-width: 72ch; }

@media (max-width: 960px) {
  .hero__in, .work__in, .need__in { grid-template-columns: minmax(0, 1fr); }
  .big { justify-items: start; text-align: left; }
}
@media (max-width: 600px) {
  .hero { padding-top: var(--space-lg); }
  .head { padding-block: var(--space-xl) var(--space-lg); }
  .sec { padding-block: var(--space-2xl); }
  .card, .tile { padding: var(--space-lg) var(--space-md); }
  .who { grid-template-columns: minmax(0, 1fr); }
  .rows__head { display: none; }
  .row { grid-template-columns: repeat(3, minmax(0, 1fr)) 44px; row-gap: var(--space-xs); padding-block: var(--space-md); }
  .row .cell--name { grid-column: 1 / 4; grid-row: 1; }
  .row .x { grid-column: 4; grid-row: 1; align-self: end; }
  .row .res { grid-column: 3 / 5; grid-row: 2; align-self: end; }
  .row .cap { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
  .tot__res { font-size: var(--text-xl); }
  .grid4 { gap: var(--space-md); }
  .pair, .across { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-sm); }
  .pair__tile { padding: var(--space-lg) var(--space-md); }
}

/* the print: the report card alone on white A4, the controls and the green left off */
@media print {
  @page { size: A4; margin: 12mm; }
  body { background: none; color: var(--color-print-ink); font-size: 11pt; }
  .skip, .bar__nav, .hero, .tile, .need, .foot, .ctl, .x, .say, .card__head .btn { display: none !important; }
  .print-only { display: block; margin-top: 4mm; font-size: 10pt; }
  .container { max-width: none; padding-inline: 0; }
  .bar__in { padding: 0 0 6mm; }
  .wordmark, .wordmark span { color: var(--color-print-ink); }
  .work { padding: 0; }
  .work__in { display: block; }
  .card { background: none; box-shadow: none; padding: 0; border-radius: 0; color: var(--color-print-ink); }
  .card h2 { color: var(--color-print-ink); font-size: 22pt; }
  .who { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
  input, .card input { border: 0; border-bottom: var(--rule-hair) solid var(--color-print-rule); border-radius: 0; padding: 0; min-height: 0; background: none; color: var(--color-print-ink); }
  .row input, .card .row input { border: 0; }
  .rows__head, .row { grid-template-columns: minmax(0, 2.4fr) repeat(2, minmax(0, 1fr)) minmax(0, 1.5fr); }
  .rows__head { border-bottom-color: var(--color-print-ink); }
  .row { border-bottom-color: var(--color-print-rule); break-inside: avoid; padding-block: 2mm; }
  .row .cap { position: absolute; }
  .grade { background: none; color: var(--color-print-ink); box-shadow: inset 0 0 0 1px var(--color-print-ink); }
}
