/* Ancestree: warm black, with the logo's red, gold and green as accents.
   Colours come from the bandMerch recolor (ancestree_redroots_greentree_goldpyramid.svg).
   Headings use Palatino, the face on the band's gig posters (system font, nothing to download).
   Spacing is in rem, never vh/svh: stacked viewport-height paddings left huge black gaps on
   phones on the Treebeamz site (fixed there 2026-12-01). Keep it that way. */
:root {
  --bg: #0d0b08;
  --surface: #17130d;
  --ink: #f3ead8;
  --muted: #b5aa96;
  --gold: #f2b705;
  --amber: #e39b0b;
  --green: #1e7a34;
  --leaf: #6cbf6a;
  --red: #c8102e;
  --line: rgba(242, 183, 5, .18);
  --serif: 'Palatino Linotype', Palatino, 'Book Antiqua', 'URW Palladio L', P052, Georgia, serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --max: 1080px;
  --gap: clamp(1rem, 4vw, 2.5rem);
  --pad: clamp(2.75rem, 7vw, 5.5rem);   /* section padding: rem-based on purpose */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--gold); }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: #000; padding: .5rem 1rem; z-index: 20; }
.skip:focus { left: 1rem; top: 1rem; }
.wrap { width: min(100% - 2 * var(--gap), var(--max)); margin-inline: auto; }
.narrow { max-width: 720px; }
.muted { color: var(--muted); }

/* Header: slim and sticky; the nav is built from the page's section list. */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(13, 11, 8, .88); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.5rem; }
.home-link img { width: 148px; }
.site-nav { display: flex; gap: clamp(.9rem, 3vw, 2rem); }
.site-nav a { color: var(--muted); text-decoration: none; font-size: .95rem; letter-spacing: .04em; padding: .6rem 0; }
.site-nav a:hover { color: var(--gold); }

/* Type */
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.15; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 6vw, 3.25rem); }
h2 { font-size: clamp(1.75rem, 4.2vw, 2.6rem); color: var(--ink); }
.kicker { font-size: .78rem; letter-spacing: .28em; text-transform: uppercase; color: var(--leaf); margin: 0 0 .6rem; font-weight: 600; }
p { margin: 0 0 1rem; max-width: 40rem; }
.lede { font: italic 400 clamp(1.2rem, 3vw, 1.6rem)/1.35 var(--serif); color: var(--ink); margin: 0 auto 1.5rem; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: .65rem 1.4rem; border-radius: 999px;
  font: 600 .98rem/1 var(--sans); letter-spacing: .03em; text-decoration: none; cursor: pointer;
  border: 1.5px solid var(--gold); color: var(--gold); background: transparent;
  transition: background .2s, color .2s;
}
.btn:hover { background: rgba(242, 183, 5, .12); color: var(--gold); }
.btn.primary { background: var(--gold); color: #1a1200; }
.btn.primary:hover { background: #ffd23f; border-color: #ffd23f; color: #000; }
.btn.small { min-height: 38px; padding: .45rem 1rem; font-size: .88rem; }

/* Sections. Each one is self-contained, so they can be reordered in the page's front matter. */
section { padding-block: var(--pad); }
section + section { border-top: 1px solid var(--line); }

/* Hero */
.hero {
  text-align: center; padding-block: clamp(1.75rem, 5vw, 3.5rem) clamp(2.5rem, 6vw, 4.5rem);
  background: radial-gradient(ellipse 60% 55% at 50% 42%, rgba(242, 183, 5, .10), transparent 70%),
              radial-gradient(ellipse 80% 60% at 50% 20%, rgba(30, 122, 52, .16), transparent 75%);
}
.hero-logo { margin: 0 auto 1rem; width: min(72vw, 400px); }
.hero-logo img { width: 100%; filter: drop-shadow(0 0 28px rgba(242, 183, 5, .14)); }

/* Two-column rows (photo + copy); stacked on phones */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.split.flip .split-media { order: 2; }
.split-media img { width: 100%; border-radius: 6px; }
.crowd img { aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 40%; }

/* Shows */
.shows { list-style: none; margin: 1.25rem 0 0; padding: 0; }
.show { display: grid; grid-template-columns: 3.75rem 1fr auto; gap: 1rem; align-items: center;
  padding: 1rem 0; border-top: 1px solid var(--line); }
.show:last-child { border-bottom: 1px solid var(--line); }
.show-date { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.show-mo { font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--leaf); font-weight: 600; }
.show-day { font: 700 1.9rem/1.1 var(--serif); color: var(--gold); }
.show-info { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.show-info strong { font-size: 1.08rem; }
.show-city, .show-meta { color: var(--muted); font-size: .93rem; }
.show.example { outline: 1px dashed var(--amber); outline-offset: -1px; padding-inline: .75rem; position: relative; }
.show.example::before { content: "TODO: example show"; position: absolute; top: -.6rem; right: .6rem; background: var(--bg);
  color: var(--amber); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; padding: 0 .4rem; }
.empty { color: var(--muted); }

/* Music and video */
.videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 1.5rem; margin-top: 1.25rem; }
.video { margin: 0; }
.video figcaption { color: var(--muted); font-size: .92rem; margin-top: .5rem; }
.video-play, .video iframe, .slot-box { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 6px; display: block; }
.video.portrait iframe { aspect-ratio: 4 / 5; max-width: 420px; background: #fff; }
.video-play { position: relative; padding: 0; cursor: pointer; background: #000; overflow: hidden; }
.video-play img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.play-icon { position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%;
  background: rgba(13, 11, 8, .7); border: 2px solid var(--gold); }
.play-icon::after { content: ""; position: absolute; left: 25px; top: 19px; border-style: solid;
  border-width: 13px 0 13px 21px; border-color: transparent transparent transparent var(--gold); }
.slot-box { position: relative; background: var(--surface); border: 1px dashed rgba(242, 183, 5, .35);
  display: flex; align-items: flex-end; justify-content: center; padding: 1rem; }
.slot-box .play-icon { opacity: .5; bottom: 2.5rem; }

/* Contact form */
.contact-form { display: grid; gap: 1rem; margin-top: 1.5rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: grid; gap: .35rem; }
label { font-size: .9rem; color: var(--muted); }
.opt { color: #8a8070; }
input, textarea, select {
  width: 100%; font: inherit; color: var(--ink); background: var(--surface);
  border: 1px solid rgba(243, 234, 216, .18); border-radius: 6px; padding: .7rem .8rem; min-height: 46px;
}
input:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 2px rgba(242, 183, 5, .25); }
input[type="date"] { color-scheme: dark; }
textarea { resize: vertical; min-height: 8rem; }
.hp { position: absolute; left: -9999px; }
.form-status { margin: 0; font-size: .95rem; min-height: 0; }
.form-status:empty { display: none; }
.form-status.ok { color: var(--leaf); }
.form-status.err { color: #ffb4a8; background: rgba(200, 16, 46, .12); border-left: 3px solid var(--red); padding: .6rem .8rem; border-radius: 4px; }
.form-reason { color: var(--muted); font-size: .85rem; }

/* Draft placeholders: visible on purpose; `build.py --release` refuses while any remain. */
.todo { display: inline; color: #ffd98a; background: rgba(227, 155, 11, .1); border: 1px dashed var(--amber);
  border-radius: 4px; padding: .05rem .35rem; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
p > .todo:only-child { display: block; padding: .6rem .8rem; }
.todo::before { content: "TODO "; font: 700 .7rem/1 var(--sans); letter-spacing: .12em; color: var(--amber); }

/* Footer */
.site-footer { padding-block: 2.5rem 3rem; text-align: center; color: var(--muted); font-size: .95rem; }
.site-footer p { margin: .4rem auto; }
.stripe { height: 4px; width: 96px; margin: 0 auto 1.5rem; border-radius: 2px;
  background: linear-gradient(90deg, var(--red) 0 33.3%, var(--gold) 33.3% 66.6%, var(--green) 66.6%); }
.links { list-style: none; padding: 0; margin: 0 0 .5rem; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.5rem; }
.links a { text-decoration: none; letter-spacing: .04em; }

/* Phones: one column, tight spacing (rem only). */
@media (max-width: 760px) {
  .split { grid-template-columns: 1fr; }
  .split.flip .split-media { order: 0; }
  .crowd img { aspect-ratio: 16 / 10; max-height: none; }
  .field-row { grid-template-columns: 1fr; }
  .home-link img { width: 96px; }
  .site-nav { gap: .85rem; }
  .site-nav a { font-size: .88rem; letter-spacing: .02em; }
  .show { grid-template-columns: 3rem 1fr; }
  .actions .btn { padding-inline: 1.1rem; }
  .show .btn { grid-column: 2; justify-self: start; }
}
@media (max-width: 359px) { .site-nav a:first-child { display: none; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Music link-outs under the videos; email-only booking block (contact_mode "email"). */
.actions.more { margin-top: 1.5rem; }
.contact-email { margin-top: 1.25rem; }
.contact-email p { margin: 0 0 1rem; }
.contact-email p:last-child { margin-bottom: 0; }
