/* Hallmark · tokens · studied-DNA (source: image — ui design 레퍼런스 11.19.28 backbone,
 * 11.19.08 Blue Mind tone, 서사표현 route + pins, 컬러팔레트 무드 폴더·종이 아카이브)
 * Every colour on the page is one of the five swatches below. Shadows, grain and
 * creases are a swatch at partial alpha — no other hue exists.
 */
:root {
  /* ── Palette (컬러팔레트/메인 컬러팔레트.jpeg — exact hex; the brief overrides OKLCH authoring) ── */
  --palette-dark-chocolate: #37261A; /* oklch(28.6% 0.033 56.2) */
  --palette-marlborough:    #8AA2BA; /* oklch(70.2% 0.044 248.5) */
  --palette-khadi:          #DED9D0; /* oklch(88.7% 0.013 82.4) */
  --palette-blackout:       #1E1E1E; /* oklch(23.5% 0 0) */
  --palette-bronco:         #AAA194; /* oklch(71.3% 0.021 77.3) */

  /* ── Colour roles ── */
  --color-surround: var(--palette-blackout);       /* past the phone column */
  --color-paper:    var(--palette-khadi);          /* page, cards, photo borders */
  --color-kraft:    var(--palette-bronco);         /* folder backs, dividers, quiet fills */
  --color-ink:      var(--palette-dark-chocolate); /* all type on paper; dark bands */
  --color-mark:     var(--palette-marlborough);    /* folders, the route, the 16th, buttons */
  --color-on-dark:  var(--palette-khadi);          /* type on chocolate bands */

  /* Translucency rule: a swatch at partial alpha, never a new colour (rgb() for iOS 15). */
  --color-shadow-hard: rgb(55 38 26 / 0.45);
  --color-shadow-soft: rgb(55 38 26 / 0.18);
  --color-hairline:    rgb(55 38 26 / 0.22);
  --color-control-line: rgb(55 38 26 / 0.55); /* ≥3:1 on khadi — input and choice borders */
  --color-control-line-kraft: rgb(55 38 26 / 0.8); /* ≈3.9:1 on bronco — the same borders on a kraft card */
  --color-ink-muted:   rgb(55 38 26 / 0.72);   /* ≈4.9:1 on khadi — captions only */
  --color-paper-dim:   rgb(222 217 208 / 0.72); /* secondary type on chocolate */
  --color-scrim:       rgb(30 30 30 / 0.38);   /* blackout over photos, for legible type */
  --color-overlay:     rgb(30 30 30 / 0.96);   /* lightbox */
  --color-overlay-line: rgb(222 217 208 / 0.5);
  --color-tape:        rgb(170 161 148 / 0.86); /* kraft tape, see-through */
  --color-mark-halo:   rgb(138 162 186 / 0.45); /* the destination pin's ring */
  --tint-ink:          rgb(55 38 26 / 0.07);   /* hover / invalid wash on paper */
  --tint-paper:        rgb(222 217 208 / 0.1); /* hover wash on dark */
  --shadow-on-dark:    rgb(30 30 30 / 0.75);   /* prints lying on the chocolate sheet */
  --glow-sky:          rgb(138 162 186 / 0.16); /* faint light in the Sri Lanka sky */
  --vignette:          rgb(30 30 30 / 0.35);   /* top of the opening */

  /* ── Type (2 + 1) ── */
  --font-display: "Pinyon Script", "Snell Roundhand", cursive;              /* the names only — same hand as the coming-soon card */
  --font-body:    "MaruBuri", "AppleMyungjo", "Noto Serif KR", serif;       /* every Korean line, numerals, Latin text */
  --font-body-strong: "MaruBuriSemiBold", "MaruBuri", "AppleMyungjo", serif;
  --font-label:   "Courier Prime", "Courier New", monospace;                /* outlier: folder tabs + stop tags only */

  /* Scale — 1.25, from a 17px body (guests include parents; nothing informational under 15px) */
  --text-label:   0.8125rem;  /* 13px  mono tags */
  --text-sm:      0.9375rem;  /* 15px  captions, secondary info */
  --text-base:    1.0625rem;  /* 17px  body + info */
  --text-story:   1.1875rem;  /* 19px  the route's lines */
  --text-md:      1.3125rem;  /* 21px  */
  --text-lg:      1.625rem;   /* 26px  section heads (Korean) */
  --text-xl:      2.0625rem;  /* 33px  */
  --text-display: clamp(3.25rem, 15vw, 4.25rem); /* script names */

  --leading-body: 1.75;   /* Korean serif reads airier */
  --leading-tight: 1.15;

  /* ── Space (4pt) ── */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 144px;
  --gutter: 24px;

  /* ── Stage: the phone column ── */
  --W: min(100vw, 430px);

  /* ── Paper ── */
  --paper-texture: url("assets/paper.png") 0 0 / 256px 256px;  /* tileable mottle + tooth, ink at alpha */
  --sheet-light: linear-gradient(180deg, rgb(222 217 208 / 0.14), transparent 34%); /* light falling on a sheet's top */
  --sheet-dusk:  linear-gradient(rgb(55 38 26 / 0.55), rgb(55 38 26 / 0.55));      /* marlborough, a shade deeper — khadi type on it ≥4.6:1 */
  --edge-light:  rgb(222 217 208 / 0.55); /* the 1px paper edge catching light */
  --radius-card: 2px;     /* prints and tickets have corners, not pills */
  --radius-sheet: 14px;   /* folder sheets */
  --radius-control: 999px;
  --rule: 1px solid var(--color-hairline);
  --shadow-paper: 0 1px 1px var(--color-shadow-soft), 0 14px 28px -12px var(--color-shadow-hard);
  --shadow-sheet: drop-shadow(0 -1px 0 var(--edge-light)) drop-shadow(0 -6px 12px var(--color-shadow-soft));

  /* ── Motion ── */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:     cubic-bezier(0.7, 0, 0.84, 0);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-micro: 120ms;
  --dur-short: 240ms;
  --dur-long:  480ms;
}
