/* Perfect Day — the site (STYLE_GUIDE.md, revision of 16 September 2026, brand of the same day).

   One system for every public and account page. The palette is the mark's:
   gold sky, orange sun, brown earth, green ground, on cream. Headings in
   National Park capitals like a routed park sign; body in Source Serif 4;
   numbers in Source Sans 3, tabular. No shadows, no weather icons, no red.
   Gold is a matched day. Pacifico appears only inside the lockup. */

/* --- faces ------------------------------------------------------------------ */

@font-face { font-family: "National Park"; src: url("fonts/NationalPark-VariableVF.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("fonts/SourceSerif4Variable-Roman.otf.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("fonts/SourceSerif4Variable-Italic.otf.woff2") format("woff2"); font-weight: 200 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("fonts/SourceSans3Variable-Roman.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }

/* --- tokens ----------------------------------------------------------------- */

:root {
  --ground: #F3E7C9; --paper: #FBF3E1; --line: #E3D2AB;
  --ink: #6E3B21; --ink-2: #8A5738;
  --gold: #E3BE58; --orange: #DE8B57; --green: #7F9140; --green-ink: #556329;
  --on-ink: #F3E7C9;

  --head: "National Park", "Varela Round", "Nunito", -apple-system, "Segoe UI", Roboto, sans-serif;
  --font: "Source Serif 4", "Iowan Old Style", "Charter", Georgia, serif;
  --sans: "Source Sans 3", -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --t-small:   400 13px/18px var(--sans);
  --t-ui:      600 14px/20px var(--head);
  --t-num:     600 15px/20px var(--sans);
  --t-label:   400 15px/20px var(--font);
  --t-body:    400 17px/26px var(--font);
  --t-lead:    400 21px/29px var(--font);
  --t-h3:      700 17px/22px var(--head);
  --t-h2:      700 22px/26px var(--head);
  --t-title:   700 28px/32px var(--head);
  --t-display: 700 36px/38px var(--head);
  --track: 0.06em;

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px;
  --s-6: 24px; --s-8: 32px; --s-12: 48px; --s-16: 64px;
  --gutter: 20px; --tap: 44px; --col: 44rem;
  --r-card: 16px; --r-input: 12px; --r-round: 999px;
  --ease: cubic-bezier(0.2, 0, 0, 1); --d-reveal: 600ms; --d-hover: 120ms;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="daylight"]) {
    --ground: #2F3236; --paper: #3A3D43; --line: #4E5158;
    --ink: #F3E7C9; --ink-2: #D5D0C5; --green-ink: #B7C57A; --on-ink: #2F3236;
    color-scheme: dark;
  }
}
:root[data-theme="evening"] {
  --ground: #2F3236; --paper: #3A3D43; --line: #4E5158;
  --ink: #F3E7C9; --ink-2: #D5D0C5; --green-ink: #B7C57A; --on-ink: #2F3236;
  color-scheme: dark;
}
@media (prefers-reduced-motion: reduce) { :root { --d-reveal: 0ms; --d-hover: 0ms; } }
@media (min-width: 720px) { :root { --gutter: 32px; --t-display: 700 46px/48px var(--head); --t-title: 700 32px/36px var(--head); } }

/* --- page ------------------------------------------------------------------- */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  margin: 0; min-height: 100dvh; display: flex; flex-direction: column;
  background: var(--ground); color: var(--ink);
  font: var(--t-body); font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased;
}
main { flex: 1 0 auto; width: 100%; max-width: var(--col); margin: 0 auto; padding: var(--s-8) var(--gutter) var(--s-16); }
h1, h2, h3, p, ul, ol, dl, dd, figure, table { margin: 0; }
h1, h2, h3, .head { font-family: var(--head); text-transform: uppercase; letter-spacing: var(--track); }
h1 { font: var(--t-title); letter-spacing: var(--track); text-transform: uppercase; }
h2 { font: var(--t-h2); letter-spacing: var(--track); text-transform: uppercase; }
h3 { font: var(--t-h3); letter-spacing: var(--track); text-transform: uppercase; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.14em; text-decoration-color: var(--orange); }
.prose a { text-decoration: underline; }
.prose a:hover { text-decoration-thickness: 2px; }
b, strong { font-weight: 600; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num { font: var(--t-num); }
.small { font: var(--t-small); color: var(--ink-2); }
.ui { font: var(--t-ui); text-transform: uppercase; letter-spacing: var(--track); }
.bark, .muted { color: var(--ink-2); }
.hint { font: var(--t-small); color: var(--ink-2); }
.lead { font: var(--t-lead); }

/* --- header ----------------------------------------------------------------- */

.site-head { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
.site-head .inner { max-width: var(--col); margin: 0 auto; padding: 0 var(--gutter); }
.site-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); min-height: 60px; }
.site-nav { display: flex; align-items: center; gap: var(--s-1); overflow-x: auto; scrollbar-width: none; min-height: 46px; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--s-2); border-top: 1px solid var(--line); }
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a, .site-foot nav a {
  display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 var(--s-3);
  font: var(--t-ui); text-transform: uppercase; letter-spacing: var(--track); color: var(--ink-2); text-decoration: none; white-space: nowrap; border-radius: var(--r-input);
  transition: color var(--d-hover) var(--ease);
}
.site-nav a:hover, .site-nav a[aria-current="page"], .site-foot nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--orange); border-radius: 0; }
.site-nav .push { margin-left: auto; }
.site-nav .button { display: none; }
@media (min-width: 720px) {
  .site-head .inner { display: flex; align-items: center; gap: var(--s-6); min-height: 68px; }
  .site-row { flex: 0 0 auto; min-height: 0; }
  .site-row .button { display: none; }
  .site-nav { flex: 1; border-top: 0; margin: 0; padding: 0; min-height: 0; overflow: visible; }
  .site-nav .button { display: inline-flex; }
}

/* The lockup: the mark beside the name, as outlines, brown on any ground.
   The whole header identity; no tagline, ever. */
.lockup { display: inline-flex; align-items: center; min-height: var(--tap); text-decoration: none; }
.lockup svg { display: block; height: 34px; width: auto; }
.lockup svg path { fill: var(--ink); }
.site-foot .lockup svg { height: 28px; }
@media (min-width: 720px) { .lockup svg { height: 38px; } }

/* --- footer ----------------------------------------------------------------- */

.site-foot { background: var(--paper); border-top: 1px solid var(--line); padding: var(--s-8) var(--gutter) calc(var(--s-6) + env(safe-area-inset-bottom, 0px)); position: relative; }
.site-foot::after { content: ""; display: block; height: 10px; background: var(--green); margin: var(--s-8) calc(var(--gutter) * -1) calc(-1 * (var(--s-6) + env(safe-area-inset-bottom, 0px))); }
.site-foot .inner { max-width: var(--col); margin: 0 auto; display: flex; flex-direction: column; gap: var(--s-4); }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 0 var(--s-1); margin-left: calc(var(--s-3) * -1); }
.site-foot .small { margin: 0; }

/* --- buttons ---------------------------------------------------------------- */

.button, button {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 48px; padding: 0 var(--s-5); border-radius: var(--r-input);
  font: var(--t-ui); text-transform: uppercase; letter-spacing: var(--track);
  color: var(--ink); background: var(--paper); border: 1px solid var(--line);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background var(--d-hover) var(--ease), border-color var(--d-hover) var(--ease), color var(--d-hover) var(--ease);
}
.button:hover, button:hover { border-color: var(--ink-2); }
.button.primary, button.primary { color: var(--on-ink); background: var(--ink); border-color: var(--ink); }
.button.primary:hover, button.primary:hover { background: var(--ink-2); border-color: var(--ink-2); }
.button.wide, button.wide { width: 100%; min-height: 52px; }
button:disabled { opacity: 0.6; cursor: default; }
.linklike { display: inline; width: auto; min-height: 0; padding: 0; border: 0; background: none; font: inherit; text-transform: none; letter-spacing: 0; color: var(--ink); text-decoration: underline; text-decoration-color: var(--orange); cursor: pointer; }
.inline-form { display: inline; }

/* --- cards ------------------------------------------------------------------ */

.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card); padding: var(--s-5); }
.card h2 + p, .card h3 + p { margin-top: var(--s-2); }
.cta { display: grid; gap: var(--s-4); }
.cta .button { justify-self: start; }
.trust { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); margin: 0; padding: 0; list-style: none; font: var(--t-num); color: var(--ink-2); }
.trust li { display: inline-flex; align-items: center; gap: var(--s-2); }
.trust li::before { content: ""; width: 6px; height: 6px; border-radius: var(--r-round); background: var(--green); }

/* --- the verdict ------------------------------------------------------------ */

.verdict { position: relative; display: grid; gap: var(--s-2); background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card); padding: var(--s-5) var(--s-5) var(--s-5) var(--s-6); overflow: hidden; }
.verdict::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: transparent; }
.verdict.is-good::before { background: var(--gold); }
.verdict-kicker { font: var(--t-ui); text-transform: uppercase; letter-spacing: var(--track); color: var(--ink-2); }
.verdict-head { display: flex; align-items: center; gap: var(--s-3); }
.verdict-day { font: var(--t-display); text-transform: uppercase; letter-spacing: var(--track); }
.verdict-line { font: var(--t-lead); }
.verdict-facts { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-3); font: var(--t-num); color: var(--ink); }
.verdict-facts b { font-weight: 700; }
.verdict-facts span + span::before { content: "·"; color: var(--ink-2); margin-right: var(--s-3); }
.verdict-checked { font: var(--t-small); color: var(--ink-2); }
/* The state mark, shape and colour together: the brand's sun for a matched day, a hollow ring for none. */
.state { display: inline-block; vertical-align: middle; flex: none; width: 20px; height: 20px; border-radius: var(--r-round); border: 2px solid var(--line); background: transparent; }
.state.good { border: 0; background: radial-gradient(circle at 50% 58%, var(--orange) 0 38%, var(--gold) 40%); }
.state.none { border-color: var(--ink-2); }
.state.withdrawn { border: 0; background: var(--ink-2); }
.state.small { width: 13px; height: 13px; border-width: 1.5px; }
.verdict.reveal { animation: appear var(--d-reveal) var(--ease) both; }
@keyframes appear { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* --- hero and sections ------------------------------------------------------ */

.hero { display: grid; gap: var(--s-6); padding-top: var(--s-4); }
.hero h1 { font: var(--t-display); text-transform: uppercase; letter-spacing: var(--track); max-width: 20ch; }
.hero h1 em { display: block; margin-top: var(--s-2); font: var(--t-lead); font-style: italic; text-transform: none; letter-spacing: 0; color: var(--ink-2); }
.hero .lead { color: var(--ink-2); max-width: 60ch; }
.hero-actions { display: grid; gap: var(--s-4); }
.hero-actions .button { justify-self: start; }
.section { margin-top: var(--s-16); }
.section > h2 { font: var(--t-title); text-transform: uppercase; letter-spacing: var(--track); margin-bottom: var(--s-5); }
.section .lead { color: var(--ink-2); margin-bottom: var(--s-6); max-width: 60ch; }
.steps { display: grid; gap: var(--s-4); counter-reset: step; padding: 0; margin: 0; list-style: none; }
.steps li { display: grid; grid-template-columns: 36px 1fr; gap: var(--s-4); align-items: start; }
.steps li::before { counter-increment: step; content: counter(step); display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: var(--r-round); background: var(--green); color: #F3E7C9; font: var(--t-ui); }
.steps h3 { margin-bottom: var(--s-1); }
.steps p { color: var(--ink-2); }
.grid { display: grid; gap: var(--s-4); }
@media (min-width: 720px) { .grid.three { grid-template-columns: repeat(3, 1fr); } }
.card.link { display: block; text-decoration: none; transition: border-color var(--d-hover) var(--ease); }
.card.link:hover { border-color: var(--orange); }
.card.link p { color: var(--ink-2); }
.card.link .more { display: block; margin-top: var(--s-3); font: var(--t-ui); text-transform: uppercase; letter-spacing: var(--track); color: var(--ink); }

/* --- prose (guides, city notes, doors, privacy) ---------------------------- */

.prose > * { max-width: 65ch; }
.prose h1 { margin-bottom: var(--s-4); }
.prose h2 { margin-top: var(--s-8); margin-bottom: var(--s-3); }
.prose h3 { margin-top: var(--s-6); margin-bottom: var(--s-2); }
.prose p + p { margin-top: var(--s-4); }
.prose .lead { color: var(--ink-2); }
.prose ul, .prose ol { padding-left: var(--s-5); }
.prose li + li { margin-top: var(--s-2); }
.prose > .verdict, .prose > .card, .prose > .table-wrap, .prose > .grid, .prose > .related { max-width: none; }
.prose .plain-table, .prose table { border-collapse: collapse; width: 100%; font: var(--t-num); font-weight: 400; }
.prose .plain-table th, .prose .plain-table td { text-align: left; vertical-align: top; padding: var(--s-2) var(--s-3) var(--s-2) 0; border-bottom: 1px solid var(--line); }
.prose .plain-table th { color: var(--ink-2); font-weight: 400; }
.title-row { display: grid; gap: var(--s-3); margin-bottom: var(--s-6); }
.crumbs { font: var(--t-ui); text-transform: uppercase; letter-spacing: var(--track); color: var(--ink-2); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.related { margin-top: var(--s-12); }
.related h2 { margin-bottom: var(--s-4); }
.legal .plain-list { color: var(--ink); }
.subtitle { color: var(--ink-2); margin: calc(var(--s-3) * -1) 0 var(--s-5); }

/* --- tables ----------------------------------------------------------------- */

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: var(--s-4) calc(var(--gutter) * -1) 0; padding: 0 var(--gutter); }
.table { border-collapse: collapse; width: 100%; font: var(--t-num); font-weight: 400; }
.table th, .table td { text-align: left; vertical-align: middle; padding: var(--s-3) var(--s-3) var(--s-3) 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table th { font: var(--t-ui); text-transform: uppercase; letter-spacing: var(--track); color: var(--ink-2); font-weight: 600; }
.table td.st { width: 28px; padding-right: var(--s-2); }
.table td.day { font: var(--t-body); font-weight: 600; }
.table td.why { color: var(--ink-2); white-space: normal; min-width: 14em; }
.table b { font-weight: 700; }
.table a { text-decoration: none; }
.table a:hover { text-decoration: underline; }
.table tr[hidden] { display: none; }
.search { position: relative; max-width: 26rem; }
.search input[type="search"] { padding-left: 44px; }
.search svg { position: absolute; left: 14px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); stroke: var(--ink-2); fill: none; stroke-width: 1.5; stroke-linecap: round; }

/* --- forms ------------------------------------------------------------------ */

form { margin: 0; }
.form { display: grid; gap: var(--s-4); }
.field { display: grid; gap: var(--s-1); }
.field label, .stack label, label { font: var(--t-ui); text-transform: uppercase; letter-spacing: var(--track); color: var(--ink); }
.field .help, .stack .hint { font: var(--t-small); color: var(--ink-2); }
input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="number"], select, textarea {
  width: 100%; min-height: 52px; padding: var(--s-3) var(--s-4);
  font: var(--t-body); color: var(--ink); background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--r-input); -webkit-appearance: none; appearance: none;
}
input:hover { border-color: var(--ink-2); }
input:focus-visible { outline-offset: 0; border-color: var(--ink); }
::placeholder { color: var(--ink-2); opacity: 0.8; }
.form .error, .auth-error { font: var(--t-body); color: var(--ink); padding: var(--s-3) var(--s-4); border: 1px solid var(--orange); border-radius: var(--r-input); }
.or { font: var(--t-ui); text-transform: uppercase; letter-spacing: var(--track); color: var(--ink-2); text-align: center; display: flex; align-items: center; gap: var(--s-3); }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.stack { display: flex; flex-direction: column; }
.stack label { margin: var(--s-4) 0 var(--s-1); }
.stack label:first-child { margin-top: 0; }
.stack .hint { margin-top: var(--s-2); }
.stack button, .stack .button { margin-top: var(--s-6); width: 100%; min-height: 52px; }
.auth { max-width: 26rem; margin: 0 auto; display: grid; gap: var(--s-6); }
.auth h1 { margin-bottom: var(--s-2); }
.auth .lead { color: var(--ink-2); }
.auth .card { display: grid; gap: var(--s-5); }
.auth .card > .button { width: 100%; min-height: 52px; }
.auth .alt, .auth-alt { font: var(--t-label); color: var(--ink-2); text-align: center; }
.auth .alt a, .auth-alt a { color: var(--ink); }
.actions { margin-top: var(--s-6); }
.actions.quiet { text-align: center; font: var(--t-label); color: var(--ink-2); }
.after { display: grid; gap: var(--s-2); font: var(--t-label); color: var(--ink-2); padding: 0; margin: 0; list-style: none; }
.after li { display: grid; grid-template-columns: 12px 1fr; gap: var(--s-3); align-items: baseline; }
.after li::before { content: ""; width: 12px; height: 12px; border-radius: var(--r-round); border: 1.5px solid var(--line); transform: translateY(1px); }

/* --- misc ------------------------------------------------------------------- */

.checkline { font: var(--t-small); color: var(--ink-2); margin-top: var(--s-3); }
.divider { border: 0; border-top: 1px solid var(--line); margin: var(--s-12) 0; }
pre, code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 14px; }
pre { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-input); padding: var(--s-4); overflow-x: auto; }
.nothing { display: grid; gap: var(--s-4); }
.nothing .lockup svg { height: 60px; }
