/* Astro GPT theme: dark charcoal + orange, Outfit type, pill buttons.
   Loaded after the site's own CSS on every page; overrides its design tokens. */

@font-face { font-family: "Outfit"; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url("/theme/outfit-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url("/theme/outfit-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --font-manrope: "Outfit" !important;
  --font-jakarta: "Outfit" !important;
  --color-primary: #f27d3a;
  --color-primary-dark: #d9672a;
  --color-secondary: #ffb547;
  --color-secondary-light: #ffc977;
  --color-surface-accent: #fdeee4;
  --color-surface-accent-soft: #fff6f0;
  --text-color-primary: #c85a1f;
  --kgpt-footer-accent: #c85a1f;
  --chart-stroke: #f27d3a; --chart-highlight: #f27d3a; --chart-planet: #f27d3a;
  --gv-orange: #f27d3a; --gv-amber: #ffb547; --gv-ink: #111111; --gv-card: #1b1b1b; --gv-card-2: #222222;
  --gv-line: #ffffff14; --gv-text: #f5f5f5; --gv-muted: #9d9d9d;
  /* Light mode palette: warm off-white page, white cards, near-black text */
  --kgpt-page: #faf7f4;
  --kgpt-surface: #ffffff;
  --kgpt-subtle: #f4efea;
  --kgpt-divider: #ebe4dc;
  --kgpt-foreground: #161616;
  --kgpt-body: #474747;
  --kgpt-muted: #6b6b6b;
  --kgpt-faint: #9a9a9a;
  --kgpt-gradient-start: #ffb547;
  --kgpt-gradient-end: #f27d3a;
  --kgpt-footer: #f4efea;
  --kgpt-footer-foreground: #161616;
  --kgpt-footer-muted: #555555;
  --kgpt-footer-faint: #7a7a7a;
}

/* Give both modes a real page background (otherwise the browser's own canvas shows through) */
html { background-color: var(--kgpt-page); }
html:not(.dark) { color-scheme: light; }
html:not(.dark) body {
  background-color: #faf7f4;
  background-image: radial-gradient(1100px 520px at 50% -160px, #f27d3a1f, transparent 70%);
  background-repeat: no-repeat;
}
/* Header glass: the blur lives on a ::before layer. A backdrop-filter on the header itself would become the
   containing block for the fixed mobile menu inside it and collapse that menu to zero height. */
#site-header { background-color: transparent !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
#site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
html:not(.dark) #site-header::before { background-color: #faf7f4e0; }
.dark #site-header::before { background-color: #111111d9; }
html:not(.dark) [data-preview-banner] { background: #fff4ec !important; color: #6b4a36 !important; border-bottom-color: #f6dccb; }

.dark {
  --kgpt-page: #111111;
  --kgpt-surface: #1b1b1b;
  --kgpt-subtle: #ffffff0a;
  --kgpt-divider: #ffffff14;
  --kgpt-foreground: #ffffff;
  --kgpt-body: #cfcfcf;
  --kgpt-muted: #9d9d9d;
  --kgpt-faint: #6f6f6f;
  --kgpt-gradient-start: #ffb547;
  --kgpt-gradient-end: #f27d3a;
  --kgpt-footer: #0c0c0c;
  --kgpt-footer-foreground: #ffffff;
  --kgpt-footer-muted: #a3a3a3;
  --kgpt-footer-faint: #777777;
  --kgpt-footer-accent: #f27d3a;
  --color-surface-accent: #2a1c13;
  --color-surface-accent-soft: #1f1610;
  --text-color-primary: #f7955a;
  --text-color-secondary: #ffc977;
  --chart-stroke: #f27d3ab3; --chart-highlight: #ff9a5c; --chart-planet: #ff9a5c;
  --chart-fill-selected: #f27d3a40; --chart-fill-hover: #f27d3a26;
  color-scheme: dark;
}

/* Soft orange glow behind the top of every page, like the design's hero light */
html.dark body {
  background-color: #111111;
  background-image: radial-gradient(1100px 520px at 50% -140px, #f27d3a2e, transparent 70%);
  background-repeat: no-repeat;
}

/* Headings in Outfit, slightly tighter */
h1, h2, h3, .font-display { letter-spacing: -0.015em; }

/* Pill-shaped primary and outline buttons */
/* (whole-class matches only: substring matches also caught cards with "hover:border-primary") */
:is(a, button).bg-primary,
:is(a, button)[class~="border-primary"],
:is(a, button)[class~="rounded-xl"]:is([class~="h-12"], [class~="h-10"], [class~="h-11"]),
:is(a, button)[class~="rounded-lg"]:is([class~="h-10"], [class~="h-9"]) { border-radius: 9999px !important; }
:is(a, button).bg-primary { box-shadow: 0 10px 30px -12px #f27d3a99; }

/* Cards: slightly rounder, darker surfaces with hairline borders in dark mode */
.dark :is(.rounded-2xl, .rounded-xl):where(.bg-surface, .bg-white, [class*="bg-surface"]) { border-color: var(--gv-line); }
.rounded-2xl { border-radius: 1.25rem; }

/* Header: translucent charcoal bar */

/* Preview note restyled to fit the theme (overrides its inline style) */
[data-preview-banner] {
  background: #161616 !important; color: #bdbdbd !important; border-bottom: 1px solid #ffffff14;
  font-family: "Outfit", system-ui, sans-serif !important; font-weight: 500 !important; letter-spacing: .01em;
}
[data-preview-banner]::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px;
  border-radius: 50%; background: #f27d3a; vertical-align: 1px; }

/* The old light zodiac photo behind heroes does not suit the dark theme */
.dark .hero-zodiac-bg::before { opacity: .08 !important; filter: invert(1); }
