/* Black Stump — night in the clearing.
   Dark by default because the venue is: this is not a theme, it is the place.
   No web fonts: the site loads instantly on a phone in a paddock, and nothing is
   requested from a third party. */

:root {
  --ink:      #080b0a;   /* the dark under the trees */
  --ink-2:    #0d1211;
  --ink-3:    #131a18;
  --line:     #253029;
  --paper:    #e9e3d6;   /* warm off-white, not sterile */
  --muted:    #9aa093;
  --ember:    #d9622b;   /* firelight, the one hot colour */
  --ochre:    #c08a4e;   /* red earth */
  --euc:      #7d9b7f;   /* eucalypt */
  --measure:  68ch;
  --pad:      clamp(1.25rem, 5vw, 3rem);
  --serif:    Georgia, 'Iowan Old Style', 'Times New Roman', serif;
  --sans:     ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

html { color-scheme: dark; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font: 400 clamp(1rem, 0.95rem + 0.2vw, 1.0625rem)/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* A faint warmth low on the page, like a fire somewhere off to the side. */
body::before {
  content: "";
  position: fixed;
  inset: auto 0 0 0;
  height: 55vh;
  background: radial-gradient(60% 100% at 50% 100%, rgba(217, 98, 43, 0.10), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.wrap { position: relative; z-index: 1; width: min(72rem, 100%); margin-inline: auto; padding-inline: var(--pad); }

a { color: var(--paper); text-decoration-color: rgba(217, 98, 43, 0.55); text-underline-offset: 0.22em; }
a:hover { color: var(--ember); }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; margin: 0 0 0.5em; }
p { margin: 0 0 1em; max-width: var(--measure); }

.eyebrow {
  font: 600 0.72rem/1 var(--sans);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ochre);
  margin: 0 0 0.9rem;
}

/* ── header ─────────────────────────────────────────────────────────── */
.site-head {
  display: flex; flex-wrap: wrap; gap: 1rem 2rem;
  align-items: baseline; justify-content: space-between;
  padding-block: 1.75rem 1.25rem;
  border-bottom: 1px solid var(--line);
}
.brand { font-family: var(--serif); font-size: 1.15rem; letter-spacing: 0.34em; text-transform: uppercase; text-decoration: none; }
.brand:hover { color: var(--paper); }
.site-nav { display: flex; gap: 1.6rem; font-size: 0.9rem; }
.site-nav a { text-decoration: none; color: var(--muted); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--paper); }

/* ── hero ───────────────────────────────────────────────────────────── */
.hero { padding-block: clamp(3rem, 11vw, 7rem) clamp(2rem, 7vw, 4rem); }
.hero h1 {
  font-size: clamp(2.6rem, 9vw, 5.5rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.35em;
}
.hero .lede { font-size: clamp(1.1rem, 1rem + 0.6vw, 1.4rem); color: var(--paper); max-width: 34ch; }
.hero .sub { color: var(--muted); max-width: 52ch; }

/* ── event cards ────────────────────────────────────────────────────── */
.section { padding-block: clamp(2.5rem, 7vw, 4.5rem); border-top: 1px solid var(--line); }
.section > h2 { font-size: clamp(1.5rem, 3vw, 2rem); }

.events { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 3px; overflow: hidden; margin-top: 2rem; }
.event {
  display: grid; gap: 0.35rem 2rem; align-items: baseline;
  grid-template-columns: minmax(0, 1fr);
  background: var(--ink-2);
  padding: 1.5rem clamp(1rem, 3vw, 2rem);
  text-decoration: none;
  transition: background 140ms ease;
}
@media (min-width: 46rem) { .event { grid-template-columns: 15rem minmax(0, 1fr); } }
.event:hover { background: var(--ink-3); color: var(--paper); }
.event .when { font-variant-numeric: tabular-nums; color: var(--ochre); font-size: 0.92rem; }
.event .when .utc { display: block; color: var(--muted); font-size: 0.84rem; }
.event h3 { font-size: 1.45rem; margin: 0 0 0.2rem; }
.event .who { color: var(--muted); font-size: 0.94rem; margin: 0; }
.event.is-cancelled h3 { text-decoration: line-through; color: var(--muted); }

.tag {
  display: inline-block; margin-left: 0.6rem; vertical-align: 0.15em;
  font: 600 0.62rem/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase;
  padding: 0.35em 0.6em; border: 1px solid var(--line); border-radius: 2px; color: var(--muted);
}
.tag.is-next { color: var(--ember); border-color: rgba(217, 98, 43, 0.5); }

.empty { color: var(--muted); font-style: italic; margin-top: 2rem; }

/* ── event page ─────────────────────────────────────────────────────── */
.event-hero { padding-block: clamp(2.5rem, 8vw, 5rem) 2rem; }
.event-hero h1 { font-size: clamp(2.2rem, 6.5vw, 4rem); }
.event-art { width: 100%; height: auto; display: block; border: 1px solid var(--line); border-radius: 3px; margin-block: 2rem; }
.facts { display: grid; gap: 1.5rem 3rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); margin: 2rem 0; padding: 1.5rem 0; border-block: 1px solid var(--line); }
.facts dt { font: 600 0.7rem/1 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--ochre); margin-bottom: 0.45rem; }
.facts dd { margin: 0; font-variant-numeric: tabular-nums; }
.lineup { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.lineup li { display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; align-items: baseline; padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
.lineup .set { color: var(--ochre); font-variant-numeric: tabular-nums; min-width: 4.5rem; }
.lineup .name { font-family: var(--serif); font-size: 1.2rem; }
.lineup .role { color: var(--muted); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; }
.lineup .links { margin-left: auto; display: flex; gap: 1rem; font-size: 0.88rem; }
.notice { border-left: 2px solid var(--ember); padding: 0.75rem 0 0.75rem 1.25rem; color: var(--paper); background: rgba(217, 98, 43, 0.06); }

.prose { max-width: var(--measure); }
.prose p:first-of-type { font-size: 1.1rem; }

.back { display: inline-block; margin-top: 3rem; color: var(--muted); font-size: 0.9rem; }

/* ── how it works ───────────────────────────────────────────────────── */
.steps { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); margin-top: 2.5rem; counter-reset: step; }
.steps > div { counter-increment: step; }
.steps h3 { font-size: 1.1rem; display: flex; gap: 0.7rem; align-items: baseline; }
.steps h3::before { content: counter(step); font: 600 0.72rem/1 var(--sans); color: var(--ember); letter-spacing: 0.1em; }
.steps p { color: var(--muted); font-size: 0.95rem; }

/* ── footer ─────────────────────────────────────────────────────────── */
.site-foot { border-top: 1px solid var(--line); margin-top: clamp(3rem, 9vw, 6rem); padding-block: 2.5rem 3.5rem; color: var(--muted); font-size: 0.88rem; }
.site-foot p { max-width: 50ch; }
.site-foot .links { display: flex; flex-wrap: wrap; gap: 1.4rem; margin-bottom: 1.25rem; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
