/* ============================================================
   Music Heals Minds — Virtual Sessions site
   Design tokens
   ============================================================ */

:root {
  --cream:        #FAF4E6;
  --cream-alt:    #F1E8D3;
  --ink:          #2B3A2C;
  --ink-soft:     #4B5A4C;
  --forest:       #3E5B45;
  --forest-deep:  #263B24;
  --gold:         #B98A22;
  --gold-soft:    #E4C97A;
  --wisteria:     #6F5E93;
  --blush:        #C97B84;
  --line:         #DDD0AE;
  --max: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Fraunces", Georgia, serif;
  color: var(--forest-deep);
  line-height: 1.2;
  font-weight: 600;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }

p { max-width: 68ch; }

a { color: var(--forest); }
a:hover { color: var(--gold); }

.wordmark {
  font-family: "Alex Brush", cursive;
  font-size: 2rem;
  color: var(--forest-deep);
  text-decoration: none;
  line-height: 1;
}
.wordmark:hover { color: var(--forest-deep); }

/* Skip link for keyboard/screen-reader users */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--forest-deep);
  color: var(--cream);
  padding: 0.75em 1.25em;
  z-index: 100;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
  top: 0;
}

/* Visible keyboard focus everywhere */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--wisteria);
  outline-offset: 2px;
}

/* ============================================================
   Header / nav
   ============================================================ */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  border-bottom-color: var(--gold);
  color: var(--forest-deep);
}

/* ============================================================
   Hero (home page)
   ============================================================ */
.hero {
  position: relative;
  color: var(--cream);
  overflow: hidden;
}

.hero img {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 620px;
  object-fit: cover;
  object-position: center 32%;
  display: block;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,32,19,0.48) 0%, rgba(20,32,19,0.55) 45%, rgba(16,26,15,0.86) 100%);
}

.hero-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  padding: 1.5rem;
  padding-bottom: min(6vh, 3rem);
}

.hero-text h1 {
  color: #fff;
  margin-bottom: 0.35em;
  text-shadow: 0 2px 14px rgba(0,0,0,0.45);
}
.hero-text p {
  color: var(--cream);
  max-width: 42ch;
  font-size: 1.15rem;
  font-weight: 500;
  margin: 0 0 1.6em;
  text-shadow: 0 1px 12px rgba(0,0,0,0.65);
}

/* ============================================================
   Small inner-page hero band (language + about pages)
   ============================================================ */
.band {
  background: var(--forest-deep);
  color: var(--cream);
  padding: 3.2rem 1.5rem 3.6rem;
  text-align: center;
}
.band h1 { color: var(--cream); }
.band p { color: var(--gold-soft); margin: 0 auto; font-size: 1.05rem; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-block;
  background: var(--forest-deep);
  color: var(--cream);
  text-decoration: none;
  font-weight: 700;
  padding: 0.85em 1.7em;
  border-radius: 6px;
  border: 2px solid var(--forest-deep);
}
.btn:hover { background: var(--forest); color: var(--cream); }

.btn-outline {
  background: transparent;
  color: var(--cream);
  border: 2px solid var(--cream);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); color: var(--cream); }

.btn-gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--forest-deep);
}
.btn-gold:hover { background: var(--gold-soft); border-color: var(--gold-soft); color: var(--forest-deep); }

/* ============================================================
   Sections / general layout
   ============================================================ */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.6rem 1.5rem;
}
.section-alt { background: var(--cream-alt); }

.section > h2 { max-width: 60ch; }

/* ============================================================
   Language "stepping stone" cards
   ============================================================ */
.stones {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin-top: 2rem;
}

.stone {
  flex: 1 1 210px;
  background: var(--cream);
  border-top: 6px solid var(--stone-color, var(--forest));
  border-radius: 10px;
  padding: 1.6rem 1.4rem;
  text-decoration: none;
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}

.stone:nth-child(2)  { --stone-color: var(--wisteria); margin-top: 1.1rem; }
.stone:nth-child(3)  { --stone-color: var(--gold); }
.stone:nth-child(4)  { --stone-color: var(--blush); margin-top: 1.1rem; }

.stone .lang-name {
  display: block;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.5rem;
  color: var(--forest-deep);
  margin-bottom: 0.15em;
}
.stone .lang-gloss {
  display: block;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 0.7em;
  letter-spacing: 0.02em;
}
.stone .lang-cta {
  font-weight: 700;
  color: var(--forest);
}
.stone:hover .lang-cta { color: var(--gold); }
.stone:hover { border-top-color: var(--gold); }

/* ============================================================
   How it works — numbered steps (genuine sequence)
   ============================================================ */
.steps {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.8rem 2rem;
}
.steps li {
  padding-left: 3rem;
  position: relative;
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: -0.1rem;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--forest-deep);
  color: var(--cream);
  font-family: "Fraunces", serif;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.steps { counter-reset: step; }
.steps h3 { margin-bottom: 0.25em; font-size: 1.05rem; }
.steps p { margin: 0; font-size: 0.98rem; color: var(--ink-soft); }

/* ============================================================
   Divider (ripple)
   ============================================================ */
.ripple {
  display: block;
  width: 100%;
  height: 40px;
  color: var(--cream-alt);
}

/* ============================================================
   Testimonial
   ============================================================ */
.testimonial {
  background: var(--cream-alt);
  border-left: 5px solid var(--blush);
  padding: 2rem 2.2rem;
  border-radius: 4px;
  max-width: 62ch;
}
.testimonial p {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 1.25rem;
  color: var(--forest-deep);
  margin: 0 0 0.6em;
}
.testimonial cite {
  font-style: normal;
  font-weight: 700;
  color: var(--ink-soft);
}

/* ============================================================
   Session details card (language pages)
   ============================================================ */
.session-card {
  background: var(--cream-alt);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 2rem 2.2rem;
  max-width: 640px;
}
.session-card dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.6rem 1.2rem;
  margin: 0 0 1.6rem;
}
.session-card dt {
  font-weight: 700;
  color: var(--forest-deep);
  white-space: nowrap;
}
.session-card dd { margin: 0; }

/* Placeholder marker — visibly flags text the site owner must edit */
.placeholder {
  display: inline-block;
  background: #FBF0D9;
  border: 1px dashed var(--gold);
  color: #7A5A0A;
  padding: 0.1em 0.5em;
  border-radius: 4px;
  font-style: italic;
  font-size: 0.95em;
}

/* ============================================================
   Get involved
   ============================================================ */
.involved-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.4rem;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--forest-deep);
  color: var(--cream-alt);
  padding: 3rem 1.5rem 2rem;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}
.site-footer h3 {
  color: var(--cream);
  font-size: 1rem;
  font-family: "Source Sans 3", sans-serif;
  font-weight: 700;
  margin-bottom: 0.7em;
}
.site-footer a { color: var(--cream-alt); }
.site-footer a:hover { color: var(--gold-soft); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.4em; }
.footer-bottom {
  max-width: var(--max);
  margin: 2rem auto 0;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 0.85rem;
  color: var(--cream-alt);
}

/* ============================================================
   Language-specific type overrides
   ============================================================ */
body.lang-ko, body.lang-zh {
  font-family: "Noto Sans KR", "Noto Sans SC", "Segoe UI", sans-serif;
}
body.lang-ko h1, body.lang-ko h2, body.lang-ko h3 { font-family: "Noto Serif KR", serif; }
body.lang-zh h1, body.lang-zh h2, body.lang-zh h3 { font-family: "Noto Serif SC", serif; }
body.lang-ko .testimonial p, body.lang-zh .testimonial p { font-style: normal; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 640px) {
  .site-header { justify-content: center; text-align: center; }
  .stone:nth-child(2), .stone:nth-child(4) { margin-top: 0; }
  .session-card { padding: 1.4rem 1.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
