/* GravyMail: the same app as LuciMail in Gravy's look (the live gravyauto.com): cream page, white paper, deep brown ink, gravy
   gold, Space Grotesk headlines, the Manrope wordmark, Inter for everything else. Loaded only on a GravyMail workspace's /app
   (appshell.py), after lucimail.css: it changes the variables and a few rules, never the layout. Gold #c9832f is only ever a
   fill or a line; text in gold is #8a5417 (--accent), which passes WCAG AA on cream and white. The fonts are self-hosted (the
   CSP allows fonts from this site only): static/fonts/gravy/, SIL Open Font License, latin subset from Google Fonts. */
@font-face { font-family: "Inter"; src: url("/static/fonts/gravy/Inter-latin.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/static/fonts/gravy/Manrope-latin.woff2") format("woff2"); font-weight: 700 800; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("/static/fonts/gravy/SpaceGrotesk-latin.woff2") format("woff2"); font-weight: 500 700; font-display: swap; }
:root {
  --page: #f5f1ea; --paper: #ffffff; --cream: #faf7f2; --cream-2: #f1ebe1; --hover: #f6f0e6;
  --ink: #241812; --ink-2: #4a3a2e; --taupe: #6d6155; --line: #e7ded0; --line-2: #d9ccb8;
  --accent: #8a5417; --accent-dark: #6e4211; --accent-soft: #f6ead9; --accent-edge: #e3bd8e;
  --gold: #c9832f; --deep: #241812; --deep-2: #3a2619;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Space Grotesk", "Inter", -apple-system, sans-serif;
  --mono: "Space Grotesk", "Inter", -apple-system, sans-serif;
  --shadow-1: 0 1px 2px rgba(36, 24, 18, .06);
  --shadow-2: 0 1px 2px rgba(36, 24, 18, .05), 0 6px 16px rgba(36, 24, 18, .08);
  --shadow-3: 0 2px 4px rgba(36, 24, 18, .06), 0 14px 32px rgba(36, 24, 18, .12);
  --shadow-pop: 0 16px 40px rgba(36, 24, 18, .18), 0 2px 6px rgba(36, 24, 18, .08);
}
h1, h2, h3, .ptitle, .herotitle { letter-spacing: -.02em; }

/* the one slim top bar: the mark at 44x34, then "GravyMail" in Manrope 800 */
.topbar { background: var(--page); border-bottom-color: var(--line); }
.brand.gmbrand { gap: 10px; }
.brand.gmbrand img { width: 44px; height: 34px; }
.gmword { font: 800 21px/1 "Manrope", var(--sans); letter-spacing: -.02em; color: var(--ink); }
.menubtn { background: var(--paper); }
.menubtn:hover, .menubtn[aria-expanded="true"] { background: var(--cream); }
.avatar { background: var(--deep); color: #f4efe6; }
@media (max-width: 420px) { .gmword { display: none; } }

/* buttons: deep brown like gravyauto.com, cream text; gold only as a thin edge */
.btn.primary { background: var(--deep); border-color: var(--deep); color: #f4efe6; box-shadow: 0 1px 2px rgba(36, 24, 18, .25); }
.btn.primary:hover { background: #12100c; border-color: #12100c; color: #f4efe6; }
.btn.primary.waiting[disabled] { background: var(--accent-soft); border-color: var(--accent-edge); color: var(--accent-dark); }
.btn:hover { border-color: var(--accent-edge); }
.kicker, .psub .nextk, .menuk { color: var(--accent); }
.menuk { color: var(--taupe); }
:focus-visible { outline-color: var(--gold); }

/* no assistant column on GravyMail: the work fills the page (the page itself still never scrolls) */
html.gm .split { grid-template-columns: minmax(0, 1fr) !important; }
html.gm .split > .chatcol, html.gm .split > .splitbar, html.gm .rail, html.gm .splitswitch { display: none !important; }
html.gm .split > .workcol { grid-column: 1 !important; padding-left: 4px !important; }
html.gm .workcol { max-width: 1240px; width: 100%; margin: 0 auto; }
@media (max-width: 900px) { html.gm.pane-chat .workcol { display: flex; } }

/* the sign-in page on GravyMail's site (auth.page) */
body.signpage.gm .signcard { border-color: var(--line); }
body.signpage.gm .signh em { color: var(--accent); }
body.signpage.gm .gmart { display: flex; align-items: center; justify-content: center; }
body.signpage.gm .gmart img { position: static; width: min(300px, 70%); height: auto; border-radius: 0; box-shadow: none; transform: none; }
@media (max-width: 900px) { body.signpage.gm .gmart { display: none; } }
/* callouts read in Gravy's browns, not LuciMail's blue */
.callout { color: var(--ink-2); }
.callout > svg.i { color: var(--accent); }
.xb-tip { color: var(--ink-2); }

/* Brand, Card style: a small drawing of each style (LuciMail's samples are business pieces) */
.gmstyle { display: flex; flex-direction: column; gap: 6px; justify-content: center; aspect-ratio: 3 / 2; width: 100%; border-radius: 6px;
  padding: 14px; box-sizing: border-box; border: 1px solid var(--line); }
.gmstyle i { display: block; height: 8px; border-radius: 4px; }
.gmstyle i:nth-child(1) { width: 40%; } .gmstyle i:nth-child(2) { width: 80%; height: 14px; } .gmstyle i:nth-child(3) { width: 60%; }
.gmstyle.gm-midnight { background: #1d1a17; } .gm-midnight i { background: #c9832f; } .gm-midnight i:nth-child(2) { background: #f4efe6; }
.gmstyle.gm-paper { background: #fff; } .gm-paper i { background: #d9ccb8; } .gm-paper i:nth-child(2) { background: #241812; }
.gmstyle.gm-bold { background: #c9832f; border-color: #c9832f; } .gm-bold i { background: #f6ead9; } .gm-bold i:nth-child(2) { background: #241812; }
