/* Kairis design tokens — extracted from the Claude Design system
 * Referenced by every page in this site so the brand stays consistent. */

@import url("https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400..700;1,9..144,400..700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap");

:root {
  /* Core palette */
  --maroon: #62202F;
  --maroon-ink: #3B1119;
  --cream: #FBF7E8;
  --cream-2: #F5EFD9;

  /* Accents (reserved for signal states, not heavy marketing use) */
  --sage: #C9DAA8;
  --gold: #BFAD0E;
  --peach: #F5D0C6;

  /* Maroon opacity ramp — borders, dividers, muted text */
  --maroon-05: rgba(98, 32, 47, 0.05);
  --maroon-10: rgba(98, 32, 47, 0.10);
  --maroon-20: rgba(98, 32, 47, 0.20);
  --maroon-40: rgba(98, 32, 47, 0.40);
  --maroon-60: rgba(98, 32, 47, 0.60);
  --maroon-70: rgba(98, 32, 47, 0.70);

  /* Fonts */
  --serif: "Fraunces", Georgia, serif;
  --sans:  "Inter", system-ui, -apple-system, sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, monospace;

  /* Radii */
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(59, 17, 25, 0.06), 0 4px 12px rgba(59, 17, 25, 0.04);
  --shadow: 0 8px 24px rgba(59, 17, 25, 0.08), 0 2px 6px rgba(59, 17, 25, 0.06);
  --shadow-lg: 0 30px 80px rgba(59, 17, 25, 0.18), 0 8px 24px rgba(59, 17, 25, 0.10);
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  color: var(--maroon-ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  background: var(--cream);   /* fallback, in case the gradient fails to paint */
  position: relative;
  z-index: 0;                 /* creates a stacking context so .grain-bg's negative z-index stays BEHIND body's content but ABOVE body's own background */
}

/* Grain + gradient background wash. Pinned behind content, no interaction.
 * Two layered pseudo-elements on a fixed, full-viewport container: a blurred
 * radial-gradient composition (matches the Claude Design spec exactly) plus an
 * SVG noise overlay for texture. */
.grain-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.grain-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, var(--gold) 0%, transparent 40%),
    radial-gradient(circle at 80% 20%, var(--sage) 0%, transparent 50%),
    radial-gradient(circle at 60% 70%, var(--maroon) 0%, transparent 45%),
    radial-gradient(circle at 30% 80%, var(--sage) 0%, transparent 40%),
    radial-gradient(circle at 90% 60%, var(--peach) 0%, transparent 35%),
    linear-gradient(135deg, var(--cream) 0%, var(--peach) 100%);
  filter: blur(80px);
}
.grain-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='3.5' numOctaves='5' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.45;
  mix-blend-mode: overlay;
}

/* Shared site header */
.site-header {
  padding: 32px 40px 0;
  max-width: 1160px;
  margin: 0 auto;
}
.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.site-logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--maroon);
  color: var(--cream);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 18px;
  font-style: italic;
  font-weight: 500;
}
.site-logo-word {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--maroon);
  letter-spacing: -0.02em;
}

/* Utility */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--maroon-70);
}

/* Rise-in animation used by multiple pages */
@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Mobile header */
@media (max-width: 600px) {
  .site-header { padding: 20px 24px 0; }
  .site-logo-mark { width: 28px; height: 28px; font-size: 16px; }
  .site-logo-word { font-size: 19px; }
}
