/* ==========================================================================
   Setheun Development Interactive
   pages.css — hero, spotlight, release log, page headers, detail, studio
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding-top: calc(var(--rail) + var(--s-6));
  padding-bottom: var(--s-8);
  overflow: hidden;
}

.hero-in {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.9rem;
  margin-bottom: var(--s-5);
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: var(--t-xxs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* The separator belongs to the item that follows it, so a wrap never leaves
   a dangling marker at the end of a line. */
.hero-eyebrow > span:not(:first-child)::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 0.85rem;
  background-color: var(--blue);
  vertical-align: 0.15em;
}

.hero h1 {
  margin-bottom: var(--s-5);
}

.hero .lede {
  max-width: 52ch;
  margin-bottom: var(--s-6);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3) var(--s-4);
}

@media (min-width: 1000px) {
  .hero {
    padding-top: calc(var(--rail) + var(--s-8));
    padding-bottom: var(--s-7);
  }
}

/* --------------------------------------------------------------------------
   2. Spotlight — the lead title

   A one-row list is a worse answer than a real block while the catalogue is
   this small. Screenshots are shown at their own scale: no zoom-on-hover,
   which would mean the image is always rendered slightly soft.
   -------------------------------------------------------------------------- */

.spot {
  display: grid;
  gap: var(--s-5);
}

.spot-shot {
  position: relative;
  display: block;
  background-color: var(--surface);
  border: var(--hair) solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  transition: border-color var(--d-2) var(--ease-out);
}

.spot-shot:hover {
  border-color: var(--blue-edge);
}

.spot-shot img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.spot-flag {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 0.42rem 0.7rem;
  background-color: var(--void);
  border-top: var(--hair) solid var(--blue-edge);
  border-right: var(--hair) solid var(--blue-edge);
  border-top-right-radius: var(--r);
  color: var(--blue-lit);
  font-family: var(--mono);
  font-size: var(--t-xxs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.spot-head {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  margin-bottom: var(--s-4);
}

.spot-head img {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  border: var(--hair) solid var(--line);
  border-radius: var(--r);
  object-fit: cover;
}

.spot-head p {
  margin-top: 0.3rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.spot-blurb {
  max-width: 46ch;
  margin-bottom: var(--s-5);
  color: var(--ink-2);
  font-size: var(--t-sm);
}

.spot-actions {
  margin-top: var(--s-5);
}

.spot-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: var(--s-3);
  margin-top: var(--s-3);
}

.spot-thumb {
  display: block;
  background-color: var(--surface);
  border: var(--hair) solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  transition: border-color var(--d-2) var(--ease-out);
}

.spot-thumb:hover {
  border-color: var(--blue-edge);
}

.spot-thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

@media (min-width: 1000px) {
  .spot {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: var(--s-7);
    align-items: start;
  }
}

/* --------------------------------------------------------------------------
   3. Release log
   -------------------------------------------------------------------------- */

.log {
  border-top: var(--hair) solid var(--line);
}

.log-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.35rem var(--s-5);
  padding-block: var(--s-4);
  border-bottom: var(--hair) solid var(--line);
}

.log-date {
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: var(--t-xs);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.log-title {
  font-weight: 600;
  letter-spacing: -0.015em;
}

.log-note {
  color: var(--ink-2);
  font-size: var(--t-sm);
  max-width: 60ch;
}

@media (min-width: 760px) {
  .log-item {
    grid-template-columns: 9rem minmax(0, 15rem) minmax(0, 1fr);
    align-items: baseline;
  }
}

/* --------------------------------------------------------------------------
   4. Page header (interior pages)
   -------------------------------------------------------------------------- */

.phead {
  position: relative;
  padding-top: calc(var(--rail) + var(--s-7));
  padding-bottom: var(--s-6);
  overflow: hidden;
}

.phead-in {
  position: relative;
  z-index: 1;
}

.crumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: var(--s-4);
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: var(--t-xxs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.crumb a:hover {
  color: var(--blue-lit);
}

.phead h1 {
  margin-bottom: var(--s-4);
}

.phead .lede {
  max-width: 54ch;
}

/* --------------------------------------------------------------------------
   5. Spec list — the real API values, aligned
   -------------------------------------------------------------------------- */

.spec {
  border-top: var(--hair) solid var(--line);
}

.spec div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-4);
  padding-block: 0.7rem;
  border-bottom: var(--hair) solid var(--line);
}

.spec dt {
  color: var(--ink-3);
  font-size: var(--t-xs);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.spec dd {
  font-family: var(--mono);
  font-size: var(--t-xs);
  font-variant-numeric: tabular-nums;
  text-align: right;
  word-break: break-all;
}

/* --------------------------------------------------------------------------
   6. Game detail
   -------------------------------------------------------------------------- */

.detail {
  display: grid;
  gap: var(--s-7);
}

.detail-main {
  min-width: 0;
}

.detail-shot {
  border: var(--hair) solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  margin-bottom: var(--s-3);
}

.detail-shot img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* A plate standing in for media that does not exist yet. The dashed edge is
   the tell, so the image is never mistaken for a screenshot of a build. */
.detail-shot-placeholder {
  border-style: dashed;
  border-color: var(--line-2);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--s-3);
}

.gallery button {
  padding: 0;
  border: var(--hair) solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  transition: border-color var(--d-2) var(--ease-out);
}

.gallery button img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.gallery button:hover {
  border-color: var(--line-3);
}

.gallery button[aria-current="true"] {
  border-color: var(--blue);
}

.detail-side {
  min-width: 0;
}

.detail-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-4);
}

.detail-icon {
  width: 64px;
  height: 64px;
  border: var(--hair) solid var(--line);
  border-radius: var(--r);
  object-fit: cover;
}

@media (min-width: 1000px) {
  .detail {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 22rem);
    gap: var(--s-8);
    align-items: start;
  }

  .detail-side {
    position: sticky;
    top: calc(var(--rail) + var(--s-5));
  }
}

/* --------------------------------------------------------------------------
   7. Studio page
   -------------------------------------------------------------------------- */

.split {
  display: grid;
  gap: var(--s-6);
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: var(--s-8);
    align-items: start;
  }
}

.channel-label {
  color: var(--ink-3);
  font-size: var(--t-xs);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.channel-value {
  margin-top: 0.15rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.owner {
  display: flex;
  align-items: center;
  gap: var(--s-4);
}

.owner img {
  width: 60px;
  height: 60px;
  border: var(--hair) solid var(--line);
  border-radius: var(--r);
}

.principles {
  border-top: var(--hair) solid var(--line);
  counter-reset: p;
}

.principle {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: var(--s-4);
  padding-block: var(--s-5);
  border-bottom: var(--hair) solid var(--line);
  counter-increment: p;
}

.principle::before {
  content: "0" counter(p);
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: var(--t-xs);
  font-variant-numeric: tabular-nums;
  padding-top: 0.28rem;
}

.principle h3 {
  margin-bottom: 0.4rem;
  font-size: var(--t-md);
  font-stretch: 103%;
  letter-spacing: -0.02em;
}

.principle p {
  color: var(--ink-2);
  font-size: var(--t-sm);
  max-width: 62ch;
}

/* Blue band on the studio page */

.approach {
  display: grid;
  gap: var(--s-6);
}

.approach-head h2 {
  margin-bottom: var(--s-4);
}

.approach-head p {
  max-width: 42ch;
  color: oklch(0.9 0.03 258);
  font-size: var(--t-sm);
}

@media (min-width: 900px) {
  .approach {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: var(--s-8);
    align-items: start;
  }
}

/* The real group mark, kept on its own black ground inside the blue field. */
.mark-plate {
  margin: var(--s-6) 0 0;
}

.mark-plate img {
  width: 216px;
  max-width: 100%;
  height: auto;
  background-color: var(--void);
  border: var(--hair) solid var(--blue-rule);
  border-radius: var(--r);
}

.mark-plate figcaption {
  margin-top: var(--s-3);
  color: oklch(0.8 0.06 258);
  font-family: var(--mono);
  font-size: var(--t-xxs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tools {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}

.tools li {
  padding: 0.35rem 0.65rem;
  /* --blue-edge is too close to --blue-deep to read as a boundary inside the
     blue band; --blue-rule is the lighter step that clears 3:1 on it. */
  border: var(--hair) solid var(--blue-rule);
  border-radius: var(--r);
  color: oklch(0.94 0.025 258);
  font-family: var(--mono);
  font-size: var(--t-xs);
}

/* Two stacks in one column: what is running in a published build, and what is
   being built now. Keeping them labelled is what stops the second list from
   reading as a claim about something shipped. */
.tools-set + .tools-set {
  margin-top: var(--s-5);
}

.tools-label {
  margin-bottom: var(--s-3);
  color: oklch(0.85 0.05 258);
  font-family: var(--mono);
  font-size: var(--t-xxs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Items that are in progress rather than running: dashed, same as the
   placeholder plate. */
.tools-pending li {
  border-style: dashed;
}

/* --------------------------------------------------------------------------
   8. Player questions — answers are visible, not hidden behind a click
   -------------------------------------------------------------------------- */

.qa {
  display: grid;
  gap: var(--s-5);
  border-top: var(--hair) solid var(--line);
  padding-top: var(--s-5);
}

.qa > div {
  max-width: 62ch;
}

.qa h3 {
  margin-bottom: 0.5rem;
  font-size: var(--t-md);
  font-stretch: 103%;
  letter-spacing: -0.02em;
}

.qa p {
  color: var(--ink-2);
  font-size: var(--t-sm);
}

@media (min-width: 900px) {
  .qa {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--s-6) var(--s-8);
  }
}

/* --------------------------------------------------------------------------
   9. Not found
   -------------------------------------------------------------------------- */

.nf {
  display: grid;
  place-items: center;
  min-height: 74vh;
  padding-top: var(--rail);
  text-align: center;
}

.nf .num {
  color: var(--blue-lit);
  font-size: clamp(4rem, 18vw, 12rem);
  font-weight: 500;
  line-height: 0.9;
}
