:root {
  --c-art: #3B2352;
  --t-art: #EDE7F2;
  --c-capsule: #E0972E;
  --t-capsule: #FBF0DE;
  --c-casino: #1F6B6B;
  --t-casino: #E2EFEE;
  --c-ice: #C4736F;
  --t-ice: #F7E7E5;
  --cream: #FAF7F1;
  --ink: #23201C;
  --muted: #6B6459;
  --rule: #DFD8CB;
  --shell: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: "Newsreader", Georgia, serif; font-size: 18.5px; line-height: 1.68;
  font-weight: 400; -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .logo, .nav a, .tag, .count { font-family: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.shell { max-width: var(--shell); margin: 0 auto; padding: 0 28px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--ink); color: var(--cream); padding: 10px 16px; z-index: 99; }

/* header */
.masthead { border-bottom: 1px solid var(--rule); background: var(--cream); position: sticky; top: 0; z-index: 50; }
.bar { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 20px; }
.logo { font-weight: 700; font-size: 1.16rem; letter-spacing: -0.02em; text-decoration: none; }
.logo span { color: var(--c-capsule); }
.nav { display: flex; gap: 30px; }
.nav a { font-size: 0.85rem; font-weight: 500; letter-spacing: 0.02em; text-decoration: none; color: var(--muted); padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--c-capsule); }
.navtoggle, .burger { display: none; }

/* hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  min-height: calc(100vh - 68px);
  background:
    radial-gradient(120% 80% at 0% 100%, rgba(224, 151, 46, 0.14), transparent 55%),
    radial-gradient(90% 70% at 20% 0%, rgba(31, 107, 107, 0.1), transparent 50%),
    linear-gradient(165deg, #FBF8F2 0%, #F3EDE2 48%, #EDE6D8 100%);
  overflow: hidden;
}
.hero-copy {
  display: flex;
  align-items: center;
  padding: 72px 48px 72px clamp(28px, 5vw, 72px);
}
.hero-copy-inner { max-width: 34rem; }
.hero-brand {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 28px;
  opacity: 0;
  animation: heroRise 900ms cubic-bezier(.22, 1, .36, 1) 80ms forwards;
}
.hero-brand span { color: var(--c-capsule); }
.hero h1 {
  font-size: clamp(2.35rem, 5.2vw, 3.85rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin: 0 0 20px;
  max-width: 11ch;
  font-weight: 600;
  opacity: 0;
  animation: heroRise 900ms cubic-bezier(.22, 1, .36, 1) 180ms forwards;
}
.hero .lede {
  font-size: 1.14rem;
  color: var(--muted);
  max-width: 36ch;
  margin: 0 0 34px;
  opacity: 0;
  animation: heroRise 900ms cubic-bezier(.22, 1, .36, 1) 280ms forwards;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  align-items: center;
  opacity: 0;
  animation: heroRise 900ms cubic-bezier(.22, 1, .36, 1) 380ms forwards;
}
.btn-primary {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: #fff;
  background: var(--c-casino);
  padding: 15px 26px;
  transition: background-color 220ms ease, transform 220ms ease, box-shadow 220ms ease;
  box-shadow: 0 10px 28px rgba(31, 107, 107, 0.22);
}
.btn-primary:hover {
  background: #185555;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(31, 107, 107, 0.28);
}
.btn-ghost {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 2px solid var(--c-capsule);
  padding-bottom: 3px;
  transition: color 200ms ease, border-color 200ms ease;
}
.btn-ghost:hover { color: var(--c-casino); border-color: var(--c-casino); }
.hero-frame {
  position: relative;
  min-height: 100%;
  background: #0d1c3d;
}
.hero-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(251, 248, 242, 0.22), transparent 28%);
  pointer-events: none;
  z-index: 1;
}
.hero-frame img {
  width: 100%;
  height: 100%;
  min-height: calc(100vh - 68px);
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1.06);
  animation: heroZoom 7.5s cubic-bezier(.22, 1, .36, 1) forwards;
}
.hero-casino {
  background:
    radial-gradient(120% 80% at 0% 100%, rgba(31, 107, 107, 0.16), transparent 55%),
    radial-gradient(90% 70% at 10% 0%, rgba(224, 151, 46, 0.1), transparent 50%),
    linear-gradient(165deg, #F7FBFA 0%, #EEF4F3 48%, #E4EEED 100%);
}
.hero-casino .btn-primary { background: var(--c-casino); }
@keyframes heroRise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes heroZoom {
  from { transform: scale(1.06); }
  to { transform: scale(1); }
}

/* scroll section */
.scrollwrap { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin-top: 72px; }
.scrollgrid { display: grid; grid-template-columns: 40% 1fr; gap: 0; max-width: var(--shell); margin: 0 auto; }
.sticky { position: sticky; top: 68px; height: calc(100vh - 68px); background: var(--c-art);
  transition: background-color 700ms cubic-bezier(.4,0,.2,1); display: flex; flex-direction: column;
  justify-content: flex-end; padding: 48px 44px; color: #fff; }
.sticky.is-art { background: var(--c-art); }
.sticky.is-capsule { background: var(--c-capsule); }
.sticky.is-casino { background: var(--c-casino); }
.sticky.is-ice { background: var(--c-ice); }
.sticky .eyebrow { font-family: "Bricolage Grotesque", sans-serif; font-size: 0.7rem; letter-spacing: 0.2em;
  text-transform: uppercase; opacity: .78; margin: 0 0 14px; }
.sticky .big { font-family: "Bricolage Grotesque", sans-serif; font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1.06; letter-spacing: -0.03em; margin: 0; font-weight: 600; }
.sticky .ticks { margin: 34px 0 0; padding: 0; list-style: none; display: flex; gap: 8px; }
.sticky .ticks li { flex: 1; height: 3px; background: rgba(255,255,255,.3); }
.sticky .ticks li.on { background: rgba(255,255,255,.95); }
.stream { padding: 0 0 0 64px; }
.chapter { padding: 15vh 0; border-bottom: 1px solid var(--rule); }
.chapter:last-child { border-bottom: 0; }
.chapter .band { display: none; }
.chapter h2 { font-size: clamp(1.9rem, 3vw, 2.5rem); letter-spacing: -0.03em; line-height: 1.1; margin: 0 0 10px; font-weight: 600; }
.chapter .count { font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin: 0 0 22px; }
.chapter p.body { margin: 0 0 26px; max-width: 54ch; }
.more { font-family: "Bricolage Grotesque", sans-serif; font-size: 0.83rem; font-weight: 600; letter-spacing: 0.02em;
  text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 2px; }
.more.k-art { color: var(--c-art); } .more.k-capsule { color: #A96E12; }
.more.k-casino { color: var(--c-casino); } .more.k-ice { color: #A65450; }

/* closing */
.closing { padding: 96px 0; }
.closing p { font-size: 1.32rem; line-height: 1.55; max-width: 48ch; margin: 0 auto; text-align: center; color: var(--ink); }

/* category pages */
.pagehead { padding: 76px 0 34px; border-bottom: 1px solid var(--rule); }
.pagehead .kicker { font-family: "Bricolage Grotesque", sans-serif; font-size: 0.7rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 16px; }
.pagehead h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); letter-spacing: -0.035em; margin: 0 0 14px; font-weight: 600; }
.pagehead p { margin: 0; color: var(--muted); font-size: 1.14rem; max-width: 60ch; }
.pagehead .swatch { width: 58px; height: 6px; margin-bottom: 26px; border-radius: 3px; }
.entries { max-width: 760px; margin: 0 auto; }
.entry { padding: 72px 0; border-bottom: 1px solid var(--rule); }
.entry:last-child { border-bottom: 0; }
.entry h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); letter-spacing: -0.028em; margin: 0 0 6px; font-weight: 600; }
.entry .where { font-family: "Bricolage Grotesque", sans-serif; font-size: 0.78rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 24px; }
.entry p { margin: 0 0 20px; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 28px 0 0; }
.tags li { font-family: "Bricolage Grotesque", sans-serif; font-size: 0.74rem; letter-spacing: 0.04em;
  padding: 6px 13px; border-radius: 999px; }
.note { max-width: 760px; margin: 0 auto 0; padding: 30px 32px 34px; border-left: 4px solid var(--c-ice);
  background: #F7E7E5; }
.note p { margin: 0; font-size: 1.02rem; }

/* prose pages */
.prose { max-width: 680px; margin: 0 auto; padding: 0 0 96px; }
.prose h2 { font-size: 1.4rem; letter-spacing: -0.02em; margin: 46px 0 12px; font-weight: 600; }
.prose p { margin: 0 0 18px; }
.prose ul { margin: 0 0 18px; padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--c-casino); }

/* footer */
.foot { border-top: 1px solid var(--rule); background: #F4EFE5; margin-top: 0; padding: 62px 0 0; }
.footgrid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 44px; }
.footname { font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; font-size: 1.05rem; margin: 0 0 10px; }
.footnote { margin: 0; color: var(--muted); font-size: 0.97rem; max-width: 42ch; }
.foot h2 { font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: 9px; }
.foot li a { text-decoration: none; font-size: 0.99rem; }
.foot li a:hover { text-decoration: underline; }
.footend { margin-top: 52px; padding-top: 22px; padding-bottom: 30px; border-top: 1px solid var(--rule); }
.footend p { margin: 0; font-size: 0.87rem; color: var(--muted); }

@media (max-width: 900px) {
  body { font-size: 17.5px; }
  .burger { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 34px; height: 34px; cursor: pointer; }
  .burger span { display: block; height: 2px; background: var(--ink); }
  .nav { display: none; width: 100%; flex-direction: column; gap: 0; padding-bottom: 14px; }
  .navtoggle:checked ~ .nav { display: flex; }
  .bar { flex-wrap: wrap; }
  .nav a { padding: 11px 0; border-bottom: 1px solid var(--rule); font-size: 0.95rem; }
  /* mobile fallback: no pinning — each section gets a coloured band above it */
  .scrollgrid { grid-template-columns: 1fr; }
  .sticky { display: none; }
  .stream { padding: 0; }
  .chapter { padding: 0 0 46px; }
  .chapter .band { display: block; margin: 0 -28px 26px; padding: 30px 28px; color: #fff; }
  .chapter .band .eyebrow { font-family: "Bricolage Grotesque", sans-serif; font-size: 0.66rem;
    letter-spacing: 0.2em; text-transform: uppercase; opacity: .8; margin: 0 0 8px; }
  .chapter .band .big { font-family: "Bricolage Grotesque", sans-serif; font-size: 1.7rem; line-height: 1.1;
    letter-spacing: -0.03em; margin: 0; font-weight: 600; }
  .chapter.k-art .band { background: var(--c-art); }
  .chapter.k-capsule .band { background: var(--c-capsule); }
  .chapter.k-casino .band { background: var(--c-casino); }
  .chapter.k-ice .band { background: var(--c-ice); }
  .chapter > h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .chapter .count { margin-top: -8px; }
  .scrollwrap { margin-top: 48px; }
  .footgrid { grid-template-columns: 1fr; gap: 34px; }
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .hero-frame { order: -1; min-height: 58vw; max-height: 420px; }
  .hero-frame img { min-height: 58vw; max-height: 420px; height: 58vw; }
  .hero-frame::after {
    background: linear-gradient(180deg, transparent 55%, rgba(251, 248, 242, 0.55));
  }
  .hero-copy { padding: 36px 28px 48px; }
  .hero h1 { max-width: 14ch; font-size: clamp(2rem, 8vw, 2.7rem); }
  .closing { padding: 64px 0; }
  .closing p { font-size: 1.16rem; text-align: left; }
  .entry { padding: 50px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sticky { transition: none; }
  .hero-brand, .hero h1, .hero .lede, .hero-actions {
    opacity: 1;
    animation: none;
  }
  .hero-frame img {
    transform: none;
    animation: none;
  }
}
