/* AI Jumpstart Toolkit: "Board packet" design.
   System fonts only; no external font, script or build step (spec: Design rules).
   Tools are designed for a computer; registration and sign-in must work on a phone. */

:root {
  --paper: #F4F6F8;        /* page background */
  --sheet: #FFFFFF;        /* content surfaces */
  --ink: #1D2A38;          /* text and headings */
  --slate: #5A6878;        /* secondary text (5.3:1 on paper) */
  --rule: #D9DFE5;         /* hairlines and tile borders */
  --action: #2F5D46;       /* actions only: Register, Open, Next */
  --action-hover: #244A38;
  --on-action: #FFFFFF;
  --focus: #2F5D46;
  --sponsor-dark: #0A0F1A; /* Continuum's own logo background */

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Type scale, 1.25 ratio from 16px; small print never below 14px */
  --t-small: 0.875rem;
  --t-body: 1rem;
  --t-lead: 1.25rem;
  --t-h2: 1.5625rem;
  --t-h1: 1.953rem;

  --measure: 38rem;
  --gutter: 1rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--t-body)/1.55 var(--sans);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }

h1, h2, h3 { margin: 0; font-weight: 650; letter-spacing: -0.01em; line-height: 1.2; }
p { margin: 0; }

/* ---------- Page frame ---------- */
.page { max-width: var(--measure); margin: 0 auto; padding: 0 var(--gutter); }

.masthead { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1.25rem 0 1rem; }
.masthead .name { font-weight: 650; text-decoration: none; }
.masthead nav a { color: var(--slate); }

/* Page titles carry the personality: heavy weight, tight tracking, large size. */
.page-title, .tool-head h1 { font-size: clamp(2.25rem, 9vw, 3.25rem); font-weight: 800; line-height: 1; letter-spacing: -0.03em; }

.sheet { background: var(--sheet); border: 1px solid var(--rule); border-radius: 6px; padding: 1.5rem var(--gutter); }
@media (min-width: 40rem) { .sheet { padding: 2rem 2.25rem; } }

.foot { padding: 1.5rem 0 2.5rem; color: var(--slate); font-size: var(--t-small); }
.foot a { color: var(--slate); }

/* ---------- Buttons ---------- */
.button {
  display: inline-block; min-height: 44px; padding: 0.7rem 1.25rem;
  border: 0; border-radius: 4px;
  background: var(--action); color: var(--on-action);
  font: 600 var(--t-body)/1.3 var(--sans);
  text-align: center; text-decoration: none; cursor: pointer;
}
.button:hover { background: var(--action-hover); }
.button.secondary { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.button.secondary:hover { background: var(--paper); }

/* ---------- Landing ---------- */
.page.landing { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.landing main { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 2rem 0; }

.landing h1 { font-size: clamp(3rem, 13vw, 6.5rem); font-weight: 800; line-height: 0.95; letter-spacing: -0.035em; text-wrap: balance; }
/* The event name is the first, smaller line of the same heading. */
.landing h1 .event {
  display: block; margin-bottom: 0.6rem;
  font-size: clamp(1.125rem, 4.5vw, 1.5rem); font-weight: 650; line-height: 1.25; letter-spacing: -0.005em;
  color: var(--slate);
}
.landing .lead { margin-top: 1rem; font-size: var(--t-lead); color: var(--slate); max-width: 32ch; }
.landing .lead strong { color: var(--ink); font-weight: 650; white-space: nowrap; }
.landing .when { margin-top: 2rem; padding-top: 1rem; border-top: 2px solid var(--ink); font-weight: 600; }
.landing .actions { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
.landing .actions .button { min-width: 12rem; }
.presented { margin-top: 3rem; color: var(--slate); }

@media (min-width: 40rem) {
  .landing h1 { font-size: clamp(3rem, 10vw, 6.5rem); }
  .landing .actions { flex-direction: row; align-items: center; gap: 1.5rem; }
}
@media (min-width: 48rem) {
  .page.landing { max-width: 56rem; }
  .landing h1 { max-width: 12ch; }
  .landing h1 .event { white-space: nowrap; }
  .landing .when, .landing .lead { max-width: 36rem; }
}

/* ---------- Sponsors ----------
   Equal weight: identical tiles in two rows of two, each logo on the background it
   was designed for. The tile links to the sponsor's site. The sponsor's statement
   shows as a hover/focus card on computers and as a line under the tile on touch screens. */
.sponsors { list-style: none; margin: 0.75rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 15rem); gap: 0.75rem; }
.sponsor { position: relative; }
.sponsors .tile {
  display: flex; align-items: center; justify-content: center;
  height: 6.75rem; padding: 0.9rem 1.35rem;
  border-radius: 6px; background: var(--sheet); border: 1px solid var(--rule);
}
.sponsors .tile:hover { border-color: var(--slate); }
.sponsors .tile.dark { background: var(--sponsor-dark); border-color: var(--sponsor-dark); padding: 0.9rem 1rem; }
.sponsors .tile.dark:hover { border-color: var(--slate); }
/* A long, light lockup gets less padding so it carries the same weight as the others. */
.sponsors .tile.wide { padding: 0.75rem 0.85rem; }
.sponsors .tile img { max-width: 100%; max-height: 100%; width: auto; height: auto; }

.sponsor-note { font-size: 0.9375rem; line-height: 1.45; color: var(--slate); }
@media (hover: hover) and (pointer: fine) {
  .sponsor-note {
    position: absolute; left: 0; top: calc(100% + 0.5rem); z-index: 2;
    width: 18rem; padding: 0.85rem 1rem;
    background: var(--sheet); color: var(--ink);
    border: 1px solid var(--rule); border-radius: 6px;
    box-shadow: 0 6px 20px rgba(29, 42, 56, 0.12);
    opacity: 0; visibility: hidden; transform: translateY(-4px); pointer-events: none;
    transition: opacity 120ms ease-out, transform 120ms ease-out, visibility 0s linear 120ms;
  }
  /* Stays open while the pointer is on it (WCAG 1.4.13); the bridge covers the gap. */
  .sponsor-note::before { content: ""; position: absolute; left: 0; right: 0; top: -0.5rem; height: 0.5rem; }
  .sponsor:hover .sponsor-note, .sponsor:focus-within .sponsor-note {
    opacity: 1; visibility: visible; transform: none; pointer-events: auto;
    transition: opacity 120ms ease-out, transform 120ms ease-out;
  }
  /* Esc closes it until the pointer or focus leaves (script in the page). */
  .sponsor.dismissed .sponsor-note { opacity: 0; visibility: hidden; pointer-events: none; }
}
@media (hover: none), (pointer: coarse) { .sponsor-note { margin-top: 0.4rem; } }
@media (max-width: 34rem) {
  .sponsors { grid-template-columns: 1fr 1fr; }
  .sponsors .tile { height: 5.25rem; padding: 0.6rem 0.75rem; }
  .sponsors .tile.dark { padding: 0.35rem 0.4rem; }
}

/* ---------- Registration form (Move 3) ----------
   Every field has a visible label above it; controls are at least 44px tall
   and 16px text, so a phone does not zoom in on focus. */
.form { display: grid; gap: 1.1rem; margin: 1.25rem 0 0; }
.field label { display: block; margin-bottom: 0.35rem; font-weight: 600; }
.field input, .field select {
  display: block; width: 100%; min-height: 44px; padding: 0.6rem 0.75rem;
  font: inherit; color: var(--ink); background: var(--sheet);
  border: 1px solid var(--slate); border-radius: 4px;
}
.field-pair { display: grid; gap: 1.1rem; }
@media (min-width: 40rem) { .field-pair { grid-template-columns: 1fr 1fr; } }
.check { display: grid; grid-template-columns: 1.25rem 1fr; gap: 0.75rem; align-items: start; }
.check input { width: 1.25rem; height: 1.25rem; margin: 0.15rem 0 0; accent-color: var(--ink); }
.form .button { justify-self: start; min-width: 12rem; margin-top: 0.4rem; }
.form-error { margin-top: 1rem; padding: 0.75rem 1rem; background: var(--sheet); border: 1px solid var(--rule); border-radius: 6px; font-weight: 600; }
.done { margin-top: 1rem; font-size: var(--t-lead); max-width: 34rem; }
.done-more { margin-top: 1rem; }

/* ---------- Dashboard ---------- */
.status { color: var(--slate); margin: 0.75rem 0 1.25rem; }
.status strong { color: var(--ink); }

.tools { list-style: none; margin: 0; padding: 0; }
.tool {
  display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto 1fr;
  gap: 0.25rem 1.25rem; align-items: center;
  padding: 1.1rem 0; border-top: 1px solid var(--rule);
}
.tool:first-child { border-top: 0; padding-top: 0.25rem; }
.tool:last-child { padding-bottom: 0.25rem; }
.tool h2 { grid-column: 2; font-size: 1.125rem; font-weight: 700; }
.tool p { grid-column: 2; color: var(--slate); }
.tool .credit { font-size: var(--t-small); }
.tool .open, .tool .date { grid-column: 3; grid-row: 1 / span 3; }
.tool .open .button { min-width: 5.5rem; }
.tool .date { color: var(--slate); font-size: 0.9375rem; white-space: nowrap; }
.tool.later h2 { color: var(--slate); }

/* Tool icons: one family. 24px grid, round caps and joins, no fills, navy ink on a
   paper tile; drawn at 48px with a 1.25 stroke so lines render about 2.5px.
   New icons must follow the same rules. */
.tool .icon {
  grid-column: 1; grid-row: 1 / span 3; align-self: start;
  display: grid; place-items: center;
  width: 5rem; height: 5rem; border-radius: 12px;
  background: var(--paper); color: var(--ink);
}
.tool .icon svg { width: 3rem; height: 3rem; fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
.tool.later .icon { color: var(--slate); }

/* On phones the Open button or date moves under the description so the text keeps its width. */
@media (max-width: 30rem) {
  .tool { grid-template-columns: auto 1fr; grid-template-rows: auto auto auto 1fr; }
  .tool .icon { grid-row: 1 / span 4; }
  .tool .open, .tool .date { grid-column: 2; grid-row: auto; justify-self: start; margin-top: 0.6rem; }
}

/* ---------- Tool page ---------- */
.tool-head { padding: 0.5rem 0 1.25rem; }
.tool-head p { margin-top: 0.85rem; color: var(--slate); max-width: 34rem; }

.progress { display: flex; justify-content: space-between; font-size: var(--t-small); color: var(--slate); }
.progress-bar { height: 4px; background: var(--rule); border-radius: 2px; margin: 0.5rem 0 1.5rem; overflow: hidden; }
.progress-bar span { display: block; height: 100%; background: var(--ink); }

fieldset { border: 0; margin: 0; padding: 0; }
legend { font-size: var(--t-lead); font-weight: 600; line-height: 1.35; padding: 0; margin-bottom: 1rem; }

.choices { display: grid; gap: 0.5rem; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice label { display: block; min-height: 48px; padding: 0.8rem 1rem; border: 1px solid var(--rule); border-radius: 4px; background: var(--sheet); cursor: pointer; }
.choice input:hover + label { border-color: var(--slate); }
.choice input:checked + label { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); font-weight: 600; }
.choice input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; }

.nav-row { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; }
.note { margin-top: 1rem; font-size: var(--t-small); color: var(--slate); }
/* Move 9: the Scorecard's last step, the spec's two submit buttons. */
.submit-choice { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

/* ---------- Scorecard result: the one bold moment ---------- */
.result-head { font-size: 1.5rem; font-weight: 750; letter-spacing: -0.015em; }
.score { display: flex; align-items: baseline; gap: 0.5rem; margin: 0.5rem 0 0.75rem; }
.score .figure { font-size: clamp(6rem, 30vw, 9rem); font-weight: 800; line-height: 0.95; letter-spacing: -0.04em; }
.score .of { font-size: var(--t-lead); color: var(--slate); }
.meaning { max-width: 32rem; }

.subscores { display: grid; grid-template-columns: 1fr 1fr; margin-top: 1.75rem; border-top: 2px solid var(--ink); }
.subscores div { padding: 0.9rem 0 0; }
.subscores div + div { padding-left: 1rem; border-left: 1px solid var(--rule); }
.subscores dt { color: var(--slate); font-size: 0.9375rem; }
.subscores dd { margin: 0.1rem 0 0; font-size: var(--t-h1); font-weight: 650; }
.gap-callout { margin-top: 1rem; font-weight: 600; }

.next { margin-top: 2rem; }
.next h2 { font-size: var(--t-h2); font-weight: 750; letter-spacing: -0.02em; }
.next ol { margin: 1rem 0 0; padding-left: 1.25rem; }
.next li { padding-left: 0.25rem; margin-bottom: 0.9rem; }
.next li a { display: inline-block; margin-top: 0.15rem; }

.benchmark { margin-top: 2rem; padding: 1rem; background: var(--paper); border-radius: 4px; color: var(--slate); }
.benchmark p + p { margin-top: 0.5rem; }
.draft-footer { margin-top: 2rem; padding-top: 0.75rem; border-top: 1px solid var(--rule); font-size: var(--t-small); color: var(--slate); }

/* ---------- Visibility Check (Move 10) ---------- */
.tool-head .credit { margin-top: 0.35rem; font-size: var(--t-small); }
.how { margin: 0 0 0.5rem; padding-left: 1.25rem; }
.how li { margin-bottom: 0.4rem; }
.report-for { font-size: var(--t-lead); font-weight: 650; margin-bottom: 1rem; overflow-wrap: anywhere; }
.summary-table, .crawler-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.summary-table th, .summary-table td, .crawler-table th, .crawler-table td {
  text-align: left; padding: 0.5rem 0.75rem 0.5rem 0; border-bottom: 1px solid var(--rule); vertical-align: top;
}
.summary-table thead th, .crawler-table thead th { color: var(--slate); font-weight: 600; font-size: var(--t-small); }
.crawler-table caption { text-align: left; color: var(--slate); font-size: var(--t-small); padding-bottom: 0.4rem; }
.crawler-table th[scope="row"] { font-weight: 600; }
.verdict-fail, .crawler-table .blocked { font-weight: 750; }
.verdict-pass, .crawler-table .allowed { color: var(--slate); }
.check { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--rule); }
.check h2 { font-size: var(--t-lead); font-weight: 700; margin-bottom: 0.5rem; }
.check .verdict { margin-left: 0.5rem; font-size: var(--t-small); font-weight: 600; color: var(--slate); }
.check-fail .verdict { color: var(--ink); }
.check .table-wrap, .found-list { margin-top: 0.75rem; }
.found-list { padding-left: 1.25rem; }
.honesty { margin-top: 2rem; padding: 1rem; background: var(--paper); border-radius: 4px; color: var(--slate); }

/* ---------- Project Starter (Move 17) ---------- */
.why { margin-top: 0.75rem; color: var(--slate); }
.starter-form legend { font-size: var(--t-body); font-weight: 650; margin-bottom: 0.6rem; }
.privacy { padding: 0.75rem 1rem; background: var(--paper); border-radius: 4px; font-weight: 600; }
.field input[type="text"] { width: 100%; }
.hint { margin-top: 0.3rem; font-size: var(--t-small); color: var(--slate); }
.part { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--rule); }
.part:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.part h2 { font-size: var(--t-lead); font-weight: 750; margin-bottom: 0.75rem; }
.part h3 { font-size: var(--t-body); font-weight: 650; margin: 1rem 0 0.4rem; }
.part p + p, .part ul + p, .part ol + p, .part pre + p { margin-top: 0.75rem; }
.part ul, .part ol { margin: 0.5rem 0 0; padding-left: 1.25rem; }
.part li { margin-bottom: 0.5rem; }
.part-n { color: var(--slate); font-variant-numeric: tabular-nums; }
.banner { padding: 0.75rem 1rem; background: var(--paper); border-radius: 4px; font-size: 0.9375rem; }
.draft, .prompt { margin: 0.75rem 0 0; padding: 1rem; border: 1px solid var(--rule); border-radius: 4px; background: var(--sheet);
  font-family: var(--sans); font-size: 0.9375rem; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.prompt { background: var(--paper); }
.button.copy { margin-top: 0.75rem; min-width: 6rem; }
.retry { margin-top: 0.75rem; }
.principle { font-weight: 600; }

/* ---------- Motion and print ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  body { background: var(--sheet); }
  .masthead nav, .nav-row, .button { display: none; }
  .sheet { border: 0; padding: 0; }
  /* Move 10: the Visibility Check report prints whole, its checks unbroken. */
  .check, .crawler-table tr { break-inside: avoid; }
  .honesty { border: 1px solid var(--rule); }
  /* Move 17: the Project Starter prints its eight parts, no buttons or retry form. */
  .retry { display: none; }
  .part h2, .banner { break-after: avoid; }
  .starter-prompts li, .doc-list li { break-inside: avoid; }
}

/* ---------- Account page (Move 8) ---------- */
.profile { display: grid; grid-template-columns: max-content 1fr; gap: 0.5rem 1.5rem; margin: 0 0 1.5rem; }
.profile dt { color: var(--slate); }
.profile dd { margin: 0; }

/* ---------- Admin (Move 14) ---------- */
.admin-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.admin-figures { display: grid; grid-template-columns: max-content 1fr; gap: 0.25rem 1.5rem; margin: 0 0 1.5rem; }
.admin-figures dt { color: var(--slate); }
.admin-figures dd { margin: 0; font-weight: 650; }
.admin h2 { font-size: var(--t-lead); margin: 1.75rem 0 0.5rem; }
.admin h2:first-child { margin-top: 0; }
.table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: var(--t-small); }
.admin-table th, .admin-table td { text-align: left; padding: 0.4rem 0.75rem 0.4rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.admin-table th { color: var(--slate); font-weight: 600; }
.admin-table td.num, .admin-table th.num { text-align: right; }
.admin-table input[type="date"] { font: inherit; min-height: 36px; padding: 0.25rem 0.4rem; border: 1px solid var(--slate); border-radius: 4px; }

/* ---------- Terms and privacy (Move 19) ---------- */
.terms h1 { margin-bottom: 0.25rem; }
.terms h2 { font-size: 1.125rem; font-weight: 700; margin: 1.75rem 0 0.5rem; }
.terms p, .terms li { max-width: 40rem; }
.terms p + p { margin-top: 0.75rem; }
.terms ul { margin: 0.5rem 0 0; padding-left: 1.25rem; }
.terms li + li { margin-top: 0.4rem; }
