/* GabChai's tokens: the only place a raw color, size or radius lives (docs/plans/style-guide.md).
   The look is Paper (spec section 17). Named by role, never by hue. */
:root {
  /* surfaces */
  --surface: #F7F3EC;        /* the page: warm paper */
  --mail-width: 520px;       /* a letter GabChai sends: its body's width (send-invitations, mail templates) */
  --surface-bar: #FBF8F3;    /* the top bar, drawers, sheet heads */
  --surface-card: #fff;
  --surface-soft: #EFE9DF;   /* hover, quiet fills */
  --surface-cream: #FBF6EA;  /* the entrance sign */
  --surface-input: #fffdf8;  /* where she writes */
  --scrim: #1c1410b3;

  /* lines */
  --line: #E6DFD3;           /* the hairline edge */
  --line-strong: #cfc3aa;    /* around controls */

  /* text */
  --text: #1C1A17;
  --text-muted: #6B645A;
  --text-hover: #33302a;     /* the ink profile pill, hovered */
  --on-action: #fff;         /* text on teal, red or ink */

  /* action: the current page and main buttons */
  --action: #0E5C55;
  --action-hover: #0b4a44;
  --action-soft: #E6F1EF;
  --disabled: #cfc6b4;

  /* counts: red. The badge fill, and a darker red for count text on paper (4.33:1 fails AA at #C44B27) */
  --count: #C44B27;
  --count-ink: #B3441F;
  --count-soft: #F8D4C8;     /* a choice against (she rejects this), and an error notice */
  --stop-ink: #923615;       /* red text on count-soft, a not-started chip: count-ink is 4.05:1 there, short of AA */

  /* the keyboard focus ring: butter, with a thin ink edge inside it so it reads on paper (3:1; Moti chose it, 2026-09-27) */
  --focus: #F3C14B;
  --focus-edge: var(--text);

  /* states */
  --good: #1F7A5C;
  --good-soft: #D5EFE4;
  --needs: #B07908;          /* borders and bars only: 3.18:1 on needs-soft, too light for text */
  --needs-ink: #7a5405;      /* needs-work text */
  --needs-soft: #FBEBC4;
  --quiet-soft: #EFE2C6;     /* sand */

  /* link blue: the congregation's part, words she chants, Talk */
  --link: #2F5D8C;
  --link-soft: #EAF1F8;
  --link-edge: #c9d7e6;

  --gold: #d8b35a;           /* the entrance sign's edge */
  /* the entrance: a night frame around the places' windows (spec section 1) */
  --entry-frame: radial-gradient(120% 90% at 50% 0%, #2a2a3a 0%, #121219 55%, #0b0b10 100%);
  --entry-ink: #f3efe6; --entry-ink-soft: #f3efe6c7; --entry-line: #ffffff38; --entry-glass: #ffffff0f;
  --window-veil: linear-gradient(to bottom, #08080cc7 0%, #08080c40 26%, #0000 42%, #0000 68%, #08080cb3 100%);
  --shadow-window: 0 30px 60px -20px #000c, 0 0 0 1px #ffffff14;
  --r-window: 22px; --window-ink-shadow: 0 1px 8px #000a;
  --greeting-black: #000;    /* the greeting videos' own black, so they have no edge */
  --greeting-melt: radial-gradient(closest-side, #000 55%, #0000);   /* the video's edge melting away as he settles in */

  /* the three pens she marks her portion with (Read it): the pen, and the mark it leaves */
  --pen-agree: #dff3e8; --mark-agree: #cdebd9;
  --pen-hate: #fbdcd2;  --mark-hate: #f8cbbd;
  --pen-huh: #fdf0c8;   --mark-huh: #fbe6a6;
  --pen-edge: #0002;

  /* the room behind the entrance and the sanctuary */
  --room-day: #2a1f17;
  --room-night: #120d22;
  --night: #2a2462;          /* the night switch, on */
  --night-edge: #6a5fb0;
  --room: var(--room-day);
  --room-veil: linear-gradient(#0000, #0006 70%);             /* over the blurred room, so the sign reads */
  --names-veil: linear-gradient(#0000, #000b 45%);           /* under the doors' names along the room's picture */
  --room-veil-night: linear-gradient(#0b081a55, #0b081acc);
  --shadow-sign: 0 0 0 6px #fffbf31f, 0 24px 60px #0006;     /* the entrance sign, hanging in the room */
  --shadow-gc: 0 8px 14px #0007;                             /* GabChai standing in the room */
  --shadow-room: 0 10px 30px #0006;                          /* a card over the dark room */
  /* the sanctuary's doors: a thin, quiet underline under each (Moti, 2026-09-30: "more narrow and less
     conspicuous"), the butter glow when one is chosen, and its name tag */
  --door-line: #fff6d880; --door-line-edge: #00000026;
  --door-glow: #f3c14b1f;
  --door-tag: #1f4a3aee;

  /* an invitation's four looks (docs/plans/invitations.html): the card's paper, its ink, its edge and its art */
  --inv-paper: #fffaf0; --inv-paper-ink: #3a2f1c; --inv-paper-edge: #d8b35a;
  --inv-glass: #fbf8f3; --inv-glass-ink: #1f2a44;
  --inv-glass-art: linear-gradient(90deg, #8c2f39 0 16%, #d8a13a 16% 32%, #2f5d8c 32% 50%, #1f7a5c 50% 66%, #6a4c93 66% 82%, #c4602b 82%);
  --inv-scroll: #f3e6c4; --inv-scroll-ink: #3b2a12; --inv-scroll-edge: #b8955a;
  --inv-roller: linear-gradient(90deg, #5a3a1c, #9a6a3a 40%, #5a3a1c);
  --inv-sea: linear-gradient(180deg, #e9f3f6 0%, #fdf8ee 70%, #f1e2c2 100%); --inv-sea-ink: #18414d; --inv-sea-edge: #9cc3cf;
  --shadow-card: 0 10px 30px -12px #3a2f1c55;
  /* the colors a family can pick for the card's words */
  --inv-ink-navy: #1f2a44; --inv-ink-forest: #1f4a3a; --inv-ink-wine: #6e1f2e; --inv-ink-gold: #7a5a16; --inv-ink-plum: #4a2a5e;
  --inv-r: 6px; --inv-r-scroll: 2px;   /* a card's paper corner, sharper than the app's own */
  --inv-name: 40px;                     /* her name on the card */

  /* type: Inter for text, Fraunces for titles, names and big numbers */
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
  --serif: Fraunces, Georgia, serif;
  --t-xs: 12px;      /* kickers, chips, small caps labels */
  --t-sm: 13.5px;    /* secondary lines, hints */
  --t-md: 15px;      /* buttons, menu rows, labels */
  --t-base: 16px;    /* body, inputs (16 keeps iOS from zooming) */
  --t-lg: 18px;      /* card titles, the bar's title */
  --t-xl: 22px;      /* sheet titles, big prompts */
  --t-2xl: 28px;     /* page titles */
  --t-display: 34px; /* the big count, the sign */
  --lh: 1.5;
  --lh-tight: 1.2;
  --caps: .07em;     /* letter spacing for uppercase labels */

  /* Hebrew: print, and the Torah scroll in the Stam faces; marks need room above and below */
  --hebrew: 'Noto Serif Hebrew', 'SBL Hebrew', serif;
  --hebrew-stam: 'StamAshkenaz', 'Noto Serif Hebrew', serif;
  --hebrew-sefarad: 'StamSefarad', 'Noto Serif Hebrew', serif;
  --lh-hebrew: 1.85;
  --reading: Georgia, 'Iowan Old Style', serif;  /* a long text she reads and marks */
  --he-s: 22px;
  --he-m: 28px;
  --he-l: 36px;

  /* space, on a 4px scale */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px; --s6: 24px; --s8: 32px; --s12: 48px;

  /* corners */
  --r-sm: 8px;       /* small inner things: a word, a date */
  --r-control: 12px; /* buttons, fields, rows */
  --r-card: 16px;    /* cards, sheets, menus */
  --r-pill: 999px;   /* chips, pills, and anything round */

  /* shadows */
  --shadow-lift: 0 6px 18px #0003;   /* a button that floats, a card lifted */
  --shadow-float: 0 14px 40px #0003; /* menus, popovers, sheets */
  --shadow-art: 0 1px 2px #0004;     /* under GabChai's picture */
  --shadow-key: 0 3px 0 #0003;       /* a key you press down, like the pens */
  --shadow-key-down: inset 0 2px 5px #0003;

  /* motion: two durations; every animation also honors prefers-reduced-motion */
  --quick: .15s;
  --slow: .3s;

  /* touch */
  --touch: 44px;
  --barH: 52px;
}

/* Night changes the room behind the entrance and the sanctuary, nothing else (spec section 17). */
.night { --room: var(--room-night) }
