/* Bortle One Radio — shared styles.
   A cross between the two Bale House sites:
   - from the Bale House Collective: the Bortle-1 night sky, tall condensed
     uppercase headings (Big Shoulders Display), straw and sandstone accents,
     rounded cards and the sage coordinates line;
   - from Bale House Studio: Shrikhand for the wordmark and show names, Work Sans
     body, pill buttons, and the clay / ochre / sage / slate / brown stripe band
     and layered mesas of its earth palette. */

:root {
  /* Night (Collective) */
  --night: #0c0f1d;
  --surface: #161a2e;
  --line: #2a2f4a;
  --text: #ece6d6;
  --muted: #a7a395;
  --straw: #e6c46a;
  --sandstone: #c96a42;
  --sage: #9db497;
  /* Earth (Studio) */
  --clay: #9a4a31;
  --ochre: #c9a14a;
  --slate: #5e7a8c;
  --brown: #7c4a33;
  --moss: #8a9a7b;
  --sand: #ede4d3;

  --wordmark: "Shrikhand", Georgia, serif;
  --display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --body: "Work Sans", "Helvetica Neue", Arial, sans-serif;

  --measure: 64ch;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

a { color: var(--straw); text-underline-offset: 0.2em; }
a:hover { color: var(--text); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--straw);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 700px) {
  .wrap { padding-left: 40px; padding-right: 40px; }
}

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-block: 1.1rem;
}
.brand {
  font-family: var(--wordmark);
  font-size: 1.6rem;
  line-height: 1;
  color: var(--ochre);
  text-decoration: none;
}
.brand span { color: var(--text); }
.brand:hover { color: var(--straw); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 1.25rem; }
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav a.nav-cta {
  color: var(--night);
  background: var(--straw);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-weight: 600;
}
.nav a.nav-cta:hover { background: var(--ochre); color: var(--night); }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
}
.hero canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero .wrap {
  position: relative;
  padding-block: clamp(3.5rem, 9vw, 6.5rem) clamp(7rem, 16vw, 11rem);
}
.mesas {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: clamp(70px, 12vw, 150px);
  display: block;
}
.coords {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
  font-variant-numeric: tabular-nums;
  margin: 0 0 1rem;
}
h1, h2 {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.92;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: clamp(3rem, 9vw, 6.25rem); max-width: 12ch; }
h1 em, h2 em { font-style: normal; color: var(--straw); }
h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h3 {
  font-family: var(--wordmark);
  font-weight: 400;
  font-size: 1.75rem;
  line-height: 1.15;
  margin: 0;
}
.lede {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  max-width: 46ch;
  margin: 1.5rem 0 2rem;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  background: rgba(12, 15, 29, 0.7);
}
.status::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--sandstone);
  box-shadow: 0 0 0 3px rgba(201, 106, 66, 0.25);
}

/* Studio stripe band */
.stripes {
  height: 36px;
  background: repeating-linear-gradient(180deg,
    var(--clay) 0 7px, var(--ochre) 7px 14px, var(--moss) 14px 21px,
    var(--slate) 21px 28px, var(--brown) 28px 36px);
}

/* Sections */
section { padding-block: clamp(3rem, 7vw, 5rem); }
section + section { border-top: 1px solid var(--line); }
.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
  margin: 0 0 0.75rem;
}
.prose { max-width: var(--measure); }
.prose p { margin: 1rem 0; }

/* Shows */
.shows {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}
.show {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
  position: relative;
  overflow: hidden;
}
.show::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: var(--show-color, var(--line));
}
.show.kissa { --show-color: var(--slate); }
.show.kissa h3 { color: #a9c0d0; }
.show.juniper { --show-color: var(--moss); }
.show.juniper h3 { color: var(--sage); }
.show p { margin: 0; color: var(--muted); }
.airtime {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--straw);
  font-variant-numeric: tabular-nums;
}
.airtime .local { display: block; color: var(--muted); font-weight: 400; font-size: 0.82rem; }

/* Bortle scale strip */
.scale {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 3px;
  margin: 2rem 0 0.75rem;
  max-width: 40rem;
}
.scale span {
  height: 2.5rem;
  border-radius: 6px;
  display: flex;
  align-items: flex-end;
  padding: 0.3rem 0.4rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1rem;
  color: var(--night);
}
.scale span:nth-child(1) { background: var(--night); color: var(--straw); box-shadow: inset 0 0 0 2px var(--straw); }
.scale span:nth-child(2) { background: #1b2140; color: var(--text); }
.scale span:nth-child(3) { background: #2b3256; color: var(--text); }
.scale span:nth-child(4) { background: var(--slate); color: var(--text); }
.scale span:nth-child(5) { background: var(--moss); }
.scale span:nth-child(6) { background: var(--ochre); }
.scale span:nth-child(7) { background: #d8b878; }
.scale span:nth-child(8) { background: #e6d3a8; }
.scale span:nth-child(9) { background: var(--sand); }
.scale-caption {
  display: flex;
  justify-content: space-between;
  max-width: 40rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Buttons */
.button {
  display: inline-block;
  font: 700 1rem/1 var(--body);
  text-decoration: none;
  color: var(--sand);
  background: var(--clay);
  border: 0;
  border-radius: 999px;
  padding: 1rem 1.75rem;
  cursor: pointer;
}
.button:hover { color: var(--sand); background: var(--sandstone); }
.button[aria-disabled="true"] {
  background: transparent;
  color: var(--muted);
  border: 1px dashed var(--muted);
  cursor: not-allowed;
}
.note { font-size: 0.9rem; color: var(--muted); margin-top: 0.75rem; }

/* Steps and lists */
.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 1.5rem;
}
.steps li {
  counter-increment: step;
  border-top: 2px solid var(--straw);
  padding-top: 1rem;
  min-width: 0;
}
.steps li::before {
  content: counter(step);
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: 2rem;
  line-height: 1;
  color: var(--straw);
  margin-bottom: 0.5rem;
}
.steps strong { display: block; font-size: 1.1rem; margin-bottom: 0.25rem; }
.steps p { margin: 0; color: var(--muted); }

.checklist { padding-left: 1.2rem; max-width: var(--measure); }
.checklist li { margin: 0.4rem 0; }
.checklist li::marker { color: var(--straw); }

.subhead {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 1.6rem;
  margin: 2.25rem 0 0;
}

/* FAQ */
.faq { max-width: var(--measure); margin-top: 1.5rem; }
.faq details {
  border-top: 1px solid var(--line);
  padding: 1rem 0;
}
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; }
.faq summary::marker { color: var(--straw); }
.faq details p { margin: 0.75rem 0 0; color: var(--muted); }

/* Empty state */
.empty {
  border: 1px dashed var(--muted);
  border-radius: 14px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  max-width: 44rem;
  margin-top: 2rem;
}
.empty h3 { color: var(--straw); }
.empty p { margin: 0.5rem 0 0; color: var(--muted); }

/* Listen: live player and app placeholders */
.listen {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
  align-items: stretch;
}
.player {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.1rem;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  min-width: 0;
}
.player-art {
  width: clamp(72px, 18vw, 112px);
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
}
.player-art svg { width: 100%; height: 100%; display: block; }
.player-body { min-width: 0; }
.player-body p { margin: 0; }
.player-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
}
.player-status .dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--muted);
}
.player-track {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  line-height: 1;
  margin: 0.35rem 0 !important;
}
.player-meta { font-size: 0.88rem; color: var(--muted); }
.play {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  border: 0;
  display: grid;
  place-items: center;
  background: var(--straw);
  color: var(--night);
  cursor: pointer;
}
.play svg { width: 1.6rem; height: 1.6rem; margin-left: 2px; }
.play:disabled {
  background: transparent;
  color: var(--muted);
  border: 1px dashed var(--muted);
  cursor: not-allowed;
}
@media (max-width: 420px) {
  .player { grid-template-columns: auto minmax(0, 1fr); }
  .play { grid-column: 1 / -1; width: 100%; height: 3rem; border-radius: 999px; }
}

.source-switch {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--night);
}
.source-switch button {
  font: 600 0.9rem/1 var(--body);
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 999px;
  padding: 0.6rem 0.5rem;
  cursor: pointer;
}
.source-switch button:hover { color: var(--text); }
.source-switch button[aria-pressed="true"] { background: var(--straw); color: var(--night); }
.player-status .is-live { color: var(--sage); }
.player .play:not(:disabled):hover { background: var(--ochre); }

/* Player bar (fixed, on every page) */
body.has-player { padding-bottom: 5.5rem; }
.player-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem max(16px, env(safe-area-inset-right, 0px)) calc(0.65rem + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  background: rgba(22, 26, 46, 0.97);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.35);
}
.pb-source {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-align: left;
  font: inherit;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.45rem 0.6rem;
  cursor: pointer;
}
.pb-source:hover { border-color: var(--muted); }
.pb-chip {
  flex: none;
  font: 700 0.68rem/1 var(--body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.4rem 0.6rem;
  border-radius: 999px;
  background: var(--night);
  border: 1px solid var(--line);
  color: var(--straw);
}
.pb-chip.is-live { color: var(--night); background: var(--sandstone); border-color: var(--sandstone); }
.pb-chip.is-live::before { content: "\25CF\00a0"; }
.pb-text { min-width: 0; display: flex; flex-direction: column; }
.pb-title, .pb-meta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb-title { font-weight: 600; font-size: 0.95rem; }
.pb-meta { font-size: 0.78rem; color: var(--muted); }
.pb-chev { flex: none; width: 1.3rem; height: 1.3rem; margin-left: auto; color: var(--muted); }
.pb-live {
  flex: none;
  font: 600 0.82rem/1 var(--body);
  color: var(--text);
  background: transparent;
  border: 1px solid var(--sandstone);
  border-radius: 999px;
  padding: 0.6rem 0.85rem;
  cursor: pointer;
}
.pb-live:hover { background: var(--sandstone); color: var(--night); }
.pb-play {
  flex: none;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 0;
  display: grid;
  place-items: center;
  background: var(--straw);
  color: var(--night);
  cursor: pointer;
}
.pb-play:hover { background: var(--ochre); }
.pb-play svg { width: 1.4rem; height: 1.4rem; }
.pb-msg {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.5rem);
  transform: translateX(-50%);
  margin: 0;
  max-width: calc(100% - 32px);
  font-size: 0.85rem;
  background: var(--text);
  color: var(--night);
  border-radius: 8px;
  padding: 0.5rem 0.8rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}
.pb-msg:empty { display: none; }
.pb-live-short { display: none; }
@media (max-width: 520px) {
  .player-bar { gap: 0.5rem; }
  .pb-chip:not(.is-live) { display: none; }
  .pb-source { padding: 0.45rem 0.5rem; }
  .pb-live { padding: 0.6rem 0.75rem; }
  .pb-live-long { display: none; }
  .pb-live-short { display: inline; }
}

/* Switcher panel */
body.pp-open { overflow: hidden; }
.pp-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(6, 8, 16, 0.6);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 max(16px, env(safe-area-inset-right, 0px)) 6rem max(16px, env(safe-area-inset-left, 0px));
}
.pp-backdrop[hidden] { display: none; }
.pp {
  width: min(100%, 36rem);
  max-height: min(78vh, 40rem);
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.1rem 1.25rem 1.25rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
@media (max-width: 600px) {
  .pp-backdrop { padding: 0; }
  .pp {
    width: 100%;
    max-height: 85vh;
    border-radius: 16px 16px 0 0;
    padding-bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  }
}
.pp-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.pp-head h2 { font-size: 1.8rem; }
.pp-close {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.pp-close:hover { border-color: var(--muted); }
.pp-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 4px;
  margin: 1rem 0 1.25rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--night);
}
.pp-tabs button {
  font: 600 0.9rem/1 var(--body);
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 999px;
  padding: 0.65rem 0.5rem;
  cursor: pointer;
}
.pp-tabs button[aria-selected="true"] { background: var(--straw); color: var(--night); }
.pp-label {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
}
.pp-now {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--night);
  margin-bottom: 1.25rem;
}
.pp-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 1.5rem;
  line-height: 1;
}
.pp-sub { margin: 0.2rem 0 0; font-size: 0.85rem; color: var(--muted); }
.pp-next { list-style: none; padding: 0; margin: 0; }
.pp-next li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}
.pp-when { color: var(--muted); text-align: right; }
.pp-show, .pp-group { font-family: var(--wordmark); font-weight: 400; }
.pp-show.kissa, .pp-group.kissa { color: #a9c0d0; }
.pp-show.juniper, .pp-group.juniper { color: var(--sage); }
.pp-group { font-size: 1.3rem; margin: 1rem 0 0.4rem; }
.pp-group:first-child { margin-top: 0; }
.pp-list { list-style: none; padding: 0; margin: 0; }
.pp-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--line);
}
.pp-info { min-width: 0; }
.pp-item-title { margin: 0; font-weight: 600; }
.pp-sample {
  font: 600 0.62rem/1 var(--body);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage);
  border: 1px dashed var(--sage);
  border-radius: 999px;
  padding: 0.2rem 0.45rem;
  vertical-align: middle;
}
.pp-tracks { margin-top: 0.35rem; font-size: 0.85rem; color: var(--muted); }
.pp-tracks summary { cursor: pointer; color: var(--straw); }
.pp-tracks ol { margin: 0.4rem 0 0; padding-left: 1.2rem; }
.pp-play {
  flex: none;
  font: 700 0.85rem/1 var(--body);
  color: var(--night);
  background: var(--straw);
  border: 0;
  border-radius: 999px;
  padding: 0.6rem 1rem;
  cursor: pointer;
}
.pp-play:hover { background: var(--ochre); }
.pp-play.is-current { background: transparent; color: var(--straw); border: 1px solid var(--straw); }
.pp-replay {
  flex: none;
  max-width: 11rem;
  text-align: right;
  font-size: 0.8rem;
  color: var(--muted);
}
.pp-foot { margin: 1rem 0 0; font-size: 0.82rem; color: var(--muted); }
.pp-foot a, .faq details p a { color: var(--straw); }

.apps {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.5rem;
  background:
    linear-gradient(to top, rgba(201, 106, 66, 0.16), rgba(12, 15, 29, 0) 60%),
    var(--surface);
  min-width: 0;
}
.apps h3 { color: var(--straw); }
.apps p { margin: 0.6rem 0 0; color: var(--muted); }
.store-links { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.25rem; }
.store {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-width: 10.5rem;
  padding: 0.55rem 1.1rem;
  border-radius: 10px;
  border: 1px dashed var(--muted);
  color: var(--text);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.15;
  cursor: not-allowed;
}
.store small {
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* Heard on Bortle One: Collective-style roster */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.hero .intro {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: end;
}
.hero .intro p { margin: 0; color: var(--muted); max-width: 46ch; }
.hero .intro .coords { margin-top: 0.9rem; color: var(--sage); }
@media (max-width: 760px) {
  .hero .intro { grid-template-columns: 1fr; }
}

.bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.filters { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.filters button {
  font: 500 0.9rem/1 var(--body);
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.65rem 1rem;
  cursor: pointer;
}
.filters button:hover { border-color: var(--muted); }
.filters button[aria-pressed="true"] {
  background: var(--straw);
  border-color: var(--straw);
  color: var(--night);
}
.count {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.roster {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 1.25rem;
}
.card {
  position: relative;
  aspect-ratio: 4 / 5;
  min-height: 340px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  cursor: pointer;
  min-width: 0;
}
.card:focus-visible { outline: 2px solid var(--straw); outline-offset: 3px; }
.card .art { position: absolute; inset: 0; }
.card .art svg, .card .art img { width: 100%; height: 100%; display: block; object-fit: cover; }
.card .front {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.25rem;
  background: linear-gradient(to top, rgba(12, 15, 29, 0.95) 30%, rgba(12, 15, 29, 0));
}
.card .front h3, .card.join h3 {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 2.1rem;
  line-height: 0.95;
  margin: 0 0 0.4rem;
  text-wrap: balance;
}
.card .meta { font-size: 0.9rem; color: var(--muted); }
.tags {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  right: 0.9rem;
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}
.tag {
  font: 600 0.7rem/1 var(--body);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.45rem 0.65rem;
  border-radius: 999px;
  background: rgba(12, 15, 29, 0.75);
  border: 1px solid var(--line);
  color: var(--text);
}
.tag.show-tag.kissa { color: #a9c0d0; }
.tag.show-tag.juniper { color: var(--sage); }
.tag.star { background: var(--straw); border-color: var(--straw); color: var(--night); }
.tag.collective { color: var(--straw); border-style: dashed; text-decoration: none; }
a.tag.collective:hover { border-style: solid; border-color: var(--straw); }
.card .panel {
  position: absolute;
  inset: 0;
  padding: 1.4rem;
  background: rgba(14, 17, 33, 0.96);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transform: translateY(101%);
  transition: transform 0.35s ease;
  overflow-y: auto;
}
.card:hover .panel, .card:focus-within .panel, .card.open .panel { transform: translateY(0); }
.card .panel h4 {
  font-family: var(--wordmark);
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.1;
  margin: 0;
  color: var(--straw);
}
.card .bio { margin: 0; font-size: 0.95rem; }
.card .links { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: auto; }
.card .links a {
  font: 500 0.82rem/1 var(--body);
  padding: 0.6rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--text);
  background: var(--surface);
}
.card .links a:hover { border-color: var(--straw); color: var(--straw); }
.card.join {
  border: 1px dashed var(--muted);
  background:
    linear-gradient(to top, rgba(201, 106, 66, 0.18), rgba(12, 15, 29, 0) 55%),
    transparent;
  cursor: default;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1.5rem;
}
.card.join p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.card.join a { color: var(--straw); font-weight: 600; }
@media (prefers-reduced-motion: reduce) {
  .card .panel { transition: none; }
}

/* Footer */
.site-footer {
  color: var(--muted);
  font-size: 0.9rem;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-block: 2rem 2.5rem;
}
.site-footer p { margin: 0; }
.site-footer a { color: var(--text); }
.site-footer a:hover { color: var(--straw); }

/* Bale House family strip: the same three names, same order, on every site */
.family { border-bottom: 1px solid var(--line); }
.site-footer .family .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 1.4rem;
  padding-block: 1rem;
}
.family-name {
  font-family: var(--wordmark);
  font-size: 1.1rem;
  color: var(--ochre);
  margin-right: 0.2rem;
}
.family a, .family-current {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}
.family a { color: var(--muted); }
.family a:hover { color: var(--text); }
.family-current { color: var(--straw); }
.site-footer .coords { margin: 0; }

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