/* ------------------------------------------------------------
   The Heavy Revy — Coming Soon
   Palette: deep ink navy, aged parchment, antique gold accent
   Type:    Cormorant Garamond (display) + Work Sans (body)
   ------------------------------------------------------------ */

:root {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);
  --text-hero: clamp(2.75rem, 1rem + 6vw, 6.5rem);

  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem;
  --space-5: 1.25rem; --space-6: 1.5rem; --space-8: 2rem; --space-10: 2.5rem;
  --space-12: 3rem; --space-16: 4rem; --space-20: 5rem; --space-24: 6rem; --space-32: 8rem;

  --radius-sm: 0.375rem; --radius-md: 0.5rem; --radius-full: 9999px;
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --font-display: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --font-body: 'Work Sans', 'Helvetica Neue', Arial, sans-serif;

  --content-narrow: 680px;
}

/* Dark is the primary expression of the brand: ink + gold */
:root,
[data-theme='dark'] {
  color-scheme: dark;
  --color-bg: #10141f;
  --color-surface: #161b29;
  --color-border: oklch(0.85 0.06 85 / 0.16);
  --color-divider: oklch(0.85 0.06 85 / 0.1);
  --color-text: #efe7d6;
  --color-text-muted: #a9a293;
  --color-text-faint: #6e6a60;
  --color-primary: #c9a961;
  --color-primary-hover: #dcbf7c;
  --glow: oklch(0.78 0.11 85 / 0.16);
  --grain-opacity: 0.07;
}

[data-theme='light'] {
  color-scheme: light;
  --color-bg: #f4eee2;
  --color-surface: #faf6ec;
  --color-border: oklch(0.3 0.04 260 / 0.18);
  --color-divider: oklch(0.3 0.04 260 / 0.12);
  --color-text: #1a2033;
  --color-text-muted: #5c6172;
  --color-text-faint: #9a9daa;
  --color-primary: #8a6a25;
  --color-primary-hover: #6d521a;
  --glow: oklch(0.85 0.08 85 / 0.45);
  --grain-opacity: 0.05;
}

/* ---------- Page shell ---------- */

body {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100dvh;
  position: relative;
  overflow-x: hidden;
  transition: background-color 400ms var(--ease-out), color 400ms var(--ease-out);
}

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 100;
  padding: var(--space-2) var(--space-4);
  background: var(--color-primary);
  color: var(--color-bg);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
}
.skip-link:focus { top: var(--space-4); }

/* Atmospheric layers */
.glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 45% at 50% 0%, var(--glow), transparent 70%),
    radial-gradient(ellipse 50% 40% at 50% 110%, oklch(0.5 0.08 260 / 0.18), transparent 70%);
  transition: opacity 400ms var(--ease-out);
}
.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.6 0 0 0 0 0.55 0 0 0 0 0.45 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

/* ---------- Header ---------- */

.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-6) clamp(var(--space-5), 5vw, var(--space-12));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-text);
  text-decoration: none;
}
.brand__mark { color: var(--color-primary); flex-shrink: 0; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-lg);
  letter-spacing: 0.02em;
  line-height: 1;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
}
.theme-toggle:hover { color: var(--color-primary); border-color: var(--color-primary); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: clamp(var(--space-10), 6vw, var(--space-24)) clamp(var(--space-5), 5vw, var(--space-12));
  text-align: center;
}

.hero__inner {
  max-width: var(--content-narrow);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__mark {
  width: clamp(56px, 8vw, 84px);
  height: auto;
  color: var(--color-primary);
  margin-bottom: var(--space-8);
  animation: rise 900ms var(--ease-out) both;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-4);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-6);
  animation: rise 900ms 80ms var(--ease-out) both;
}
.eyebrow__rule {
  display: block;
  width: clamp(24px, 5vw, 48px);
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.headline {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-hero);
  line-height: 1.02;
  letter-spacing: -0.015em;
  color: var(--color-text);
  margin-bottom: var(--space-8);
  animation: rise 1000ms 160ms var(--ease-out) both;
}
.headline__line { display: block; }
.headline em {
  font-style: italic;
  font-weight: 500;
  color: var(--color-primary);
}

.lede {
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-text-muted);
  max-width: 54ch;
  margin-bottom: var(--space-12);
  animation: rise 1000ms 260ms var(--ease-out) both;
}

.verse {
  position: relative;
  padding-top: var(--space-8);
  margin-bottom: var(--space-12);
  animation: rise 1000ms 360ms var(--ease-out) both;
}
.verse::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 1px;
  background: var(--color-divider);
}
.verse__text {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: var(--text-xl);
  line-height: 1.3;
  color: var(--color-text);
  max-width: 38ch;
  margin-inline: auto;
  margin-bottom: var(--space-3);
}
.verse__ref {
  font-size: var(--text-xs);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.domain {
  font-size: var(--text-sm);
  letter-spacing: 0.08em;
  animation: rise 1000ms 460ms var(--ease-out) both;
}
.domain a {
  color: var(--color-primary);
  text-decoration: none;
  border-bottom: 1px solid oklch(from var(--color-primary) l c h / 0.4);
  padding-bottom: 2px;
}
.domain a:hover {
  color: var(--color-primary-hover);
  border-bottom-color: currentColor;
}

/* ---------- Footer ---------- */

.site-footer {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2) var(--space-6);
  padding: var(--space-6) clamp(var(--space-5), 5vw, var(--space-12));
  border-top: 1px solid var(--color-divider);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}
.site-footer__tag {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-sm);
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
}

/* ---------- Motion ---------- */

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

@media (max-width: 480px) {
  .site-footer { justify-content: center; text-align: center; }
  .brand__name { font-size: var(--text-base); }
}

@media (max-width: 480px) {
  .eyebrow { letter-spacing: 0.22em; gap: var(--space-3); }
  .eyebrow__rule { width: 16px; }
}
