:root {
  --paper: #FBFCFD;
  --card: #FFFFFF;
  --ink: #112F45;
  --ink2: #4A6475;
  --line: #E4EAEF;
  --sky: #9BC8E3;
  --teal: #33728C;
  --orange: #EC8B33;
  --accent: #A85200;
  --mint: #EAF8F1;
  --mint-ink: #0E5C36;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* The app's "voice" face: rounded on Apple platforms, a clean sans elsewhere. */
.voice {
  font-family: ui-rounded, 'SF Pro Rounded', -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.wrap { max-width: 720px; margin: 0 auto; padding: 0 20px; }

/*
 * The valance, above the header at the top of the page.
 *
 * assets/valance.png is drawn for this: 680x105 with the arcs already cropped
 * to the bottom, so nothing has to be masked or cut here. The app's own
 * curtain.png is a phone header — 84% flat fabric — and every attempt to crop
 * it down to an edge either blurred or turned into a green slab.
 *
 * Tiled rather than stretched. Its left and right edges meet at the same point
 * on a cusp, so repeat-x runs it across any width with the arcs keeping their
 * size instead of squashing wider on a big screen.
 *
 * Scaled down on a phone, which also sharpens it: the art is 680px wide, so at
 * full size a 2x screen upscales it. Drawn smaller, the browser is downsampling
 * again and the weave holds.
 */
.valance {
  /* The box is shorter than the art on purpose. Anchored to the bottom, it
     trims plain fabric off the top and leaves every arc intact. */
  height: 82px;
  background-image: url('/valance.png');
  background-size: 680px 105px;
  background-position: bottom left;
  background-repeat: repeat-x;
}

@media (max-width: 600px) {
  /* Full bleed on a phone. It sits inside .wrap for its left edge to line up
     with the wordmark on a desktop; on a narrow screen that alignment is worth
     less than the curtain reaching both edges, so the column's padding is
     cancelled out rather than the markup changed. */
  .valance {
    height: 58px;
    background-size: 480px 74px;
    margin-left: -20px;
    margin-right: -20px;
  }
}

header { border-bottom: 1px solid var(--line); background: var(--card); }
.bar { display: flex; align-items: center; gap: 20px; min-height: 64px; flex-wrap: wrap; }
.mark { font-size: 23px; color: var(--ink); text-decoration: none; }
nav { display: flex; gap: 18px; margin-left: auto; flex-wrap: wrap; }
nav a { color: var(--ink2); text-decoration: none; font-size: 15px; font-weight: 600; }
nav a:hover { color: var(--accent); }

/*
 * Vertical rhythm, on a 4px grid.
 *
 * Every margin and padding is a multiple of 4, mostly of 8. The page used
 * arbitrary values (14, 22, 28, 56, 72) that read as drifting rather than
 * deliberate, and the headings sat so far from their own text that a section
 * looked like two unrelated blocks.
 *
 * Headings carry roughly three times more space above than below, which is
 * what ties a heading to the paragraph it belongs to instead of letting it
 * float between two.
 */
/*
 * Text runs the full column, so every left and right edge on the page lines up
 * with the valance above it. A 62ch measure reads slightly better in isolation,
 * but it left the paragraphs ending short of the curtain and the page looked
 * ragged down the right-hand side.
 */
p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }

.hero { padding: 48px 0 40px; }
.hero h1 { font-size: 40px; line-height: 1.12; margin: 0 0 16px; letter-spacing: -0.8px; }
.hero p { font-size: 19px; color: var(--ink2); margin: 0 0 24px; }

/* Rule 3: ink on orange, and gloss only ever raises the contrast. */
.cta {
  display: inline-block;
  background: linear-gradient(135deg, #F7C978, #EC8B33);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  padding: 16px 24px;
  border-radius: 16px;
}

.facts { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 32px; }
.fact {
  flex: 1 1 150px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 16px;
}
.fact b { display: block; font-size: 24px; line-height: 1.2; letter-spacing: -0.5px; }
.fact span { font-size: 13px; line-height: 1.4; color: var(--ink2); }

.stores { display: flex; gap: 12px; flex-wrap: wrap; margin: 16px 0 0; }

h2 { font-size: 21px; line-height: 1.3; margin: 32px 0 8px; letter-spacing: -0.3px; }
.page h1 { font-size: 32px; line-height: 1.15; margin: 40px 0 8px; letter-spacing: -0.6px; }
.lede { color: var(--ink2); margin: 0 0 8px; }

.section { border-top: 1px solid var(--line); padding: 16px 0; }
.section h2,
.section h3 { font-size: 16px; line-height: 1.4; font-weight: 800; margin: 0 0 4px; letter-spacing: 0; }
.section p { margin: 0; font-size: 16px; }

.links { list-style: none; padding: 0; margin: 24px 0 0; }
.links li { border-bottom: 1px solid var(--line); }
.links a {
  display: block;
  padding: 12px 0;
  color: var(--accent);
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
}
.links a:hover { color: var(--ink); }

.updated { color: var(--ink2); font-size: 14px; margin-top: 16px; }

footer {
  border-top: 1px solid var(--line);
  margin-top: 48px;
  padding: 24px 0 40px;
  color: var(--ink2);
  font-size: 14px;
}
footer a { color: var(--accent); }

/* Links in running text earn an underline; navigation and buttons do not. */
main p a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
main p a:hover { text-decoration-thickness: 2px; }

/* Keyboard focus has to be visible, and the default ring disappears on the
   orange button. One explicit ring everywhere instead. */
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero { padding: 32px 0 24px; }
  .hero h1 { font-size: 29px; letter-spacing: -0.5px; }
  .hero p { font-size: 17px; }
  .page h1 { font-size: 26px; margin-top: 32px; }
  h2 { font-size: 19px; margin-top: 24px; }
  footer { margin-top: 40px; }
}
