/* Page styles for the Scrollcraft show homepage.
   Do not restyle [data-sc-*] or .sc-stage. Those are the engine. */

:root {
  --sc-canvas: #F2F4F7;
  --sc-surface: #E4E8EE;
  --sc-ink: #0B1420;
  --sc-ink-soft: #3A4658;
  --sc-accent: #C8100C;
  --sc-accent-ink: #FFFFFF;
  --sc-font-display: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --sc-font-text: "Literata", Georgia, "Times New Roman", serif;
  --sc-font-mono: "Azeret Mono", ui-monospace, monospace;
  --sc-r-sm: 0;
  --sc-r-md: 0;
  --sc-r-lg: 0;
  --sc-r-pill: 0;
}

.sc-display {
  font-weight: 800;
}

:focus-visible {
  outline: 2px solid var(--sc-ink);
  outline-offset: 3px;
  border-radius: 0;
}

.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 80;
  background: var(--sc-ink);
  color: var(--sc-canvas);
  padding: 8px 12px;
  text-decoration: none;
  font-family: var(--sc-font-display);
  font-weight: 600;
}

.ground {
  background: var(--sc-canvas);
  color: var(--sc-ink);
}
.ground--sheet {
  --sc-canvas: #E4E8EE;
  --sc-surface: #F2F4F7;
  background: var(--sc-canvas);
  color: var(--sc-ink);
}

.folio {
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--sc-z-chrome);
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 7.5rem;
  padding: 28px 16px;
  font-family: var(--sc-font-mono);
  font-size: var(--sc-t-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sc-ink-soft);
}
.folio a {
  color: var(--sc-ink);
  text-decoration: none;
}
.folio a:hover {
  color: var(--sc-accent);
}
.folio-chapter {
  color: var(--sc-accent);
}

.title {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 18vh 0 12vh 8.5rem;
}
.title-inner {
  width: min(42rem, calc(100% - 2.5rem));
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 2.5rem;
  font-family: var(--sc-font-display);
  font-size: var(--sc-t-base);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: none;
}
.wordmark svg {
  width: 28px;
  height: 28px;
  fill: var(--sc-ink);
}
.title .sc-display {
  max-width: 14ch;
}
.title .line2 {
  display: block;
}
.title .sc-lede {
  margin-top: 1.75rem;
  max-width: 38ch;
}

.spread {
  display: grid;
  grid-template-columns: minmax(16rem, 0.9fr) minmax(18rem, 1.2fr);
  gap: 4rem;
  align-items: center;
  padding: 0 8.5rem 0 8.5rem;
}
.spread-copy h2 {
  margin: 0 0 1.25rem;
}
.spread-copy .sc-body {
  max-width: 34ch;
}
.tape {
  margin: 0;
}
.tape-gate {
  --open: var(--sc-p, 0);
  position: relative;
  overflow: hidden;
  clip-path: inset(calc((1 - var(--open)) * 46%) 0 calc((1 - var(--open)) * 46%) 0);
  box-shadow:
    inset 0 2px 0 var(--sc-accent),
    inset 0 -2px 0 var(--sc-accent);
}
.tape-gate img {
  width: 100%;
  height: auto;
  aspect-ratio: 1024 / 768;
  object-fit: cover;
}
.tape figcaption {
  margin-top: 0.75rem;
  font-family: var(--sc-font-mono);
  font-size: var(--sc-t-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sc-ink-soft);
}

.rail {
  align-items: stretch;
  padding-left: 8.5rem;
  min-height: 100vh;
  min-height: 100svh;
}
.rail-lead,
.rail-item,
.rail-end {
  flex: 0 0 min(80vw, 32rem);
  padding: 22vh 2.5rem 22vh 0;
}
.rail-lead h2 {
  margin: 0 0 1rem;
}
.rail-item {
  border-left: 1px solid var(--sc-hairline);
  padding-left: 2rem;
}
.who {
  font-family: var(--sc-font-display);
  font-size: var(--sc-t-xl);
  font-weight: 800;
  letter-spacing: var(--sc-track-snug);
  line-height: 1.05;
  text-decoration: none;
}
.who[href]:hover {
  color: var(--sc-accent);
}
.status {
  display: block;
  margin-top: 0.75rem;
  font-family: var(--sc-font-mono);
  font-size: var(--sc-t-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sc-ink-soft);
}

.host-ch {
  padding: var(--sc-7) 8.5rem var(--sc-8);
}
.host-spread {
  display: grid;
  grid-template-columns: 11rem minmax(0, 34rem);
  gap: 2.5rem;
  align-items: start;
}
.host-spread img {
  width: 11rem;
  height: 11rem;
  object-fit: cover;
}
.host-spread h2 {
  margin: 0 0 1rem;
}

.close {
  padding: var(--sc-8) 8.5rem 4rem;
}
.colophon {
  max-width: 36rem;
}
.colophon h2 {
  margin: 0 0 1rem;
}
.ask {
  font-family: var(--sc-font-display);
  font-size: var(--sc-t-lg);
  font-weight: 800;
  color: var(--sc-accent);
  text-underline-offset: 0.18em;
}
.site-colophon {
  margin-top: 4rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--sc-hairline);
  font-size: var(--sc-t-sm);
  color: var(--sc-ink-soft);
  max-width: 48ch;
}
.site-colophon a {
  color: var(--sc-ink);
}

@media (max-width: 860px) {
  .folio {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
    gap: 12px 18px;
    padding: 14px 20px;
    background: color-mix(in oklab, var(--sc-canvas) 88%, transparent);
  }
  .title,
  .spread,
  .rail,
  .host-ch,
  .close {
    padding-left: 20px;
    padding-right: 20px;
  }
  .title {
    align-items: center;
    padding-top: 22vh;
  }
  .title .sc-display {
    font-size: var(--sc-t-2xl);
  }
  .spread {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    padding-top: 18vh;
    padding-bottom: 8vh;
  }
  .rail-lead,
  .rail-item,
  .rail-end {
    flex-basis: 78vw;
    padding-top: 26vh;
  }
  .host-spread {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tape-gate {
    clip-path: none;
    box-shadow: none;
  }
}
