/* Tokens of the voice door's screen: "seated across". One paper, one ink, one warm light.
   Everything that can be pressed is porcelain; the agent is the only thing made of light.
   Reference screen: landscape iPad 1180x820. Contrast figures are measured on paper #fbf7f0.

   Fonts: Pretendard (SIL Open Font License 1.1, fonts/Pretendard-LICENSE.txt) in two weights; a
   lighter or heavier weight is drawn with the nearer of the two. The agent's serif is the
   device's own (no serif font is shipped). */

@font-face { font-family: "Pretendard"; src: url("/app/fonts/Pretendard-Medium.woff2") format("woff2"); font-weight: 100 500; font-display: swap; }
@font-face { font-family: "Pretendard"; src: url("/app/fonts/Pretendard-SemiBold.woff2") format("woff2"); font-weight: 600 900; font-display: swap; }

:root {
  /* The web app is drawn light only (docs/design/interview-mode.md 8, 2026-11-12): a device set to
     dark gets this paper and its contrast as they are, form controls included. */
  color-scheme: light;
  /* paper and ink */
  --paper: #fbf7f0;
  --paper-2: #f6efe3;            /* the foot of the page, one step warmer */
  --ink: #1b1714;                /* 16.6:1 */
  --ink-2: #473f39;              /* 9.6:1. receded agent words, button names, notes */
  --muted: #6a6159;              /* 5.7:1. times, quiet lines. Never lighter */
  --hair: rgba(72, 52, 32, .12); /* hairlines */
  --ink-wash-1: rgba(60, 42, 26, .035);
  --ink-wash-2: rgba(60, 42, 26, .065);
  --ink-wash-3: rgba(60, 42, 26, .10);

  /* porcelain: every pressable surface */
  --porcelain: linear-gradient(180deg, #ffffff 0%, #fdfaf5 55%, #f8f2e8 100%);
  --porcelain-flat: #fffdf9;
  --sh-1: 0 0 0 1px rgba(92, 66, 40, .075), 0 1px 1px rgba(92, 66, 40, .05), 0 3px 6px -1px rgba(92, 66, 40, .07), 0 10px 20px -8px rgba(92, 66, 40, .12), inset 0 1px 0 #fff, inset 0 -2px 3px rgba(132, 100, 66, .07);
  --sh-0: 0 0 0 1px rgba(92, 66, 40, .055), 0 1px 1px rgba(92, 66, 40, .03), 0 3px 6px -1px rgba(92, 66, 40, .045), 0 10px 20px -8px rgba(92, 66, 40, .075), inset 0 1px 0 #fff, inset 0 -2px 3px rgba(132, 100, 66, .045);   /* a small pill: the same porcelain, lower */
  --sh-2: 0 0 0 1px rgba(92, 66, 40, .06), 0 1px 2px rgba(92, 66, 40, .05), 0 6px 12px -2px rgba(92, 66, 40, .06), 0 22px 44px -16px rgba(92, 66, 40, .16), inset 0 1px 0 #fff;
  --sh-3: 0 0 0 1px rgba(92, 66, 40, .06), 0 2px 4px rgba(92, 66, 40, .05), 0 14px 28px -8px rgba(92, 66, 40, .10), 0 40px 80px -28px rgba(92, 66, 40, .26), inset 0 1px 0 #fff;
  --sh-ink: 0 1px 1px rgba(40, 24, 10, .28), 0 6px 14px -3px rgba(40, 24, 10, .30), 0 18px 32px -14px rgba(40, 24, 10, .34), inset 0 1px 0 rgba(255, 255, 255, .20), inset 0 -3px 6px rgba(0, 0, 0, .30);
  --ink-surface: linear-gradient(180deg, #37302a 0%, #1f1a16 58%, #15110e 100%);

  /* the person's words: one hue with the light, two depths */
  --said: #ffefbe;               /* sent. ink 15.3:1 */
  --said-live: #ffe08a;          /* being taken down now, one step deeper. ink 13.2:1 */
  --said-ring: rgba(255, 196, 86, .42);
  --said-edge: #fbe7a8;          /* the rim of a photo the person sent */
  --letter: #fffdf9;

  /* the light (the agent) */
  --cream: #fff6dc;
  --lemon: #ffe9a8;
  --sun: #ffd15c;
  --amber: #f2a541;
  --apricot: #ffb87a;
  --coral: #f4905a;
  --sun-dot: #ee9a3c;
  --gold-surface: linear-gradient(180deg, #ffe08a 0%, #ffd15c 60%, #f7bf46 100%);
  --low-confidence: rgba(242, 165, 65, .55);
  --attention: #a84c22;          /* 6.4:1 */
  --forest: #2e463c;

  /* voices: serif for the agent, gothic for people and controls */
  --font-hodu: "Nanum Myeongjo", "AppleMyungjo", "Noto Serif KR", "Noto Serif CJK KR", "Batang", serif;
  --font-person: "Pretendard", "Apple SD Gothic Neo", sans-serif;

  /* four sizes */
  --t-hero: 52px;   --lh-hero: 1.26;
  --t-speech: 40px; --lh-speech: 1.36;
  --t-ui: 26px;     --lh-ui: 1.45;
  --t-meta: 22px;   --lh-meta: 1.4;
  --track-hero: -0.03em;
  --track-speech: -0.022em;
  --track-ui: -0.012em;

  --s-1: 8px; --s-2: 16px; --s-3: 24px; --s-4: 32px; --s-5: 40px; --s-6: 48px; --s-7: 56px; --s-8: 64px;
  --edge: 56px;

  /* radii: pill, surface, the corner that points at the speaker, photo mat */
  --r-pill: 999px;
  --r-surface: 28px;
  --r-tail: 10px;
  --r-card: 30px;
  --r-photo: 20px;

  --primary-d: 92px;
  --minor-d: 92px;
  --dk-slot: 148px;             /* one circle and the name under it (view.js SLOT): 40 px or more between the three names */
  --choice-h: 64px;
  --confirm-h: 76px;            /* three button heights: 48 small pill · 64 regular · 76 large (phone 48 · 56 · 64) */
  --safety-h: 64px;
  --more-h: 48px;

  /* motion: five values */
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-move: cubic-bezier(.32, .72, 0, 1);
  --ease-exit: cubic-bezier(.4, 0, 1, 1);
  --spring: cubic-bezier(.22, 1, .36, 1); --spring-t: 460ms;
  --t-press: 110ms; --t-ui-move: 220ms; --t-arrive: 440ms; --t-place: 620ms;
  --breath: 5200ms;
  --slow-notice-ms: 8000;
}
@supports (animation-timing-function: linear(0, 1)) {
  :root {
    /* response .55 s, damping .825: 1% overshoot */
    --spring: linear(0, .064, .205, .37, .528, .664, .773, .856, .915, .956, .982, .997, 1.006, 1.009, 1.01, 1.009, 1.008, 1.006, 1.005, 1.003, 1);
    --spring-t: 700ms;
  }
}
