/* Final Register — site styles
   Motif: the school exercise book. Pale blue rules, one red margin line, register ink.
   The margin line is the one bold device; everything else stays quiet. */

:root {
  --paper: #fcfcfa;
  --rule: #c9d8ee;
  --margin: #d64545;
  --ink: #1b2350;
  --pencil: #5e6475;
  --hoodie: #1f2b4d;
  --chalk: #ffffff;
  --wash: #eef3fb;
  --measure: 68ch;
  --wide: 1240px;          /* the widest the content runs, so big monitors don't sprawl */
  --gutter: clamp(16px, 4vw, 40px);
  --margin-x: clamp(28px, 7vw, 96px);
  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --text: "Atkinson Hyperlegible", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(to right, transparent calc(var(--margin-x) - 1px), var(--margin) calc(var(--margin-x) - 1px), var(--margin) var(--margin-x), transparent var(--margin-x)),
    repeating-linear-gradient(to bottom, transparent 0, transparent 31px, var(--rule) 31px, var(--rule) 32px);
  background-attachment: local;
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
}

a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--margin); }

:focus-visible { outline: 3px solid var(--margin); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--chalk); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }

/* Everything sits to the right of the red margin, like writing in a book */
.page { padding-left: calc(var(--margin-x) + var(--gutter)); padding-right: var(--gutter); max-width: calc(var(--margin-x) + var(--wide) + 2 * var(--gutter)); }

/* Header */
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-top: 20px; padding-bottom: 20px;
}
.brand { display: inline-flex; align-items: baseline; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { font-family: var(--display); font-weight: 800; font-size: 1.9rem; line-height: 1; letter-spacing: 0.01em; }
.brand-tick { width: 9px; height: 17px; border: solid var(--margin); border-width: 0 3px 3px 0; transform: rotate(45deg) translateY(-3px); flex: none; }
.site-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-nav a { text-decoration: none; font-size: 1rem; }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--margin); text-decoration-thickness: 2px; }

/* Buttons */
.button {
  display: inline-block; font-family: var(--text); font-weight: 700; font-size: 1.0625rem;
  padding: 14px 22px; border-radius: 6px; text-decoration: none; border: 2px solid var(--ink);
  background: var(--ink); color: var(--chalk); cursor: pointer;
}
.button:hover { background: var(--margin); border-color: var(--margin); color: var(--chalk); }
.button.quiet { background: transparent; color: var(--ink); }
.button.quiet:hover { background: var(--wash); color: var(--ink); border-color: var(--ink); }

/* Hero */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(24px, 5vw, 72px);
  align-items: center; padding-top: clamp(16px, 4vw, 48px); padding-bottom: clamp(40px, 7vw, 96px);
}
.hero h1 {
  font-family: var(--display); font-weight: 800; font-size: clamp(3rem, 8vw, 6.25rem);
  line-height: 0.92; letter-spacing: -0.005em; margin: 0 0 24px; max-width: 12ch;
}
.hero p.lede { font-size: 1.25rem; line-height: 1.55; max-width: 34ch; margin: 0 0 28px; color: var(--ink); }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero .from { margin: 20px 0 0; color: var(--pencil); font-size: 1rem; }

/* The hoodie back: the one memorable object */
.hoodie { position: relative; width: 100%; max-width: 460px; justify-self: center; aspect-ratio: 400 / 430; }
.hoodie svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hoodie .back-print {
  position: absolute; left: 24%; right: 24%; top: 29%; bottom: 9%;
  display: flex; flex-direction: column; align-items: center; color: var(--chalk); text-align: center;
}
.back-print .school { font-family: var(--display); font-weight: 700; font-size: clamp(0.8rem, 2.1vw, 1.05rem); letter-spacing: 0.04em; }
.back-print .year { font-family: var(--display); font-weight: 800; font-size: clamp(1.7rem, 5vw, 2.6rem); line-height: 0.95; margin: 2px 0 8px; }
.back-print ul {
  list-style: none; margin: 0; padding: 0; columns: 3; column-gap: 6px; width: 100%;
  font-family: var(--display); font-weight: 600; font-size: clamp(0.62rem, 1.6vw, 0.82rem); line-height: 1.35; letter-spacing: 0.03em;
}
.back-print li { break-inside: avoid; }
.back-print li.you { color: #ffd34d; }
.hoodie-caption { position: absolute; left: 0; right: 0; bottom: -34px; text-align: center; font-size: 0.95rem; color: var(--pencil); }

/* Sections */
section.block { padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(40px, 6vw, 80px); border-top: 2px solid var(--ink); }
.block h2 { font-family: var(--display); font-weight: 800; font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1; margin: 0 0 18px; }
.block > p, .prose p, .prose li { max-width: var(--measure); }
.block h3 { font-size: 1.2rem; margin: 0 0 6px; }

/* The real sequence: how an order runs */
.steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-top: 52px; }
.steps li::before {
  content: counter(step); position: absolute; top: 0; left: 0; width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid var(--margin); color: var(--margin); font-family: var(--display); font-weight: 800; font-size: 1.4rem;
  display: grid; place-items: center; background: var(--paper);
}
.steps p { margin: 0; color: var(--ink); }

/* Prices */
.price-table { width: 100%; border-collapse: collapse; margin-top: 20px; background: var(--paper); }
.price-table th, .price-table td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.price-table thead th { border-bottom: 2px solid var(--ink); font-size: 1rem; }
.price-table td.money { font-family: var(--display); font-weight: 800; font-size: 1.7rem; line-height: 1; white-space: nowrap; }
.price-table .note { display: block; font-size: 0.95rem; color: var(--pencil); font-family: var(--text); font-weight: 400; margin-top: 4px; }
.extras { margin: 20px 0 0; padding: 0; list-style: none; }
.extras li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px dashed var(--rule); }
.extras li span:last-child { font-weight: 700; white-space: nowrap; }

/* Two-column facts */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 24px; }
.facts p { margin: 0; }
.facts h2, .facts h3 { margin-top: 0; }
.facts > div > p { margin: 0 0 10px; }

/* Two columns side by side on wide screens */
.split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(28px, 4vw, 64px); align-items: start; margin-top: 8px; }
.split > * { min-width: 0; }
.split.even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.prose .facts p { max-width: none; }
.split h2:first-child { margin-top: 12px; }

/* FAQ */
.faq { margin-top: 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(28px, 4vw, 56px); align-items: start; }
.faq > div { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.1rem; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+"; display: inline-block; width: 1.4em; color: var(--margin); font-weight: 700; }
.faq details[open] summary::before { content: "\2013"; }
.faq details p { margin: 10px 0 0 1.4em; }

/* Forms */
.form { max-width: 880px; display: grid; gap: 18px; margin-top: 20px; }
.form label { display: grid; gap: 6px; font-weight: 700; }
.form .hint { font-weight: 400; color: var(--pencil); font-size: 0.95rem; }
.form input, .form select, .form textarea {
  font: inherit; color: var(--ink); background: var(--chalk); border: 2px solid var(--ink); border-radius: 6px; padding: 12px 14px; width: 100%;
}
.form textarea { min-height: 140px; resize: vertical; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.form .check input { width: 20px; height: 20px; margin-top: 3px; flex: none; }
/* related boxes side by side */
.pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px 20px; align-items: start; }
/* in a pair, the hint sits under the box so the boxes line up */
.pair label > .hint { order: 1; }
.form-status { min-height: 1.6em; font-weight: 700; }
.form-status.ok { color: #1d6b3a; }
.form-status.err { color: var(--margin); }

/* Prose pages (legal etc.) */
.prose { padding-top: 24px; padding-bottom: 64px; }
.prose h1 { font-family: var(--display); font-weight: 800; font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1; margin: 0 0 20px; }
.prose h2 { font-size: 1.3rem; margin: 32px 0 8px; }
.draft-note { max-width: var(--measure); background: var(--wash); border-left: 4px solid var(--margin); padding: 12px 16px; margin: 0 0 24px; }

/* Footer */
.site-footer { border-top: 2px solid var(--ink); padding-top: 28px; padding-bottom: 40px; display: grid; grid-template-columns: 1fr auto; gap: 24px; font-size: 0.95rem; color: var(--pencil); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 16px; }
.site-footer nav + nav { margin-top: 10px; }
.site-footer p { margin: 0; max-width: 60ch; }

/* Small screens: the margin line moves in, columns stack */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hoodie { max-width: 380px; margin-bottom: 40px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts { grid-template-columns: 1fr; }
  .split, .split.even, .faq { grid-template-columns: minmax(0, 1fr); }
  .site-footer { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  :root { --margin-x: 18px; --gutter: 16px; }
  .steps { grid-template-columns: 1fr; }
  .pair { grid-template-columns: minmax(0, 1fr); }
  .price-table td.money { font-size: 1.35rem; }
}
/* Routes to the set-up (Ben, 3 Nov 2026: "as many obvious routes to the setup wizard as possible") */
.site-nav { align-items: center; }
.site-nav a.nav-cta { padding: 8px 14px; border: 2px solid var(--ink); border-radius: 6px; background: var(--ink); color: var(--chalk); font-weight: 700; }
.site-nav a.nav-cta:hover, .site-nav a.nav-cta:focus-visible { background: var(--margin); border-color: var(--margin); color: var(--chalk); }
.block.closing h2 { font-size: clamp(2.6rem, 7vw, 4.6rem); }
.range-start { margin: 22px 0 0; }
.g-row-setup { margin: 10px 0 4px; padding-left: calc(16px + 220px + clamp(16px, 3vw, 32px)); font-weight: 700; }
@media (max-width: 620px) { .g-row-setup { padding-left: 16px; } }
@media (max-width: 520px) { .extras li span:last-child { white-space: normal; text-align: right; max-width: 55%; } }

/* Legal pages: long cookie names wrap on narrow phones (4 Nov 2026) */
.prose.page .price-table th, .prose.page .price-table td { overflow-wrap: anywhere; }
@media (max-width: 400px) { .prose.page .price-table th, .prose.page .price-table td { padding-left: 6px; padding-right: 6px; } }
