/* Chip Harbour — utility-flavoured static CSS. Retro-modern letter layout. */
@import url("https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:ital,wght@0,400;0,700;1,400&family=Azeret+Mono:wght@500;700&family=Bricolage+Grotesque:opsz,wght@12..96,500;12..96,700;12..96,800&display=swap");

:root {
  --paper: oklch(0.985 0.006 250);
  --paper-2: oklch(0.96 0.012 250);
  --ink: oklch(0.22 0.04 264);
  --ink-soft: oklch(0.38 0.03 264);
  --blue: oklch(0.48 0.25 264);
  --blue-deep: oklch(0.28 0.12 264);
  --magenta: oklch(0.64 0.27 355);
  --magenta-ink: oklch(0.28 0.14 355);
  --line: oklch(0.22 0.04 264 / 0.18);
  --shadow: 0 10px 28px oklch(0.22 0.04 264 / 0.08);
  --radius: 1.15rem;
  --space-2: 0.25rem;
  --space-4: 0.5rem;
  --space-8: 1rem;
  --space-12: 1.5rem;
  --space-16: 2rem;
  --space-24: 3rem;
  --space-32: 4rem;
  --space-48: 6rem;
  --letter: 40rem;
  --page: 72rem;
  --head-h: 4.5rem;
  --font-display: "Bricolage Grotesque", "Arial Narrow", sans-serif;
  --font-body: "Atkinson Hyperlegible", "Segoe UI", sans-serif;
  --font-mono: "Azeret Mono", ui-monospace, monospace;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.55;
  font-optical-sizing: auto;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--magenta);
  font-weight: 700;
  text-decoration: none;
}

a:hover { color: var(--blue); }

a:focus-visible,
button:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0 0 var(--space-12);
}

p { margin: 0 0 var(--space-12); }
p:last-child { margin-bottom: 0; }

.u-mono {
  font-family: var(--font-mono);
  font-size: 0.78em;
  letter-spacing: 0.04em;
}

.u-kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  display: block;
  margin-bottom: var(--space-8);
}

.u-letter {
  width: min(var(--letter), calc(100% - 2rem));
  margin-inline: auto;
}

.u-page {
  width: min(var(--page), calc(100% - 2rem));
  margin-inline: auto;
}

.u-stack { display: flex; flex-direction: column; gap: var(--space-16); }
.u-stack-sm { display: flex; flex-direction: column; gap: var(--space-8); }
.u-row { display: flex; flex-wrap: wrap; gap: var(--space-12); align-items: center; }
.u-spread { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-12); align-items: center; }

.u-muted { color: var(--ink-soft); }
.u-center { text-align: center; }
.u-measure { max-width: 38rem; }

.u-list {
  margin: 0 0 var(--space-16);
  padding: 0;
  list-style: none;
}

.u-list li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.55rem;
}

.u-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--magenta);
  font-weight: 700;
}

.u-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--magenta);
  color: white;
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.u-pill--ink { background: var(--blue-deep); }
.u-pill--ghost { background: oklch(0.64 0.27 355 / 0.12); color: var(--magenta-ink); }

.u-rule {
  border: 0;
  border-top: 2px solid var(--line);
  margin: var(--space-24) 0;
}

.u-notch {
  clip-path: polygon(0 14px, 14px 0, calc(100% - 14px) 0, 100% 14px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 14px 100%, 0 calc(100% - 14px));
}

.u-band {
  background: var(--paper-2);
  padding: var(--space-32) 0;
}

.u-band--magenta {
  background: var(--magenta);
  color: white;
}

.u-band--magenta a { color: white; text-decoration: underline; text-underline-offset: 0.18em; }
.u-band--magenta a:hover { color: oklch(0.96 0.02 250); }
.u-band--magenta .u-kicker { color: white; }

.u-band--blue {
  background: var(--blue-deep);
  color: white;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: white;
  color: var(--ink);
  padding: 0.6rem 1rem;
  z-index: 80;
  border: 2px solid var(--ink);
}

.skip:focus { top: 1rem; }

.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: transparent;
  color: white;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.site-head.is-solid {
  background: var(--paper);
  color: var(--ink);
  border-bottom: 2px solid var(--ink);
}

.site-head__bar {
  width: min(var(--page), calc(100% - 2rem));
  margin-inline: auto;
  min-height: var(--head-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-12);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: 1.15rem;
}

.brand img { width: 2.1rem; height: auto; }
.site-head.is-solid .brand { color: var(--ink); }

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1.1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
}

.nav a { color: inherit; font-weight: 700; }
.nav a[aria-current="page"] { color: var(--magenta); }
.site-head:not(.is-solid) .nav a[aria-current="page"] { color: white; text-decoration: underline; }

.nav-toggle {
  display: none;
  background: transparent;
  color: inherit;
  border: 2px solid currentColor;
  border-radius: var(--radius);
  padding: 0.4rem 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--paper);
    color: var(--ink);
    border-bottom: 2px solid var(--ink);
    padding: 1rem 1.25rem 1.4rem;
    flex-direction: column;
  }
  .nav.is-open { display: flex; }
}

.hero {
  background: var(--magenta);
  color: white;
  padding: 2.5rem 0 4.5rem;
  margin-top: calc(var(--head-h) * -1);
  padding-top: calc(var(--head-h) + 2.2rem);
}

.hero h1 {
  font-size: clamp(2.1rem, 6vw, 4.15rem);
  max-width: 18ch;
  color: white;
}

.hero p {
  font-size: 1.22rem;
  max-width: 38rem;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: var(--space-16);
}

.method {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--ink);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  margin: -2.4rem auto var(--space-32);
  width: min(var(--page), calc(100% - 2rem));
  position: relative;
  z-index: 2;
}

.method__item {
  background: var(--paper);
  padding: 1.15rem 1.1rem 1.25rem;
}

.method__n {
  font-family: var(--font-mono);
  color: var(--magenta);
  font-weight: 700;
  font-size: 0.78rem;
}

.method__item h2 {
  font-size: 1.05rem;
  margin: 0.35rem 0 0.4rem;
}

.method__item p {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin: 0;
}

@media (max-width: 800px) {
  .method { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .method { grid-template-columns: 1fr; }
}

.card {
  background: white;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card__head {
  background: var(--magenta);
  color: white;
  padding: 0.85rem 1.15rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.card__head h2,
.card__head h3 {
  margin: 0;
  color: white;
  font-size: 1.35rem;
}

.card__body { padding: 1.2rem 1.2rem 1.4rem; }

.card--quiet .card__head { background: var(--blue-deep); }

.logo-frame {
  background: white;
  border-radius: 0.85rem;
  padding: 0.45rem 0.6rem;
  min-width: 6.5rem;
  min-height: 2.6rem;
  display: grid;
  place-items: center;
}
.logo-frame--dark { background: #111; }

.logo-frame img { max-height: 2.1rem; width: auto; max-width: 7.5rem; object-fit: contain; }

.wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.04em;
}

.stars {
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.stars span { color: #ffd36a; }

.scorecard {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(16.5rem, 20rem);
  gap: 1.25rem 1.5rem;
  align-items: stretch;
}

.scorecard__copy,
.scorecard__action { min-width: 0; }

.scorecard__action {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.15rem;
  background: var(--paper-2);
  border: 2px solid var(--ink);
  border-radius: calc(var(--radius) - 2px);
}

.scorecard__action .btn-row {
  margin-top: 0;
  flex-direction: column;
  align-items: stretch;
}

.scorecard__action .btn { width: 100%; }

.facts {
  display: grid;
  gap: 0.4rem;
  font-size: 1rem;
}

.facts dt {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
}

.facts dd { margin: 0 0 0.55rem; }

.glyph {
  font-family: var(--font-mono);
  font-weight: 700;
}

.glyph--yes { color: var(--blue); }
.glyph--no { color: var(--magenta); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  padding: 0.55rem 1.05rem;
  border: 2px solid var(--ink);
  box-shadow: inset 0 0 0 2px white, 0 0 0 2px var(--magenta);
  background: var(--magenta);
  color: white;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
}

.btn:hover { color: white; background: var(--blue); box-shadow: inset 0 0 0 2px white, 0 0 0 2px var(--blue); }

.btn:active { transform: scale(0.96); }

.btn--ghost {
  background: white;
  color: var(--magenta);
  box-shadow: inset 0 0 0 2px var(--paper), 0 0 0 2px var(--ink);
}

.btn--ghost:hover { color: var(--blue); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

@media (max-width: 640px) {
  .btn { width: 100%; }
}

@media (max-width: 860px) {
  .scorecard { grid-template-columns: 1fr; }
}

.list-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.1rem;
}

.list-row + .list-row { border-top: 2px solid var(--line); }

.list-row__n {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--magenta);
  width: 2rem;
}

@media (max-width: 700px) {
  .list-row { grid-template-columns: auto minmax(0, 1fr); }
  .list-row .btn { grid-column: 1 / -1; }
}

.table-wrap { overflow-x: auto; border: 2px solid var(--ink); border-radius: var(--radius); background: white; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
  min-width: 42rem;
}

th, td {
  padding: 0.75rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--paper-2);
}

th:first-child, td:first-child {
  position: sticky;
  left: 0;
  background: white;
  z-index: 1;
  box-shadow: 6px 0 10px oklch(0.22 0.04 264 / 0.05);
}

th:first-child { background: var(--paper-2); }

.faq-group { margin-bottom: var(--space-24); }
.faq-group h3 { font-size: 1.35rem; }
.faq dt {
  font-family: var(--font-display);
  font-weight: 800;
  margin-top: 1.1rem;
}
.faq dd { margin: 0.35rem 0 0; color: var(--ink-soft); }

.safety-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.safety-card {
  background: white;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 0.9rem;
  color: var(--ink);
  display: grid;
  place-items: center;
  min-height: 6.2rem;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 800;
}

.safety-card img { max-height: 2.4rem; width: auto; margin-bottom: 0.45rem; }

@media (max-width: 800px) {
  .safety-grid { grid-template-columns: 1fr 1fr; }
}

.site-foot {
  background: var(--blue-deep);
  color: white;
  padding: var(--space-32) 0 var(--space-16);
}

.site-foot a { color: white; }
.site-foot a:hover { color: oklch(0.86 0.08 355); }

.foot-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: var(--space-16);
}

.foot-grid h2 {
  color: white;
  font-size: 1rem;
  margin-bottom: 0.6rem;
}

.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin-bottom: 0.35rem; }

.licence-block {
  margin-top: var(--space-24);
  background: oklch(1 0 0 / 0.06);
  border: 2px solid oklch(1 0 0 / 0.25);
  border-radius: var(--radius);
  padding: 1.2rem;
}

.licence-block h2 { color: white; font-size: 1.4rem; }

.licence-block table { min-width: 36rem; color: var(--ink); background: white; border-radius: 0.7rem; overflow: hidden; }
.licence-block a { color: var(--magenta); }

.age-strip {
  margin-top: var(--space-16);
  padding-top: var(--space-12);
  border-top: 2px solid oklch(1 0 0 / 0.2);
  font-size: 0.95rem;
}

.prose h1 { font-size: clamp(2rem, 5vw, 3.2rem); max-width: 16ch; }
.prose h2 { font-size: 1.7rem; margin-top: var(--space-24); }
.prose h3 { font-size: 1.25rem; margin-top: var(--space-16); }

.crumb {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 5.5rem 0 1rem;
}

.page-hero {
  padding: 0 0 var(--space-24);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-bottom: var(--space-16);
}

.filters label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: grid;
  gap: 0.3rem;
}

.filters select {
  font: inherit;
  font-family: var(--font-display);
  border: 2px solid var(--ink);
  border-radius: 0.7rem;
  padding: 0.45rem 0.6rem;
  min-width: 12rem;
  background: white;
}

.is-hidden { display: none !important; }

.cookie {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 50;
  max-width: 22rem;
  background: white;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
  font-size: 0.95rem;
}

.imagery {
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  margin: var(--space-16) 0;
}

.imagery figcaption {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.6rem 0.8rem;
  background: var(--paper-2);
}

.anchor-on { background: oklch(0.64 0.27 355 / 0.08); }

.legal-note {
  font-size: 0.95rem;
  color: var(--ink-soft);
}

@media (max-width: 800px) {
  .foot-grid { grid-template-columns: 1fr; }
}
