/* onehorsetown.lol — the whole stylesheet.
   Everything is sampled from the team's WANTED poster (docs/DESIGN.md):
   8-bit green on black, bone type, poster yellow. Black-first by
   design, so there is no light-mode branch. */

/* ── Vendored faces, latin subset; see assets/fonts/LICENSES.md ── */

/* Rye v17 — Nicole Fally, SIL OFL 1.1. Display: the date, venue, price. */
@font-face {
  font-family: "Rye";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/rye-v17-latin.woff2") format("woff2");
}

/* Press Start 2P v16 — CodeMan38, SIL OFL 1.1. Labels and the CTA. */
@font-face {
  font-family: "Press Start 2P";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/press-start-2p-v16-latin.woff2") format("woff2");
}

:root {
  --ink: #0a0a0a;
  --green: #41dc4f;
  --green-deep: #1c7a2a;
  --gold: #f6e14c;
  --bone: #f1e7da;

  --display: "Rye", "Bookman Old Style", Georgia, serif;
  --pixel: "Press Start 2P", ui-monospace, Menlo, monospace;
  --body: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --measure: 34rem;
  --edge: clamp(1rem, 5vw, 2.5rem);
}

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

html {
  background: var(--ink);
}

body {
  margin: 0;
  padding: 0 0 4rem;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--body);
  font-size: clamp(0.95rem, 0.9rem + 0.3vw, 1.05rem);
  line-height: 1.65;
  /* The poster's halftone, faintly, across the whole page. */
  background-image: repeating-linear-gradient(
    0deg,
    rgba(65, 220, 79, 0.045) 0 1px,
    transparent 1px 3px
  );
}

a {
  color: var(--green);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
a:hover,
a:focus-visible {
  color: var(--gold);
}
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

img {
  max-width: 100%;
  height: auto;
}

/* ══ The logo ═════════════════════════════════════════════════════ */

.marquee {
  padding: clamp(1.5rem, 6vw, 3rem) var(--edge) 0;
  text-align: center;
}
.marquee h1 {
  margin: 0;
  font-size: 1rem;
  font-weight: 400;
  line-height: 0;
}

/* The asset is 2x its natural 325x232, so it lands 1:1 on a retina
   screen and as an exact halving elsewhere — no resampling either
   way, which is what keeps the poster's dither intact. Never scale it
   past its natural size. */
.logo {
  width: 100%;
  max-width: 220px;
}

/* ══ Layout ═══════════════════════════════════════════════════════ */

main {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 var(--edge);
}

section + section {
  margin-top: clamp(2.5rem, 8vw, 4.5rem);
}

/* ══ Poster ═══════════════════════════════════════════════════════ */

.poster {
  margin-top: clamp(2rem, 7vw, 3.5rem);
}
.poster a {
  display: block;
  border: 3px solid var(--green-deep);
  box-shadow: 8px 8px 0 var(--green-deep);
  line-height: 0;
}
.poster img {
  display: block;
  width: 100%;
}

/* ══ Next show ════════════════════════════════════════════════════ */

.show-card {
  padding: clamp(1.25rem, 5vw, 2rem);
  border: 3px solid var(--green);
  box-shadow: 8px 8px 0 var(--green-deep);
  text-align: center;
}

.card-label {
  margin: 0 0 1rem;
  color: var(--green);
  font-family: var(--pixel);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.show-date {
  margin: 0;
  color: var(--gold);
  font-family: var(--display);
  font-size: clamp(2.4rem, 1rem + 9vw, 4.2rem);
  line-height: 0.95;
}
.show-date span {
  display: block;
  font-size: 0.42em;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.show-time {
  margin: 0.35rem 0 0;
  color: var(--gold);
  font-family: var(--pixel);
  font-size: clamp(0.85rem, 0.6rem + 1.4vw, 1.25rem);
}

.show-bill {
  margin: 1.1rem 0 0;
  color: var(--bone);
}
.show-bill em {
  color: var(--green);
  font-style: normal;
}

.show-venue {
  margin: 1.1rem 0 0;
  font-family: var(--display);
  font-size: clamp(1.15rem, 0.95rem + 1.2vw, 1.6rem);
  line-height: 1.2;
}
.show-venue a {
  color: var(--bone);
  text-decoration: none;
}
.show-venue a:hover,
.show-venue a:focus-visible {
  color: var(--gold);
}
/* The name goes to the theatre, the address to a map — two
   destinations, so the address is set apart rather than tucked inside
   the same link. */
.show-venue .addr {
  display: block;
  color: var(--green);
  font-family: var(--body);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.show-price {
  margin: 1.4rem 0 0;
  color: var(--bone);
  font-family: var(--display);
  font-size: clamp(1rem, 0.9rem + 0.7vw, 1.25rem);
}

.show-cta {
  margin: 1.4rem 0 0;
}
.btn {
  display: inline-block;
  padding: 0.75em 1.4em;
  border: 3px solid var(--gold);
  background: var(--gold);
  box-shadow: 5px 5px 0 var(--green-deep);
  color: var(--ink);
  font-family: var(--pixel);
  font-size: clamp(0.65rem, 0.5rem + 0.9vw, 0.9rem);
  line-height: 1.4;
  text-decoration: none;
  transition:
    transform 80ms steps(2),
    box-shadow 80ms steps(2);
}
.btn:hover,
.btn:focus-visible {
  background: var(--ink);
  color: var(--gold);
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 var(--green-deep);
}

/* ══ Footer ═══════════════════════════════════════════════════════ */

footer {
  margin-top: clamp(3rem, 10vw, 5rem);
  padding: 0 var(--edge);
  text-align: center;
}
.socials {
  margin: 0;
  font-family: var(--pixel);
  font-size: clamp(0.6rem, 0.45rem + 0.9vw, 0.85rem);
  line-height: 2;
}
.socials a {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  text-decoration: none;
}

/* Drawn rather than fetched — the contract is no third-party calls,
   and a glyph this simple is three shapes. currentColor so it picks
   up the link's hover with the text. */
.icon {
  width: 1.5em;
  height: 1.5em;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}
.icon .dot {
  fill: currentColor;
  stroke: none;
}

@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }
}
