/* Mameki · Kissaten — Design tokens for the marketing site.
   Mirrors src/constants/colors.ts and src/constants/typography.ts in the app:
   aged paper, lacquer ink, ONE vermilion accent.

   Rules carried over from the app (see the comments in colors.ts):
   - --accent (#C2452D) is the single brand hue. As TEXT it is for 18px and up
     only (4.1:1 on paper). Smaller accent-coloured text uses --accent-ink.
   - --rule fails contrast for text; hairlines and decorative glyphs only.
   - Shippori Mincho has no italic. Never rely on italic for emphasis.
   - Space Mono is always uppercase and tracked when used small.
   - Caveat is annotation only: a person's own words, never UI or headings.

   Fonts are loaded with a <link> in src/layouts/Base.astro. */

:root {
  /* ---- Paper ---- */
  --paper:        #F8F6F1;   /* BG — page ground */
  --paper-alt:    #FBF9F4;   /* BG_ALT — cards, passport pages */
  --paper-2:      #EFEBE2;   /* BG_DARK — recessed bands, stripes */
  --paper-inset:  #F2ECDF;   /* INSET — form fills, quiet panels */
  --paper-edge:   #E3DED2;   /* PAPER_EDGE — hairlines, always 1px */
  --border-2:     #C9BCA4;   /* BORDER2 — control outlines */
  --ruled-line:   #E8DFCC;
  --rule:         #9C8B77;   /* non-text only */
  --kraft:        #C9A876;
  --kraft-dark:   #8E6D3D;

  /* ---- Ink ---- */
  --ink:          #241C16;   /* TEXT_PRIMARY (14:1) */
  --ink-muted:    #6B5B4B;   /* TEXT_MUTED (5.5:1) */
  --ink-pale:     #71604E;   /* TEXT_PALE (5.0:1) — captions */
  --espresso:     #4E3626;
  --lacquer:      #241C16;   /* dark bands */
  --on-dark:      #F1E8D8;   /* dark-theme TEXT_PRIMARY */
  --on-dark-muted:#C7B8A4;   /* dark-theme TEXT_MUTED */
  --accent-on-dark:#E2603F;  /* dark-theme ACCENT, lifted for contrast */

  /* ---- The accent ---- */
  --accent:       #C2452D;   /* vermilion — 18px+ only as text */
  --accent-ink:   #A83A24;   /* accent-coloured text below 18px (5.2:1) */
  --accent-hover: #9B3524;
  --accent-soft:  rgba(194,69,45,0.13);
  --on-accent:    #FAF6EC;   /* type on vermilion — never pure white */

  /* ---- Semantic ---- */
  --success:      #2F4739;   /* pine */
  --warning:      #79591F;
  --error:        #8B2E22;

  /* ---- Stamp inks (ephemera only) ---- */
  --ink-oxide:    #8E3B26;
  --ink-pine:     #2F4739;
  --ink-slate:    #2D4257;
  --ink-sepia:    #6B5230;
  --cream-sticker:#F5E9CE;

  /* ---- Brass foil ---- */
  --brass-1: #8E6D3D;
  --brass-2: #D4B57A;
  --brass-3: #B8915A;

  /* ---- Type ---- */
  --font-display:    'Shippori Mincho', 'Hiragino Mincho ProN', 'Yu Mincho', Georgia, serif;
  --font-body:       'Zen Kaku Gothic New', 'Hiragino Sans', -apple-system, system-ui, sans-serif;
  --font-mono:       'Space Mono', ui-monospace, Menlo, monospace;
  --font-annotation: 'Caveat', cursive;

  /* ---- Aliases still used by the legal pages' scoped styles ---- */
  --text-muted: var(--ink-pale);
  --tag-text:   var(--ink-muted);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-font-smoothing: antialiased; }
html, body { background: var(--paper); color: var(--ink); font-family: var(--font-body); min-height: 100vh; }

/* Shippori Mincho ships no italic — never let the browser fake one. */
em, i { font-style: normal; }

/* Brass foil */
.brass-fill {
  background: linear-gradient(135deg, #6B5028 0%, #B8915A 22%, #E6CD93 42%, #B8915A 64%, #8E6D3D 88%, #5C4220 100%);
  color: #2A1E0E;
}
.weather { filter: url(#weather); }
.sticker-shadow { filter: drop-shadow(0 2px 3px rgba(0,0,0,0.18)) drop-shadow(0 1px 1px rgba(0,0,0,0.12)); }
