/* Keelwick — Keelcrest LOCKED + steals fold (Ada HoD / Tony 5)
   Tokens only. Deep = vignette edges + footer. No Deep hero slab.
   Steals: Cosmos breath+scale · Stratum terrain grain · Realfood one-claim. */

:root {
  --ink: #0E1A24;
  --slate: #3A4A58;
  --stone: #E8E6E1;
  --brass: #B08D57;
  --fog: #9AA5B1;
  --white: #FFFFFF;
  --deep: #081018;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", "Source Sans Pro", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;

  --max: 42rem;
  --max-wide: 56rem;
  --radius: 6px; /* Critiquito: 4–8px, not pill */
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  position: relative;
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--stone);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

/* —— Atmosphere: Stone luminous field + Fog terrain grain + Brass specular + Deep vignette —— */
.page-atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.atmosphere-field {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 90% 70% at 50% 28%,
      #f0eee9 0%,
      var(--stone) 55%,
      #ddd9d1 100%
    );
}

/* Stronger Stratum-style terrain craft: dual Fog noise (fine + coarse), not cyan */
.atmosphere-grain {
  position: absolute;
  inset: 0;
  opacity: 0.42;
  mix-blend-mode: multiply;
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='t'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.035 0.08' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23t)' opacity='0.55'/%3E%3C/svg%3E");
  background-size: 160px 160px, 480px 320px;
  background-blend-mode: soft-light, multiply;
}

.atmosphere-specular {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 50% 36% at 50% 30%,
      rgba(176, 141, 87, 0.08) 0%,
      transparent 68%
    );
}

.atmosphere-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 68% 58% at 50% 38%,
      transparent 32%,
      rgba(8, 16, 24, 0.18) 68%,
      rgba(8, 16, 24, 0.58) 100%
    );
}

@media (prefers-reduced-motion: reduce) {
  .atmosphere-grain {
    opacity: 0.22;
  }
}

/* Content above atmosphere */
.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

/* —— Quiet chrome: compact mark + Fraunces Keelwick once —— */
.site-header {
  padding: var(--space-sm) var(--space-lg);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-lockup:hover .brand-name,
.brand-lockup:focus-visible .brand-name {
  color: var(--slate);
  outline: none;
}

.brand-lockup:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 4px;
  border-radius: 2px;
}

.brand-mark {
  display: block;
  width: 1.75rem;
  height: 1.75rem;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1;
}

/* —— Hero: Cosmos breath + one-claim only (About stays below) —— */
.hero {
  min-height: calc(100vh - 4.5rem);
  display: flex;
  align-items: center;
  padding: var(--space-3xl) var(--space-lg) var(--space-3xl);
}

.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  padding-block: var(--space-xl);
}

.hero-heading {
  margin: 0 0 var(--space-lg);
  font-family: var(--font-display);
  font-weight: 600;
  font-optical-sizing: auto;
  /* Cosmos-scale poster: 48–64px */
  font-size: clamp(3rem, 2.5rem + 2.5vw, 4rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.hero-tagline {
  margin: 0 0 var(--space-xl);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  line-height: 1.5;
  color: var(--slate); /* muted = Slate, not Fog */
}

/* Fog divider only */
.hero-rule {
  display: block;
  width: 2.5rem;
  height: 1px;
  margin: 0 0 var(--space-xl);
  background: var(--fog);
  border: 0;
}

/* CTA muted until mail — Brass outline + Slate text; Source Sans 600; radius 4–8px; no mailto */
.btn-cta {
  display: inline-block;
  padding: 0.7rem 1.35rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.25;
  text-decoration: none;
  color: var(--slate);
  background: transparent;
  border: 1.5px solid var(--brass);
  border-radius: var(--radius);
  cursor: not-allowed;
  opacity: 0.85;
  user-select: none;
}

.btn-cta[aria-disabled="true"] {
  pointer-events: none;
}

/* —— About: White card on Stone (below fold) —— */
.about {
  padding: 0 var(--space-lg) var(--space-3xl);
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.card {
  background: var(--white);
  padding: var(--space-lg);
  border-radius: var(--radius);
  border: 1px solid rgba(14, 26, 36, 0.08); /* Ink @ 8% */
}

.section-label {
  margin: 0 0 var(--space-md);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
}

.about-copy {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--ink);
}

/* —— Footer Deep only —— */
.site-footer {
  background: var(--deep);
  color: var(--stone);
  padding: var(--space-lg) var(--space-lg);
}

.footer-inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-lg);
  align-items: baseline;
  justify-content: space-between;
}

.footer-copy {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--stone);
}

.footer-products {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--stone);
}

.footer-products .product-name {
  color: var(--slate);
  font-weight: 500;
}

@media (max-width: 640px) {
  .site-header {
    padding: var(--space-sm) var(--space-md);
  }

  .hero {
    min-height: auto;
    padding: var(--space-2xl) var(--space-md) var(--space-2xl);
  }

  .hero-inner {
    padding-block: var(--space-md);
  }

  .about {
    padding: 0 var(--space-md) var(--space-2xl);
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
