/* Plaster website (landing page). Builds on the design doc's stylesheet
   (docs/assets/style.css: tokens, fonts, backdrop, grain, .btn, .sec-title)
   and only adds the landing page's own layout. */

body.site main {
  max-width: none;
  padding: 0;
}
body.site section {
  margin-top: 0;
}
.wrap {
  max-width: var(--col);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 84px);
}
.band {
  padding: clamp(80px, 11vw, 140px) 0 0;
  scroll-margin-top: 70px;
}
.tag {
  font: 600 13px var(--label);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---- Top bar ---- */
.site-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 18px clamp(20px, 5vw, 84px);
  background: linear-gradient(180deg, rgba(7, 9, 11, 0.94), rgba(7, 9, 11, 0.72) 70%, transparent);
  backdrop-filter: blur(6px);
}
.site-nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
}
.site-nav a {
  font: 600 14px var(--label);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
}
.site-nav a:hover {
  color: var(--bone);
}

/* ---- Buttons ---- */
.btn.small {
  font-size: 17px;
  padding: 9px 22px;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}
.btn.ghost {
  background: transparent;
  color: var(--bone);
  box-shadow: inset 0 0 0 1px var(--line2);
}
.btn.ghost:hover {
  color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}
/* Play while the game isn't hosted yet: it points at the status section instead */
.btn.play.soon {
  background: rgba(166, 255, 0, 0.12);
  color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(166, 255, 0, 0.5);
}
.btn.play.soon:hover {
  background: rgba(166, 255, 0, 0.2);
}

/* ---- Hero ---- */
.hero-site {
  position: relative;
  min-height: min(100vh, 980px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 120px 0 80px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.35) brightness(0.42) contrast(1.1);
  transform: scale(1.04);
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 45%, transparent 0%, rgba(7, 9, 11, 0.55) 70%, var(--ink) 100%),
    linear-gradient(180deg, rgba(7, 9, 11, 0.6), transparent 30%, transparent 65%, var(--ink));
}
.hero-inner {
  position: relative;
  max-width: 900px;
  padding: 0 20px;
}
.hero-inner .kicker {
  font-size: clamp(13px, 1.6vw, 18px);
}
.hero-site .mark {
  position: relative;
  margin: clamp(60px, 12vh, 120px) 0 clamp(36px, 7vh, 70px);
}
.hero-site .splat {
  position: absolute;
  left: 50%;
  top: 58%;
  width: min(720px, 110vw, 72vh);
  transform: translate(-50%, -50%) rotate(-6deg);
  z-index: -1;
  pointer-events: none;
  opacity: 0.92;
}
.hero-lede {
  font-size: clamp(17px, 2vw, 21px);
  color: var(--bone);
  max-width: 60ch;
  margin: 0 auto;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.7);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 36px;
}
.hero-actions .btn {
  font-size: clamp(20px, 2.4vw, 26px);
  padding: 14px 34px;
}
.hero-note {
  margin-top: 18px;
  font-size: 14px;
  color: var(--dim);
}

/* ---- Gameplay ---- */
.pillars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 46px;
}
.pillar,
.status-card,
.next {
  background: linear-gradient(180deg, rgba(26, 33, 40, 0.86), rgba(16, 21, 26, 0.86));
  border: 1px solid var(--line);
  padding: 28px 30px;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
}
.pillar h3,
.feature h3,
.status-card h3,
.next-title {
  font: 700 clamp(24px, 2.6vw, 30px) / 1.1 var(--title);
  text-transform: uppercase;
  color: var(--bone);
  margin: 8px 0 12px;
}
.pillar p,
.feature p,
.status-card p {
  color: var(--dim);
  font-size: 16px;
}
.readouts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 46px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.readouts div {
  padding: 26px 10px;
  text-align: center;
  border-left: 1px solid var(--line);
}
.readouts div:first-child {
  border-left: 0;
}
.readouts b {
  display: block;
  font: 700 clamp(40px, 6vw, 72px) / 1 var(--title);
  color: var(--accent);
}
.readouts span {
  font: 600 13px var(--label);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
}

/* ---- Features ---- */
.features {
  display: grid;
  gap: 34px;
  margin-top: 46px;
}
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}
.feature:nth-child(even) img {
  order: 2;
}
.feature img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--line2);
  display: block;
}
.feature a {
  display: inline-block;
  margin-top: 12px;
  font: 600 14px var(--label);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.next {
  margin-top: 60px;
}
.next-title {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 16px;
}
.next ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 34px;
  margin: 10px 0 18px;
}
.next li {
  color: var(--dim);
  font-size: 16px;
  padding-left: 18px;
  position: relative;
}
.next li::before {
  content: "◆";
  position: absolute;
  left: 0;
  top: 0.15em;
  font-size: 10px;
  color: var(--accent);
}
.next li b {
  color: var(--bone);
  font-weight: 600;
}

/* ---- Gallery ---- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 40px;
}
.gallery button {
  position: relative;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--steel);
  cursor: zoom-in;
  overflow: hidden;
  text-align: left;
  color: var(--bone);
}
.gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.gallery button:hover img,
.gallery button:focus-visible img {
  transform: scale(1.04);
}
.gallery button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.gallery .cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 12px 9px;
  font: 600 13px var(--label);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: linear-gradient(transparent, rgba(7, 9, 11, 0.85));
}
.gallery-more {
  margin-top: 18px;
  font-size: 15px;
}

/* ---- Lightbox ---- */
.lightbox {
  border: 0;
  padding: 0;
  max-width: none;
  max-height: none;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 6, 8, 0.94);
  color: var(--bone);
}
.lightbox[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.6);
}
.lightbox figure {
  max-width: min(1400px, 92vw);
}
.lightbox img {
  display: block;
  max-width: 100%;
  max-height: 80vh;
  margin: 0 auto;
  border: 1px solid var(--line2);
}
.lightbox figcaption {
  margin-top: 14px;
  text-align: center;
  color: var(--dim);
  font-size: 15px;
}
.lb-close,
.lb-nav {
  position: absolute;
  border: 1px solid var(--line2);
  background: rgba(16, 21, 26, 0.85);
  color: var(--bone);
  font: 600 22px var(--label);
  width: 48px;
  height: 48px;
  cursor: pointer;
}
.lb-close:hover,
.lb-nav:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.lb-close {
  top: 20px;
  right: 20px;
}
.lb-nav {
  top: 50%;
  transform: translateY(-50%);
  font-size: 30px;
}
.lb-nav.prev {
  left: 20px;
}
.lb-nav.next {
  right: 20px;
}

/* ---- Status ---- */
.status {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 22px;
  margin-top: 40px;
}
.status-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font: 700 clamp(20px, 2.2vw, 26px) / 1.2 var(--title);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.status-row .dot {
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(166, 255, 0, 0.14);
}
.status-card p + p {
  margin-top: 12px;
}
.status-card.latest .meta {
  font-size: 14px;
  margin-bottom: 20px;
}

/* ---- Footer ---- */
.site-foot {
  margin-top: clamp(90px, 12vw, 160px);
  padding: 60px 0 40px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(7, 9, 11, 0.8));
}
.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 34px;
}
.foot-grid nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.foot-grid nav a {
  color: var(--dim);
  font-size: 15px;
}
.foot-grid nav a:hover {
  color: var(--accent);
}
.foot-grid p {
  margin-top: 12px;
  font-size: 15px;
}
.foot-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-top: 46px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--dim);
}

/* ---- Small screens ---- */
@media (max-width: 960px) {
  .feature {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .feature:nth-child(even) img {
    order: 0;
  }
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .status {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  .site-nav {
    display: none;
  }
  .site-top .btn.play {
    margin-left: auto;
  }
  .pillars,
  .next ul {
    grid-template-columns: 1fr;
  }
  .readouts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .readouts div:nth-child(3) {
    border-left: 0;
  }
  .readouts div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
  .gallery {
    grid-template-columns: 1fr;
  }
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
  .foot-grid > div:first-child {
    grid-column: 1 / -1;
  }
  .lb-nav {
    top: auto;
    bottom: 20px;
    transform: none;
  }
  .pillar,
  .status-card,
  .next {
    padding: 22px 20px;
  }
}
