/* Warp 9 Comics — warpninecomics.com
   Plain CSS, mobile-first. Palette lifted from the shop logo. */

/* Self-hosted rather than pulled from Google Fonts: that request blocked
   rendering for ~800ms on mobile and sent every visitor's IP to Google.
   Bangers is OFL-licensed — see fonts/OFL.txt. Latin subset only. */
@font-face {
  font-family: "Bangers";
  font-style: normal;
  font-weight: 400;
  /* "optional", not "swap": the file is preloaded and cached for a year, so
     it almost always arrives before first paint. On the rare load where it
     doesn't, we take the fallback face for that page rather than reflowing
     every heading mid-render — swap here cost 0.1 of layout shift. */
  font-display: optional;
  src: url("/fonts/bangers-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
                 U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191,
                 U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --yellow:     #ffe800;
  --yellow-dim: #f5d900;
  --red:        #d6142b;
  --blue:       #2b5ce6;
  --ink:        #111111;
  --paper:      #fff8e7;
  --white:      #ffffff;

  --border:     4px;
  --shadow:     7px 7px 0 var(--ink);
  --shadow-sm:  4px 4px 0 var(--ink);

  --display: "Bangers", "Impact", "Haettenschweiler", "Arial Narrow Bold", sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 68rem;
}

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

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

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

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

a { color: #a30f20; }
a:hover { color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10;
  background: var(--ink);
  color: var(--yellow);
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

/* ---------- Masthead ---------- */

.masthead {
  background-color: var(--yellow);
  /* halftone dot field, straight from the logo's starburst */
  background-image: radial-gradient(var(--yellow-dim) 22%, transparent 23%);
  background-size: 14px 14px;
  border-bottom: 6px solid var(--ink);
  text-align: center;
}

.masthead-inner {
  padding-block: 2rem 1.75rem;
}

.logo {
  width: min(100%, 34rem);
  margin-inline: auto;
  border: var(--border) solid var(--ink);
  box-shadow: var(--shadow);
}

.tagline {
  margin: 1.5rem auto 0;
  max-width: 34rem;
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.45;
}

/* Open / closed pill — revealed by script.js, hidden if JS is off */
.status {
  display: inline-block;
  margin: 1.125rem 0 0;
  padding: 0.4rem 1.1rem;
  font-family: var(--display);
  font-size: clamp(1.125rem, 4.5vw, 1.375rem);
  letter-spacing: 0.06em;
  color: var(--white);
  background: var(--ink);
  border: 3px solid var(--ink);
  box-shadow: var(--shadow-sm);
}
.status[data-state="open"]   { background: #14803c; }
.status[data-state="closed"] { background: var(--red); }

.topnav {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.625rem;
}

.topnav a {
  font-family: var(--display);
  font-size: 1.125rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  color: var(--ink);
  background: var(--white);
  border: 3px solid var(--ink);
  padding: 0.3rem 0.9rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.topnav a:hover {
  background: var(--blue);
  color: var(--white);
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

/* ---------- Bands ---------- */

.band { padding-block: 3.25rem; }
.band-paper { background: var(--paper); }
.band-white {
  background: var(--white);
  border-block: 6px solid var(--ink);
}

.section-title {
  font-family: var(--display);
  font-size: clamp(2.25rem, 7vw, 3.25rem);
  line-height: 1;
  letter-spacing: 0.02em;
  margin: 0 0 1.5rem;
  color: var(--red);
  text-shadow: 3px 3px 0 var(--ink);
}

.lede {
  margin: 0 0 2rem;
  max-width: 46rem;
  font-size: 1.125rem;
}

/* ---------- Panels ---------- */

.cols {
  display: grid;
  gap: 1.75rem;
}

.panel {
  background: var(--white);
  border: var(--border) solid var(--ink);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}
.band-white .panel { background: var(--paper); }

.panel-title {
  font-family: var(--display);
  font-size: 1.75rem;
  line-height: 1.15;
  letter-spacing: 0.02em;
  margin: 0 0 1rem;
  color: var(--blue);
}

.note {
  margin: 1rem 0 0;
  font-size: 0.9375rem;
  color: #444;
}

/* ---------- Hours ---------- */

.hours {
  width: 100%;
  border-collapse: collapse;
}

.hours th,
.hours td {
  text-align: left;
  padding: 0.55rem 0.5rem;
  border-bottom: 2px solid #e2ddcc;
}
.hours tr:last-child th,
.hours tr:last-child td { border-bottom: 0; }

.hours th { font-weight: 700; }
.hours td {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;  /* "11am – 7pm" must never break across lines */
}

.hours tr.is-today {
  background: var(--yellow);
  outline: 3px solid var(--ink);
}
.hours tr.is-today th::after {
  content: " — today";
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.address {
  font-style: normal;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 1.25rem;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--display);
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  padding: 0.5rem 1.25rem;
  border: 3px solid var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.btn:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}
.btn-blue { background: var(--blue); color: var(--white); }
.btn-blue:hover { background: #1e46b8; color: var(--white); }

/* ---------- Membership ---------- */

.tier { display: flex; flex-direction: column; }

.band-white .panel.tier-featured {
  background-color: var(--yellow);
  background-image: radial-gradient(var(--yellow-dim) 22%, transparent 23%);
  background-size: 14px 14px;
}

.tier-flag {
  display: inline-block;
  align-self: flex-start;
  margin: 0 0 0.75rem;
  padding: 0.2rem 0.7rem;
  font-size: 0.8125rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
  background: var(--red);
  border: 2px solid var(--ink);
}
.tier-flag-quiet { background: var(--ink); }

.price {
  margin: 0 0 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.85rem;  /* the display face's drop shadow eats into a smaller gap */
}
.price-num {
  font-family: var(--display);
  font-size: 3rem;
  line-height: 1;
  color: var(--red);
  text-shadow: 2px 2px 0 var(--ink);
}
.price-unit {
  font-size: 0.9375rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.perks {
  margin: 0;
  padding: 0;
  list-style: none;
}
.perks li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.5rem;
}
.perks li::before {
  content: "★";
  position: absolute;
  left: 0;
  color: var(--blue);
  font-size: 1.125rem;
  line-height: 1.4;
}
.tier-featured .perks li::before { color: var(--red); }

.callout {
  margin: 2rem 0 0;
  padding: 1.25rem 1.5rem;
  background: var(--ink);
  color: var(--white);
  border: var(--border) solid var(--ink);
  box-shadow: var(--shadow);
  font-size: 1.0625rem;
}
.callout a { color: var(--yellow); }
.callout a:hover { color: var(--white); }

/* ---------- Contact ---------- */

.contact-list {
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1rem;
}
.contact-list li {
  background: var(--white);
  border: 3px solid var(--ink);
  box-shadow: var(--shadow-sm);
  padding: 0.875rem 1.25rem;
}
.contact-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #555;
}
/* Body font, not the display face — these are facts people squint at,
   copy down and dial. Legibility beats styling here. */
.contact-value {
  display: block;
  margin-top: 0.15rem;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: break-word;
}
a.contact-value { text-decoration: none; color: var(--blue); }
a.contact-value:hover { color: var(--red); text-decoration: underline; }

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
}

/* ---------- Footer ---------- */

.footer {
  background: var(--ink);
  color: #ddd;
  border-top: 6px solid var(--red);
  padding-block: 1.75rem;
  text-align: center;
  font-size: 0.9375rem;
}

/* The footer sits on --ink, so the global link red fails contrast badly there
   (2.37:1). Yellow on near-black clears AA with room to spare. */
.footer a { color: var(--yellow); }
.footer a:hover { color: var(--white); }

/* ---------- Wider screens ---------- */

@media (min-width: 46rem) {
  body { font-size: 1.125rem; }
  .band { padding-block: 4.5rem; }
  .masthead-inner { padding-block: 3rem 2.25rem; }
  .cols { grid-template-columns: 1fr 1fr; align-items: start; }
  .contact-list { grid-template-columns: repeat(3, 1fr); }
  .panel { padding: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ---------- Second location: Warp 9 Games ----------
   Same pop-art language as the comic shop, pivoted from the logo's yellow to
   its blue, so the two locations read as siblings rather than strangers. */

.masthead-games {
  background-color: var(--blue);
  background-image: radial-gradient(#1e46b8 22%, transparent 23%);
}
.masthead-games .tagline { color: var(--white); }
.masthead-games .topnav a { background: var(--yellow); }
.masthead-games .topnav a:hover { background: var(--white); color: var(--ink); }

/* Pre-launch: neither open nor closed, so neither green nor red. */
.status[data-state="soon"] { background: var(--ink); color: var(--yellow); }

.band-blue {
  background-color: var(--blue);
  background-image: radial-gradient(#1e46b8 22%, transparent 23%);
  background-size: 14px 14px;
  border-block: 6px solid var(--ink);
}
.section-title-invert { color: var(--yellow); }
.lede-invert { color: var(--white); }

.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { background: var(--white); color: var(--ink); }

/* Sibling-location link: set apart from the in-page anchors beside it */
.topnav-sibling { background: var(--ink) !important; color: var(--yellow) !important; }
.topnav-sibling:hover { background: var(--red) !important; color: var(--white) !important; }

.flag {
  display: inline-block;
  margin: 0 0 0.75rem;
  padding: 0.25rem 0.8rem;
  font-size: 0.875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
  background: var(--yellow);
  border: 3px solid var(--ink);
  box-shadow: var(--shadow-sm);
}

/* Content we don't have yet — visibly provisional, so a placeholder can't be
   mistaken for a real address or set of hours if this ships early. */
.placeholder {
  color: #6b6b6b;
  background: repeating-linear-gradient(
    45deg, transparent, transparent 6px, rgba(0,0,0,0.045) 6px, rgba(0,0,0,0.045) 12px
  );
  border: 2px dashed #b9b9b9;
  border-radius: 4px;
  padding: 0.6rem 0.8rem;
}
