/* Everyday Project Field Assessment — candidate styles.
   Colours: the eight tokens below and nothing else
   (claude-code-brief.md, section 4). */

@font-face { font-family: "Libre Baskerville"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/fonts/libre-baskerville-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Libre Baskerville"; font-style: italic; font-weight: 400; font-display: swap;
  src: url(/fonts/libre-baskerville-latin-400-italic.woff2) format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 300; font-display: swap;
  src: url(/fonts/manrope-latin-300-normal.woff2) format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/fonts/manrope-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(/fonts/manrope-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/fonts/ibm-plex-mono-latin-400-normal.woff2) format("woff2"); }

:root {
  --paper: #F6F3EC;
  --card: #FBF9F4;
  --rule: #E2DDD2;
  --ink: #261E69;
  --text: #3F3B55;
  --muted: #6F6B83;   /* brief says #76728A, which is 4.17:1 on paper and fails WCAG AA; this is 4.61:1 */
  --ochre: #C9A24A;
  --ochre-text: #8A6A1F;

  --serif: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --sans: "Manrope", "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", Consolas, "Courier New", monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --measure: 65ch;
  --fade: 220ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
p { margin: 0 0 1.1em; }
b, strong { font-weight: 600; color: var(--ink); }
[hidden] { display: none !important; }

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

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
main:focus, h1:focus, h2:focus { outline: none; }

/* ---------- header ---------- */
.site-header {
  padding: 28px var(--gutter) 0;
  max-width: 1280px;
  margin: 0 auto;
}
.wordmark { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.wordmark .mark {
  width: 22px; height: 22px; border-radius: 50%;
  border: 1.5px solid var(--ink);
  position: relative; flex: none;
}
.wordmark .mark::after {
  content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--ochre);
}
.wordmark-text { display: flex; flex-direction: column; font-family: var(--serif); font-size: 14px; line-height: 1.25; }

/* ---------- main and screens ---------- */
main {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(36px, 7vw, 88px) var(--gutter) 96px;
  transition: opacity var(--fade) ease;
}
main.is-leaving { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  main { transition: none; }
}

.mono {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1.6;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--ink); margin: 0; }
.display {
  font-size: clamp(2.5rem, 5.2vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: 0.6em;
}

.cols {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.prose { max-width: var(--measure); }

/* ---------- briefing ---------- */
.briefing-panel {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(28px, 4vw, 48px);
  position: relative;
  overflow: hidden;
}
.briefing-panel::before {
  content: ""; position: absolute; width: 260px; height: 260px; right: -110px; top: -110px;
  border: 1px solid var(--ochre); border-radius: 50%; opacity: 0.35; pointer-events: none;
}
.facts { margin: 0; padding: 0; }
.facts div { padding: 12px 0; border-top: 1px solid color-mix(in srgb, var(--paper) 16%, transparent); }
.facts div:first-child { border-top: 0; padding-top: 0; }
.facts dt { color: var(--ochre); margin: 0 0 2px; }
.facts dd { margin: 0; font-family: var(--serif); font-size: 18px; line-height: 1.45; color: var(--paper); }
.panel-rule { width: 48px; height: 0; border-top: 1px solid var(--ochre); margin: 26px 0 18px; }
.briefing-note { margin: 0; color: var(--paper); font-size: 15px; line-height: 1.7; }

/* ---------- buttons ---------- */
.actions { margin-top: 36px; }
.btn {
  appearance: none; border: 0; border-radius: 0; cursor: pointer;
  background: var(--ink); color: var(--paper);
  font-family: var(--sans); font-weight: 600; font-size: 13px;
  letter-spacing: 0.16em; text-transform: uppercase;
  padding: 17px 28px;
  display: inline-flex; align-items: center; gap: 14px;
}
.btn .arrow { font-family: var(--sans); font-size: 16px; letter-spacing: 0; transition: transform 160ms ease; }
.btn:hover .arrow { transform: translateX(3px); }
.btn:disabled { cursor: progress; opacity: 0.7; }
@media (prefers-reduced-motion: reduce) { .btn .arrow { transition: none; } }

/* ---------- scenarios ---------- */
.topbar {
  display: flex; align-items: center; gap: 18px;
  color: var(--ochre-text);
  margin-bottom: clamp(28px, 4vw, 48px);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}
.topbar .tick { width: 32px; border-top: 1px solid var(--ochre); }
.topbar .step { margin-left: auto; }

.prompt { font-size: clamp(1.35rem, 2vw, 1.6rem); line-height: 1.3; margin-bottom: 22px; }
.sub-block { margin-top: 36px; }
.sub-block .prompt { font-size: 1.25rem; margin-bottom: 18px; }

.options { display: grid; gap: 12px; }
.option {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  background: var(--card);
  border: 1px solid var(--rule);
  padding: 22px 24px;
  cursor: pointer;
  transition: border-color 140ms ease, background-color 140ms ease;
}
.option:hover { border-color: color-mix(in srgb, var(--rule), var(--ink) 30%); }
.option input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.option .dot {
  width: 18px; height: 18px; margin-top: 4px; border-radius: 50%;
  border: 1.5px solid color-mix(in srgb, var(--rule), var(--ink) 45%);
  background: var(--card);
}
.option .copy { display: block; }
.option .label { display: block; font-weight: 600; color: var(--ink); line-height: 1.5; margin-bottom: 4px; }
.option .text { display: block; font-size: 16px; line-height: 1.7; }
.option:has(input:checked) {
  border-color: var(--ink);
  background: color-mix(in srgb, var(--card), var(--ink) 4%);
}
.option:has(input:checked) .dot { border-color: var(--ink); background: var(--ink); box-shadow: inset 0 0 0 3px var(--card); }
.option:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .option { transition: none; } }

/* ---------- contact ---------- */
.contact { max-width: 560px; margin: 0 auto; text-align: center; }
.contact h1 { font-size: clamp(2.2rem, 4.4vw, 3.2rem); line-height: 1.12; margin-bottom: 0.55em; }
.contact form { text-align: left; margin-top: 36px; }
.field { margin-bottom: 26px; }
.field label { display: block; color: var(--ochre-text); margin-bottom: 6px; }
.field input {
  width: 100%;
  border: 0; border-bottom: 1px solid color-mix(in srgb, var(--rule), var(--ink) 35%); border-radius: 0;
  background: transparent; color: var(--ink);
  font-family: var(--serif); font-size: 19px; line-height: 1.4;
  padding: 6px 0 10px;
}
.field input:focus { outline: none; border-bottom-color: var(--ink); box-shadow: 0 1px 0 0 var(--ink); }
.field input[aria-invalid="true"] { border-bottom-color: var(--ink); }
.privacy { color: var(--muted); font-size: 14px; line-height: 1.65; margin-top: 8px; }
.form-error { color: var(--ink); font-weight: 600; font-size: 15px; margin: 0 0 18px; }
.contact .actions { text-align: center; }

/* ---------- outcome ---------- */
.outcome { max-width: 680px; margin: 0 auto; }
.outcome .base { font-family: var(--serif); font-size: 20px; line-height: 1.75; color: var(--ink); margin-bottom: 40px; }
.delivery { width: 100%; border-collapse: collapse; margin: 0 0 44px; }
.delivery th, .delivery td { text-align: left; vertical-align: top; padding: 16px 0; border-top: 1px solid var(--rule); }
.delivery tr:last-child th, .delivery tr:last-child td { border-bottom: 1px solid var(--rule); }
.delivery th { width: 34%; padding-right: 16px; color: var(--ochre-text); font-weight: 400; padding-top: 20px; }
.delivery .figure { display: block; font-family: var(--serif); font-size: 21px; line-height: 1.4; color: var(--ink); }
.delivery .detail { display: block; font-size: 15px; color: var(--text); }
.delivery ul { margin: 0; padding: 0; list-style: none; }
.delivery li { font-family: var(--serif); font-size: 17px; line-height: 1.55; color: var(--ink); margin-bottom: 6px; }
.delivery li:last-child { margin-bottom: 0; }
.outcome .closing { font-family: var(--serif); font-style: italic; color: var(--ink); font-size: 18px; line-height: 1.7; margin-top: 32px; }
.outcome .divider { width: 48px; border: 0; border-top: 1px solid var(--ochre); margin: 48px 0 40px; }

/* ---------- mobile ---------- */
@media (max-width: 800px) {
  .cols { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .option { padding: 18px 18px; gap: 14px; }
  .delivery th { width: 40%; }
  .outcome .base { font-size: 18px; }
}
