/* WordSearchPDF storefront. Tokens copied from brand/brand-guide.json. */
@font-face {
  font-family: "Source Serif 4";
  src: url("/fonts/source-serif-4/latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("/fonts/source-serif-4/latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("/fonts/atkinson-hyperlegible/latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("/fonts/atkinson-hyperlegible/latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --primary: #0A2F2C;   /* Mark teal: mark and chrome on paper */
  --secondary: #D7E4C8; /* Callout paper: the caveat block only */
  --surface: #EEF3F0;   /* Chart paper: writable pages and body */
  --text: #172421;      /* Record ink */
  --accent: #C6D63A;    /* Station sap: one rule, the badge, a number */
  --ground: #0E3C38;    /* Field cover: hero and section openers */
  --face-heading: "Source Serif 4", serif;
  --face-body: "Atkinson Hyperlegible", sans-serif;
  --step: 1.5rem;
  --edge: 5vw;
  --radius: 0.375rem;   /* one radius: buttons and paper frames */
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: var(--face-body);
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  overflow-x: clip;
}
::selection { background: var(--accent); color: var(--text); }
input, textarea { caret-color: var(--primary); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
img { display: block; max-width: 100%; }
h1, h2, h3 {
  font-family: var(--face-heading);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.75rem;
  text-wrap: balance;
}
h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1rem; }
a { color: inherit; text-underline-offset: 0.2em; }
strong { font-weight: 700; }
.measure { max-width: 65ch; }

/* Header: wordmark lockup, one line, under 80px */
.site-head {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.5rem;
  padding: 0.75rem var(--edge);
  color: var(--surface);
  background: linear-gradient(180deg, rgb(14 60 56 / 0.9) 0%, rgb(14 60 56 / 0.6) 70%, rgb(14 60 56 / 0) 100%);
}
.lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-family: var(--face-heading);
  font-weight: 700;
  font-size: 1.3rem;
  min-height: 44px;
}
.lockup svg { width: 2.25rem; height: 2.25rem; flex: none; }
.site-nav { display: flex; gap: 0.5rem; }
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.75rem;
  text-decoration: none;
  border-radius: var(--radius);
}
.site-nav a:hover { text-decoration: underline; }

/* Hero on the field-cover ground */
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 3rem;
  min-height: min(100dvh, 56rem);
  padding: 6rem var(--edge) 3.5rem;
  background: var(--ground);
  color: var(--surface);
  overflow: hidden;
}
.hero-field {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 50%;
}
.hero-scrim {
  position: absolute;
  inset: 0 45% 0 0;
  z-index: -1;
  background: linear-gradient(90deg, rgb(14 60 56 / 0.92) 0%, rgb(14 60 56 / 0.75) 60%, rgb(14 60 56 / 0) 100%);
}
.hero h1 {
  font-size: clamp(2.2rem, 3.6vw, 3.3rem);
  max-width: 24ch;
  margin-bottom: 1rem;
}
.product-name {
  font-family: var(--face-heading);
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0 0 0.9rem;
}
.promise { font-size: 1.2rem; max-width: 34ch; margin: 0; }
.rule {
  width: 7.5rem;
  height: 0.3rem;
  border: 0;
  margin: 1.5rem 0 1.75rem;
  background: var(--accent);
}
.buy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}
.price {
  font-family: var(--face-heading);
  font-weight: 700;
  font-size: 1.5rem;
  white-space: nowrap;
}
.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0 1.6rem;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--text);
  font: 700 1.1rem/1 var(--face-body);
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.1s ease;
}
.btn:hover:not(:disabled) { background: var(--surface); border-color: var(--surface); }
.btn:active:not(:disabled) { transform: scale(0.98); }
.btn:disabled {
  cursor: not-allowed;
  background: transparent;
  color: inherit;
  border-color: currentColor;
  opacity: 0.8;
}
.buy-notice {
  flex-basis: 100%;
  margin: 0;
  font-size: 1rem;
}
.buy-notice[hidden] { display: none; }
.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
}

/* Cover presented as an object on the ground */
.cover-object {
  position: relative;
  justify-self: center;
  width: min(100%, 26rem);
  margin: 0;
}
.cover-object > img {
  width: 100%;
  height: auto;
  transform: rotate(-3deg);
  box-shadow: 1.25rem 1.75rem 3rem -1rem rgb(5 24 22 / 0.75);
}
.sticker {
  position: absolute;
  inset-block-start: -1.5rem;
  inset-inline-end: -1.5rem;
  display: grid;
  place-items: center;
  inline-size: 7.5rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--accent);
  color: var(--text);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-align: center;
  padding: 1rem;
}

/* Inside: real pages, one large */
.section { padding: calc(var(--step) * 4) var(--edge) calc(var(--step) * 3); }
.section > h2, .section-intro { max-width: 65ch; }
.inside {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.5rem 2rem;
  margin-top: 2.5rem;
  align-items: start;
}
.inside figure { margin: 0; }
.inside figure:first-child { grid-row: span 2; }
.inside img, .page-shot {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 0.75rem 1.75rem -0.75rem rgb(10 47 44 / 0.45);
  background: var(--surface);
}
.inside figcaption, .caption { margin-top: 0.75rem; font-size: 1rem; }
.inside figcaption strong, .caption strong { display: block; font-family: var(--face-heading); font-size: 1.1rem; }

/* Band: image owns the width, copy in a column */
.band {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: center;
  background: var(--surface);
}
.band > img { width: 100%; height: 70vh; min-height: 24rem; object-fit: cover; object-position: 80% 50%; }
.band-copy { padding: calc(var(--step) * 3) var(--edge) calc(var(--step) * 3) 3rem; }
.fit-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1rem; }
.fit-list li { padding-left: 1.75rem; position: relative; }
.fit-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 1rem;
  height: 0.2rem;
  background: var(--primary);
}
.fit-list li.not::before { background: transparent; border-top: 0.2rem solid var(--primary); width: 0.6rem; }

/* Section opener: plate full-bleed on the ground, heading only */
.opener {
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: start;
  min-height: 26rem;
  padding: calc(var(--step) * 3) var(--edge);
  background: var(--ground);
  color: var(--surface);
  overflow: hidden;
  clip-path: polygon(0 0, 100% 1.2rem, 100% 100%, 0 100%);
}
.opener > img {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 70%;
}
.opener h2 { max-width: 20ch; font-size: clamp(2rem, 4vw, 3.2rem); }

/* Numbered sequence: order is the information */
.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  gap: 2.25rem;
  max-width: 62rem;
}
.steps > li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  gap: 1rem;
}
.steps > li::before {
  content: counter(step);
  font-family: var(--face-heading);
  font-weight: 700;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--primary);
}
.steps h3 { margin-bottom: 0.25rem; }
.steps p { margin: 0; }
.topics { font-size: 1rem; color: var(--primary); }

/* FAQ */
.faq { background: var(--surface); }
.faq-list { max-width: 58rem; margin-top: 1.5rem; }
.faq details { border-bottom: 1px solid rgb(10 47 44 / 0.25); }
.faq summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  min-height: 3.5rem;
  padding: 0.75rem 0;
  font-family: var(--face-heading);
  font-weight: 700;
  font-size: 1.2rem;
  list-style-position: inside;
}
.faq details p { max-width: 65ch; padding-bottom: 0.5rem; }

/* Callout: upright offset block, caveat only */
.with-callout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 18rem); gap: 12px; align-items: start; }
.callout {
  background: var(--secondary);
  color: var(--text);
  padding: 1.25rem 1.4rem;
  border-radius: var(--radius);
  font-size: 1rem;
  margin-top: 2rem;
}
.callout p { margin: 0; }

/* Closing offer */
.closing {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: 2rem;
  padding: calc(var(--step) * 3) var(--edge);
  background: var(--ground);
  color: var(--surface);
}
.closing h2 { margin: 0; max-width: 22ch; }

/* Footer */
.site-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding: 2rem var(--edge);
  background: var(--primary);
  color: var(--surface);
  font-size: 1rem;
}
.site-foot nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; }
.site-foot a { display: inline-flex; align-items: center; min-height: 44px; }

/* Product page */
.crumbs { font-size: 1rem; margin: 0 0 1rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0; margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: 0.5rem; }
.crumbs a { display: inline-flex; min-height: 44px; align-items: center; }
.stage {
  position: relative;
  margin: 0;
  align-self: stretch;
  min-height: 30rem;
  border-radius: var(--radius);
  overflow: hidden;
}
.stage > img:first-child { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.stage .cover-on-stage {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(46%, 17rem);
  height: auto;
  transform: translate(-58%, -54%) rotate(3deg);
  box-shadow: 1.25rem 1.5rem 2.5rem -0.75rem rgb(5 24 22 / 0.8);
}
.product-hero { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); padding-top: 6rem; }
.product-hero h1 { font-size: clamp(2.1rem, 3.2vw, 2.7rem); max-width: none; }
.sample {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 3rem;
  align-items: start;
  margin-top: 2rem;
}
.grid-wrap { overflow-x: auto; }
.letter-grid {
  border-collapse: collapse;
  font-family: var(--face-body);
  font-weight: 700;
  font-size: clamp(0.95rem, 1.9vw, 1.35rem);
  color: var(--text);
  background: var(--surface);
  box-shadow: 0 0.75rem 1.75rem -0.75rem rgb(10 47 44 / 0.45);
}
.letter-grid th {
  font-weight: 400;
  font-size: 0.7em;
  color: var(--primary);
  padding: 0.2em;
}
.letter-grid td {
  width: 1.9em;
  height: 1.9em;
  text-align: center;
  border: 1px solid rgb(10 47 44 / 0.12);
}
.word-list {
  columns: 3 8rem;
  padding: 0;
  margin: 1.5rem 0 0;
  list-style: none;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.contents { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0.6rem 1.5rem; margin: 2rem 0 0; max-width: 60rem; }
.contents dt { font-family: var(--face-heading); font-weight: 700; }
.contents dd { margin: 0; }
.fan { display: flex; gap: 0; margin-top: 2.5rem; padding: 1rem 0 2rem; }
.fan figure { margin: 0 0 0 -2.5rem; flex: 1 1 0; }
.fan figure:first-child { margin-left: 0; }
.fan figure:nth-child(odd) img { transform: rotate(-2deg); }
.fan figure:nth-child(even) img { transform: rotate(2deg) translateY(1rem); }
.fan figcaption { margin-top: 1.5rem; padding-left: 2.75rem; font-size: 1rem; }
.fan figure:first-child figcaption { padding-left: 0; }

/* One motion: the cover settles in on load */
@media (prefers-reduced-motion: no-preference) {
  .cover-object > img, .stage .cover-on-stage { animation: settle 0.7s ease-out both; }
  @keyframes settle { from { opacity: 0; translate: 0 1.25rem; } to { opacity: 1; translate: 0 0; } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .btn:active:not(:disabled) { transform: none; }
}

/* Tablet and phone */
@media (max-width: 900px) {
  .inside { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .inside figure:first-child { grid-column: 1 / -1; grid-row: auto; }
  .sample { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .site-head { padding: 0.5rem 1rem; gap: 0.5rem; }
  .lockup { font-size: 1.1rem; }
  .lockup svg { width: 1.9rem; height: 1.9rem; }
  .site-nav a { padding: 0 0.5rem; font-size: 1rem; }
  .site-nav .wide { display: none; }
  .hero, .product-hero { grid-template-columns: minmax(0, 1fr); min-height: auto; padding: 5.5rem 1.25rem 3rem; gap: 2.5rem; }
  .hero-scrim { inset: 0; background: rgb(14 60 56 / 0.72); }
  .cover-object { width: 72%; margin-right: 1.5rem; }
  .sticker { inline-size: 5.75rem; inset-inline-end: -1.25rem; inset-block-start: -1rem; font-size: 0.85rem; padding: 0.6rem; }
  .band { grid-template-columns: minmax(0, 1fr); }
  .band > img { height: 56vw; min-height: 0; }
  .band-copy { padding: calc(var(--step) * 2) 1.25rem; }
  .section { padding: calc(var(--step) * 3) 1.25rem calc(var(--step) * 2); }
  .opener { min-height: 18rem; padding: calc(var(--step) * 2) 1.25rem; }
  .with-callout { grid-template-columns: minmax(0, 1fr); }
  .closing { grid-template-columns: minmax(0, 1fr); padding: calc(var(--step) * 2) 1.25rem; }
  .stage { min-height: 22rem; }
  .stage .cover-on-stage { width: 48%; }
  .contents { grid-template-columns: minmax(0, 1fr); gap: 0.2rem; }
  .contents dd { margin-bottom: 0.75rem; }
  .fan { flex-wrap: wrap; gap: 1.5rem 1rem; }
  .fan figure, .fan figure:first-child { margin: 0; flex: 1 1 40%; }
  .fan figcaption { padding-left: 0; }
  .fan figure img { transform: none !important; }
  .letter-grid td { width: 1.55em; height: 1.55em; }
}
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.section-tight { padding-top: 0; }
.sample figure { margin: 0; }
