

:root {
  
  --bg-primary: #fbf7f1;
  --bg-secondary: #f3ece2;
  --bg-tertiary: #ece1d3;
  --surface-deep: #221a14;
  --surface-deepAlt: #2e231b;

  
  --accent: #b0703f;
  --accent-hover: #c8854d;
  --accent-soft: rgba(176, 112, 63, 0.12);
  --accent-line: rgba(176, 112, 63, 0.34);

  
  --text-primary: #241c16;
  --text-secondary: #6b5b4d;
  --text-muted: #948474;
  --text-onDeep: #f6efe6;
  --text-onDeepMuted: #b9a794;

  --line: #e3d6c5;
  --line-onDeep: rgba(246, 239, 230, 0.16);

  
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
  --space-8: 64px;

  
  --band-y: 11vh;
  --band-yTight: 7vh;
  --gutter: 5vw;
  --measure: 66ch;

  --font-body: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'Consolas', monospace;

  --shadow-soft: 0 2px 18px rgba(36, 28, 22, 0.08);
  --shadow-lift: 0 10px 44px rgba(36, 28, 22, 0.14);
  --motion: 320ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

[data-theme="dark"] {
  --bg-primary: #14100d;
  --bg-secondary: #1b1613;
  --bg-tertiary: #221b16;
  --surface-deep: #0e0b09;
  --surface-deepAlt: #181310;

  --accent: #c8854d;
  --accent-hover: #dda169;
  --accent-soft: rgba(200, 133, 77, 0.16);
  --accent-line: rgba(200, 133, 77, 0.4);

  --text-primary: #f4ede4;
  --text-secondary: #b7a897;
  --text-muted: #8b7c6d;
  --text-onDeep: #f4ede4;
  --text-onDeepMuted: #a2927f;

  --line: #302620;
  --line-onDeep: rgba(244, 237, 228, 0.14);

  --shadow-soft: 0 2px 18px rgba(0, 0, 0, 0.5);
  --shadow-lift: 0 10px 44px rgba(0, 0, 0, 0.62);
}

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

html { scroll-behavior: smooth; }

body {
  position: relative;
  margin: 0;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  transition: background var(--motion), color var(--motion);
}

h1, h2, h3, h4 {
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: -0.022em;
  color: var(--text-primary);
  margin: 0 0 var(--space-3);
}

h1 { font-size: clamp(2.1rem, 4.4vw, 3.5rem); line-height: 1.1; }
h2 { font-size: clamp(1.6rem, 2.9vw, 2.35rem); line-height: 1.18; }
h3 { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.3; }
h4 { font-size: 1.02rem; line-height: 1.4; }

p { margin: 0 0 var(--space-2); max-width: var(--measure); }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }

img { max-width: 100%; display: block; }


.Eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 var(--space-2);
}

.Eyebrow--onDeep { color: var(--text-onDeepMuted); }


.Rule {
  border: 0;
  height: 1px;
  background: var(--line);
  margin: var(--space-5) 0;
}

.Rule--onDeep { background: var(--line-onDeep); }


.Button {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: var(--space-2) var(--space-4);
  border: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
  transition: background var(--motion), color var(--motion), border-color var(--motion);
}

.Button--primary {
  background: var(--accent);
  color: #fffaf4;
  border-color: var(--accent);
}

.Button--primary:hover,
.Button--primary:focus-visible {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fffaf4;
}


.Button--loud {
  font-size: 1.5rem;
  padding: 1.5rem 3rem;
  animation: estolanBeacon 2s infinite;
}

.Button--quiet {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--line);
}

.Button--quiet:hover { border-color: var(--accent); color: var(--accent); }

.Button--onDeep {
  background: transparent;
  color: var(--text-onDeep);
  border-color: var(--line-onDeep);
}

.Button--onDeep:hover { border-color: var(--accent); color: var(--accent-hover); }

.Button--block { display: block; width: 100%; text-align: center; }


.IconPlate {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto var(--space-2);
  background: var(--accent-soft);
  color: var(--accent);
}

.IconPlate svg { width: 26px; height: 26px; }


.ThemeSwitch {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: none;
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0;
  transition: border-color var(--motion), color var(--motion);
}

.ThemeSwitch:hover { border-color: var(--accent); color: var(--accent); }
.ThemeSwitch svg { width: 18px; height: 18px; }
.ThemeSwitch-sun { display: none; }
[data-theme="dark"] .ThemeSwitch-sun { display: block; }
[data-theme="dark"] .ThemeSwitch-moon { display: none; }


.SkipLink {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fffaf4;
  padding: var(--space-1) var(--space-2);
  z-index: 1200;
}

.SkipLink:focus { left: var(--space-2); top: var(--space-1); }


@keyframes estolanRise {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes estolanFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes estolanBeacon {
  0%, 100% { box-shadow: 0 0 0 0 var(--accent-soft); }
  55%      { box-shadow: 0 0 0 14px rgba(176, 112, 63, 0); }
}

@keyframes estolanTicker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes estolanDrift {
  from { transform: translateY(0) scale(1.04); }
  to   { transform: translateY(-2.2vh) scale(1.08); }
}

.is-revealed { animation: estolanRise 720ms cubic-bezier(0.22, 0.61, 0.36, 1) both; }

@media (max-width: 1024px) {
  :root { --band-y: 8vh; --band-yTight: 5.5vh; --gutter: 6vw; }
}

@media (max-width: 768px) {
  :root { --band-y: 6vh; --band-yTight: 4.5vh; --gutter: 6vw; }
  body { font-size: 1rem; }
  .Button--loud { font-size: 1.2rem; padding: var(--space-3) var(--space-4); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .Button--loud { animation: none; }
  .is-revealed { animation: none; }
}
