/* Moth & Metronome — holding page */

@font-face {
  font-family: "Crimson Pro";
  src: url("/fonts/crimson-pro-var.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---- Palette: dark by default, cream for light-mode visitors ---- */

:root {
  --bg: #262523;
  --bg-edge: #1b1a19;
  --ink: #ece2cb;          /* wordmark, matches the banner's cream lettering */
  --text: #cfc6b3;         /* body copy, a touch softer */
  --muted: #8d877b;
  --accent: #c9965f;       /* warm bronze, from the emblem */
  --emblem-filter: brightness(1.3) saturate(1.1);
  --emblem-shadow: rgba(0, 0, 0, 0.55);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f1e7d2;
    --bg-edge: #e3d6bb;
    --ink: #2d231c;
    --text: #3f352c;
    --muted: #7d7062;
    --accent: #8a5a2b;
    --emblem-filter: brightness(1.08);
    --emblem-shadow: rgba(70, 50, 30, 0.35);
  }
}

/* ---- Base ---- */

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(2.5rem, 6vw, 4rem);
  padding: clamp(2rem, 6vw, 5rem) 1.5rem 2rem;
  background:
    radial-gradient(ellipse at 50% 40%, var(--bg) 40%, var(--bg-edge) 100%)
    fixed;
  background-color: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  font-optical-sizing: auto;
}

/* ---- Lockup: emblem + wordmark, side by side like the banner ---- */

.lockup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 3vw, 2rem);
}

.emblem img {
  display: block;
  width: clamp(110px, 20vw, 220px);
  height: auto;
  filter: var(--emblem-filter) drop-shadow(0 4px 6px var(--emblem-shadow));
}

.wordmark h1 {
  margin: 0;
  font-family: "Crimson Pro", Georgia, serif;
  font-weight: 650;
  font-size: clamp(2rem, 6.2vw, 4.25rem);
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-kerning: normal;
  color: var(--ink);
}

.tagline {
  margin: 0.6em 0 0;
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 400;
  font-size: clamp(0.72rem, 1.75vw, 1.2rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.9;
}

/* ---- Legend ---- */

.legend {
  max-width: 34rem;
  text-align: center;
}

.legend p { margin: 0 0 1.1em; }

.legend .soon {
  margin-top: 1.8em;
  font-family: "Crimson Pro", Georgia, serif;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--muted);
}

.listen {
  display: inline-block;
  margin-top: 0.4em;
  padding: 0.55em 1.3em;
  border: 1px solid var(--accent);
  border-radius: 2px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}

.listen:hover,
.listen:focus-visible {
  background-color: var(--accent);
  color: var(--bg);
}

.listen:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

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

footer {
  margin-top: auto;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* ---- Narrow screens: stack the lockup ---- */

@media (max-width: 34rem) {
  .lockup {
    flex-direction: column;
    text-align: center;
  }
  .emblem img { width: 140px; }
  .wordmark h1 { font-size: clamp(1.9rem, 9.5vw, 2.6rem); }
  .tagline { font-size: 0.72rem; letter-spacing: 0.1em; }
}

@media (prefers-reduced-motion: reduce) {
  .listen { transition: none; }
}
