:root {
  --bg: #fff9ed;
  --ink: #25213a;
  --accent: #8054ff;
  --deep: #4824a8;
  --coral: #ff6958;
  --lavender: #ece5ff;
  --muted: rgba(37, 33, 58, 0.62);
  --max: 42rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  background:
    radial-gradient(1200px 600px at 10% -10%, var(--lavender), transparent 55%),
    linear-gradient(180deg, #fffdf7 0%, var(--bg) 40%, #f7f1e4 100%);
  color: var(--ink);
  line-height: 1.65;
}

.page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.5rem 1.35rem 4rem;
}

.hero.editorial {
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(72, 36, 168, 0.12);
}

.hero-art {
  display: block;
  width: 100%;
  max-height: 11rem;
  object-fit: cover;
  border-radius: 1.1rem;
  margin: 0 0 1.6rem;
  box-shadow: 0 12px 30px rgba(37, 33, 58, 0.1);
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--coral);
  font-weight: 700;
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.8rem, 9vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--deep);
}

.lede {
  margin: 0;
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 36rem;
}

.inline-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  margin: 1.75rem 0 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
}

.inline-nav a,
.foot a,
.legal a {
  color: var(--accent);
  text-decoration: none;
}
.inline-nav a:hover,
.foot a:hover,
.legal a:hover { color: var(--deep); text-decoration: underline; }

.prose,
.screens,
.legal {
  padding: 2.4rem 0 0;
}

h2 {
  margin: 0 0 0.9rem;
  font-size: 1.45rem;
  color: var(--deep);
}

.prose p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.screens h2 { text-align: center; }

.thumbs {
  display: flex;
  gap: 0.85rem;
  overflow-x: auto;
  padding: 0.5rem 0 0.25rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.thumbs figure {
  margin: 0;
  flex: 0 0 auto;
  width: min(42vw, 9.5rem);
  scroll-snap-align: start;
}

.thumbs img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1rem;
  box-shadow: 0 10px 28px rgba(37, 33, 58, 0.14);
  background: #fff;
}

.thumbs figcaption {
  margin-top: 0.45rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
}

.legal .summary {
  margin: 0;
  color: var(--muted);
}

.expand {
  display: inline;
  margin-left: 0.35rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}

.expand-body {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(72, 36, 168, 0.1);
}

.expand-body h3 {
  margin: 1.1rem 0 0.35rem;
  font-size: 1rem;
  color: var(--deep);
}

.expand-body p {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.foot {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(72, 36, 168, 0.12);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.85rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 520px) {
  .page { padding-top: 2.4rem; }
  .thumbs figure { width: 38vw; }
}
