/*
 * Section components for the home, game and world pages: the pitch, the four
 * doors, the workshop, comic teasers, feature rows, chips, zones, the
 * timeline and the district cards.
 */

/* ── home: pitch ───────────────────────────────────────────────────── */

.pitch {
  padding: 56px 0 48px;
}
.pitch-text {
  max-width: 42rem;
  margin: 0 0 40px;
  font-size: clamp(21px, 3.2vw, 30px);
  font-weight: 600;
  line-height: 1.35;
  color: var(--paper);
  text-wrap: pretty;
}

/* ── home: the four doors ──────────────────────────────────────────── */

.doors,
.tcomics,
.dists,
.facs,
.hoss,
.archs,
.tls,
.srcs,
.bsteps {
  display: grid;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.door a {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--ink);
  border: 3px solid var(--paper);
  box-shadow: 6px 6px 0 var(--registry);
  color: inherit;
  text-decoration: none;
  transition: transform 0.1s steps(2), box-shadow 0.1s steps(2);
}
.door a:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 var(--registry);
}
.door-art,
.tcomic-art {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-bottom: 3px solid var(--paper);
}
.door-art img,
.tcomic-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.door-n {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 0 10px;
  background: var(--ink);
  color: var(--sodium);
  font-family: var(--display);
  font-weight: 900;
  font-size: 26px;
  line-height: 1.3;
  border: 2px solid var(--sodium);
}
.door-body,
.tcomic-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px 18px;
}
.door-body b,
.tcomic-body b {
  font-family: var(--display);
  font-weight: 900;
  font-size: 32px;
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--paper);
}
.door-body > span:not(.door-go),
.tcomic-body > span {
  font-size: 16px;
  line-height: 1.45;
  color: var(--text);
}
.door-go {
  margin-top: auto;
  padding-top: 8px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sodium);
}
.door-go::after {
  content: " \2192";
}

/* ── home: workshop ────────────────────────────────────────────────── */

.ws-lead {
  display: grid;
  gap: 28px;
  align-items: center;
}
.ws-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.ws-post {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  padding: 22px;
  background: var(--paper);
  color: var(--ink);
  border: 3px solid var(--ink);
  box-shadow: 7px 7px 0 var(--registry);
  text-decoration: none;
  transition: transform 0.1s steps(2), box-shadow 0.1s steps(2);
}
.ws-post:hover {
  transform: translate(-3px, -3px);
  box-shadow: 10px 10px 0 var(--registry);
}
.ws-post span {
  font-family: var(--display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6d2a00;
}
.ws-post b {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(30px, 4.4vw, 42px);
  line-height: 0.95;
  text-transform: uppercase;
}
.ws-post em {
  font-style: normal;
  font-size: 17px;
  line-height: 1.45;
}
.ws-count {
  margin: 0;
  color: var(--text);
}
.ws-count b {
  display: block;
  color: var(--sodium);
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(64px, 12vw, 96px);
  line-height: 0.9;
}
/* ── home: comics teaser ───────────────────────────────────────────── */

.tcomic a {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--ink);
  border: 3px solid var(--paper);
  box-shadow: 6px 6px 0 var(--registry);
  color: inherit;
  text-decoration: none;
  transition: transform 0.1s steps(2), box-shadow 0.1s steps(2);
}
.tcomic a:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 var(--registry);
}
.tcomic-art {
  aspect-ratio: 16 / 9;
}
.tcomic-body i {
  font-family: var(--display);
  font-style: normal;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sodium);
}
.tcomic-body b {
  font-size: 28px;
}

/* ── feature rows ──────────────────────────────────────────────────── */

.band-feat .feat {
  display: grid;
  gap: 32px;
  align-items: center;
}
.feat-copy p {
  max-width: 36rem;
  margin: 0 0 16px;
}
.feat-copy b {
  color: var(--paper);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.chips li {
  padding: 4px 12px;
  background: var(--night-2);
  border: 2px solid var(--line);
  font-size: 14px;
  font-weight: 700;
  color: var(--paper);
}

.strata {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  max-width: 34rem;
}
.strata li {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: baseline;
  gap: 12px;
  padding: 10px 14px;
  background: var(--night-2);
  border-left: 6px solid var(--c);
}
.stratum-n {
  font-family: var(--display);
  font-weight: 900;
  font-size: 20px;
  color: var(--dim);
}
.strata b {
  font-family: var(--display);
  font-weight: 900;
  font-size: 24px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--c);
}

/* where it stands */
.zones {
  display: grid;
  gap: 20px;
}
.zone {
  padding: 20px 22px 14px;
  background: var(--night);
  border: 3px solid var(--paper);
}
.zone h3 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-weight: 900;
  font-size: 30px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--paper);
}
/* the borders follow the field guide's status chips: in the dev build is cyan, partly built is sodium */
.zone-now {
  border-color: var(--lattice);
}
.zone-part {
  border-color: var(--sodium);
}
.zone-later {
  border-style: dashed;
}
.zone ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
.zone li {
  position: relative;
  padding: 8px 0 8px 30px;
  border-top: 2px solid var(--night-2);
  font-size: 17px;
}
.zone li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 16px;
  height: 16px;
  border: 3px solid var(--paper);
}
.zone li.is-done::before {
  background: var(--lattice);
  border-color: var(--lattice);
}
.zone li.is-done::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 14px;
  width: 5px;
  height: 10px;
  border: solid var(--ink);
  border-width: 0 3px 3px 0;
  transform: rotate(40deg);
}

/* ── world: timeline ───────────────────────────────────────────────── */

.timeline {
  margin: 0;
  padding: 0 0 0 22px;
  list-style: none;
  border-left: 4px solid var(--registry);
}
.beat {
  position: relative;
  display: grid;
  gap: 16px;
  padding: 0 0 52px;
}
.beat:last-child {
  padding-bottom: 0;
}
.beat::before {
  content: "";
  position: absolute;
  left: -32px;
  top: 6px;
  width: 16px;
  height: 16px;
  background: var(--sodium);
  border: 3px solid var(--ink);
}
.beat-era {
  display: flex;
  flex-direction: column;
  margin: 0;
  text-wrap: balance;
  text-transform: none;
  font-family: var(--display);
  font-weight: 900;
  font-size: 34px;
  line-height: 0.95;
  color: var(--sodium);
}
.beat-n {
  font-size: 15px;
  letter-spacing: 0.18em;
  color: var(--dim);
}
.beat-body h3 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(30px, 4vw, 40px);
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--paper);
}
.beat-body p {
  max-width: 36rem;
  margin: 0 0 12px;
}
.beat-art {
  overflow: hidden;
  border: 3px solid var(--paper);
  box-shadow: 6px 6px 0 var(--registry);
}
.beat-art img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* ── world: districts ──────────────────────────────────────────────── */

.dist-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0 0 40px;
  padding: 0;
  list-style: none;
}
.dist-strip li {
  display: grid;
  place-items: center;
  padding: 10px 8px;
  background: var(--k);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
}
.dist-safe-hub {
  --k: var(--lattice);
}
.dist-faction-ground {
  --k: var(--sodium);
}
.dist-field-zone {
  --k: var(--registry);
}
.dist-war-zone {
  --k: #fff;
}
.dist-group + .dist-group {
  margin-top: 36px;
}
.dist-group h3 {
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 4px solid var(--k);
  font-family: var(--display);
  font-weight: 900;
  font-size: 30px;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--k);
}
.dist {
  padding: 16px 20px 20px;
  background: var(--night-2);
  border-left: 8px solid var(--k);
}
.dist h4 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-weight: 900;
  font-size: 28px;
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--paper);
}
.dist h4 a {
  color: inherit;
  text-decoration: none;
  border-bottom: 3px solid var(--k);
}
.dist h4 a:hover {
  color: var(--sodium);
}
.dist h4 a::after {
  content: "\00a0\2192";
  color: var(--k);
}
.dist p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}

.dist-strip .dist-field-zone {
  color: #fff;
}
.dists.dists-1 {
  grid-template-columns: minmax(0, 1fr);
}
.lat-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
.lat-link p {
  max-width: 46rem;
}
.lat-link .sec-head {
  margin-bottom: 12px;
}

@media (min-width: 640px) {
  .doors,
  .tcomics,
  .dists,
  .hoss {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .zones {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .lat-link {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 64px;
  }
  .ws-lead {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 64px;
  }
  .band-feat .feat {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 64px;
  }
  .band-feat .feat-flip .frame {
    order: -1;
  }
  .band-feat .feat-flip {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  }
  .beat {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 32px;
  }
  .beat.has-art {
    grid-template-columns: 200px minmax(0, 1fr) 300px;
  }
  .timeline {
    padding-left: 36px;
  }
  .beat::before {
    left: -46px;
  }
}

@media (min-width: 1100px) {
  .doors,
  .tcomics,
  .dists {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .tcomics {
    gap: 20px;
  }
  .dists.dists-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .zones {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* the field-guide links under the four doors */
.doors + .g-links {
  margin: 28px 0 0;
}

.pitch-note {
  margin: 18px 0 0;
  max-width: 38em;
  color: var(--dim);
}
