:root {
  --felt-deep: #07261a;
  --felt-mid: #0e4a30;
  --felt-light: #1b6b45;
  --felt-surface: #123526;
  --gold: #e6c27a;
  --gold-dim: #c9a35a;
  --ivory: #f7f1e3;
  --ink: #1c1915;
  --muted: rgba(247, 241, 227, 0.72);
  --line: rgba(230, 194, 122, 0.28);
  --font-display: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --max: 1100px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.55;
  background:
    radial-gradient(ellipse 120% 80% at 50% -10%, rgba(27, 107, 69, 0.55), transparent 55%),
    radial-gradient(ellipse 80% 50% at 100% 40%, rgba(14, 74, 48, 0.4), transparent 50%),
    linear-gradient(165deg, var(--felt-deep) 0%, #05301f 45%, var(--felt-deep) 100%);
  background-attachment: fixed;
}

a {
  color: var(--gold);
  text-decoration: none;
}

a:hover {
  color: #f0d9a8;
}

img {
  max-width: 100%;
  height: auto;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px);
  background: rgba(7, 38, 26, 0.88);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo svg {
  width: min(160px, 42vw);
  height: auto;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--gold);
  padding: 0.45rem 0.7rem;
  font: inherit;
  cursor: pointer;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 1.1rem;
}

.nav a {
  color: var(--muted);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ivory);
  border-bottom-color: var(--gold);
}

.nav a.play-link {
  color: var(--ink);
  background: var(--gold);
  border: none;
  border-radius: 2px;
  padding: 0.45rem 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.nav a.play-link:hover {
  color: var(--ink);
  background: #f0d9a8;
  border-bottom-color: transparent;
}

/* Hero — one composition */
.hero {
  min-height: calc(100vh - 4.5rem);
  display: grid;
  align-content: center;
  padding: 3.5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 10% -20% auto;
  height: 70%;
  background:
    radial-gradient(circle at 30% 50%, rgba(230, 194, 122, 0.08), transparent 40%),
    radial-gradient(circle at 70% 40%, rgba(27, 107, 69, 0.35), transparent 45%);
  pointer-events: none;
  animation: felt-breathe 12s ease-in-out infinite alternate;
}

@keyframes felt-breathe {
  from { opacity: 0.7; transform: scale(1); }
  to { opacity: 1; transform: scale(1.04); }
}

.hero-brand {
  position: relative;
  margin: 0 0 1.25rem;
}

.hero-brand svg {
  width: min(320px, 78vw);
  height: auto;
  animation: brand-in 0.9s ease-out both;
}

@keyframes brand-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero h1 {
  position: relative;
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  font-weight: 700;
  color: var(--ivory);
  max-width: 18ch;
  animation: brand-in 0.9s ease-out 0.12s both;
}

.hero .lede {
  position: relative;
  margin: 0 0 1.75rem;
  max-width: 36ch;
  color: var(--muted);
  font-size: 1.15rem;
  animation: brand-in 0.9s ease-out 0.22s both;
}

.cta-row {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  animation: brand-in 0.9s ease-out 0.32s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.35rem;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.03em;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: var(--gold);
  color: var(--ink);
}

.btn-primary:hover {
  background: #f0d9a8;
  color: var(--ink);
}

.btn-ghost {
  background: transparent;
  color: var(--gold);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--ivory);
}

.btn[aria-disabled="true"],
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

/* Content pages */
.page {
  padding: 2.5rem 0 4rem;
}

.page-header {
  margin-bottom: 2rem;
  max-width: 40rem;
}

.page-header h1 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  color: var(--gold);
}

.page-header p {
  margin: 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.prose {
  max-width: 42rem;
}

.prose h2 {
  margin: 2rem 0 0.6rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--gold);
}

.prose p,
.prose li {
  color: var(--muted);
}

.prose p {
  margin: 0 0 1rem;
}

.prose ul {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.teaser {
  margin-top: 1.5rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-style: italic;
}

/* Play page */
.play-panel {
  text-align: center;
  padding: 4rem 0 3rem;
  max-width: 28rem;
  margin-inline: auto;
}

.play-panel h1 {
  font-family: var(--font-display);
  color: var(--gold);
  margin: 0 0 0.75rem;
}

.play-panel p {
  color: var(--muted);
  margin: 0 0 1.5rem;
}

.play-spinner {
  width: 2rem;
  height: 2rem;
  margin: 0 auto 1.5rem;
  border: 2px solid var(--line);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(5, 28, 20, 0.65);
  padding: 2.5rem 0 2rem;
  margin-top: auto;
}

.footer-inner {
  display: grid;
  gap: 1.75rem;
}

.footer-label {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-dim);
}

.download-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.download-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 9.5rem;
  padding: 0.65rem 1rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--muted);
  background: rgba(18, 53, 38, 0.5);
  font-size: 0.9rem;
  line-height: 1.25;
}

.download-badge strong {
  color: var(--ivory);
  font-size: 1rem;
}

.download-badge span {
  font-size: 0.78rem;
  opacity: 0.85;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(230, 194, 122, 0.15);
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-meta a {
  color: var(--muted);
}

.footer-meta a:hover {
  color: var(--gold);
}

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1rem 1rem;
    background: rgba(7, 38, 26, 0.97);
    border-bottom: 1px solid var(--line);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 0.7rem 0;
    border-bottom: 1px solid rgba(230, 194, 122, 0.12);
  }

  .nav a.play-link {
    margin-top: 0.5rem;
    text-align: center;
    border-bottom: none;
  }

  .site-header {
    position: relative;
  }

  .header-inner {
    position: relative;
  }
}
