/* atmosphere — early-web / rave flyer aesthetic */

@font-face {
  font-family: "bianzhidai";
  src: url("/fonts/bianzhidai-Base.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

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

html {
  font-size: 16px;
}

body {
  margin: 0;
  padding: 1.75rem 1rem 2.5rem;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #111;
  background-color: #B8E2F2;
}

main {
  margin-top: 0.25rem;
}

/* narrow centered column */
header,
nav,
main,
body > footer.site-credits,
.logline,
.forecast-ticker {
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

/* wordmark */
.wordmark {
  margin: 0 0 0.4rem;
  text-align: center;
}

.wordmark img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

/* forecast ticker — marching text on page background */
.forecast-ticker {
  margin-bottom: 1.25rem;
  overflow: hidden;
  font-family: "bianzhidai", Georgia, "Times New Roman", Times, serif;
  font-size: 0.72rem;
  line-height: 1.35;
  letter-spacing: 0.03em;
  text-transform: lowercase;
  color: #111;
}

.forecast-ticker-viewport {
  overflow: hidden;
  width: 100%;
}

.forecast-ticker-track {
  display: inline-flex;
  flex-wrap: nowrap;
  width: max-content;
  flex-shrink: 0;
  animation: forecast-ticker-scroll 48s linear infinite;
  will-change: transform;
}

.forecast-ticker-run {
  display: inline-flex;
  flex: 0 0 auto;
  flex-shrink: 0;
  white-space: nowrap;
}

.forecast-ticker-run span::after {
  content: " · ";
}

@keyframes forecast-ticker-scroll {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .forecast-ticker-track {
    animation: none;
    display: flex;
    flex-wrap: wrap;
    width: auto;
    will-change: auto;
  }

  .forecast-ticker-run[aria-hidden="true"] {
    display: none;
  }

  .forecast-ticker-run {
    flex-wrap: wrap;
    white-space: normal;
  }
}

.logline {
  margin-top: 0.25rem;
  margin-bottom: 1.25rem;
  text-align: center;
  font-size: 0.9rem;
  font-style: italic;
  text-transform: lowercase;
  letter-spacing: 0.14em;
  color: #333;
}

/* tilde nav row */
.tilde-nav {
  margin-top: 0;
  margin-bottom: 0.25rem;
  font-size: 0.85rem;
  text-align: center;
  letter-spacing: 0.02em;
}

.tilde-nav a {
  color: #111;
  text-decoration: underline;
}

.tilde-nav a:hover {
  color: #550000;
}

/* sections — shared vertical rhythm */
main > section {
  margin-bottom: 2rem;
}

main > section:last-child {
  margin-bottom: 0;
}

h2 {
  margin: 0 0 0.65rem;
  padding-bottom: 0.3rem;
  font-size: 1.3rem;
  font-weight: normal;
  font-style: italic;
  text-transform: lowercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid #888;
}

section > p {
  margin: 0 0 0.65rem;
}

section > p:last-child {
  margin-bottom: 0;
}

a {
  color: #000066;
}

a:visited {
  color: #330033;
}

a:hover {
  color: #550000;
}

/* next event */
.event-date {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.4;
}

.event-details {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.event-lineup h3,
.event-meta h3 {
  margin: 0 0 0.5rem;
  padding: 0;
  font-size: 1.1rem;
  font-weight: normal;
  font-style: italic;
  text-transform: lowercase;
  letter-spacing: 0.04em;
}

.event-lineup p,
.event-meta p {
  margin: 0 0 0.65rem;
  line-height: 1.5;
}

.event-lineup p:last-child,
.event-meta p:last-child {
  margin-bottom: 0;
}

.event-meta .event-calendar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
  font-size: 0.95rem;
  line-height: 1.45;
}

.calendar-button:link,
.calendar-button:visited {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  font-family: inherit;
  font-size: inherit;
  font-style: italic;
  letter-spacing: 0.03em;
  text-transform: lowercase;
  text-decoration: none;
  color: #fff;
  background: #111;
  border: 1px solid #111;
}

.calendar-button:hover,
.calendar-button:focus-visible,
.calendar-button:active {
  color: #111;
  background: #fff;
  border-color: #111;
}

.event-flyer {
  margin: 0;
}

/* flyer placeholder */
.flyer-placeholder {
  width: 100%;
  max-width: 20rem;
  margin: 0 auto;
  padding: 4rem 1rem;
  border: 2px solid #111;
  background: #e8e4dc;
  font-size: 1.25rem;
  font-style: italic;
  letter-spacing: 0.2em;
  text-align: center;
  color: #444;
}

.flyer {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border: 2px solid #111;
}

.placeholder-note {
  font-size: 0.9rem;
  font-style: italic;
  color: #444;
}

.production-credit {
  font-size: 0.85rem;
  color: #333;
}

/* mailing list (Buttondown) */
.list-form {
  margin-top: 0;
}

.list-form label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  font-style: italic;
  text-transform: lowercase;
  letter-spacing: 0.04em;
}

.list-form-combo {
  display: flex;
  width: 100%;
  align-items: stretch;
  border: 1px solid #111;
  background: #f4fafd;
}

.list-form-combo:focus-within {
  outline: 1px solid #000066;
  outline-offset: 0;
}

.list-form-combo input[type="email"] {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 0.35rem 0.5rem;
  font-family: inherit;
  font-size: 1rem;
  color: #111;
  background: transparent;
  border: none;
  border-radius: 0;
}

.list-form-combo input[type="email"]:focus {
  outline: none;
}

.list-form input[type="submit"],
.list-form button[type="submit"] {
  font-family: inherit;
  font-size: 1rem;
  letter-spacing: 0.03em;
  text-transform: lowercase;
  color: #111;
  background: #f4fafd;
  border: 1px solid #111;
  text-decoration: none;
  cursor: pointer;
}

.list-form-combo input[type="submit"],
.list-form-combo button[type="submit"] {
  flex: 0 0 auto;
  margin: 0;
  padding: 0.35rem 0.75rem;
  font-style: italic;
  color: #fff;
  background: #111;
  border: none;
  border-left: 1px solid #111;
}

.list-form input[type="submit"]:hover,
.list-form button[type="submit"]:hover {
  color: #fff;
  background: #111;
}

.list-form-combo input[type="submit"]:hover,
.list-form-combo button[type="submit"]:hover {
  color: #111;
  background: #fff;
}

.list-powered {
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
}

.list-powered a {
  color: #555;
}

.list-powered a:hover {
  color: #550000;
}

.list-note {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  font-style: italic;
  color: #111;
}

/* footer */
footer.site-credits,
.site-credits {
  padding-top: 0.65rem;
  border-top: 1px solid #111;
  font-size: 0.85rem;
  line-height: 1.45;
  text-align: center;
}

body:not(.splash) > footer.site-credits {
  margin-top: 1rem;
}

.site-credits p {
  margin: 0 0 0.5rem;
}

.site-credits p:last-child {
  margin-bottom: 0;
}

.site-copyright,
.font-credit {
  font-size: 0.75rem;
  line-height: 1.4;
  color: #444;
}

.font-credit a:link,
.font-credit a:visited {
  color: #444;
}

.font-credit a:hover {
  color: #550000;
}

footer.site-credits.site-credits--splash {
  margin-top: 1.25rem;
  padding-top: 0;
  border-top: none;
  text-align: center;
}

.splash-shell {
  width: min(92vw, 44rem);
  margin: 0 auto;
  text-align: center;
}

.splash-shell .splash-page {
  max-width: none;
  margin: 0;
}

.splash-shell .site-credits p {
  text-align: center;
}

/* splash (temporary landing page) */
body.splash {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem 1rem;
  background-color: #B8E2F2;
}

.splash-page {
  max-width: min(92vw, 44rem);
  margin: 0 auto;
  text-align: center;
}

.splash-image {
  display: block;
  width: min(100%, 40rem);
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.splash-tagline {
  margin: 1rem 0 0;
  font-size: 14pt;
  font-style: italic;
  color: #111;
}

body.splash .splash-enter-button,
body.splash .splash-enter-button:link,
body.splash .splash-enter-button:visited {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.45rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  letter-spacing: 0.03em;
  text-transform: lowercase;
  color: #111;
  background: #f4fafd;
  border: 1px solid #111;
  text-decoration: none;
  cursor: pointer;
}

body.splash .splash-enter-button:hover,
body.splash .splash-enter-button:focus-visible,
body.splash .splash-enter-button:active {
  color: #fff;
  background: #111;
  border-color: #111;
  text-decoration: none;
}

body.splash a.splash-enter-button,
body.splash a.splash-enter-button:link,
body.splash a.splash-enter-button:visited,
body.splash a.splash-enter-button:hover,
body.splash a.splash-enter-button:focus-visible,
body.splash a.splash-enter-button:active {
  text-decoration: none !important;
}

.splash-list-form {
  margin-top: 2rem;
  text-align: center;
}

body.splash .list-form label {
  font-size: 1.15rem;
  color: #111;
}

body.splash .splash-email-label {
  display: block;
}

body.splash .list-form-combo {
  width: 100%;
  background: #fff;
}

body.splash .list-form-combo:focus-within {
  outline-color: #111;
}

body.splash .list-form-combo input[type="email"] {
  padding: 0.55rem 0.7rem;
  font-size: 1.1rem;
  color: #111;
}

body.splash .list-form-combo button[type="submit"] {
  padding: 0.55rem 0.9rem;
  font-size: 1.1rem;
}

.splash-list-note {
  margin-top: 1rem;
  font-size: 1rem;
  text-align: center;
  color: #111;
}

/* subscribe confirmation (post-Buttondown redirect) */
.confirm-heading {
  margin: 1.5rem 0 0.75rem;
  font-size: 14pt;
  font-weight: normal;
  font-style: italic;
  color: #111;
}

.confirm-message {
  max-width: 22rem;
  margin: 0 auto 0.5rem;
  font-size: 1rem;
  color: #111;
}

.confirm-page .splash-enter-button {
  margin-top: 1.25rem;
}
