/* Theme: colour (launch spec 3.2-3.7). Harbour (deep teal + amber), the v1 colour theme selected by
   the product owner on 2026-10-01 (spec K21; open decision C6 closed). Values only: the same token
   names as theme-mono.css; base.css owns every metric. Change a value only through a spec section
   17 amendment, and keep tests/test_theme.py (E6) green. */
:root {
  --ink: #1a1a1a;
  --paper: #ffffff;
  --brand: #1a5a66;
  --brand-tint: #e9f3f4;
  --accent: #a85a15;
  --rule: #1a5a66;
  --rule-light: #5f8d95;
  --muted: #4f6b70;
  --tag-fill: var(--brand-tint);
  --header-rule: var(--brand);
  --question-rule: var(--accent);
  --cover-band: var(--brand-tint);
  --entry-rule: var(--rule-light);
}

/* Familiar Frontiers site layout. The colour tokens come first, from templates/theme-colour.css
   (Harbour, spec K21), concatenated in front of this file by src/site.py; nothing here defines a
   colour value of its own. No gradients, no shadows, no animation. The accent marks the primary button
   and, on the home page only, a few small markers (step numbers, the pull-quote rule). */

@font-face {
  font-family: "UbuntuSansFF";
  src: url("/assets/fonts/UbuntuSansFF-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "UbuntuSansFF";
  src: url("/assets/fonts/UbuntuSansFF-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "UbuntuSansFF", "Ubuntu Sans", "DejaVu Sans", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.6em; }
h1 { font-size: 2rem; color: var(--brand); }
h2 { font-size: 1.45rem; color: var(--brand); }
p, ul, ol { margin: 0 0 1em; }
ul, ol { padding-left: 1.4em; }
li { margin-bottom: 0.4em; }
code { font-family: inherit; font-weight: 700; }

a { color: var(--brand); text-decoration: underline; text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 0.14em; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.skip { position: absolute; left: 16px; top: -100px; background: var(--paper); padding: 8px 12px; z-index: 10; }
.skip:focus { top: 8px; }

.wrap { max-width: 64rem; margin-left: auto; margin-right: auto; padding-left: 16px; padding-right: 16px; }
.measure { max-width: 44rem; }
.small { font-size: 0.875rem; color: var(--muted); line-height: 1.45; }
.lead { font-size: 1.2rem; }
.nowrap { white-space: nowrap; }

/* header and footer */
.site-header { border-bottom: 1px solid var(--rule-light); }
.header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px;
              padding-top: 14px; padding-bottom: 14px; }
.house { font-weight: 700; font-size: 1.15rem; color: var(--brand); text-decoration: none; }
.site-header nav ul, .site-footer nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.site-header nav li, .site-footer nav li { margin: 0; }
[aria-current="page"] { text-decoration-thickness: 0.14em; }
main { padding-bottom: 24px; }
main > section { padding-top: 40px; padding-bottom: 8px; }
main > section + section { border-top: 1px solid var(--rule-light); margin-top: 32px; }
.site-footer { border-top: 1px solid var(--rule-light); margin-top: 24px; padding: 28px 0 40px; }
.site-footer p { margin: 0.8em 0 0; max-width: 44rem; }
.independence { font-size: 0.875rem; }

/* product identity: the name dominant, the range line under it, the publisher quiet */
.product-name { font-size: 2.3rem; margin-bottom: 0.15em; letter-spacing: -0.01em; }
.tagline { font-size: 1.3rem; margin: 0 0 0.2em; }
.publisher { color: var(--muted); margin: 0 0 1.2em; }
.proposition { font-size: 1.2rem; font-weight: 700; }

/* buttons: the primary button is the accent's main use */
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.2em 0 0.6em; }
.button { display: inline-block; padding: 13px 20px; border: 2px solid var(--brand); border-radius: 6px;
          font-weight: 700; text-decoration: none; text-align: center; }
.button.primary { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.button.secondary { background: var(--paper); color: var(--brand); }
.button:hover { text-decoration: underline; }
.availability { margin: 1.2em 0 0; font-size: 1.1rem; }
.price { font-size: 2rem; font-weight: 700; color: var(--ink); margin: 0 0 0.2em; }

/* images: real renders of the v1.0.0 files */
figure { margin: 0; }
figcaption { font-size: 0.875rem; color: var(--muted); margin-top: 8px; }
.frame { border: 1px solid var(--rule-light); background: var(--paper); }
/* hero (product page) and feature (home): one column in reading order on phones; on wide screens the
   real preview sits on the right, in a Harbour-tint panel */
.hero, .feature { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
.hero { grid-template-areas: "head" "image" "proof" "body"; }
.feature { grid-template-areas: "head" "image" "body"; }
.hero-head, .feature-head { grid-area: head; }
.hero-image, .feature-image { grid-area: image; }
.hero-body, .feature-body { grid-area: body; }
.hero-head > :last-child, .feature-head > :last-child, .hero-body > :last-child { margin-bottom: 0; }
.preview-panel { background: var(--brand-tint); border-radius: 6px; padding: 14px 14px 10px; }
.preview-panel img { margin: 0 auto; max-width: min(100%, 26rem); }
.preview-panel figcaption { text-align: center; }
.proof { grid-area: proof; list-style: none; margin: 0; padding: 10px 0; display: flex; flex-wrap: wrap;
         justify-content: center; border-top: 1px solid var(--rule-light); border-bottom: 1px solid var(--rule-light);
         font-weight: 700; color: var(--brand); }
.proof li { margin: 0; }
.proof li + li::before { content: "·"; margin: 0 0.6em; color: var(--muted); font-weight: 400; }
.about { padding-bottom: 8px; }
.pair { display: grid; gap: 24px; margin: 8px 0 16px; }
.files li, .steps li { margin-bottom: 0.6em; }

/* the free sample: the one tinted panel */
.sample .downloads { list-style: none; padding: 0; }
.sample .downloads li { margin-bottom: 18px; }
.sample .downloads .small { display: block; margin-top: 6px; }
.sample { background: var(--brand-tint); padding-bottom: 24px; }
.downloads .button { white-space: normal; }

@media (min-width: 720px) {
  .pair { grid-template-columns: 1fr 1fr; align-items: start; }
  h1 { font-size: 2.3rem; }
  .product-name { font-size: 2.8rem; }
  main > section { padding-top: 56px; }
}
@media (min-width: 960px) {
  .hero, .feature { grid-template-columns: 1.1fr 0.9fr; column-gap: 48px; row-gap: 16px; align-items: start; }
  .hero { grid-template-areas: "head image" "proof image" "body image"; grid-template-rows: auto auto 1fr; }
  .feature { grid-template-areas: "head image" "body image"; grid-template-rows: auto 1fr; }
  .proof { justify-content: flex-start; }
}

/* ---- home page: the flagship product's landing page --------------------------------------------
   Full-width bands alternate white and Harbour tint; each band's content sits in .wrap. One column on
   phones in reading order (introduction, actions, real product); two columns from 960px. */
main > section.band, main > section.band + section.band { padding: 44px 0 40px; margin-top: 0; border-top: 0; }
.band.tint { background: var(--brand-tint); }
.band h2 { font-size: 1.6rem; }
.band .measure + * { margin-top: 0; }

.home-hero.band { padding-top: 24px; padding-bottom: 36px; }
.home-hero-grid { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr);
                  grid-template-areas: "head" "act" "visual"; }
.home-hero-head { grid-area: head; }
.home-hero-visual { grid-area: visual; }
.home-hero-act { grid-area: act; }
.lockup { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 10px; margin: 0 0 0.4em; line-height: 1.35; }
.lockup-name { font-weight: 700; font-size: 1.25rem; color: var(--brand); }
.lockup-range { font-size: 1.05rem; color: var(--ink); }
.insight { font-size: 1.8rem; line-height: 1.15; letter-spacing: -0.01em; margin-bottom: 0.35em; }
.home-hero .proposition { font-size: 1.1rem; margin-bottom: 0.3em; }
.for-whom { margin: 0; color: var(--muted); }
.home-hero-visual { background: var(--brand-tint); border-radius: 8px; padding: 14px 16px 8px; }
.home-hero-visual figcaption { text-align: center; margin-top: 8px; font-size: 0.8125rem; }
/* two real renders overlapped on one grid row: the print sheet behind, the screen card in front */
.stack { display: grid; grid-template-columns: repeat(20, minmax(0, 1fr)); max-width: 15.5rem; margin: 0 auto; }
.stack img { grid-row: 1; width: 100%; }
.stack-sheet { grid-column: 1 / 14; transform: rotate(-2deg); }
.stack-card { grid-column: 7 / 21; align-self: end; margin-top: 24%; transform: rotate(1.5deg); }
/* the facts are plain text, not pills, so nobody mistakes them for buttons */
.facts { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; font-weight: 700;
         color: var(--brand); }
.facts li { margin: 0; }
.facts li + li::before { content: "·"; margin: 0 0.5em; color: var(--muted); font-weight: 400; }
.home-hero .availability { margin: 0; font-size: 1rem; }
.home-hero .cta-actions { margin: 0 0 0.6em; }
.home-hero .publisher { margin: 0.6em 0 0; font-size: 0.95rem; }

.why-grid { display: grid; gap: 20px; }
.why-text > :last-child { margin-bottom: 0; }
.pull { margin: 0; padding: 4px 0 4px 18px; border-left: 4px solid var(--accent); }
.pull p { margin: 0; font-size: 1.4rem; font-weight: 700; line-height: 1.3; color: var(--brand); }

.gallery, .files-grid { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 20px 14px;
                        grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.gallery li, .files-grid li { margin: 0; }
.gallery img, .files-grid img { width: 100%; }
.gallery figcaption { color: var(--ink); }
/* phones: each file is a row, its page small on the left; from 960px, four columns */
.files-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
.files-grid li { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); grid-template-rows: auto 1fr;
                 column-gap: 16px; align-items: start; }
.files-grid li img { grid-row: 1 / 3; }
.files-grid h3 { font-size: 1.05rem; color: var(--brand); margin: 0 0 0.3em; }
.files-grid p { font-size: 0.95rem; margin: 0; }

.home-steps { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.home-steps li { margin: 0; display: flex; gap: 14px; align-items: baseline; padding: 14px 16px;
                 background: var(--brand-tint); border-radius: 6px; }
.step-n { flex: none; min-width: 1em; font-size: 1.5rem; font-weight: 700; line-height: 1; color: var(--accent); }

.sample-panel { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; background: var(--paper);
                border: 2px solid var(--brand);
                border-radius: 10px; padding: 22px 18px; }
.sample-panel h2 { margin-bottom: 0.4em; }
.home-sample .downloads { list-style: none; padding: 0; margin: 1.2em 0 0; }
.home-sample .downloads li { margin-bottom: 16px; }
.home-sample .downloads .button { white-space: normal; }
.home-sample .downloads .small { display: block; margin-top: 6px; }
.sample-visual img { max-width: min(100%, 17rem); margin: 0 auto; }
.sample-visual figcaption { text-align: center; }

.details { display: grid; gap: 14px 28px; margin: 18px 0 0; }
.details div { border-top: 1px solid var(--rule-light); padding-top: 10px; }
.details dt { font-weight: 700; color: var(--brand); }
.details dd { margin: 2px 0 0; }

.band.final { background: var(--brand); color: var(--paper); text-align: center; }
.final h2 { color: var(--paper); font-size: 1.7rem; }
.final .cta-actions { justify-content: center; }
.final .button.secondary { border-color: var(--paper); }
.final a:focus-visible { outline-color: var(--paper); }
main > section.band.about { padding: 24px 0 0; }
main:has(> .band) { padding-bottom: 0; }

@media (min-width: 720px) {
  .insight { font-size: 2.5rem; }
  .stack { max-width: 30rem; }
  .home-steps { grid-template-columns: 1fr 1fr; }
  .details { grid-template-columns: 1fr 1fr; }
  main > section.band, main > section.band + section.band { padding: 64px 0 56px; }
}
@media (min-width: 860px) {
  .why-grid { grid-template-columns: 1.5fr 1fr; align-items: center; gap: 48px; }
  .sample-panel { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: center; padding: 32px 36px; }
}
@media (min-width: 960px) {
  .home-hero.band { padding-top: 56px; padding-bottom: 64px; }
  .home-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); grid-template-rows: auto 1fr;
                    grid-template-areas: "head visual" "act visual"; column-gap: 56px; row-gap: 24px; align-items: start; }
  .insight { font-size: 3rem; }
  .stack { max-width: 34rem; }
  .home-hero-visual { padding: 28px 28px 16px; }
  .gallery, .files-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
  .files-grid li { display: block; }
  .files-grid h3 { margin-top: 14px; }
  .sample-visual img { max-width: 22rem; }
  .details { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---- the catalogue (home page) and the pages of other titles (site/catalogue.json, spec K23) ------
   Tiles are plain bordered panels on the tinted band; the status is a word, never colour alone. A
   title's page without an approved preview image uses a single column (.hero.no-image). */
.catalogue-year { margin-top: 24px; }
.catalogue-year > h3 { color: var(--brand); font-size: 1.3rem; }
.catalogue-jump { display: flex; flex-wrap: wrap; gap: 4px 20px; list-style: none; padding: 0; }
.catalogue-jump li { margin: 0; }
.catalogue-jump a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.catalogue { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px;
             grid-template-columns: minmax(0, 1fr); align-items: stretch; }
.tile { margin: 0; display: flex; flex-direction: column; background: var(--paper); border: 2px solid var(--brand);
        border-radius: 10px; padding: 20px 18px; }
.tile > p { margin: 0 0 0.6em; }
.tile-name { font-size: 1.3rem; line-height: 1.2; margin: 0.5em 0 0.3em; }
.tile .facts { margin: 4px 0 12px; }
.tile-price { font-size: 1.05rem; }
.tile > p.tile-actions { margin: auto 0 0; padding-top: 8px; }
.status { display: inline-block; margin: 0; padding: 2px 10px; border: 1px solid var(--brand); border-radius: 4px;
          font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.02em; color: var(--brand); background: var(--paper); }
.status-available { background: var(--brand); color: var(--paper); }
.tile > .status { align-self: flex-start; }
.coming-list { list-style: none; padding: 0; margin: 18px 0 12px; display: grid; gap: 14px 28px;
               grid-template-columns: minmax(0, 1fr); }
.coming-list li { margin: 0; border-top: 1px solid var(--rule-light); padding-top: 12px; }
.coming-list h3 { font-size: 1.1rem; color: var(--brand); margin: 0 0 0.4em; }
.coming-list p { margin: 0; }
.hero.no-image { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "proof" "body";
                 grid-template-rows: auto; }
.hero.no-image > * { max-width: 44rem; }
.hero.no-image .proof { justify-content: flex-start; }
.hero.deck-hero { grid-template-areas: "head" "proof" "body" "image"; }
.deck-hero .proof { justify-content: flex-start; }
.deck-print { margin-top: 16px; max-width: 23rem; }

@media (min-width: 720px) {
  .catalogue { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .tile { padding: 26px 26px 22px; }
  .coming-list { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 960px) {
  .hero.deck-hero { grid-template-areas: "head image" "proof image" "body image"; }
  .deck-files { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: start; }
  .deck-print { margin-top: 0; }
}

/* the Chomp resource page (/chomp): rules, then the strategy card behind spoiler disclosures (native
   <details>, no script); the card image swaps to its phone layout on narrow screens */
.spoiler-note { border-left: 4px solid var(--accent); padding: 4px 0 4px 14px; }
details.reveal { border: 1px solid var(--rule-light); border-radius: 6px; padding: 0 16px; margin: 1em 0 1.4em; }
details.reveal > summary { cursor: pointer; font-weight: 700; color: var(--brand); padding: 12px 0; min-height: 44px; }
details.reveal[open] > summary { border-bottom: 1px solid var(--rule-light); margin-bottom: 14px; }
.card-picture { display: block; max-width: 40rem; margin: 0 0 16px; }
.card-image { width: 100%; }
.shape-list { list-style: none; padding: 0; }
.shape-list li { margin: 0.25em 0; }
.card-link { display: block; }
