/* Versio C – Valo: musta ja elokuvamainen.
   Värit tulevat vain kuvista; typografiana kevyt geometrinen groteski. */

body[data-variant="c"] {
  --bg: #000;
  --bg-2: #121212;
  --text: #f3f1ec;
  --muted: #8f8d88;
  --line: rgba(243, 241, 236, 0.12);
  --line-strong: rgba(243, 241, 236, 0.3);
  --solid-bg: #f3f1ec;
  --solid-text: #000;
  --overlay-bg: #000;

  --display: "Jost", "Futura", "Avenir Next", system-ui, sans-serif;
  --body: "Jost", "Futura", "Avenir Next", system-ui, sans-serif;
  --display-weight: 300;
}

body[data-variant="c"] .section-title {
  letter-spacing: -0.03em;
}

body[data-variant="c"] .topbar__brand,
body[data-variant="c"] .footer__sign {
  font-style: normal;
  font-weight: 400;
}

/* ── Hero: kuvat vaihtuvat koko näytöllä ──────────────── */

.c-hero {
  position: relative;
  height: 100svh;
  min-height: 520px;
  overflow: hidden;
  background: #000;
}

.c-hero__slides {
  position: absolute;
  inset: 0;
}

.c-hero__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 2.2s ease, transform 9s ease-out;
}

.c-hero__slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.c-hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.2) 38%, rgba(0, 0, 0, 0) 60%);
}

.c-hero__text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(32px, 7vh, 80px);
}

.c-hero__title {
  margin: 0 0 0 -0.06em;
  font-family: var(--display);
  font-weight: 200;
  font-size: clamp(5.5rem, 19vw, 17rem);
  line-height: 0.82;
  letter-spacing: -0.05em;
}

.c-hero__sub {
  margin: 18px 0 0;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  font-weight: 400;
  letter-spacing: 0.01em;
}

.c-hero__credit {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(32px, 7vh, 80px);
  margin: 0;
  color: rgba(243, 241, 236, 0.7);
  font-size: 0.8rem;
}

/* ── Kirje: iso avauslause ja kaksi palstaa ───────────── */

.c-letter {
  padding: clamp(80px, 12vw, 180px) 0 clamp(40px, 6vw, 80px);
}

.c-letter__lead {
  max-width: 20em;
  margin: 0;
  font-size: clamp(1.7rem, 3.6vw, 3.1rem);
  font-weight: 300;
  line-height: 1.22;
  letter-spacing: -0.015em;
}

.c-letter__actions {
  margin-top: 36px;
}

.c-letter__body {
  columns: 2 22em;
  column-gap: clamp(28px, 5vw, 72px);
  max-width: 60em;
  margin-top: clamp(56px, 8vw, 110px);
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.c-letter__body p {
  margin: 0 0 1em;
  break-inside: avoid;
}

.c-letter .letter-greeting {
  color: var(--text);
}

.c-letter .letter-sign {
  color: var(--text);
  font-size: 1.4rem;
  font-weight: 300;
}

/* ── Päivä kuvina: filminauha ─────────────────────────── */

body[data-variant="c"] .day__controls {
  border-bottom: 0;
}

.c-rail {
  display: flex;
  gap: 10px;
  margin: 8px calc(var(--gutter) * -1) 0;
  padding: 0 var(--gutter) 6px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 var(--gutter);
  scrollbar-width: none;
}

.c-rail::-webkit-scrollbar {
  display: none;
}

.c-frame {
  position: relative;
  flex: none;
  width: clamp(250px, 29vw, 420px);
  aspect-ratio: 3 / 4;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: var(--bg-2);
  color: #f3f1ec;
  text-align: left;
  scroll-snap-align: start;
}

.c-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease, transform 1s ease;
}

.c-frame img.is-loaded {
  opacity: 1;
}

.c-frame:hover img {
  transform: scale(1.04);
}

.c-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.1) 45%, transparent 60%);
}

.c-frame span {
  position: absolute;
  left: 20px;
  right: 20px;
  z-index: 1;
}

.c-frame__time {
  bottom: 88px;
  font-size: clamp(2.6rem, 4vw, 3.6rem);
  font-weight: 200;
  line-height: 1;
  letter-spacing: -0.03em;
}

.c-frame__title {
  bottom: 50px;
  font-size: 1.35rem;
  font-weight: 400;
}

.c-frame__meta {
  bottom: 24px;
  color: rgba(243, 241, 236, 0.7);
  font-size: 0.88rem;
}

.c-rail__nav {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}

.c-rail__nav .icon-btn {
  border: 1px solid var(--line-strong);
  background: transparent;
}

body[data-variant="c"] .player__chapter,
body[data-variant="c"] .player__name {
  font-weight: 400;
  font-size: 1.15rem;
}

body[data-variant="c"] .credit__handle,
body[data-variant="c"] .credit__note {
  font-weight: 300;
}

body[data-variant="c"] .feature__text {
  font-weight: 300;
}

@media (max-width: 640px) {
  .c-frame {
    width: 78vw;
  }

  .c-hero__credit {
    display: none;
  }
}
