/* Landing page layout only. Colours, type and components come from the "1974" design
   system (tokens.css, components.css — copies of docs/1974-design-system). */

:root { --gutter: clamp(16px, 5vw, 64px); }

a { color: var(--primary); text-underline-offset: 0.2em; }

main { padding: var(--gutter) var(--gutter) 0; }

/* ---------- The cover --------------------------------------------------- */
/* A B-series module cover: band, code boxes, title, art box, footline. It is paper in
   both themes, like every paper object in the system. */
.cover {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.cover__band {
  display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap;
  padding: var(--sp-3) var(--sp-4);
  background: var(--c-module-blue);
  color: var(--c-bone);
  border-bottom: var(--bw) solid var(--c-ink);
}
.cover__band .od-tag--code { color: var(--c-bone); font-size: var(--fs-lg); }
.cover__series {
  font-family: var(--font-souvenir); font-variation-settings: var(--souvenir-axes);
  font-weight: 800; font-size: var(--fs-xl);
  margin-left: var(--sp-2);
}

.cover__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 34%);
  gap: var(--sp-6);
  align-items: start;
  padding: var(--sp-6) var(--sp-5) var(--sp-5);
}

/* The one loud thing on the page. Rye is the wordmark face and nothing else. */
.cover__logo {
  font-size: clamp(6rem, 22vw, 15rem);
  line-height: 0.85;
  letter-spacing: -0.01em;
  margin: 0 0 var(--sp-4);
  color: var(--c-ink);
}

.cover__headline {
  font-family: var(--font-souvenir); font-variation-settings: var(--souvenir-axes);
  font-weight: 900;
  font-size: clamp(1.75rem, 4.2vw, 3rem);
  line-height: var(--lh-tight);
  letter-spacing: -0.01em;
  max-width: 14ch;
  margin: 0 0 var(--sp-4);
}

.cover__status {
  display: flex; align-items: center; flex-wrap: wrap; gap: var(--sp-3);
  margin: 0 0 var(--sp-5);
}
.cover__status .od-tag { font-size: var(--fs-sm); padding: .35em .75em; }
.cover__platforms {
  font-family: var(--font-souvenir); font-variation-settings: var(--souvenir-axes);
  font-weight: 700; font-size: var(--fs-xl);
}

.cover__lede { max-width: 34rem; margin: 0; color: var(--text-muted); }

/* The art box holds the app itself. */
.cover__art {
  margin: 0;
  border: var(--bw) solid var(--c-ink);
  background: #fff;
  box-shadow: var(--shadow-print);
}
.cover__art img, .plate img { display: block; width: 100%; height: auto; }

.cover__foot {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4);
  padding: var(--sp-3) var(--sp-5);
  border-top: var(--bw) solid var(--c-ink);
  font-family: var(--font-souvenir); font-variation-settings: var(--souvenir-axes);
  font-weight: 700; font-size: var(--fs-md);
}

/* ---------- Plates ------------------------------------------------------ */
/* Three steps of the wizard, in order, like the plates at the back of a module. */
.plates {
  max-width: 1120px;
  margin: var(--sp-8) auto 0;
}
.plates__title { max-width: 24rem; }

.plates__list {
  list-style: none; margin: var(--sp-6) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-6);
  counter-reset: plate;
}
/* Staggered like sheets laid on a table — offset, never rotated. */
.plate:nth-child(2) { margin-top: var(--sp-7); }
.plate:nth-child(3) { margin-top: calc(var(--sp-7) * 2); }

.plate img {
  border: var(--bw) solid var(--line-strong);
  box-shadow: var(--shadow-print-lg);
}
.plate__caption {
  counter-increment: plate;
  font-family: var(--font-tome); font-size: var(--fs-md);
  margin: var(--sp-4) 0 0;
  max-width: 30ch;
}
.plate__caption::before {
  content: counter(plate) ". ";
  font-family: var(--font-souvenir); font-variation-settings: var(--souvenir-axes);
  font-weight: 900;
}

/* ---------- Footer ------------------------------------------------------ */
.foot {
  /* Lines up with the cover and plates above: same 1120px column, same gutter. */
  margin: var(--sp-8) max(var(--gutter), (100% - 1120px) / 2) 0;
  padding: var(--sp-5) 0 var(--sp-7);
  border-top: var(--bw-heavy) double var(--line-strong);
  display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap;
  gap: var(--sp-3);
}
.foot p { margin: 0; }
.foot__logo { font-size: var(--fs-2xl); }

/* ---------- Narrow screens --------------------------------------------- */
@media (max-width: 760px) {
  .cover__body { grid-template-columns: 1fr; padding: var(--sp-5) var(--sp-4); }
  .cover__art { max-width: 300px; }
  .cover__foot { padding-inline: var(--sp-4); }

  /* The plates become a row you swipe through. */
  .plates__list {
    grid-template-columns: none;
    grid-auto-flow: column; grid-auto-columns: min(72%, 280px);
    overflow-x: auto; scroll-snap-type: x mandatory;
    padding-bottom: var(--sp-4);
    margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter);
    scroll-padding-inline: var(--gutter);
  }
  .plate { scroll-snap-align: start; }
  .plate:nth-child(n) { margin-top: 0; }
}

/* ---------- Waitlist ---------------------------------------------------- */
/* A one-line order form on a paper slip. */
.waitlist {
  max-width: 1120px;
  margin: var(--sp-8) auto 0;
}
.waitlist__lede { max-width: 38rem; margin: 0 0 var(--sp-5); }

.waitlist__form {
  max-width: 32rem;
  display: grid; gap: var(--sp-5);
  padding: var(--sp-5);
  border: var(--bw) solid var(--c-ink);
  box-shadow: var(--shadow-print);
}
.waitlist__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.waitlist__actions { display: flex; }
.waitlist__status[hidden] { display: none; }

@media (max-width: 760px) {
  .waitlist__form { padding: var(--sp-4); }
}
