/* nine27 — shared design tokens. Light paper canvas, ink contrast, bronze/gold foil.
   Used by the landing site AND the member app so they read as one brand. */
:root {
  --paper: #F6F3EC;        /* canvas: warm bone */
  --paper-2: #EEE9DE;      /* recessed paper */
  --sheet: #FFFDF8;        /* card stock */
  --sheet-edge: #E7E0D2;   /* the sheet "behind" a card */
  --line: #E3DCCD;
  --line-strong: #D3C9B5;

  --ink: #16191D;          /* the sparse dark contrast */
  --ink-2: #2B3036;
  --text: #22262B;
  --muted: #72706A;
  --faint: #A29E94;

  --bronze: #9C7439;
  --bronze-deep: #6F5226;
  --gold: #C4A05A;
  --gold-soft: #E9DCBC;
  --gold-wash: #F5EEDC;
  --foil: linear-gradient(135deg, #D9BE82 0%, #B08A4A 45%, #C9A660 70%, #8E6A33 100%);

  /* day-type semantics (Health banner) */
  --meat: #8C3B2E;  --meat-wash: #F4E6E1;
  --vegan: #4E6B3A; --vegan-wash: #E8EEDF;
  --fast: #2F3C4E;  --fast-wash: #E3E7EC;

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Newsreader", Georgia, "Times New Roman", serif;

  --r-sm: 4px;
  --r: 6px;
  --r-lg: 10px;

  /* papercraft: crisp, low shadows — a stacked sheet, not a floating card */
  --shadow-sheet: 0 1px 0 rgba(22,25,29,.04), 0 1px 2px rgba(22,25,29,.05);
  --shadow-lift: 0 1px 0 rgba(22,25,29,.04), 0 8px 24px -12px rgba(22,25,29,.18);

  --ease: cubic-bezier(.16, 1, .3, 1);

  --grain: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .3 0 0 0 0 .22 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: inherit; }

/* paper grain overlay — fixed, never on the scroll container */
.grain::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 1000;
  background-image: var(--grain); opacity: .09; mix-blend-mode: multiply;
}

/* the wordmark: sharp, wide, spaced */
.wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 125%;
  font-variation-settings: "wdth" 125;
  letter-spacing: .22em;
  text-transform: uppercase;
  line-height: 1;
  padding-left: .22em; /* optically re-center tracked caps */
}

.label {
  font-family: var(--font-display);
  font-size: 11px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  font-stretch: 112%; font-variation-settings: "wdth" 112;
}

.foil-rule { height: 1px; background: var(--foil); border: 0; opacity: .8; }

/* buttons: sharp corners, ink primary, bronze outline secondary */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 46px; padding: 0 22px;
  border-radius: var(--r-sm); border: 1px solid transparent;
  font-family: var(--font-display); font-size: 13px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  font-stretch: 112%; font-variation-settings: "wdth" 112;
  text-decoration: none; cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .15s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn-ink { background: var(--ink); color: #F6F1E4; }
.btn-ink:hover { background: var(--ink-2); }
.btn-ink .gild { color: var(--gold); }
.btn-line { border-color: var(--line-strong); background: var(--sheet); color: var(--ink); }
.btn-line:hover { border-color: var(--bronze); }

:focus-visible { outline: 2px solid var(--bronze); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
.btn svg { width: 16px; height: 16px; flex: none; }
