/* Almost Dinner — design tokens.
 *
 * The palette and type scale are modelled on the real meal-kit house style so
 * the parody reads as a sibling product rather than a joke about one. Colours
 * were sampled from the live stylesheets; the commercial faces (Volte,
 * Recoleta) are substituted with the closest free equivalents.
 *
 * Deliberately NOT copied: the logo, the wordmark, and the company name. */

:root {
  /* Grounds */
  --paper: #ffffff;
  --cream: #f5f2ea;      /* their section ground */
  --cream-2: #ecddb3;
  --card: #ffffff;
  --blue-wash: #f4f8fe;
  --blue-tint: #d2ddfc;

  /* Ink — warm, never pure black for body copy */
  --ink: #1f1a13;
  --ink-2: #5f5b54;
  --ink-3: #75706a;
  --ink-4: #a9a6a2;
  --rule: #e5e4e3;
  --rule-2: #cdc3b8;

  /* Brand */
  --blue: #1850dc;
  --navy: #141751;
  --red: #d5583b;
  --green: #369b3d;
  --amber: #ecb145;
  --amber-soft: #f9e1ab;
  --red-soft: #f9e6e2;

  /* Young Serif stands in for Recoleta: chunky, soft-cornered, high x-height.
     Figtree stands in for Volte: geometric with humanist warmth. */
  --serif: 'Young Serif', 'Recoleta', Georgia, serif;
  --sans: 'Figtree', 'Volte', -apple-system, BlinkMacSystemFont,
          'Segoe UI', Helvetica, Arial, sans-serif;
  --mono: 'SFMono-Regular', ui-monospace, Menlo, Consolas, monospace;

  --gutter: clamp(1.25rem, 4vw, 3rem);
  --measure: 72rem;
  --r: 4px;      /* their workhorse radius */
  --r-pill: 999px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--serif);
  /* Young Serif ships one weight; asking for 500+ would synthesise a bold. */
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 7vw, 4.9rem); }
h2 { font-size: clamp(1.85rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }

p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--blue); }

.eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 1rem;
}

.wrap { max-width: var(--measure); margin-inline: auto; padding-inline: var(--gutter); }

.lede { font-size: clamp(1.05rem, 2vw, 1.28rem); color: var(--ink-2); max-width: 40ch; }

hr.rule { border: 0; border-top: 1px solid var(--rule); margin: 0; }

/* Buttons — solid blue pill, the single most recognisable element of the
   house style. */
.btn {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 1rem 2.1rem;
  border: 2px solid var(--blue);
  border-radius: var(--r-pill);
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.12s ease;
}
.btn:hover:not(:disabled) { background: var(--navy); border-color: var(--navy); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { background: var(--rule); border-color: var(--rule); color: var(--ink-4); cursor: not-allowed; }

.btn--ghost { background: transparent; color: var(--blue); }
.btn--ghost:hover { background: var(--blue-wash); border-color: var(--blue); color: var(--blue); }

:where(button, input, a, [tabindex]):focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
