/* Layout for the public sites. Plain, compact, readable.
   Palette is generated from packages/ui/src/tokens.css by build.mjs — the one
   design system (CLAUDE.md rule 10). Do not hand-write colors here. */
:root {
  --canvas: #f7f7f6;
  --surface: #ffffff;
  --surface-muted: #f1f1ef;
  --surface-sunken: #e7e6e1;
  --line: #d9d9d4;
  --ink: #1b1b19;
  --ink-muted: #5c5c56;
  --ink-inverse: #ffffff;
  --brand: #2f6f4e;
  --brand-hover: #255a3f;
  --danger: #a32b2b;
  --warning: #8a5a00;
  --success: #1f6b3a;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #16171a;
    --surface: #1e2024;
    --surface-muted: #262930;
    --surface-sunken: #101114;
    --line: #383c44;
    --ink: #f2f3f5;
    --ink-muted: #a7acb6;
    --ink-inverse: #16171a;
    --brand: #6ab98c;
    --brand-hover: #84c9a1;
    --danger: #f08a86;
    --warning: #e0b155;
    --success: #6ab98c;
  }
}

* {
  box-sizing: border-box;
}
body {
  /* Footer at the bottom of the window when the page is short, and below the
     content when it is not — main takes the slack. */
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font:
    16px / 1.5 ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    sans-serif;
}
header,
main,
footer {
  /* `width: 100%` matters: body is a flex column for the sticky footer, and a
     flex item with auto side margins sizes to its content instead of filling
     the line — which quietly made the header narrower than the text under it. */
  width: 100%;
  max-width: 44rem;
  margin-inline: auto;
  padding: 0 1rem;
}
/* Brand on its own line, links beneath, when they no longer fit side by side —
   rather than the shop's name breaking in half. */
header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 1rem;
  padding-block: 0.75rem;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  flex-direction: column;
  min-width: 0;
  text-decoration: none;
  color: var(--ink);
}
.brand-logo {
  display: block;
  height: 2.75rem;
  width: auto;
}
.brand-row {
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
}
.brand-mark {
  height: 2.75rem;
  width: auto;
}
.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.brand-name {
  font-weight: 600;
  font-size: 1.05rem;
  white-space: nowrap;
}
.brand-tagline {
  font-size: 0.72rem;
  color: var(--ink-muted);
}
header nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-left: auto;
}
a {
  color: var(--brand);
}
nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem; /* 44px, rule 12 */
  padding: 0 0.4rem;
  margin-left: 0.35rem;
  font-size: 0.85rem;
  color: var(--ink-muted);
}
.tagline {
  margin: 1.5rem 0 0;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
}
h1 {
  font-size: 1.55rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: color-mix(in srgb, var(--ink) 82%, transparent);
  margin: 1.25rem 0 0.5rem;
}
.tagline + h1 {
  margin-top: 0.15rem;
}
/* Headings sit a step back from the body text: lighter weight, softer color.
   The text below them is what people read. */
h2 {
  /* Clearly larger than body text — a soft heading still has to outrank the
     paragraph under it. */
  font-size: 1.15rem;
  font-weight: 500;
  color: color-mix(in srgb, var(--ink) 78%, transparent);
  margin: 1.25rem 0 0.25rem;
}
p {
  margin: 0.4rem 0;
}
.lede {
  color: var(--ink-muted);
}
.grid {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}
@media (min-width: 40rem) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.grid > article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
}
.grid img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 0.375rem;
}
.grid > article > div {
  padding: 0.6rem 0.25rem 0.15rem;
}
.grid h2 {
  font-size: 1.05rem;
  margin: 0 0 0.15rem;
  font-weight: 500;
  color: color-mix(in srgb, var(--ink) 72%, transparent);
}
.grid p {
  font-size: 0.9rem;
  color: var(--ink-muted);
}
section {
  margin-top: 1rem;
}
main {
  flex: 1 0 auto;
}
/* Stacked and centered rather than one crowded line: each thing on its own row,
   ending with the legal line. */
footer {
  flex-shrink: 0;
  margin: 3rem auto 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  text-align: center;
  color: var(--ink-muted);
}
footer p {
  margin: 0.4rem 0;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0 0.75rem;
  margin-top: 0.75rem;
}
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem; /* 44px, rule 13 */
  padding: 0 0.25rem;
}
.footer-links span {
  opacity: 0.4;
}
.footer-legal {
  margin-top: 0.5rem;
  letter-spacing: 0.04em;
  opacity: 0.75;
}

/* Pieces used across the sites: the opt-in mock, hero, contact block, menu
   list and sign-up form. Layout and typography live in base.css. */

/* The reviewer-facing opt-in reference page: a still of the checkout form. */
.mock {
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--surface);
  padding: 0.75rem;
  max-width: 24rem;
}
.mock label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  color: var(--ink-muted);
}
.mock input {
  display: block;
  width: 100%;
  min-height: 2.75rem;
  margin-top: 0.15rem;
  padding: 0 0.6rem;
  border: 1px solid var(--line);
  border-radius: 0.375rem;
  background: var(--canvas);
  color: var(--ink);
  font-size: 0.95rem;
}
.mock .consent {
  margin: -0.25rem 0 0.6rem;
  font-size: 0.78rem;
  color: var(--ink-muted);
}
.mock button {
  width: 100%;
  min-height: 2.75rem;
  border: 0;
  border-radius: 0.375rem;
  background: var(--brand);
  color: var(--ink-inverse);
  font-size: 0.95rem;
}
.mock .note {
  margin: 0.5rem 0 0;
  font-size: 0.72rem;
  color: var(--ink-muted);
}
.mock .check {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
  font-size: 0.78rem;
  line-height: 1.45;
}
.mock .check input {
  width: 1rem;
  min-height: 1rem;
  margin-top: 0.15rem;
  flex: 0 0 auto;
}

/* A single piece of artwork carrying a page: never wider than it is sharp, and
   never taller than a phone screen it has to share with the text below. */
.hero {
  display: block;
  width: 100%;
  max-width: 20rem;
  height: auto;
  margin: 1rem auto 0;
  border-radius: 0.5rem;
}
.contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 1rem;
  text-align: center;
}
.contact p {
  margin: 0;
}
.contact-prompt {
  color: var(--ink-muted);
}
.contact-or {
  color: var(--ink-muted);
  font-size: 0.85rem;
}
.contact a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem; /* 44px, rule 13 */
  font-weight: 500;
}
/* Read by screen readers and search engines, not shown. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* The one thing most visitors came for, so it looks like a thing to press. */
.menu-link {
  margin-top: 1rem;
  text-align: center;
}
/* A caption under a figure: quieter and smaller than the text around it. */
.note {
  margin: 0.25rem 0 0;
  font-size: 0.8rem;
  color: var(--ink-muted);
  text-align: center;
}

/* A screenshot shown as evidence: legible, but never wider than the text it
   sits with, and never wider than the phone reading it. */
.screenshot {
  display: block;
  width: 100%;
  max-width: 28rem;
  height: auto;
  margin: 0.5rem auto;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
}
.menu-link a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.75rem; /* 44px, rule 13 */
  padding: 0 1.25rem;
  border-radius: 0.375rem;
  background: var(--brand);
  color: var(--ink-inverse);
  font-weight: 500;
  text-decoration: none;
}
.menu-link span {
  font-size: 0.8rem;
  opacity: 0.8;
}

.menu-heading {
  margin-top: 2rem;
  text-align: center;
}
/* A whole menu page: readable on a phone without pinching, and never wider
   than the text it sits with. */
.menu-image {
  display: block;
  width: 100%;
  max-width: 34rem;
  height: auto;
  margin: 0.5rem auto 0;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
}
.menu-link a {
  font-size: 0.85rem;
  background: none;
  color: var(--brand);
  font-weight: 400;
  text-decoration: underline;
}

.menu-note {
  text-align: center;
}

/* A menu read as text, not as a picture of text. */
.menu-list section {
  margin-top: 1.25rem;
}
.menu-list h2 {
  margin-bottom: 0.25rem;
  font-size: 1rem;
}
.menu-list ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.menu-list li {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  padding: 0.3rem 0;
  border-bottom: 1px dotted var(--line);
}
.menu-list li span:last-child {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
  color: var(--ink-muted);
}

/* Signing up for texts, without buying anything. */
.signup {
  display: grid;
  gap: 1rem;
  max-width: 28rem;
  margin-top: 1.25rem;
}
.signup-field span {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.85rem;
  font-weight: 500;
}
.signup-field input {
  width: 100%;
  min-height: 2.75rem; /* 44px, rule 13 */
  padding: 0 0.6rem;
  border: 1px solid var(--line);
  border-radius: 0.375rem;
  background: var(--surface);
  color: var(--ink);
  font-size: 1rem; /* 16px: anything less makes phones zoom on focus */
}
/* Never pre-ticked, and the whole row is the target. */
.signup-consent {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  padding: 0.5rem 0;
  font-size: 0.9rem;
}
.signup-consent input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.15rem;
  flex: 0 0 auto;
  accent-color: var(--brand);
}
.signup-terms {
  font-size: 0.78rem;
  color: var(--ink-muted);
}
.signup button {
  min-height: 2.75rem;
  padding: 0 1.25rem;
  border: 0;
  border-radius: 0.375rem;
  background: var(--brand);
  color: var(--ink-inverse);
  font-size: 0.95rem;
  font-weight: 500;
  justify-self: start;
}
.signup-note:empty {
  display: none;
}
.signup-note {
  margin: 0;
  font-size: 0.85rem;
  color: var(--danger);
}


/* Wunshop's own look. Inherits the platform palette from the design tokens;
   override any of them here to change only this site. */

