/* Generated by scripts/build-site.mjs from assets/css/site/{article,waitlist}.css. Edit those files, not this one. */

/* ===== article.css ===== */
/* Reading pages: the three stories, the legal pages, links and 404. A title block over one reading column. */

.page-hero {
  padding: var(--s-24) 0 var(--s-14);
  background: radial-gradient(ellipse at 50% 0%, #282319 0%, transparent 70%);
}

.page-hero--short {
  padding: var(--s-20) 0 var(--s-10);
}

.page-hero--center {
  text-align: center;
}

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

.page-wrap--narrow {
  width: min(560px, 100% - 2 * var(--gutter));
}

.page-hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  text-wrap: balance;
}

.page-lede {
  max-width: 60ch;
  margin-top: var(--s-5);
  color: var(--c-ink-2);
  font-size: 19px;
}

.page-hero--center .page-lede {
  margin-inline: auto;
}

/* Byline */
.byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3);
  margin-top: var(--s-8);
  padding-top: var(--s-6);
  border-top: 1px solid var(--c-rule);
  color: var(--c-muted);
  font-size: 15px;
}

.byline img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.byline__name {
  color: var(--c-ink);
  font-weight: 700;
}

.byline__meta {
  display: inline-flex;
  gap: var(--s-4);
}

.byline .copy-link {
  margin-left: auto;
}

/* Reading column */
.prose {
  padding: var(--s-6) 0 var(--s-24);
  color: var(--c-ink-2);
  font-size: var(--fs-lead);
  line-height: 1.7;
}

.prose h2 {
  margin: var(--s-16) 0 var(--s-4);
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.prose h2 a {
  color: inherit;
}

.prose h3 {
  margin: var(--s-8) 0 var(--s-2);
  font-family: var(--font-body);
  font-size: 20px;
  letter-spacing: 0;
}

.prose p,
.prose ul,
.prose ol,
.prose table {
  margin-bottom: var(--s-5);
}

.prose ul,
.prose ol {
  padding-left: 22px;
}

.prose li {
  margin-bottom: var(--s-2);
}

.prose li::marker {
  color: var(--c-accent);
}

.prose strong {
  color: var(--c-ink);
}

.prose a:not(.btn) {
  color: var(--c-accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.prose a:not(.btn):hover {
  text-decoration-thickness: 2px;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-body);
}

.prose th,
.prose td {
  padding: var(--s-3);
  border-bottom: 1px solid var(--c-rule);
  text-align: left;
  vertical-align: top;
}

.prose th {
  color: var(--c-ink);
}

.prose .btn {
  margin: var(--s-2) 0 var(--s-6);
}

/* Game write-ups */
.prose .box-img {
  float: right;
  width: 180px;
  margin: 4px 0 var(--s-5) var(--s-8);
  border-radius: var(--r);
  filter: drop-shadow(0 0 40px rgba(249, 220, 53, 0.14));
}

.glance {
  clear: both;
  margin-top: var(--s-6);
  padding: var(--s-6);
  border: 1px solid var(--c-rule);
  border-radius: var(--r);
  background: var(--c-surface);
}

.glance__title {
  margin-bottom: var(--s-2) !important;
  color: var(--c-ink);
  font-size: 15px;
  font-weight: 800;
}

.glance ul {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
  font-size: var(--fs-body);
}

.glance li {
  margin: var(--s-1) 0;
}

/* The story's photos: a row that scrolls sideways */
.photo-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 72%);
  gap: var(--s-4);
  margin: var(--s-8) 0 var(--s-2);
  padding-bottom: var(--s-3);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
}

.photo-strip figure {
  margin: 0;
  scroll-snap-align: start;
}

.photo-strip img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r);
}

.photo-strip figcaption {
  margin-top: var(--s-2);
  color: var(--c-muted);
  font-size: 15px;
}

/* Legal pages read a step quieter */
.legal {
  font-size: 17px;
}

.legal h2 {
  margin-top: var(--s-12);
  font-size: clamp(24px, 2.6vw, 30px);
}

/* Links page */
.links-logo {
  width: 96px;
  margin: 0 auto var(--s-6);
}

.links-list {
  padding: var(--s-2) 0 var(--s-24);
}

.links-list ul {
  list-style: none;
  display: grid;
  gap: var(--s-3);
}

.link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: var(--s-5) var(--s-6);
  border: 1px solid var(--c-rule);
  border-radius: var(--r);
  background: var(--c-surface);
  font-size: 19px;
  font-weight: 800;
  transition:
    border-color var(--t-fast) var(--ease),
    transform var(--t-fast) var(--ease);
}

a.link-row:hover {
  border-color: var(--c-accent);
}

a.link-row:active {
  transform: scale(0.99);
}

.link-row__go {
  color: var(--c-muted);
  font-size: var(--fs-sm);
  font-weight: 700;
}

a.link-row:hover .link-row__go {
  color: var(--c-accent);
}

.link-row--soon {
  opacity: 0.6;
}

/* 404 */
.not-found {
  display: grid;
  align-items: center;
  min-height: calc(100svh - var(--header-h));
}

.not-found img {
  width: 160px;
  margin: 0 auto var(--s-6);
}

.not-found .btn {
  margin-top: var(--s-8);
}

@media (max-width: 640px) {
  .page-hero {
    padding: var(--s-14) 0 var(--s-8);
  }

  .prose {
    font-size: 17px;
  }

  .prose .box-img {
    float: none;
    width: 160px;
    margin: 0 0 var(--s-5);
  }

  .byline .copy-link {
    margin-left: 0;
  }

  .photo-strip {
    grid-auto-columns: 86%;
  }
}

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


/* ===== waitlist.css ===== */
/* Waitlist band and the form that assets/js/waitlist-form.js builds (its class names are fixed by that script). */

.waitlist {
  padding-block: var(--s-10);
}

.waitlist__panel {
  padding: 55px var(--s-8);
  border: 1px solid rgba(249, 220, 53, 0.19);
  border-radius: var(--r-xl);
  background: radial-gradient(at 50% 0%, #4a3a17, #201b13 45%, #17151a 100%);
  text-align: center;
}

.waitlist__panel h2 {
  max-width: 700px;
  margin-inline: auto;
}

.waitlist__panel > p {
  margin: 13px auto 0;
  max-width: 52ch;
  color: #c3bdad;
  font-size: var(--fs-sm);
}

.waitlist__form {
  max-width: 460px;
  margin: var(--s-6) auto 0;
}

.waitlist__note {
  margin-top: var(--s-3) !important;
  color: var(--c-accent) !important;
  font-size: 13px !important;
}

/* The injected form */
.hero-email-form {
  position: relative;
  display: flex;
  gap: var(--s-2);
}

.hero-email-input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 var(--s-4);
  border: 1px solid rgba(255, 255, 255, 0.145);
  border-radius: var(--r-pill);
  background: var(--c-field);
  color: var(--c-ink);
  font-size: var(--fs-body);
}

.hero-email-input:focus {
  outline: none;
}

.hero-email-input:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
}

.hero-email-input.is-error {
  border-color: #ff6b5b;
}

.hero-email-placeholder {
  position: absolute;
  left: 17px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--c-quiet);
  font-size: var(--fs-sm);
  pointer-events: none;
  white-space: nowrap;
}

.hero-email-btn {
  height: 44px;
  padding: 0 var(--s-5);
  border: 1px solid var(--c-accent);
  border-radius: var(--r-pill);
  background: var(--c-accent);
  color: var(--c-accent-ink);
  font-size: var(--fs-sm);
  font-weight: 700;
  white-space: nowrap;
  transition: background-color var(--t-fast) var(--ease);
}

.hero-email-btn:hover {
  background: var(--c-accent-strong);
}

.hero-email-btn:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 3px;
}

/* While sending: a different fill, ink and cursor, so it reads as busy without relying on fading */
.hero-email-btn:disabled,
.hero-email-btn:disabled:hover {
  border-color: var(--c-rule-strong);
  background: var(--c-surface-2);
  color: var(--c-muted);
  cursor: progress;
}

.hero-email-form.is-error::after {
  content: attr(data-error);
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  color: #ff8a7d;
  font-size: 13px;
}

.waitlist-success {
  display: none;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 44px;
  padding: 0 var(--s-5);
  border-radius: var(--r-pill);
  background: var(--c-accent);
  color: var(--c-accent-ink);
  font-weight: 700;
}

@media (max-width: 480px) {
  .hero-email-form {
    flex-direction: column;
  }

  /* Stacked: keep the placeholder on the field (top 44px), not the middle of field + button */
  .hero-email-placeholder {
    top: 24px;
  }

  .hero-email-input,
  .hero-email-btn {
    flex: none;
    height: 48px;
  }

  .waitlist__panel {
    padding: var(--s-10) var(--s-5);
  }
}

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