/* Self-hosted variable fonts, latin subsets only — the same two families and
   the same files the storefront bundles. Copied into dist/fonts/ by build.mjs
   from node_modules, so there is no request to Google from these pages. */
@font-face {
  font-family: "Fredoka Variable";
  font-style: normal; font-display: swap; font-weight: 300 700;
  src: url("/fonts/fredoka-latin-wght-normal.woff2") format("woff2-variations");
}
@font-face {
  font-family: "Inter Variable";
  font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
}

/* Token values are injected by build.mjs, read from the storefront's
   tokens.css. Editing colours here would let the legal pages drift from the
   shop; edit them there instead. */
:root {
  --ink: #1f2128;
  --paper: #fbf7ef;
  --brand: #ff5722;
  --accent: #00adb5;
  --sun: #ffc93c;
  --surface: #f3ece0;
  --ink-dark: #15171c;
  --muted: #6b6f7a;
  --line: #e4dccd;
  --measure: 68ch;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter Variable", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

.skip {
  position: absolute; left: -9999px;
  background: var(--ink); color: var(--paper);
  padding: .7rem 1rem; border-radius: 0 0 10px 0; z-index: 20;
}
.skip:focus { left: 0; top: 0; }

.bar {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding: 0 1.5rem;
}

header { background: var(--ink); color: var(--paper); padding: .9rem 0; }
.wordmark {
  font-family: "Fredoka Variable", system-ui, sans-serif; font-weight: 700;
  font-size: 1.2rem; letter-spacing: -.02em; color: var(--paper);
  text-decoration: none; margin-right: .5rem;
}
.wordmark span { color: var(--sun); padding: 0 .18em; }
header nav { display: flex; gap: .15rem; flex-wrap: wrap; flex: 1; }
header nav a {
  color: var(--paper); text-decoration: none; opacity: .72;
  font-size: .88rem; padding: .32rem .7rem; border-radius: 999px;
  white-space: nowrap;
}
header nav a:hover { opacity: 1; background: rgba(255,255,255,.12); }
header nav a[aria-current="page"] { opacity: 1; background: rgba(255,255,255,.16); font-weight: 600; }
.shop {
  background: var(--brand); color: #fff; text-decoration: none;
  font-family: "Fredoka Variable", system-ui, sans-serif; font-weight: 600;
  padding: .42rem 1rem; border-radius: 999px; font-size: .9rem; white-space: nowrap;
}
.shop:hover { background: var(--ink-dark, #15171c); }

main { max-width: 1100px; margin: 0 auto; padding: 2.5rem 1.5rem 4rem; }
article { max-width: var(--measure); }

.eyebrow {
  font-family: "Fredoka Variable", system-ui, sans-serif; font-size: .74rem;
  text-transform: uppercase; letter-spacing: .16em; color: var(--brand);
  margin: 0 0 .4rem;
}
h1 {
  font-family: "Fredoka Variable", system-ui, sans-serif; font-weight: 700;
  font-size: clamp(2rem, 5vw, 2.6rem); letter-spacing: -.025em; margin: 0;
}
.rule { height: 5px; width: 68px; background: var(--sun); border-radius: 999px; margin: 1rem 0 2rem; }

.prose h2 {
  font-family: "Fredoka Variable", system-ui, sans-serif; font-weight: 600;
  font-size: 1.22rem; margin: 2.4rem 0 .6rem;
  padding-top: 1.2rem; border-top: 2px solid var(--surface);
}
.prose h2:first-child { border-top: 0; padding-top: 0; margin-top: 1rem; }
.prose p { margin: 0 0 1.05rem; }
.prose strong { font-weight: 600; }
.prose a { color: var(--brand); text-underline-offset: 2px; }
.prose ul { padding-left: 1.15rem; margin: 0 0 1.05rem; }
.prose li { margin-bottom: .45rem; }
.prose code {
  background: var(--surface); padding: .1rem .38rem;
  border-radius: 5px; font-size: .9em;
}

/* Wide content scrolls inside its own container; the page never scrolls
   sideways. The processor table in the privacy policy is the one that needs
   this on a phone. */
.prose table { display: block; overflow-x: auto; border-collapse: collapse; width: 100%; margin: 1.2rem 0; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: .55rem .75rem; text-align: left; vertical-align: top; }
.prose th { background: var(--surface); font-weight: 600; white-space: nowrap; }

.ask {
  margin-top: 3rem; padding-top: 1.4rem; border-top: 2px solid var(--surface);
  font-size: .93rem; color: var(--muted);
}
.ask a { color: var(--brand); }

footer { background: var(--surface); padding: 1.8rem 0; margin-top: 2rem; }
footer .bar { justify-content: space-between; font-size: .87rem; color: var(--muted); }
footer p { margin: 0; }
footer nav { display: flex; gap: 1rem; flex-wrap: wrap; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--brand); }

@media (max-width: 640px) {
  header .bar { gap: .5rem; }
  header nav { order: 3; width: 100%; }
  body { font-size: 16px; }
}

/* ---------------------------------------------------------------- chrome
   Header and footer reproduce the storefront's, because a visitor moving
   between /about and /shop should not feel the seam. The two live in
   different codebases, so both read the same site.json. */

header nav.desktop { display: flex; gap: .15rem; flex-wrap: wrap; flex: 1; }
.nav-link {
  color: var(--paper); text-decoration: none; opacity: .72;
  font-size: .9rem; padding: .32rem .7rem; border-radius: 999px; white-space: nowrap;
}
.nav-link:hover { opacity: 1; background: rgba(255,255,255,.12); }

.menu-toggle {
  display: none; background: var(--ink-dark, #15171c); color: var(--paper);
  border: 0; font: inherit; font-weight: 600;
  padding: .42rem 1rem; border-radius: 999px; cursor: pointer;
}
nav.mobile { display: none; border-top: 1px solid rgba(255,255,255,.12); padding: .5rem 1.5rem 1rem; }
nav.mobile[hidden] { display: none; }
.nav-link-mobile { display: block; color: var(--paper); text-decoration: none; padding: .5rem 0; font-weight: 600; }

@media (max-width: 760px) {
  header nav.desktop { display: none; }
  .menu-toggle { display: inline-block; }
  nav.mobile:not([hidden]) { display: block; }
}

footer .foot {
  max-width: 1100px; margin: 0 auto; padding: 2.5rem 1.5rem 1.5rem;
  display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.foot-brand { font-family: "Fredoka Variable", system-ui, sans-serif; font-weight: 700; color: var(--brand); }
.foot-tag { margin: .5rem 0 0; font-size: .88rem; color: var(--muted); }
.foot-col { font-weight: 600; margin-bottom: .6rem; }
footer ul { list-style: none; margin: 0; padding: 0; }
footer li { margin-bottom: .4rem; font-size: .9rem; }
.foot-legal {
  border-top: 1px solid var(--line); padding: 1rem 1.5rem;
  text-align: center; font-size: .8rem; color: var(--muted);
}

/* --------------------------------------------------------------- content */

.lede { font-size: 1.08rem; }

.cta-row { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 2.4rem; }
.btn, .btn-quiet {
  display: inline-block; text-decoration: none; border-radius: 999px;
  font-family: "Fredoka Variable", system-ui, sans-serif; font-weight: 600;
  padding: .6rem 1.4rem;
}
.btn { background: var(--brand); color: #fff; }
.btn:hover { background: var(--ink); }
.btn-quiet { border: 2px solid var(--surface); color: var(--ink); }
.btn-quiet:hover { border-color: var(--brand); color: var(--brand); }

.steps { list-style: none; margin: 2rem 0 0; padding: 0; }
.steps li { display: flex; gap: 1.1rem; margin-bottom: 1.8rem; align-items: flex-start; }
.step-n {
  flex: 0 0 2.6rem; height: 2.6rem; border-radius: 999px;
  background: var(--sun); color: var(--ink);
  font-family: "Fredoka Variable", system-ui, sans-serif; font-weight: 700;
  display: grid; place-items: center;
}
.steps h3 { font-family: "Fredoka Variable", system-ui, sans-serif; margin: .25rem 0 .3rem; font-size: 1.1rem; }
.steps p { margin: 0; }

/* <details> rather than a scripted accordion: it opens with no JavaScript,
   and a crawler reads the answer either way. */
.faq details { border-top: 2px solid var(--surface); padding: .9rem 0; }
.faq summary {
  cursor: pointer; font-weight: 600; list-style: none;
  display: flex; justify-content: space-between; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: .7rem 0 0; color: var(--muted); }

/* ------------------------------------------------------------------ form */

form.contact { margin: 2rem 0 3rem; max-width: 34rem; }
form.contact label { display: block; font-weight: 600; margin: 1.1rem 0 .35rem; }
form.contact input, form.contact textarea {
  width: 100%; font: inherit; color: var(--ink);
  background: #fff; border: 2px solid var(--line); border-radius: 10px;
  padding: .6rem .75rem;
}
form.contact input:focus, form.contact textarea:focus {
  outline: none; border-color: var(--brand);
}
form.contact button {
  margin-top: 1.4rem; background: var(--brand); color: #fff; border: 0;
  font: inherit; font-family: "Fredoka Variable", system-ui, sans-serif; font-weight: 600;
  padding: .65rem 1.6rem; border-radius: 999px; cursor: pointer;
}
form.contact button:hover { background: var(--ink); }
form.contact button:disabled { opacity: .6; cursor: default; }
.gotcha { position: absolute; left: -9999px; }
.form-status { margin-top: .9rem; font-size: .92rem; min-height: 1.2em; }
.form-status.ok { color: #1a9e54; font-weight: 600; }
.form-status.bad { color: var(--brand); font-weight: 600; }
