/* The Static Age - Blank Screens teaser
   Palette sampled from TheStaticAge-BlankScreens-Poster.pdf. The title face on
   the poster is Optima Regular; Candara and Gill Sans are the closest humanist
   fallbacks off the Mac. */

:root {
  --ink:   #171110;   /* the poster's black, which is not quite black */
  --grey:  #bdbcbc;   /* the ground band at the foot of the poster */
  --paper: #f4f2f1;
  --red:   #e31b28;   /* the sun, and its reflection */

  --face: Optima, "Optima nova", Candara, "Gill Sans", "Gill Sans MT",
          "Trebuchet MS", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--face);
  -webkit-font-smoothing: antialiased;
}

body.is-home { overflow: hidden; }

.field {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

body.is-home .field { justify-content: flex-end; height: 100dvh; }

/* --- the wall ---------------------------------------------------------- */
/* The type fills the viewport edge to edge and the artwork lives inside the
   letters, so the canvas is the whole page and the signup floats over it. */

.stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
}

#wall {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  display: block;
  z-index: 0;
}

/* --- signup ------------------------------------------------------------ */

.colophon {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  padding: 0 5vw env(safe-area-inset-bottom) 5vw;
  padding-block: clamp(2.5rem, 9vh, 6rem) clamp(1rem, 3vh, 2rem);
  text-align: center;
  background: linear-gradient(to bottom, transparent, var(--ink) 62%);
}

.signup {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  max-width: 34rem;
  margin-inline: auto;
}

.signup input[type="email"],
.signup button {
  font: inherit;
  font-size: clamp(0.82rem, 1.6vw, 0.95rem);
  letter-spacing: 0.05em;
  padding: 0.5em 0.9em;
  border: 1px solid rgba(244, 242, 241, 0.28);
  background: rgba(23, 17, 16, 0.55);
  color: var(--paper);
  border-radius: 0;
  transition: border-color 160ms ease, color 160ms ease;
}

.signup input[type="email"] {
  flex: 1 1 11rem;
  min-width: 0;
  max-width: 17rem;
  text-align: center;
}

.signup button { flex: 0 0 auto; }

.signup input[type="email"]::placeholder {
  color: rgba(244, 242, 241, 0.45);
  text-transform: lowercase;
}

.signup input[type="email"]:focus-visible,
.signup button:focus-visible {
  outline: none;
  border-color: var(--grey);
}

.signup button {
  cursor: pointer;
  text-transform: lowercase;
}

.signup button:hover { border-color: var(--grey); color: var(--grey); }

.signup.is-busy button { opacity: 0.5; pointer-events: none; }

.signup.is-done input[type="email"],
.signup.is-done button { display: none; }

.note {
  flex: 1 0 100%;
  margin: 0.35rem 0 0;
  min-height: 1.2em;
  font-size: clamp(0.78rem, 1.5vw, 0.9rem);
  letter-spacing: 0.04em;
  color: var(--grey);
  text-shadow: 0 1px 6px var(--ink);
}

.note.is-bad { color: var(--red); }

/* honeypot */
.pot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Narrow screens: stack the signup rather than let the button run off. */
@media (max-width: 560px) {
  .signup { flex-direction: column; }

  .signup input[type="email"],
  .signup button {
    /* flex-basis means height once the axis flips, so pin it back to auto */
    flex: 0 0 auto;
    width: 100%;
    max-width: 20rem;
  }
}

/* ======================================================================== */
/* The pages behind the wall.                                               */
/* Same palette and the same Optima, but set as ordinary DOM so it reads,    */
/* links and gets crawled.                                                   */
/* ======================================================================== */

/* --- the strip ---------------------------------------------------------- */

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding: clamp(0.7rem, 1.8vh, 1.15rem) clamp(1.1rem, 4vw, 3rem);
  background: linear-gradient(to bottom, var(--ink) 58%, transparent);
  font-size: clamp(0.7rem, 0.95vw, 0.82rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.markname {
  color: var(--paper);
  text-decoration: none;
  letter-spacing: 0.28em;
  white-space: nowrap;
}

.sitenav {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(0.8rem, 1.8vw, 1.5rem);
}

.sitenav a {
  color: var(--paper);
  text-decoration: none;
  opacity: 0.6;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: opacity 180ms ease, border-color 180ms ease;
}

.sitenav a:hover,
.sitenav a:focus-visible,
.sitenav a[aria-current="page"] {
  opacity: 1;
  border-bottom-color: var(--red);
}

/* Over the wall the strip still needs a ground of its own. The lyric runs
   edge to edge underneath it, so unlike a quiet page there is nothing here to
   read against; without the scrim the nav simply disappears into the type. */
body.is-home .topbar {
  background: linear-gradient(to bottom, var(--ink) 42%, rgba(23, 17, 16, 0.55) 78%, transparent);
}
body.is-home .sitenav a { opacity: 0.72; }
body.is-home .sitenav a:hover,
body.is-home .sitenav a:focus-visible { opacity: 1; }

/* --- page body ---------------------------------------------------------- */

.readout {
  flex: 1 1 auto;
  width: 100%;
  max-width: 74rem;
  margin: 0 auto;
  padding: clamp(4.5rem, 12vh, 7.5rem) clamp(1.1rem, 4vw, 3rem) clamp(4rem, 10vh, 7rem);
  font-size: clamp(0.82rem, 1.05vw, 0.95rem);
  line-height: 1.7;
}

.page-title {
  margin: 0 0 2rem;
  font-size: clamp(1.6rem, 4vw, 3rem);
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper);
}

.lede {
  margin: -1.2rem 0 2.5rem;
  opacity: 0.66;
  max-width: 44rem;
}

.block { margin-bottom: clamp(2.5rem, 6vh, 4.5rem); }

.block-title {
  margin: 0 0 1.1rem;
  font-size: inherit;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--red);
  border-bottom: 1px solid rgba(227, 27, 40, 0.25);
  padding-bottom: 0.5rem;
}

.block-title .count { float: right; opacity: 0.6; letter-spacing: 0.12em; }

.empty { margin: 0; opacity: 0.65; }

a { color: var(--paper); }

.lede a, .more a, .post-title a, .archive a, .tracks a {
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px solid rgba(227, 27, 40, 0.5);
}

.lede a:hover, .more a:hover, .post-title a:hover,
.archive a:hover, .tracks a:hover { border-bottom-color: var(--red); color: var(--red); }

.more { margin: 2.5rem 0 0; letter-spacing: 0.08em; }

/* --- grids -------------------------------------------------------------- */

.grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(1rem, 2.4vw, 2rem);
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
}

.grid-contacts { grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); }

.card {
  border: 1px solid rgba(244, 242, 241, 0.12);
  padding: clamp(0.9rem, 1.6vw, 1.3rem);
  background: rgba(244, 242, 241, 0.02);
}

.card-title {
  margin: 0 0 0.5rem;
  color: var(--paper);
  letter-spacing: 0.05em;
}

.card-cover {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  margin-bottom: 0.9rem;
  border: 1px solid rgba(244, 242, 241, 0.1);
}

.card-links {
  margin: 0.6rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  font-size: 0.9em;
}

.card-links a {
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px solid rgba(227, 27, 40, 0.5);
  word-break: break-word;
}

.card-links a:hover { color: var(--red); border-bottom-color: var(--red); }

.card-note { margin: 0.6rem 0 0; opacity: 0.66; font-size: 0.85em; line-height: 1.4; }

.tracks {
  margin: 0.9rem 0 0;
  padding-left: 1.4em;
  font-size: 0.85em;
  line-height: 1.55;
  opacity: 0.72;
}

.tracks a { opacity: 1; }

/* --- lists -------------------------------------------------------------- */

.archive { list-style: none; margin: 0; padding: 0; }

.archive li {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 0.2rem 1.2rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(244, 242, 241, 0.07);
}

.archive time { opacity: 0.55; letter-spacing: 0.05em; }
.archive .a-venue { color: var(--paper); }
.archive .a-place, .archive .a-bands { grid-column: 2; opacity: 0.55; font-size: 0.9em; }

@media (max-width: 640px) {
  .archive li { grid-template-columns: 1fr; }
  .archive .a-place, .archive .a-bands { grid-column: 1; }
}

/* --- news --------------------------------------------------------------- */

.posts { display: grid; gap: clamp(2rem, 5vh, 3.5rem); max-width: 44rem; }

.post { padding-bottom: clamp(1.5rem, 4vh, 2.5rem); border-bottom: 1px solid rgba(244, 242, 241, 0.09); }
.post:last-child { border-bottom: 0; }

.post-title {
  margin: 0 0 0.3rem;
  font-size: 1.2em;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--paper);
}

.post-date {
  margin: 0 0 1rem;
  opacity: 0.5;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.85em;
}

.post-body { opacity: 0.85; }
.post-body p { margin: 0 0 0.9rem; }
.post-body a { color: var(--paper); border-bottom: 1px solid rgba(227, 27, 40, 0.5); text-decoration: none; }
.post-body img { max-width: 100%; max-height: 24rem; width: auto; height: auto; margin: 0.4rem 0 1rem; }
.post-body iframe { max-width: 100%; aspect-ratio: 16/9; height: auto; border: 0; }

.post-single { max-width: 44rem; border-bottom: 0; }
.post-single .post-title { font-size: clamp(1.3rem, 2.8vw, 2rem); line-height: 1.25; margin-bottom: 0.5rem; }

/* --- lyrics ------------------------------------------------------------- */

.lyric { max-width: 40rem; }

.lyric-title { margin-bottom: 1.2rem; }

.lyric-body {
  margin-top: 2rem;
  font-size: 1.05em;
  line-height: 1.85;
}

/* Each line is its own paragraph, so the verse keeps the shape it was
   written in rather than reflowing as prose. */
.lyric-body p { margin: 0; }
.lyric-body p:empty { height: 0.9em; }
