:root {
  --bg: #f4efe7;
  --bg-soft: #fbf7f1;
  --paper: rgba(255, 252, 247, 0.72);
  --text: #1f1a17;
  --muted: #63574e;
  --line: rgba(31, 26, 23, 0.12);
  --accent: #b85c38;
  --accent-dark: #8d4325;
  --forest: #29463a;
  --sand: #dcb98f;
  --mint: #bfd8ca;
  --rose: #d9b6a3;
  --shadow: 0 22px 60px rgba(53, 38, 29, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(184, 92, 56, 0.18), transparent 28%),
    radial-gradient(circle at 85% 15%, rgba(41, 70, 58, 0.16), transparent 22%),
    linear-gradient(180deg, #efe6da 0%, #f8f3ed 40%, #f3ede5 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 38px 38px;
  content: "";
  opacity: 0.35;
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.page-shell {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 72px;
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 18px;
  margin-bottom: 28px;
  background: rgba(255, 250, 244, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 24px;
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 14px;
  color: #fffaf5;
  font-weight: 800;
  background: linear-gradient(135deg, var(--forest), var(--accent));
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-text strong {
  font-size: 1rem;
}

.brand-text small,
.site-nav a,
.section-intro,
.hero-text,
.book-card p,
.track-card p,
.community-card p,
.note-feature p {
  color: var(--muted);
}

.site-nav {
  display: flex;
  gap: 22px;
}

.site-nav a {
  position: relative;
  font-size: 0.96rem;
}

.site-nav a::after {
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
  content: "";
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  transition:
    transform 180ms ease,
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

.nav-cta,
.button-primary {
  color: #fffaf4;
  background: var(--text);
}

.nav-cta:hover,
.button:hover {
  transform: translateY(-1px);
}

.button-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(31, 26, 23, 0.12);
}

.hero,
.join-card,
.spotlight-card,
.note-feature,
.quote-stack blockquote,
.book-card,
.track-card,
.community-card {
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 28px;
  padding: 48px;
  background: linear-gradient(135deg, rgba(255, 248, 242, 0.76), rgba(255, 253, 249, 0.52));
  border-radius: 40px;
  overflow: hidden;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.hero h1,
.section-heading h2,
.join-card h2,
.spotlight-card h2,
.note-feature h3,
.book-card h3,
.track-card h3,
.community-card h3 {
  margin: 0;
  font-family: "Noto Serif SC", serif;
  line-height: 1.18;
}

.hero h1 {
  max-width: 10ch;
  font-size: clamp(2.8rem, 6vw, 5.3rem);
}

.hero-text {
  max-width: 62ch;
  margin: 20px 0 0;
  font-size: 1.05rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 28px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.hero-stats li {
  min-width: 128px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.44);
  border: 1px solid rgba(31, 26, 23, 0.08);
  border-radius: 20px;
}

.hero-stats strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.7rem;
}

.hero-panel {
  position: relative;
  display: grid;
  align-content: center;
  gap: 18px;
}

.spotlight-card {
  padding: 28px;
  background: linear-gradient(180deg, rgba(35, 30, 26, 0.95), rgba(54, 39, 31, 0.92));
  border-radius: 32px;
  color: #fffaf4;
}

.spotlight-card p {
  color: rgba(255, 250, 244, 0.76);
}

.card-kicker,
.track-label,
.note-date {
  margin: 0 0 10px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.spotlight-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.spotlight-meta span,
.book-tag {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
}

.floating-quote {
  width: min(320px, 90%);
  margin-left: auto;
  padding: 20px;
  background: rgba(255, 251, 245, 0.7);
  border: 1px solid rgba(31, 26, 23, 0.08);
  border-radius: 24px;
  backdrop-filter: blur(10px);
  transform: rotate(-4deg);
}

.floating-quote p,
.quote-stack blockquote {
  margin: 0;
  font-family: "Noto Serif SC", serif;
  line-height: 1.8;
}

.floating-quote span {
  display: inline-block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.88rem;
}

.section {
  margin-top: 28px;
  padding: 34px;
  border-radius: 36px;
  background: rgba(255, 250, 245, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.46);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.split {
  align-items: start;
}

.section-heading h2,
.join-card h2 {
  font-size: clamp(2rem, 3.2vw, 3rem);
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tab,
.ghost-button {
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(31, 26, 23, 0.1);
  border-radius: 999px;
  cursor: pointer;
}

.tab.is-active {
  color: #fffaf4;
  background: var(--forest);
}

.book-grid,
.community-grid,
.track-list,
.notes-layout {
  display: grid;
  gap: 18px;
}

.book-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.book-card,
.community-card,
.note-feature,
.quote-stack blockquote {
  padding: 24px;
  background: rgba(255, 255, 255, 0.54);
  border-radius: 28px;
}

.book-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 240px;
  transition:
    transform 220ms ease,
    opacity 200ms ease;
}

.book-card.is-hidden {
  opacity: 0.18;
}

.book-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.book-card:hover,
.track-card:hover,
.community-card:hover {
  transform: translateY(-4px);
}

.track-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.track-card {
  padding: 24px;
  border-radius: 30px;
}

.track-card ul {
  margin: 20px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.accent-sand {
  background: linear-gradient(180deg, rgba(220, 185, 143, 0.4), rgba(255, 251, 245, 0.7));
}

.accent-mint {
  background: linear-gradient(180deg, rgba(191, 216, 202, 0.48), rgba(255, 251, 245, 0.7));
}

.accent-rose {
  background: linear-gradient(180deg, rgba(217, 182, 163, 0.42), rgba(255, 251, 245, 0.7));
}

.notes-layout {
  grid-template-columns: 1.1fr 0.9fr;
}

.note-feature {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  min-height: 320px;
  background:
    linear-gradient(135deg, rgba(255, 250, 243, 0.76), rgba(247, 239, 231, 0.9)),
    radial-gradient(circle at top right, rgba(184, 92, 56, 0.16), transparent 24%);
}

.quote-stack {
  display: grid;
  gap: 18px;
}

.community-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.community-card span,
.text-link,
.note-date {
  color: var(--accent-dark);
}

.join-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px;
  background: linear-gradient(135deg, rgba(41, 70, 58, 0.94), rgba(25, 36, 31, 0.96));
  border-radius: 32px;
  color: #fffaf4;
}

.join-card p {
  color: rgba(255, 250, 244, 0.74);
}

.join-form {
  display: flex;
  width: min(420px, 100%);
  gap: 12px;
}

.join-form input {
  flex: 1;
  min-width: 0;
  min-height: 50px;
  padding: 0 16px;
  color: #fffaf4;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
}

.join-form input::placeholder {
  color: rgba(255, 250, 244, 0.55);
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  padding: 14px 18px;
  color: #fffaf4;
  background: rgba(31, 26, 23, 0.92);
  border-radius: 16px;
  transform: translateY(24px);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 180ms ease,
    opacity 180ms ease;
}

.toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 520ms ease,
    transform 520ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .site-header,
  .hero,
  .notes-layout,
  .join-card,
  .track-list,
  .community-grid,
  .book-grid {
    grid-template-columns: 1fr;
  }

  .site-header {
    position: static;
    display: grid;
    justify-items: start;
  }

  .site-nav {
    flex-wrap: wrap;
  }

  .hero {
    padding: 36px 26px;
  }

  .track-list,
  .community-grid,
  .book-grid {
    display: grid;
  }

  .join-card {
    align-items: start;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 20px, 100%);
    padding-top: 10px;
  }

  .section,
  .hero {
    padding: 24px 18px;
    border-radius: 28px;
  }

  .site-header {
    padding: 16px;
    border-radius: 20px;
  }

  .hero h1 {
    font-size: clamp(2.3rem, 15vw, 3.5rem);
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .hero-actions,
  .join-form {
    flex-direction: column;
  }

  .join-form {
    width: 100%;
  }

  .book-card footer {
    align-items: start;
    flex-direction: column;
  }
}
