/* ==========================================================================
   The Evergreen Hearts — site styles
   Forest & Moss palette, modern layout. All colors come from the palette
   tokens below.
   ========================================================================== */

/* ---------- Palette: Forest & Moss ---------- */
:root {
  --bg: #f3efe3;
  --surface: #e7e1cf;
  --text: #1f2a1f;
  --muted: #56624d;
  --accent: #2f4a32;
  --on-accent: #f3efe3;
  --accent-2: #a9822f;
  --border: #cfc7b0;
  --hero-bg: #1f3322;
  --hero-text: #f1ecdc;
}

/* ---------- Base ---------- */
:root {
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 18px;
  --radius-sm: 10px;
  --max: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(56px, 9vw, 112px);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background-color .4s ease, color .4s ease;
}

/* Subtle paper grain over everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg { max-width: 100%; display: block; }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-2); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.6rem, 7vw, 5.5rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 3px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--accent);
  color: var(--on-accent);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  z-index: 200;
}
.skip-link:focus { left: 8px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section); }
.section--alt { background: var(--surface); }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: .75rem;
}

.lede { font-size: 1.2rem; color: var(--muted); max-width: 60ch; }

.grid-2 {
  display: grid;
  gap: clamp(24px, 5vw, 64px);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 820px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
}

.cards {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.section--alt .card { background: var(--bg); }

/* Unfinished placeholder content: hidden from visitors until it's filled in.
   Also hides the label/heading/list item that would be left orphaned.
   Remove the `todo` class from an element once its content is real. */
.todo,
li:has(> .todo),
dt:has(+ dd.todo),
:is(h2, h3):has(+ .todo) {
  display: none !important;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 16px;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand img { width: 44px; height: 44px; border-radius: 50%; }
.site-footer .brand img { width: 56px; height: 56px; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  padding: 8px 4px;
}
.site-nav a:hover { color: var(--accent); }
.site-nav a[aria-current="page"] {
  color: var(--accent);
  box-shadow: inset 0 -2px 0 var(--accent-2);
}

/* Mobile nav */
@media (max-width: 819px) {
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { padding: 8px var(--gutter) 20px; }
  .site-nav li a { display: block; padding: 12px 0; font-size: 1.1rem; }
}

@media (min-width: 820px) {
  .nav-toggle { display: none; }
  .site-nav ul { display: flex; gap: 28px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 2px solid var(--accent);
  background: var(--accent);
  color: var(--on-accent);
  font: 600 1rem var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background-color .2s ease;
}
.btn:hover { color: var(--on-accent); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--accent); }
.btn--ghost:hover { color: var(--accent); }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--hero-bg);
  color: var(--hero-text);
  padding-block: clamp(80px, 14vw, 180px) clamp(120px, 16vw, 200px);
  overflow: hidden;
  transition: background-color .4s ease, color .4s ease;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { max-width: 12ch; }
.hero .lede { color: inherit; opacity: .85; }
.hero .eyebrow { color: var(--accent-2); }
.hero .btn--ghost { color: var(--hero-text); border-color: var(--hero-text); }

/* Decorative organic blobs */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 58% 42% 63% 37% / 45% 55% 45% 55%;
  background: var(--accent-2);
  opacity: .18;
  pointer-events: none;
}
.hero::before { width: 520px; height: 520px; right: -140px; top: -120px; }
.hero::after  { width: 300px; height: 300px; right: 18%; bottom: -120px; background: var(--accent); opacity: .35; }

/* Wavy hill divider at the bottom of the hero */
.hero__hills {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  width: 100%;
  height: clamp(50px, 8vw, 110px);
  color: var(--bg);
  z-index: 1;
}

.page-hero { padding-block: clamp(64px, 10vw, 120px) clamp(90px, 12vw, 150px); }
.page-hero h1 { font-size: clamp(2.4rem, 6vw, 4.25rem); max-width: none; }

/* ---------- Media placeholders ---------- */
.placeholder {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--accent-2) 35%, transparent), transparent 60%),
    linear-gradient(135deg, var(--accent), var(--hero-bg));
  color: var(--on-accent);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: center;
  padding: 16px;
}
.placeholder--wide { aspect-ratio: 16 / 9; }
.placeholder--portrait { aspect-ratio: 4 / 5; }

.cover {
  width: 100%;
  max-width: 480px;
  height: auto;
  margin-inline: auto;
  border-radius: var(--radius);
}

/* ---------- Release ---------- */
.release-meta {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px 20px;
  margin: 1.5rem 0;
}
.release-meta dt { font-weight: 600; color: var(--muted); }
.release-meta dd { margin: 0; }

.tracklist { padding-left: 1.4em; }
.tracklist li { padding: 6px 0; border-bottom: 1px solid var(--border); }

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-2);
  color: var(--on-accent);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* ---------- Shows ---------- */
.shows { list-style: none; margin: 0; padding: 0; }

.show {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 4px 20px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.show:first-child { border-top: 1px solid var(--border); }

.show__date {
  grid-row: span 2;
  text-align: center;
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 8px 0;
  line-height: 1.1;
}
.section--alt .show__date { background: var(--bg); }
.show__month { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-2); }
.show__day { display: block; font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; }
.show__venue { font-weight: 600; font-size: 1.1rem; }
.show__where { color: var(--muted); font-size: .95rem; }
.show__note { display: block; color: var(--accent); font-size: .9rem; font-weight: 600; }
.show__action { grid-column: 2; justify-self: start; margin-top: 8px; }

@media (min-width: 680px) {
  .show { grid-template-columns: 90px 1fr auto; }
  .show__action { grid-column: 3; grid-row: 1 / span 2; margin: 0; }
}

.show--past { opacity: .7; }
.show--highlight .show__date { background: var(--accent); color: var(--on-accent); }
.show--highlight .show__month { color: inherit; }

.shows-empty { color: var(--muted); font-style: italic; }

/* ---------- Signup ---------- */
.signup {
  background: var(--accent);
  color: var(--on-accent);
  border-radius: calc(var(--radius) * 1.5);
  padding: clamp(28px, 6vw, 64px);
  display: grid;
  gap: 24px;
}
.signup h2 { margin-bottom: .25em; }
.signup p { opacity: .9; }
@media (min-width: 820px) {
  .signup { grid-template-columns: 1.1fr 1fr; align-items: center; }
}

.form-row { display: flex; flex-wrap: wrap; gap: 10px; }
.form-row input { flex: 1 1 220px; }

input, textarea, select {
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  width: 100%;
}
textarea { min-height: 140px; resize: vertical; }

.signup .btn { background: var(--on-accent); color: var(--accent); border-color: var(--on-accent); }
.form-status { margin-top: 10px; font-size: .95rem; min-height: 1.5em; }

.form-grid { display: grid; gap: 16px; }
.form-grid label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }

/* About page band photo: pre-cropped to 4:5 to fill the same space as the old placeholder */
.band-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
}
/* Home page version: pre-cropped to 16:9 to fill the old wide placeholder */
.band-photo--wide { aspect-ratio: 16 / 9; }

/* ---------- Members ---------- */
.member .placeholder { margin-bottom: 16px; }
/* Member photos: pre-cropped to 4:5 portrait to match the placeholder */
.member-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 16px;
}
.member h3 { margin-bottom: .15em; }
.member p { color: var(--muted); margin: 0; }

/* ---------- Press ---------- */
.quote {
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.4;
  margin: 0;
}
.quote cite { display: block; margin-top: 12px; font: 600 .9rem var(--font-body); color: var(--muted); font-style: normal; }

.download-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.download-list a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text);
  background: var(--bg);
}
.download-list a:hover { border-color: var(--accent); }
.download-list span { color: var(--muted); font-size: .9rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--hero-bg);
  color: var(--hero-text);
  padding-block: 56px 32px;
  transition: background-color .4s ease, color .4s ease;
}
.site-footer a { color: inherit; }
.site-footer .container { display: grid; gap: 28px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: center; }
.social { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.social a {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid currentColor;
  border-radius: 999px;
  text-decoration: none;
  font-size: .9rem;
}
.social a[aria-disabled="true"] { opacity: .5; }
.footer-small { font-size: .85rem; opacity: .75; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
