/* ==========================================================================
   Furiously Eclectic People on Discord
   One stylesheet, two looks. The modern look is the default. The retro look
   (a 1990s home page) starts at the "RETRO" heading near the bottom and only
   changes how things are drawn: every page and button works the same.
   ========================================================================== */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("../fonts/jost-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---- Colours, taken from the cover painting ---------------------------- */
:root {
  --storm: #0b1b46;        /* the deep blue of the storm */
  --storm-lift: #132c6b;   /* one step lighter, for alternate bands and cards */
  --storm-deep: #071233;   /* header and footer */
  --squall: #1d4aa8;       /* the bright blue breaking through the clouds */
  --ink: #050a1f;          /* outlines */
  --bone: #f4ecd6;         /* the ivory of the sword hilt: main text */
  --bone-soft: #c8cee6;    /* quieter text */
  --crimson: #c4161f;      /* the red of the lettering */
  --flame: #f7931e;        /* the orange edge of the lettering */
  --ray: #6ee67c;          /* the green ray */
  --blade: #92e0f7;        /* the blue fire on the blade */

  --font-display: "Fraunces", "Cooper Black", Georgia, serif;
  --font-body: "Jost", "Century Gothic", "Trebuchet MS", sans-serif;

  --gutter: 1.25rem;
  --wrap: 72rem;
  --radius: 16px;
  --outline: 3px solid var(--ink);
  --drop: 6px 6px 0 var(--ink);
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--storm);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}
h2 { font-size: clamp(2rem, 6vw, 3.1rem); font-weight: 800; letter-spacing: -0.012em; margin-bottom: 0.55em; }
h3 { font-size: 1.3rem; font-weight: 700; line-height: 1.15; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--blade); text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
a:hover { color: var(--bone); }

:focus-visible { outline: 3px solid var(--blade); outline-offset: 3px; border-radius: 4px; }

[hidden] { display: none !important; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }

.lead {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 60, "WONK" 0;
  font-weight: 380;
  font-size: clamp(1.2rem, 2.6vw, 1.4rem);
  line-height: 1.5;
  max-width: 34em;
}

.retro-only { display: none; }

.skip-link {
  position: absolute; left: 0.75rem; top: -4rem; z-index: 20;
  background: var(--bone); color: var(--ink); padding: 0.6rem 1rem; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 0.75rem; }

.notice {
  border: var(--outline); border-radius: var(--radius); background: var(--storm-lift);
  padding: 1rem 1.25rem; max-width: 40em;
}

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  font-family: var(--font-body); font-weight: 600; font-size: 1.125rem; line-height: 1.2;
  padding: 0.72em 1.3em;
  border: var(--outline); border-radius: 12px;
  text-decoration: none; cursor: pointer;
  transition: transform 80ms ease, box-shadow 80ms ease;
}
.btn--join { background: var(--flame); color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.btn--join:hover { color: var(--ink); transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.btn--join:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn--quiet { background: transparent; color: var(--bone); border-color: var(--bone); }
.btn--quiet:hover { background: var(--bone); color: var(--ink); }
.btn--small { font-size: 0.98rem; padding: 0.42em 0.95em; border-radius: 10px; }
.btn--small.btn--join { box-shadow: 3px 3px 0 var(--ink); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }

.link-button {
  background: none; border: 0; padding: 0; font: inherit; color: var(--blade);
  text-decoration: underline; text-underline-offset: 0.18em; cursor: pointer;
}
.link-button:hover { color: var(--bone); }

/* ---- Header ------------------------------------------------------------- */
.site-header { background: var(--storm-deep); border-bottom: var(--outline); }
.site-header__bar {
  width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto;
  display: grid; grid-template-columns: auto 1fr; grid-template-areas: "brand actions" "nav nav";
  align-items: center; column-gap: 1rem; row-gap: 0.35rem; padding-block: 0.6rem 0.7rem;
}
.brand { grid-area: brand; display: block; line-height: 0; }
.brand img { height: 46px; width: auto; }
.site-header__actions { grid-area: actions; display: flex; align-items: center; justify-content: flex-end; gap: 0.85rem; }
.site-nav { grid-area: nav; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; column-gap: 1.35rem; row-gap: 0.1rem; }
.site-nav a {
  display: inline-block; padding: 0.3rem 0; color: var(--bone); font-weight: 500; text-decoration: none;
  border-bottom: 3px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--bone-soft); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--flame); }

.theme-switch {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: none; border: 0; padding: 0.35rem 0.1rem; color: var(--bone);
  font: 500 0.98rem/1 var(--font-body); cursor: pointer;
}
.theme-switch__track {
  display: inline-block; width: 2.5rem; height: 1.4rem; border-radius: 999px;
  border: 2px solid var(--bone-soft); position: relative; background: transparent; flex: none;
}
.theme-switch__thumb {
  position: absolute; top: 2px; left: 2px; width: calc(1.4rem - 8px); height: calc(1.4rem - 8px);
  border-radius: 50%; background: var(--bone); transition: transform 120ms ease;
}
.theme-switch[aria-checked="true"] .theme-switch__track { background: var(--flame); border-color: var(--flame); }
.theme-switch[aria-checked="true"] .theme-switch__thumb { transform: translateX(1.1rem); background: var(--ink); }

/* ---- Hero: the cover of the book ---------------------------------------- */
.hero {
  background:
    radial-gradient(120% 90% at 85% 0%, rgba(29, 74, 168, 0.55), rgba(29, 74, 168, 0) 60%),
    var(--storm);
  padding-block: 1.75rem 3rem;
  overflow: hidden;
}
.hero__grid { display: grid; gap: 0; }
.hero__art {
  border: 4px solid var(--ink); border-radius: 18px; overflow: hidden;
  box-shadow: 8px 8px 0 var(--ink);
  transform: rotate(-1.4deg);
  margin-inline: 0.35rem;
  aspect-ratio: 5 / 4;
}
.hero__art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%; }
.hero__text { position: relative; z-index: 2; margin-top: -3.4rem; }
.hero__title { font-size: 1rem; }
.hero__lettering { width: min(100%, 27rem); }
.hero__title-rest {
  display: block; margin-top: 0.12em;
  font-size: clamp(1.9rem, 9.3vw, 4.4rem); font-weight: 850; letter-spacing: -0.02em; line-height: 0.98;
}
.hero__line { font-size: clamp(1.2rem, 3.4vw, 1.45rem); line-height: 1.4; margin: 1.1rem 0 1.5rem; max-width: 26em; }
.hero__buttons { display: flex; flex-wrap: wrap; gap: 0.9rem 0.8rem; margin-bottom: 1.1rem; }
.hero__buttons .btn { font-size: 1.05rem; padding-inline: 1.05em; }
.hero__note { color: var(--ray); font-weight: 500; overflow: hidden; }

/* ---- Bands -------------------------------------------------------------- */
.band { padding-block: clamp(3rem, 8vw, 5.5rem); }
.band--about, .band--pokes { background: var(--storm-lift); }
.band--next { padding-block: clamp(2rem, 5vw, 3rem); background: var(--storm-deep); border-block: var(--outline); }

.about { display: grid; gap: 2.75rem; }

/* ---- Recurring events: a shelf of module covers ------------------------- */
.event-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.6rem; }
.event-card {
  display: flex; flex-direction: column;
  background: var(--storm-lift); border: var(--outline); border-radius: var(--radius);
  box-shadow: var(--drop); overflow: hidden;
}
.event-card__art { aspect-ratio: 16 / 10; border-bottom: var(--outline); background: var(--ink); overflow: hidden; position: relative; }
.event-card__art img { width: 100%; height: 100%; object-fit: cover; }
.event-card__art--contain { background: #06081a; }
.event-card__art--contain img { object-fit: contain; }
.event-card__art--logo { background: #ffffff; display: grid; place-items: center; }
.event-card__art--logo img { width: auto; height: auto; max-width: 60%; }
.event-card__art--type { display: flex; align-items: flex-end; aspect-ratio: auto; min-height: 8.5rem; padding: 1.1rem 1.15rem 1rem; background: var(--squall); color: var(--bone); }
.event-card__art--logo { aspect-ratio: auto; min-height: 8.5rem; }
.event-card__bigname {
  font-family: var(--font-display); font-variation-settings: "SOFT" 100, "WONK" 1;
  font-weight: 900; font-size: clamp(2rem, 9vw, 2.6rem); line-height: 0.92; letter-spacing: -0.02em;
}
.event-card--flame .event-card__art--type { background: var(--flame); color: var(--ink); }
.event-card--holmes .event-card__art--type { background: #a9cbe9; color: #0b2a6b; }
.event-card__body { padding: 1rem 1.15rem 1.25rem; display: flex; flex-direction: column; gap: 0.45rem; flex: 1; }
.event-card__body p { margin: 0; color: var(--bone-soft); }
.event-card__link { margin-top: auto !important; padding-top: 0.4rem; }

/* ---- Next at the table --------------------------------------------------- */
.next { display: grid; gap: 1.25rem; align-items: center; }
.next h2 { font-size: clamp(1.7rem, 4.5vw, 2.3rem); margin-bottom: 0.35em; }
.next__action { margin: 0; }

/* ---- Scenes from the table ----------------------------------------------- */
.scene-strip {
  list-style: none; margin: 0; padding: 0 0 0.9rem;
  display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 24rem); gap: 1.1rem;
  overflow-x: auto; scroll-snap-type: x mandatory;
}
.scene-strip li { scroll-snap-align: start; }
.scene-strip a { display: block; border: var(--outline); border-radius: 12px; overflow: hidden; }
.scene-strip img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* ---- Podcasts ------------------------------------------------------------ */
.podcast-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2.25rem; }
.podcast { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1.1rem; align-items: start; }
.podcast__art { width: 6.5rem; height: 6.5rem; object-fit: contain; }
.podcast__art--blank {
  display: grid; place-items: center; border: var(--outline); border-radius: var(--radius);
  background: var(--storm-lift); color: var(--bone-soft);
}
.podcast__body h3 { margin-bottom: 0.3rem; }
.podcast__body p { color: var(--bone-soft); margin-bottom: 0.75rem; }
.podcast__links { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 0; }
.soon-note { color: var(--bone-soft); font-style: italic; }

/* ---- POKES teaser -------------------------------------------------------- */
.pokes-teaser { display: grid; gap: 2rem; align-items: center; }
.pokes-teaser__text .lead { margin-bottom: 1.3rem; }
.pokes-teaser__shot { display: block; text-decoration: none; color: var(--bone-soft); }
.pokes-teaser__shot img { width: 100%; border: var(--outline); border-radius: 12px; box-shadow: var(--drop); }
.pokes-teaser__caption { display: block; margin-top: 0.95rem; font-size: 0.98rem; }
.pokes-teaser__shot:hover .pokes-teaser__caption { color: var(--bone); text-decoration: underline; }

/* ---- Resident authors ---------------------------------------------------- */
.author-list { list-style: none; margin: 1.5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.7rem; }
.author-list li {
  font-family: var(--font-display); font-variation-settings: "SOFT" 100, "WONK" 0; font-weight: 600; font-size: 1.15rem;
  border: 2px solid var(--bone-soft); border-radius: 999px; padding: 0.3em 0.95em; line-height: 1.3;
}
.author-list a { color: inherit; }

/* ---- Closing ------------------------------------------------------------- */
.band--closing { background: var(--bone); color: var(--ink); border-top: var(--outline); overflow: hidden; }
.closing { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1rem; }
.closing__title { font-size: clamp(2.5rem, 10vw, 5rem); font-weight: 900; margin-bottom: 0.5em; }
.closing__mascot { width: clamp(7.5rem, 30vw, 20rem); margin-block: -1.5rem; }

/* ---- Footer -------------------------------------------------------------- */
.site-footer { background: var(--storm-deep); border-top: var(--outline); padding-block: 2.25rem 2.75rem; }
.site-footer__inner { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.site-footer__name { font-family: var(--font-display); font-variation-settings: "SOFT" 100, "WONK" 1; font-weight: 700; font-size: 1.2rem; margin-bottom: 0.8rem; }
.site-footer__links { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.35rem 1.4rem; }
.site-footer__small { color: var(--bone-soft); font-size: 0.92rem; margin-bottom: 0.4em; }

/* ---- Page heads (POKES, Join) -------------------------------------------- */
.page-head { padding-block: clamp(2.25rem, 6vw, 4rem) clamp(1.5rem, 4vw, 2.5rem); background:
    radial-gradient(120% 120% at 90% 0%, rgba(29, 74, 168, 0.5), rgba(29, 74, 168, 0) 60%), var(--storm); }
.page-head h1 { font-size: clamp(2.8rem, 11vw, 5rem); font-weight: 900; letter-spacing: -0.02em; margin-bottom: 0.35em; }

/* ---- POKES page ---------------------------------------------------------- */
.jump { list-style: none; margin: 1.6rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.35rem 1.2rem; }
.pokes-section { padding-block: clamp(1.75rem, 4vw, 2.75rem); }
.pokes-section + .pokes-section { border-top: 2px solid rgba(200, 206, 230, 0.22); }
.pokes-section h2 { font-size: clamp(1.6rem, 4.6vw, 2.2rem); margin-bottom: 0.9em; }
.project-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem 2.5rem; }
.project { display: grid; grid-template-columns: 1fr auto; column-gap: 0.9rem; row-gap: 0.15rem; align-items: start; padding-bottom: 1.1rem; border-bottom: 1px dashed rgba(200, 206, 230, 0.3); }
.project__name { font-family: var(--font-display); font-variation-settings: "SOFT" 100, "WONK" 0; font-weight: 600; font-size: 1.18rem; line-height: 1.25; }
.project__name a { color: var(--bone); text-decoration-color: var(--blade); }
.project__name a:hover { color: var(--blade); }
.project--upcoming .project__name, .project--bot .project__name { color: var(--bone-soft); }
.project__text { grid-column: 1 / -1; color: var(--bone-soft); margin: 0; }
.tag {
  display: inline-block; font-weight: 600; font-size: 0.82rem; line-height: 1.2; white-space: nowrap;
  padding: 0.28em 0.7em; border-radius: 999px; border: 2px solid var(--ink); margin-top: 0.15rem;
}
.tag--live { background: var(--ray); color: var(--ink); }
.tag--upcoming { background: transparent; color: var(--flame); border-color: var(--flame); }
.tag--bot { background: var(--blade); color: var(--ink); }
.pokes-end { padding-block: 2.5rem 4rem; }

/* ---- Join page ----------------------------------------------------------- */
.join { padding-block: 0.5rem 4.5rem; }
.join__grid { display: grid; gap: 2.5rem; }
.steps { margin: 0 0 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 1rem; max-width: 36em; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.4rem 1fr; gap: 0.8rem; align-items: start; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 2.4rem; height: 2.4rem;
  font-family: var(--font-display); font-weight: 800; font-size: 1.25rem;
  background: var(--bone); color: var(--ink); border: var(--outline); border-radius: 50%;
}
.steps p { margin: 0.3rem 0 0; }
.gate {
  background: var(--storm-lift); border: var(--outline); border-radius: var(--radius); box-shadow: var(--drop);
  padding: 1.4rem 1.25rem 1.6rem; max-width: 30rem;
}
.gate__head { display: grid; grid-template-columns: auto 1fr; gap: 0.9rem; align-items: center; margin-bottom: 1.1rem; }
.gate__doorman { width: 64px; height: 64px; border-radius: 50%; border: var(--outline); background: var(--squall); object-fit: cover; }
.gate__head h2 { font-size: 1.5rem; margin: 0; }
.gate__check { min-height: 70px; margin-bottom: 1rem; margin-inline: -0.9rem; display: flex; justify-content: center; }
.gate__status { margin: 0.9rem 0 0; min-height: 1.5em; color: var(--bone-soft); }
.gate__status--error { color: #ffb4a8; }
.gate__ready h2, .gate__expired h2 { font-size: 1.6rem; margin-bottom: 0.55em; }
.gate__expired p { margin-bottom: 1.1rem; }
.gate__ready .btn { width: 100%; }
.gate__timer { margin: 1rem 0 0; font-variant-numeric: tabular-nums; }
.join__aside h2 { font-size: 1.5rem; margin-bottom: 0.6em; }
.join__aside p { color: var(--bone-soft); max-width: 34em; }
.join__gap { margin-top: 1.75rem; }

/* ---- Upcoming games (Events page and home page) --------------------------- */
.time-note { color: var(--bone-soft); margin-bottom: 1rem; }
.game-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; max-width: 52rem; }
.next + .game-list { margin-top: 1.25rem; }
.game { display: grid; gap: 0.1rem 1.25rem; padding-block: 0.8rem; border-bottom: 1px dashed rgba(200, 206, 230, 0.3); }
.game:first-child { border-top: 1px dashed rgba(200, 206, 230, 0.3); }
.game__when { color: var(--ray); font-weight: 500; font-variant-numeric: tabular-nums; }
.game__title { font-family: var(--font-display); font-variation-settings: "SOFT" 100, "WONK" 0; font-weight: 600; font-size: 1.18rem; line-height: 1.25; }
.game__length { color: var(--bone-soft); font-size: 0.95rem; }
.band-actions { display: flex; flex-wrap: wrap; gap: 0.9rem 1rem; margin-top: 1.6rem; }
.band--upcoming { padding-top: clamp(1rem, 3vw, 2rem); }
.run { display: grid; gap: 1.25rem; align-items: center; }

/* ---- Recurring events in detail (Events page) ----------------------------- */
.event-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.6rem; }
.event-row { display: grid; grid-template-columns: 5.5rem 1fr; gap: 1rem; align-items: start; }
.event-row__art { width: 5.5rem; height: 5.5rem; border: var(--outline); border-radius: 12px; overflow: hidden; background: var(--ink); }
.event-row__art img { width: 100%; height: 100%; object-fit: cover; }
.event-row__art--contain img { object-fit: contain; }
.event-row__art--logo { background: #ffffff; display: grid; place-items: center; }
.event-row__art--logo img { width: 84%; height: auto; object-fit: contain; }
.event-row__art--none { background: var(--squall); }
.event-row__body { min-width: 0; }
.event-row__body h3 { margin-bottom: 0.3rem; }
.event-row__body p { color: var(--bone-soft); max-width: 44em; }

/* ---- Help ------------------------------------------------------------------- */
.faq { padding-block: 0.5rem 1rem; }
.faq__list { display: grid; gap: 1.9rem; }
.faq__item h2 { font-size: 1.35rem; margin-bottom: 0.4rem; }
.faq__item p { color: var(--bone-soft); max-width: 40em; }

/* ---- Submit a game ---------------------------------------------------------- */
.submit { padding-block: 0.5rem 4.5rem; }
.submit .notice { margin-bottom: 1.5rem; }
.submit .gate h2 { font-size: 1.6rem; margin-bottom: 0.6rem; }
.fineprint { color: var(--bone-soft); font-size: 0.95rem; }
.who-line { color: var(--bone-soft); }
.game-form { display: grid; gap: 1.5rem; max-width: 44rem; }
.game-form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 0.95rem; min-width: 0; }
.game-form legend { font-family: var(--font-display); font-variation-settings: "SOFT" 100, "WONK" 0; font-weight: 700; font-size: 1.3rem; padding: 0; margin-bottom: 0.3rem; }
.game-form label { display: grid; gap: 0.3rem; font-weight: 500; min-width: 0; }
.game-form label em { font-style: normal; color: var(--bone-soft); font-weight: 400; }
.game-form .req::after { content: " *"; color: var(--flame); }
.game-form input, .game-form select, .game-form textarea {
  font: inherit; color: var(--bone); background: var(--storm-deep); border: 2px solid #44548c; border-radius: 9px;
  padding: 0.5rem 0.65rem; width: 100%; min-width: 0; color-scheme: dark;
}
.game-form textarea { resize: vertical; }
.game-form .pair { display: grid; gap: 0.95rem; }
.game-form .zone { color: var(--ray); font-size: 0.95rem; font-weight: 400; min-height: 1.4em; }
.game-form .checks { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.game-form .checks label { display: flex; align-items: center; gap: 0.5rem; }
.game-form .checks input { width: 1.15rem; height: 1.15rem; padding: 0; accent-color: var(--flame); }
.game-form details { border-top: 1px dashed #44548c; padding-top: 0.9rem; }
.game-form summary { cursor: pointer; font-weight: 600; }
.game-form details > div { display: grid; gap: 0.95rem; margin-top: 0.95rem; }
.drop { border: 2px dashed #6a7bb8; border-radius: 12px; padding: 1rem; text-align: center; color: var(--bone-soft); background: var(--storm-deep); }
.drop img { max-height: 11rem; margin: 0.7rem auto 0; border-radius: 8px; }
.drop p { margin: 0; }
.send { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem 1rem; }
.form-status { color: #ffb4a8; min-height: 1.4em; }
.form-status--ok { color: var(--ray); }

/* ---- Wider screens ------------------------------------------------------- */
@media (min-width: 40em) {
  :root { --gutter: 2rem; }
  .event-grid { grid-template-columns: repeat(2, 1fr); }
  .event-grid > :first-child { grid-column: span 2; }
  .event-grid > :first-child .event-card__art { aspect-ratio: 16 / 6; }
  .hero__art { aspect-ratio: 16 / 9; }
  .hero__art img { object-position: 50% 36%; }
  .next { grid-template-columns: 1fr auto; }
  .podcast-list { grid-template-columns: repeat(2, 1fr); }
  .podcast { grid-template-columns: 8.5rem 1fr; }
  .podcast__art { width: 8.5rem; height: 8.5rem; }
  .project-list { grid-template-columns: repeat(2, 1fr); }
  .pokes-teaser { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .game { grid-template-columns: 19rem 1fr auto; align-items: baseline; }
  .run { grid-template-columns: 1fr auto; }
  .game-form .pair { grid-template-columns: 1fr 1fr; }
  .event-row { grid-template-columns: 8rem 1fr; gap: 1.5rem; }
  .event-row__art { width: 8rem; height: 8rem; }
  .gate__check { margin-inline: 0; justify-content: flex-start; }
}

@media (min-width: 60em) {
  body { font-size: 1.125rem; }
  .site-header__bar { grid-template-columns: auto 1fr auto; grid-template-areas: "brand nav actions"; column-gap: 2.25rem; padding-block: 0.8rem; }
  .brand img { height: 56px; }
  .site-nav ul { column-gap: 1.75rem; }
  .hero { padding-block: 3.5rem 4.5rem; }
  .hero__grid { grid-template-columns: 1.08fr 0.92fr; gap: 3.5rem; align-items: center; }
  .hero__text { order: 1; margin-top: 0; }
  .hero__art { order: 2; aspect-ratio: 970 / 936; transform: rotate(2deg); margin: 0; }
  .hero__art img { object-position: 50% 50%; }
  .hero__lettering { width: min(100%, 33rem); }
  .hero__title-rest { font-size: clamp(2.6rem, 4.3vw, 3.5rem); }
  .about { grid-template-columns: 1fr 1fr; gap: 4.5rem; }
  .event-grid { grid-template-columns: repeat(3, 1fr); gap: 1.9rem; }
  .event-grid > .event-card { grid-column: auto; }
  .event-grid > .event-card--wide { grid-column: span 2; }
  .event-card__art, .event-card__art--type, .event-card__art--logo { aspect-ratio: auto; height: 13.5rem; min-height: 0; }
  .hero__buttons .btn { font-size: 1.125rem; padding-inline: 1.3em; }
  .event-card__bigname { font-size: 2.6rem; }
  .join__grid { grid-template-columns: 1.05fr 0.95fr; gap: 4rem; align-items: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .theme-switch__thumb { transition: none; }
}


/* ==========================================================================
   RETRO: the same site as a 1990s home page.
   Times New Roman, a starfield, ridged table borders and grey bevel buttons.
   ========================================================================== */
:root[data-theme="retro"] {
  --font-display: "Times New Roman", Times, serif;
  --font-body: "Times New Roman", Times, serif;
  --wrap: 50rem;
  --radius: 0;
  --bone: #ffffff;
  --bone-soft: #d6d6d6;
  --blade: #00ffff;
  --outline: 3px ridge #c0c0c0;
  --drop: none;
}

[data-theme="retro"] body {
  background-color: #000;
  background-image:
    radial-gradient(1px 1px at 20px 30px, #fff, transparent),
    radial-gradient(1px 1px at 90px 140px, #ffffaa, transparent),
    radial-gradient(1.5px 1.5px at 150px 60px, #fff, transparent),
    radial-gradient(1px 1px at 210px 190px, #aaccff, transparent),
    radial-gradient(1px 1px at 60px 220px, #fff, transparent),
    radial-gradient(1.5px 1.5px at 240px 100px, #ffffff, transparent),
    radial-gradient(1px 1px at 120px 10px, #ffd0d0, transparent);
  background-size: 260px 260px;
  color: #fff;
  font-size: 1.0625rem;
  line-height: 1.45;
}

[data-theme="retro"] .retro-only { display: block; }
[data-theme="retro"] h1,
[data-theme="retro"] h2,
[data-theme="retro"] h3 { font-variation-settings: normal; font-weight: bold; letter-spacing: 0; line-height: 1.15; }
[data-theme="retro"] h2 { color: #ffff00; text-align: center; font-size: 2rem; margin-bottom: 0.7em; }
[data-theme="retro"] h3 { color: #ffff00; font-size: 1.25rem; }
[data-theme="retro"] .lead { font-family: var(--font-body); font-variation-settings: normal; font-weight: normal; font-size: 1.15rem; line-height: 1.45; max-width: none; }
[data-theme="retro"] a { color: #00ffff; }
[data-theme="retro"] a:visited { color: #ff80ff; }
[data-theme="retro"] a:hover { color: #ff3333; }
[data-theme="retro"] :focus-visible { outline: 2px dotted #ffff00; outline-offset: 2px; border-radius: 0; }

/* Grey bevel buttons */
[data-theme="retro"] .btn {
  font-family: Arial, Helvetica, sans-serif; font-weight: bold; font-size: 1rem;
  background: #c0c0c0; color: #000; border: 3px outset #ffffff; border-radius: 0; box-shadow: none;
  padding: 0.5em 1.1em; transition: none; transform: none;
}
[data-theme="retro"] .btn:visited { color: #000; }
[data-theme="retro"] .btn:hover { background: #d4d4d4; color: #000; transform: none; box-shadow: none; }
[data-theme="retro"] .btn:active { border-style: inset; transform: none; box-shadow: none; }
[data-theme="retro"] .btn--join { background: #ffff00; }
[data-theme="retro"] .btn--join:hover { background: #ffff66; }
[data-theme="retro"] .btn--small { font-size: 0.9rem; padding: 0.35em 0.8em; }
[data-theme="retro"] .link-button { color: #00ffff; }

/* Header */
[data-theme="retro"] .site-header { background: #000080; border-bottom: 4px ridge #c0c0c0; }
[data-theme="retro"] .site-header__bar { grid-template-columns: auto 1fr; grid-template-areas: "brand actions" "nav nav"; column-gap: 1rem; padding-block: 0.6rem; }
[data-theme="retro"] .brand img { height: 46px; }
[data-theme="retro"] .site-nav ul { justify-content: center; column-gap: 0; }
[data-theme="retro"] .site-nav li + li::before { content: "|"; color: #c0c0c0; padding-inline: 0.6rem; }
[data-theme="retro"] .site-nav a { color: #00ffff; text-decoration: underline; border-bottom: 0; padding: 0.15rem 0; font-weight: bold; }
[data-theme="retro"] .site-nav a[aria-current="page"] { color: #ffff00; }
[data-theme="retro"] .theme-switch { color: #fff; font: bold 0.95rem Arial, Helvetica, sans-serif; }
[data-theme="retro"] .theme-switch__track { border-radius: 0; border: 2px inset #fff; background: #c0c0c0; }
[data-theme="retro"] .theme-switch__thumb { border-radius: 0; background: #000080; transition: none; }
[data-theme="retro"] .theme-switch[aria-checked="true"] .theme-switch__track { background: #c0c0c0; border-color: #fff; }
[data-theme="retro"] .theme-switch[aria-checked="true"] .theme-switch__thumb { background: #000080; }

/* Hero */
[data-theme="retro"] .hero { background: none; padding-block: 1.5rem 2rem; text-align: center; }
[data-theme="retro"] .hero__grid { grid-template-columns: 1fr; gap: 1.25rem; }
[data-theme="retro"] .hero__art { order: 2; transform: none; border: 5px ridge #c0c0c0; border-radius: 0; box-shadow: none; margin: 0 auto; aspect-ratio: 5 / 4; width: min(100%, 30rem); }
[data-theme="retro"] .hero__art img { object-position: 50% 32%; }
[data-theme="retro"] .hero__text { order: 1; margin-top: 0; }
[data-theme="retro"] .hero__lettering { width: min(100%, 26rem); margin-inline: auto; }
[data-theme="retro"] .hero__title-rest { font-size: clamp(2rem, 8vw, 3rem); font-weight: bold; color: #ffff00; letter-spacing: 0; margin-top: 0.2em; }
[data-theme="retro"] .hero__line { margin-inline: auto; font-size: 1.2rem; }
[data-theme="retro"] .hero__buttons { justify-content: center; }
[data-theme="retro"] .hero__note { color: #00ff00; font-weight: bold; border-block: 2px solid #00ff00; padding-block: 0.25rem; white-space: nowrap; }
[data-theme="retro"] .hero__note-text { display: inline-block; padding-left: 100%; animation: fep-marquee 14s linear infinite; }
@keyframes fep-marquee { from { transform: translateX(0); } to { transform: translateX(-100%); } }

/* Bands become ridged boxes on the starfield */
[data-theme="retro"] .band { padding-block: 1.25rem; background: none; border: 0; }
[data-theme="retro"] .band > .wrap { background: #000080; border: 4px ridge #c0c0c0; padding: 1.5rem 1.25rem 1.75rem; }
[data-theme="retro"] .band--events > .wrap,
[data-theme="retro"] .band--podcasts > .wrap,
[data-theme="retro"] .band--authors > .wrap { background: #000; }
[data-theme="retro"] .band::before {
  content: ""; display: block; height: 5px; width: min(var(--wrap), 100% - 2 * var(--gutter)); margin: 0 auto 1.25rem;
  background: linear-gradient(90deg, #ff0000, #ff9900, #ffff00, #00ff00, #00ffff, #3366ff, #cc33ff);
}
[data-theme="retro"] .about { grid-template-columns: 1fr; gap: 1.75rem; }

[data-theme="retro"] .event-grid { grid-template-columns: 1fr; gap: 1.25rem; }
[data-theme="retro"] .event-card { background: #000080; border: 3px ridge #c0c0c0; border-radius: 0; box-shadow: none; }
[data-theme="retro"] .event-grid > .event-card { grid-column: auto; }
[data-theme="retro"] .event-card__art { border-bottom: 3px ridge #c0c0c0; aspect-ratio: 16 / 10; height: auto; }
[data-theme="retro"] .event-card__bigname { font-family: "Times New Roman", Times, serif; font-variation-settings: normal; font-weight: bold; font-size: 2.2rem; line-height: 1; color: inherit; }
[data-theme="retro"] .event-card__body p { color: #fff; }

[data-theme="retro"] .next { grid-template-columns: 1fr; text-align: center; justify-items: center; }
[data-theme="retro"] .next h2 { font-size: 2rem; }
[data-theme="retro"] .scene-strip a { border: 3px solid #0000ff; border-radius: 0; }

[data-theme="retro"] .podcast-list { grid-template-columns: 1fr; }
[data-theme="retro"] .podcast__art--blank { background: #000080; border: 3px ridge #c0c0c0; color: #fff; }
[data-theme="retro"] .podcast__body p, [data-theme="retro"] .soon-note { color: #fff; }

[data-theme="retro"] .pokes-teaser { grid-template-columns: 1fr; text-align: center; }
[data-theme="retro"] .pokes-teaser__shot img { border: 3px solid #0000ff; border-radius: 0; box-shadow: none; }
[data-theme="retro"] .pokes-teaser__shot { color: #00ffff; text-decoration: underline; }

[data-theme="retro"] .band--authors { text-align: center; }
[data-theme="retro"] .author-list { justify-content: center; gap: 0.2rem 0; }
[data-theme="retro"] .author-list li { font-family: var(--font-body); font-variation-settings: normal; border: 0; padding: 0; font-weight: bold; font-size: 1.1rem; }
[data-theme="retro"] .author-list li + li::before { content: "*"; color: #ffff00; padding-inline: 0.6rem; }

[data-theme="retro"] .band--closing > .wrap { background: #000080; }
[data-theme="retro"] .closing { grid-template-columns: 1fr; justify-items: center; text-align: center; }
[data-theme="retro"] .closing__title { font-size: 2.4rem; }
[data-theme="retro"] .closing__mascot { order: -1; width: 9rem; margin-block: 0; }

[data-theme="retro"] .site-footer { background: #000080; border-top: 4px ridge #c0c0c0; text-align: center; }
[data-theme="retro"] .site-footer__name { font-variation-settings: normal; color: #ffff00; }
[data-theme="retro"] .site-footer__links { justify-content: center; }
[data-theme="retro"] .site-footer__small { color: #fff; }

[data-theme="retro"] .notice { background: #000080; }

/* Retro: POKES and Join */
[data-theme="retro"] .page-head { background: none; text-align: center; padding-block: 1.5rem 1rem; }
[data-theme="retro"] .page-head h1 { color: #ffff00; font-size: clamp(2.4rem, 9vw, 3.4rem); letter-spacing: 0; }
[data-theme="retro"] .jump { justify-content: center; }
[data-theme="retro"] .pokes-section { padding-block: 0.75rem; border: 0; }
[data-theme="retro"] .pokes-section + .pokes-section { border-top: 0; }
[data-theme="retro"] .pokes-section > .wrap { background: #000080; border: 4px ridge #c0c0c0; padding: 1.25rem 1.25rem 1.5rem; }
[data-theme="retro"] .pokes-section h2 { font-size: 1.7rem; }
[data-theme="retro"] .project-list { grid-template-columns: 1fr; gap: 0.9rem; }
[data-theme="retro"] .project { border-bottom: 1px solid #5a5aff; padding-bottom: 0.9rem; }
[data-theme="retro"] .project__name { font-family: var(--font-body); font-variation-settings: normal; font-weight: bold; }
[data-theme="retro"] .project__name a { color: #00ffff; }
[data-theme="retro"] .project__name a:visited { color: #ff80ff; }
[data-theme="retro"] .project--upcoming .project__name, [data-theme="retro"] .project--bot .project__name { color: #fff; }
[data-theme="retro"] .project__text { color: #fff; }
[data-theme="retro"] .tag { border-radius: 0; font-family: Arial, Helvetica, sans-serif; font-size: 0.78rem; border: 2px solid #000; }
[data-theme="retro"] .tag--live { background: #00ff00; color: #000; }
[data-theme="retro"] .tag--upcoming {
  background: #ffd800; color: #000;
  border: 4px solid; border-image: repeating-linear-gradient(135deg, #ffd800 0 6px, #000 6px 12px) 4;
}
[data-theme="retro"] .tag--bot { background: #00ffff; color: #000; }

[data-theme="retro"] .join__grid { grid-template-columns: 1fr; gap: 1.5rem; justify-items: center; }
[data-theme="retro"] .join > .wrap { background: #000080; border: 4px ridge #c0c0c0; padding: 1.25rem 0.6rem 1.75rem; }
[data-theme="retro"] .steps li::before { border-radius: 0; background: #c0c0c0; border: 3px outset #fff; font-family: Arial, Helvetica, sans-serif; }
[data-theme="retro"] .gate { background: #c0c0c0; color: #000; border: 3px outset #fff; border-radius: 0; box-shadow: none; }
[data-theme="retro"] .gate h2 { color: #000080; text-align: left; }
[data-theme="retro"] .gate__status { color: #000; }
[data-theme="retro"] .gate__status--error { color: #8b0000; font-weight: bold; }
[data-theme="retro"] .gate__doorman { border-radius: 0; border: 3px inset #fff; background: #000080; }
[data-theme="retro"] .gate a:not(.btn), [data-theme="retro"] .gate .link-button { color: #0000ee; }
[data-theme="retro"] .join__aside h2 { text-align: left; font-size: 1.4rem; }
[data-theme="retro"] .join__aside p { color: #fff; }

/* Retro: Events, Help and Submit a game */
[data-theme="retro"] .game__when { color: #00ff00; }
[data-theme="retro"] .game__title { font-family: var(--font-body); font-variation-settings: normal; font-weight: bold; }
[data-theme="retro"] .game__length, [data-theme="retro"] .time-note, [data-theme="retro"] .fineprint, [data-theme="retro"] .who-line { color: #fff; }
[data-theme="retro"] .game { border-color: #5a5aff; }
[data-theme="retro"] .run { grid-template-columns: 1fr; text-align: center; justify-items: center; }
[data-theme="retro"] .band-actions { justify-content: center; }
[data-theme="retro"] .event-row__art { border: 3px ridge #c0c0c0; border-radius: 0; }
[data-theme="retro"] .event-row__art--none { background: #000; }
[data-theme="retro"] .event-row__body p, [data-theme="retro"] .faq__item p { color: #fff; }
[data-theme="retro"] .faq > .wrap, [data-theme="retro"] .submit > .wrap { background: #000080; border: 4px ridge #c0c0c0; padding: 1.5rem 1.25rem 1.75rem; }
[data-theme="retro"] .faq__item h2 { text-align: left; font-size: 1.3rem; }
[data-theme="retro"] .game-form legend { font-family: var(--font-body); font-variation-settings: normal; color: #ffff00; }
[data-theme="retro"] .game-form input, [data-theme="retro"] .game-form select, [data-theme="retro"] .game-form textarea { background: #fff; color: #000; border: 2px inset #c0c0c0; border-radius: 0; color-scheme: light; }
[data-theme="retro"] .game-form .zone { color: #00ff00; }
[data-theme="retro"] .game-form .req::after { color: #ffff00; }
[data-theme="retro"] .drop { background: #000; border-radius: 0; border-color: #c0c0c0; color: #fff; }
[data-theme="retro"] .form-status { color: #ffb0b0; }
[data-theme="retro"] .form-status--ok { color: #00ff00; }
[data-theme="retro"] .submit .gate a:not(.btn) { color: #0000ee; }
[data-theme="retro"] .submit .gate .fineprint { color: #000; }

@media (min-width: 40em) {
  [data-theme="retro"] .event-grid { grid-template-columns: repeat(2, 1fr); }
  [data-theme="retro"] .event-grid > .event-card:first-child { grid-column: span 2; }
  [data-theme="retro"] .event-grid > .event-card:first-child .event-card__art { aspect-ratio: 16 / 6; }
  [data-theme="retro"] .project-list { grid-template-columns: repeat(2, 1fr); gap: 0.9rem 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  [data-theme="retro"] .hero__note { white-space: normal; }
  [data-theme="retro"] .hero__note-text { animation: none; padding-left: 0; }
}

.site-footer__version { color: var(--bone-soft); font-size: 0.72rem; opacity: 0.55; margin: 0.6em 0 0; }
[data-theme="retro"] .site-footer__version { color: #fff; opacity: 0.6; }

.project-group { grid-column: 1 / -1; border-top: 1px solid rgba(240, 232, 208, 0.18); padding-top: 0.9rem; margin-top: 0.3rem; }
.project-group:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.project-group h3 { margin: 0; font-size: 1.05rem; font-weight: 600; letter-spacing: 0.04em; color: var(--bone); }
[data-theme="retro"] .project-group { border-top: 0; text-align: center; }
[data-theme="retro"] .project-group h3 { color: #ffff00; font-size: 1.2rem; text-decoration: underline; }
