@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/playfair-display-latin-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('fonts/playfair-display-latin-900-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/rubik-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/rubik-latin-500-normal.woff2') format('woff2');
}

:root {
  --teal: #1a4a4a;
  --teal-dark: #123636;
  --peach: #f7c489;
  --cream: #fffdf9;
  --ink: #2c2c2c;
  --muted: #5c6b6b;
  --border: #eee;
  --nav-bg: #fffdf9;
  --footer-bg: #1a4a4a;
  --footer-ink: #e8efef;
  --max: 1180px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --teal: #f2c383;
    --teal-dark: #f4e6cc;
    --peach: #3a2c1a;
    --cream: #10201f;
    --ink: #e7efee;
    --muted: #9fb3b2;
    --border: #24302f;
    --nav-bg: #0f1a1a;
    --footer-bg: #0a1414;
    --footer-ink: #cfe0df;
  }
}
:root[data-theme="dark"] {
  --teal: #f2c383;
  --teal-dark: #f4e6cc;
  --peach: #3a2c1a;
  --cream: #10201f;
  --ink: #e7efee;
  --muted: #9fb3b2;
  --border: #24302f;
  --nav-bg: #0f1a1a;
  --footer-bg: #0a1414;
  --footer-ink: #cfe0df;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Rubik', -apple-system, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  transition: background-color .2s ease, color .2s ease;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--teal);
  margin: 0 0 .4em;
  line-height: 1.15;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Nav */
header.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  transition: background-color .2s ease, border-color .2s ease;
}
.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}
.brand {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--teal);
  text-decoration: none;
}
.site-nav nav {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}
.site-nav nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: .98rem;
}
.site-nav nav a[aria-current="page"] {
  color: var(--teal);
  font-weight: 500;
}
.site-nav nav a:hover { color: var(--teal); }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: transparent;
  color: var(--teal);
  cursor: pointer;
  transition: background-color .15s ease, border-color .2s ease, color .2s ease;
}
.theme-toggle:hover { background: var(--peach); }
.theme-toggle:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.theme-toggle svg { width: 18px; height: 18px; display: block; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: block; }
}

/* Hero */
.hero {
  max-width: var(--max);
  margin: 40px auto 0;
  padding: 0 24px;
}
.hero figure { margin: 0; }
.hero img { width: 100%; border-radius: 18px; }
.hero figcaption {
  text-align: center;
  margin-top: 14px;
  color: var(--muted);
  font-size: .98rem;
}

/* Spotify strip */
.spotify-strip {
  margin-top: 48px;
}
.spotify-strip a { display: block; }
.spotify-strip img { width: 100%; }
.spotify-strip figcaption {
  text-align: center;
  padding: 14px 0;
  color: var(--muted);
  font-size: .95rem;
}

/* Accent band */
.band {
  background: var(--peach);
  padding: 56px 0;
  margin-top: 0;
}
.band-intro {
  display: flex;
  align-items: center;
  gap: 56px;
  flex-wrap: wrap;
}
.band-intro img {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  margin: 0 auto;
}
.band-intro .copy { flex: 1; min-width: 260px; text-align: center; }
.band-intro h2 { font-size: 2.6rem; }
.band-intro p { color: var(--teal-dark); font-size: 1.05rem; margin: 0; }

@media (min-width: 640px) {
  .band-intro .copy { text-align: left; }
  .band-intro img { margin: 0; }
}

/* Podcast list */
.podcasts {
  padding: 56px 0;
  display: flex;
  flex-direction: column;
  gap: 56px;
}
.podcast-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}
@media (min-width: 800px) {
  .podcast-row { grid-template-columns: 1fr 1fr; gap: 48px; }
}
.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
}
.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.podcast-copy { text-align: center; }
.podcast-copy h3 { font-size: 1.9rem; }
.podcast-copy p { color: var(--muted); margin: 0 0 .3em; }
.podcast-copy .date { font-size: .9rem; color: #8a9494; }
.podcast-copy a.donate {
  color: var(--teal);
  text-decoration: underline;
}

/* Non-english */
.lang-section {
  padding: 56px 0 40px;
  text-align: center;
}
.lang-section h2 { font-size: 2.4rem; margin-bottom: 40px; }
.lang-flags {
  display: flex;
  justify-content: center;
  gap: 64px;
  flex-wrap: wrap;
}
.lang-flags a { text-decoration: none; }
.lang-flags img {
  width: 140px;
  aspect-ratio: 3/2;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0,0,0,.12);
}
.lang-flags span {
  display: block;
  margin-top: 14px;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--teal);
  font-size: 1.2rem;
}

/* Downloadable art band */
.art-band .band-intro .copy { text-align: center; }
.art-band h2 { font-size: 2.2rem; }
.art-band p { color: var(--teal-dark); max-width: 640px; margin: 0 auto 1em; }
.art-band a { color: var(--teal-dark); text-decoration: underline; }

/* Gallery */
.gallery {
  padding: 48px 0 60px;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
@media (min-width: 640px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }
.gallery-grid a { display: block; overflow: hidden; border-radius: 8px; }
.gallery-grid img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  transition: transform .2s ease;
}
.gallery-grid a:hover img { transform: scale(1.04); }

/* Fashion band */
.fashion-band .band-intro .copy { text-align: center; }
.fashion-band h2 { font-size: 3rem; }
.fashion-band p { color: var(--teal-dark); }

/* Class act */
.class-act {
  padding: 60px 0;
}
.class-act .row {
  display: flex;
  align-items: center;
  gap: 56px;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
}
.class-act img {
  width: 220px;
  border: 3px solid var(--teal);
  border-radius: 50%;
  padding: 24px;
  margin: 0 auto;
}
.class-act .copy { flex: 1; min-width: 260px; }
.class-act h2 {
  text-decoration: underline;
  font-size: 2.1rem;
}
.class-act a.site-link {
  color: var(--teal);
  text-decoration: underline;
}
@media (min-width: 640px) { .class-act .row { text-align: left; } }

/* About page */
.about-hero {
  padding: 56px 0;
}
.about-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
@media (min-width: 700px) {
  .about-hero-grid { grid-template-columns: 280px 1fr; gap: 56px; }
}
.about-hero img {
  border-radius: 18px;
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
}
.about-hero .copy p { margin: 0 0 1em; color: var(--ink); }
.about-hero .copy p:last-child { margin-bottom: 0; }

/* Contact form */
.contact {
  padding: 0 0 64px;
}
.contact-form {
  max-width: 520px;
  margin: 0 auto;
  background: var(--band-form-bg, transparent);
}
.contact-form fieldset {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px;
}
.contact-form legend {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--teal);
  font-size: 1.5rem;
  padding: 0 10px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: .92rem;
  color: var(--muted);
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--cream);
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color .15s ease, background-color .2s ease, color .2s ease;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
}
.form-group textarea { resize: vertical; min-height: 130px; }

/* Honeypot field — hidden from sighted users and screen readers, catches bots that fill every input */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.button-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border: none;
  border-radius: 999px;
  background: var(--teal);
  color: var(--cream);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: opacity .15s ease, background-color .2s ease, color .2s ease;
}
.button-submit:hover { opacity: .9; }
.button-submit:disabled { opacity: .6; cursor: default; }

.form-status {
  margin: 14px 0 0;
  font-size: .95rem;
  min-height: 1.2em;
}
.form-status[data-state="ok"] { color: #2f7a4f; }
:root[data-theme="dark"] .form-status[data-state="ok"] { color: #6fd19a; }
.form-status[data-state="error"] { color: #b3443f; }
:root[data-theme="dark"] .form-status[data-state="error"] { color: #f0918c; }

/* Footer */
footer {
  background: var(--footer-bg);
  color: var(--footer-ink);
  text-align: center;
  padding: 26px 0;
  margin-top: 20px;
  transition: background-color .2s ease;
}

/* Language page hero band — rectangular flag instead of the circular mascot crop */
.lang-hero .band-intro img {
  width: 100%;
  max-width: 320px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
}

/* Back-to-home link at the bottom of language pages */
.back-home {
  text-align: center;
  padding: 40px 0 60px;
}
.back-home a {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--teal);
  text-decoration: none;
  border-bottom: 2px solid var(--teal);
  padding-bottom: 2px;
}
