:root {
  --bg-cream: #f8f1e6;
  --bg-warm: #f1e4d0;
  --panel: rgba(255, 255, 255, 0.58);
  --panel-strong: rgba(255, 255, 255, 0.8);
  --ink: #1f2a2d;
  --muted: #465a60;
  --gold: #d7a64d;
  --gold-deep: #b67e2d;
  --sage: #2e5e57;
  --sage-deep: #183a37;
  --line: rgba(31, 42, 45, 0.12);
  --shadow: 0 24px 60px rgba(24, 58, 55, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(215, 166, 77, 0.18), transparent 28%),
    linear-gradient(135deg, #f7f4ef 0%, var(--bg-cream) 48%, #f4ebdd 100%);
  color: var(--ink);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.7;
}

img {
  max-width: 100%;
  display: block;
}

button,
a {
  font: inherit;
}

.page-shell {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  margin-top: 10px;
  background: rgba(255, 255, 255, 0.38);
  border: 1px solid rgba(31, 42, 45, 0.06);
  box-shadow: 0 12px 28px rgba(28, 58, 53, 0.04);
  border-radius: 999px;
  backdrop-filter: blur(10px);
}

.brand-wrap {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--sage-deep);
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #f3d59c);
  color: #fff;
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.35);
}

.brand-text {
  font-size: 0.84rem;
}

.main-nav {
  display: inline-flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}

.main-nav a,
.nav-cta,
.primary-btn,
.secondary-btn {
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.main-nav a {
  color: var(--muted);
  font-size: 0.96rem;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--sage-deep);
}

.nav-cta,
.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--sage-deep), var(--sage));
  color: #fff;
  box-shadow: 0 18px 28px rgba(22, 58, 52, 0.15);
}

.nav-cta {
  padding: 0.82rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
  min-height: 70vh;
  padding: 52px 8px 14px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--gold-deep);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
}

.hero h1,
.section-heading h2,
.cta-box h2 {
  margin: 0;
  line-height: 1.08;
  color: var(--sage-deep);
  letter-spacing: -0.04em;
}

.hero h1 {
  font-size: clamp(3.15rem, 5vw, 6rem);
  max-width: 700px;
}

.lead {
  max-width: 640px;
  margin-top: 22px;
  margin-bottom: 18px;
  font-size: 1.18rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
}

.primary-btn,
.secondary-btn {
  padding: 1rem 1.5rem;
  font-weight: 700;
  border: 1px solid transparent;
}

.primary-btn:hover,
.secondary-btn:hover,
.nav-cta:hover {
  transform: translateY(-1px);
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.36);
  border-color: rgba(24, 58, 55, 0.12);
  color: var(--sage-deep);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  list-style: none;
  padding-left: 0;
  margin: 30px 0 0;
  color: var(--muted);
  font-weight: 600;
}

.hero-meta li {
  position: relative;
  padding-left: 18px;
}

.hero-meta li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--gold);
}

.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 520px;
  border-radius: 36px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.6), rgba(240, 224, 195, 0.4)),
    linear-gradient(135deg, rgba(46, 94, 87, 0.12), rgba(215, 166, 77, 0.14));
  border: 1px solid rgba(31, 42, 45, 0.08);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-art::before {
  content: "";
  position: absolute;
  inset: 10% 12% 20% 10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(215, 166, 77, 0.22), rgba(46, 94, 87, 0.1) 45%, transparent 70%);
}

.orb {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 35%, rgba(255,255,255,0.9), rgba(215,166,77,0.34) 22%, rgba(46,94,87,0.48) 64%, rgba(24,58,55,0.75) 100%);
  box-shadow: inset 0 0 30px rgba(255,255,255,0.35);
  opacity: 0.96;
}

.note {
  position: absolute;
  display: inline-grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  font-size: 2.2rem;
  color: var(--sage-deep);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(24, 58, 55, 0.08);
  box-shadow: 0 14px 24px rgba(31, 42, 45, 0.08);
}

.note-a {
  top: 18%;
  left: 18%;
  transform: rotate(-16deg);
}

.note-b {
  right: 17%;
  bottom: 16%;
  transform: rotate(18deg);
}

.floating-card {
  position: absolute;
  right: 12%;
  top: 18%;
  z-index: 2;
  display: grid;
  gap: 6px;
  padding: 1rem 1.2rem;
  background: var(--panel-strong);
  border: 1px solid rgba(31, 42, 45, 0.12);
  border-radius: 20px;
  box-shadow: 0 18px 30px rgba(24, 58, 55, 0.08);
  backdrop-filter: blur(12px);
}

.card-label {
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.floating-card strong {
  font-size: 1.2rem;
  color: var(--sage-deep);
}

.content-section {
  padding: 44px 0 16px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 24px;
}

.section-heading h2,
.cta-box h2 {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  padding: 30px 28px;
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 20px 32px rgba(24, 58, 55, 0.04);
}

.mission-grid p,
.principle-card p,
.cta-box p,
blockquote {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.story-block {
  padding-top: 26px;
}

blockquote {
  padding: 28px 32px;
  border-left: 4px solid var(--gold);
  background: rgba(255, 255, 255, 0.38);
  border-radius: 18px;
  font-size: 1.2rem;
  color: var(--ink);
  line-height: 1.6;
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.principle-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px 22px 22px;
  min-height: 230px;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 18px 26px rgba(24, 58, 55, 0.04);
}

.wide-card {
  grid-column: span 2;
}

.index {
  color: var(--gold-deep);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  font-weight: 800;
}

.principle-card h3 {
  margin: 0;
  font-size: 1.45rem;
  color: var(--sage-deep);
}

.cta-section {
  padding-top: 50px;
}

.cta-box {
  display: grid;
  gap: 18px;
  padding: clamp(26px, 5vw, 42px);
  background: linear-gradient(135deg, rgba(46, 94, 87, 0.98), rgba(24, 58, 55, 0.98));
  border-radius: 30px;
  color: #fff;
  box-shadow: 0 26px 50px rgba(24, 58, 55, 0.18);
}

.cta-box .eyebrow,
.cta-box h2,
.cta-box p {
  color: #eef7f3;
}

.cta-box .primary-btn {
  justify-self: start;
  background: linear-gradient(135deg, #f3d59c, var(--gold));
  color: var(--sage-deep);
}

.site-footer {
  padding: 28px 0 8px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 900px) {
  .topbar {
    flex-wrap: wrap;
    justify-content: center;
    border-radius: 28px;
  }

  .main-nav {
    justify-content: center;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 32px;
  }

  .hero-art {
    min-height: 420px;
  }

  .mission-grid,
  .principle-grid {
    grid-template-columns: 1fr;
  }

  .wide-card {
    grid-column: auto;
  }
}

@media (max-width: 560px) {
  .page-shell {
    width: min(100% - 20px, 1200px);
  }

  .topbar {
    padding: 16px 18px;
  }

  .main-nav {
    gap: 14px 18px;
  }

  .brand-text {
    letter-spacing: 0.02em;
  }

  .hero h1 {
    font-size: 2.8rem;
  }

  .lead {
    font-size: 1.05rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .primary-btn,
  .secondary-btn,
  .nav-cta {
    width: 100%;
  }

  .hero-art {
    min-height: 360px;
  }

  .orb {
    width: 230px;
    height: 230px;
  }
}

.brand-link {
  color: inherit;
  text-decoration: none;
}

.header-back {
  padding: 0.7rem 1rem;
  font-size: 0.9rem;
}

.song-page-shell {
  min-height: 100vh;
}

.song-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 40px;
  padding: 76px 8px 42px;
}

.song-hero h1 {
  max-width: 700px;
  margin: 0;
  color: var(--sage-deep);
  font-size: clamp(3rem, 6vw, 5.8rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.song-hero .lead {
  max-width: 700px;
}

.song-hero-note {
  display: grid;
  place-items: center;
  width: 150px;
  height: 150px;
  margin-bottom: 8px;
  border-radius: 50%;
  background: linear-gradient(145deg, #f3d59c, var(--gold));
  color: var(--sage-deep);
  font-size: 5rem;
  line-height: 1;
  box-shadow: 0 20px 36px rgba(182, 126, 45, 0.2);
  transform: rotate(8deg);
}

.song-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: 24px;
  align-items: start;
}

.song-form,
.song-list-panel {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.48);
  box-shadow: 0 20px 34px rgba(24, 58, 55, 0.06);
}

.song-form {
  display: grid;
  gap: 10px;
}

.song-form .section-heading {
  margin-bottom: 12px;
}

.song-form label {
  margin-top: 8px;
  color: var(--sage-deep);
  font-weight: 700;
}

.song-form label span {
  color: var(--gold-deep);
}

.song-form label small {
  color: var(--muted);
  font-weight: 400;
}

.song-form input {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(24, 58, 55, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  font: inherit;
}

.song-form input:focus {
  outline: 3px solid rgba(215, 166, 77, 0.28);
  border-color: var(--gold-deep);
}

.song-form .primary-btn {
  margin-top: 18px;
  border: 0;
  cursor: pointer;
}

.form-message {
  min-height: 1.7em;
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.form-message.success {
  color: var(--sage);
}

.form-message.error {
  color: #a94b3d;
}

.list-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.list-heading h2 {
  margin: 0;
  color: var(--sage-deep);
  font-size: clamp(1.65rem, 3vw, 2.4rem);
  line-height: 1.1;
}

.list-heading .eyebrow {
  margin-bottom: 10px;
}

.song-total {
  display: grid;
  place-items: center;
  min-width: 54px;
  height: 54px;
  padding: 0 10px;
  border-radius: 50%;
  background: var(--bg-warm);
  color: var(--gold-deep);
  font-size: 1.2rem;
  font-weight: 800;
}

.song-list-status {
  margin: 18px 0 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.song-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.song-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 16px;
  border: 1px solid rgba(31, 42, 45, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.54);
}

.song-list-item div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.song-list-item strong {
  overflow: hidden;
  color: var(--sage-deep);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.song-list-item span,
.song-list-item small {
  color: var(--muted);
}

.song-list-item small {
  margin-top: 3px;
  font-size: 0.75rem;
}

.song-list-item b {
  flex: 0 0 auto;
  color: var(--gold-deep);
  font-size: 0.8rem;
  text-align: right;
}

@media (max-width: 760px) {
  .song-hero,
  .song-layout {
    grid-template-columns: 1fr;
  }

  .song-hero {
    padding-top: 48px;
  }

  .song-hero-note {
    width: 100px;
    height: 100px;
    font-size: 3.5rem;
  }
}

@media (max-width: 560px) {
  .song-form,
  .song-list-panel {
    padding: 22px 18px;
  }

  .song-hero h1 {
    font-size: 2.8rem;
  }

  .song-list-item {
    align-items: start;
  }

  .song-list-item b {
    max-width: 70px;
  }
}
