:root {
  --paper: #ebe6f8;
  --paper-2: #f6f3fc;
  --white: #fffcff;
  --ink: #24183d;
  --ink-soft: #514868;
  --faint: #6d6580;
  --violet: #6d4dff;
  --violet-deep: #3c2a86;
  --violet-soft: #efe9ff;
  --gold: #e8aa44;
  --gold-ink: #8a5a10;
  --moss: #1c7a48;
  --moss-soft: #e5f6ec;
  --line: rgba(36, 24, 61, 0.1);
  --shadow: 0 24px 50px -32px rgba(36, 24, 61, 0.55);
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Outfit", "Avenir Next", sans-serif;
  --radius: 28px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: clip;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, select { font-family: inherit; }

.book-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: rgba(255, 252, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.04em;
  font-size: 20px;
}
.mark i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(232, 170, 68, 0.2);
}
.book-nav nav { display: flex; flex-wrap: wrap; gap: 4px; margin-left: 8px; }
.book-nav nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 999px;
}
.book-nav nav a[aria-current="page"],
.book-nav nav a:hover { background: var(--violet-soft); color: var(--violet-deep); }
.book-nav .app {
  margin-left: auto;
  text-decoration: none;
  background: var(--ink);
  color: white;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
}
.subnav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 10px 18px 0;
}
.subnav a {
  text-decoration: none;
  background: white;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 650;
  box-shadow: var(--shadow);
}
.subnav a[aria-current="page"] { background: var(--ink); color: white; }

.page { max-width: 1180px; margin: 0 auto; padding: 28px 18px 80px; min-width: 0; }
.kicker {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--violet-deep);
}
h1, h2, h3 { font-family: var(--serif); font-weight: 560; letter-spacing: -0.03em; line-height: 1.05; margin: 0; }
h1 { font-size: clamp(46px, 7vw, 84px); }
h2 { font-size: clamp(32px, 4vw, 48px); }
h3 { font-size: 26px; }
.lede { font-size: 20px; color: var(--ink-soft); max-width: 640px; }
.fine { color: var(--faint); font-size: 13px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;
  align-items: end;
}
.panel {
  background: var(--ink);
  color: white;
  border-radius: var(--radius);
  padding: 28px;
}
.panel p { color: rgba(255,255,255,.78); }
.panel .kicker { color: var(--gold); }

.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 22px; }
.step {
  background: white;
  border-radius: 22px;
  padding: 16px;
  min-height: 150px;
  box-shadow: var(--shadow);
}
.step b { display: block; font-family: var(--serif); font-size: 28px; }
.step span { color: var(--faint); font-size: 13px; }

.frames { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.frame {
  display: block;
  text-decoration: none;
  background: white;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.frame .shot {
  height: 280px;
  overflow: hidden;
  background: var(--paper-2);
  position: relative;
}
.frame iframe {
  width: 1440px;
  height: 900px;
  border: 0;
  transform: scale(0.42);
  transform-origin: top left;
  pointer-events: none;
}
.frame figcaption { padding: 14px 16px 16px; }
.frame strong { display: block; font-size: 18px; }
.frame em { font-style: normal; color: var(--faint); font-size: 14px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.card {
  background: white;
  border-radius: 24px;
  padding: 20px;
  box-shadow: var(--shadow);
}
section { margin-top: 56px; }

.swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.swatch { border-radius: 22px; overflow: hidden; background: white; box-shadow: var(--shadow); }
.swatch .chip { height: 92px; }
.swatch p { margin: 0; padding: 12px 14px 14px; font-size: 13px; }
.swatch b { display: block; }

.specimen {
  border: 1px dashed rgba(36, 24, 61, 0.25);
  border-radius: 18px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-ink);
  background: #fff6e4;
}

.desk {
  background: var(--paper);
  color: var(--ink);
  min-height: 100vh;
}
.desk.winter { background: #14101f; color: white; }
.desk.local { background: #f3f1ea; }
.desk-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(255,252,255,.92);
  backdrop-filter: blur(12px);
}
.winter .desk-bar { background: rgba(20,16,31,.9); }
.desk-bar select, .search {
  border: 0;
  background: white;
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--ink);
}
.winter .search, .winter .desk-bar select { background: #2a2340; color: white; }
.winter .search::placeholder { color: rgba(255,255,255,.55); }
.winter .mark { color: white; }
.search { flex: 1; min-width: 180px; outline: none; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.pills button, .go, .ghost {
  border: 0;
  border-radius: 999px;
  padding: 7px 12px;
  font-weight: 650;
  font-size: 13px;
  cursor: pointer;
  background: white;
  color: var(--ink);
}
.pills button.on { background: var(--violet); color: white; }
.pills button.on-ink { background: var(--ink); color: white; }
.winter .pills button { background: #2a2340; color: white; }
.winter .pills button.on { background: var(--gold); color: var(--ink); }
.go { background: var(--violet); color: white; }
.ghost { background: transparent; color: inherit; }
.hero-desk {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 18px;
  padding: 8px 18px 0;
}
.hero-copy h1 { font-size: clamp(40px, 5vw, 68px); }
.hero-photo {
  border-radius: 28px;
  min-height: 220px;
  background: #ccc center/cover no-repeat;
  position: relative;
}
.hero-photo span {
  position: absolute;
  left: 14px;
  bottom: 14px;
  background: white;
  color: var(--ink);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
}
.stats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 14px 18px 0;
}
.stat {
  background: white;
  border-radius: 16px;
  padding: 10px 12px;
  min-width: 110px;
}
.winter .stat { background: #221b33; }
.stat b { display: block; font-family: var(--serif); font-size: 26px; }
.stat span { font-size: 12px; color: var(--faint); }
.winter .stat span { color: rgba(255,255,255,.6); }
.list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 16px 18px 28px;
  align-items: start;
}
.event {
  background: white;
  color: var(--ink);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 88px 1fr;
  min-width: 0;
}
.event .when {
  background: var(--violet-soft);
  color: var(--violet-deep);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 16px 8px;
  text-align: center;
}
.winter .event .when { background: #2a2340; color: var(--gold); }
.event .when b {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 560;
  letter-spacing: -0.04em;
  line-height: 1;
}
.event .when span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
}
.event .body { padding: 14px 14px 12px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.event h3 { font-family: var(--sans); font-size: 18px; letter-spacing: -0.03em; line-height: 1.2; margin: 0; }
.event .where { margin: 0; color: var(--ink-soft); font-size: 14px; }
.event .price { margin: 2px 0 0; font-size: 13px; font-weight: 650; }
.event .price.free { color: var(--moss); }
.event .row { margin-top: 10px; }
.row { display: flex; gap: 6px; }
.row button { flex: 1; }
.event .row button {
  border: 0;
  border-radius: 999px;
  padding: 9px 8px;
  font-weight: 650;
  font-size: 13px;
  cursor: pointer;
  background: var(--paper);
  color: var(--ink);
}
.event .row button[data-mark="going"] { background: var(--ink); color: white; }
.event .row button.on-go { background: var(--moss); color: white; }
.event .row button.on-int { background: #fff1d6; color: var(--gold-ink); }
.anno {
  margin: 0 18px 18px;
  background: white;
  border-radius: 18px;
  padding: 12px 14px;
  font-size: 14px;
}
.winter .anno { background: #221b33; }
.sheet {
  position: fixed;
  inset: auto 18px 18px auto;
  width: min(420px, calc(100% - 36px));
  background: var(--ink);
  color: white;
  border-radius: 24px;
  padding: 16px;
  z-index: 20;
  box-shadow: var(--shadow);
}
.sheet h3 { font-family: var(--sans); font-size: 16px; }
.sheet input {
  width: 100%;
  margin-top: 8px;
  border: 0;
  border-radius: 12px;
  padding: 10px 12px;
}
.sheet .row { margin-top: 10px; }
.hidden { display: none !important; }

.phone {
  width: 320px;
  margin: 0 auto;
  background: var(--ink);
  border-radius: 36px;
  padding: 14px;
  color: white;
  box-shadow: var(--shadow);
}
.phone .screen {
  background: var(--paper);
  color: var(--ink);
  border-radius: 26px;
  overflow: hidden;
  min-height: 540px;
}
.sms { background: white; margin: 12px; border-radius: 18px; padding: 12px; }
.sms b { display: block; font-size: 13px; }

.table-wrap { overflow-x: auto; border-radius: 20px; background: white; max-width: 100%; }
table { width: 100%; border-collapse: collapse; background: white; border-radius: 20px; overflow: hidden; }
.table-wrap table { min-width: 680px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 14px; }
th { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); background: #f7f4fd; }
td code, p code { font-size: 0.92em; }
.chip { display: inline-block; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--moss-soft); color: var(--moss); white-space: nowrap; }
.chip.agg { background: #fff6e4; color: var(--gold-ink); }
.chip.seed { background: var(--violet-soft); color: var(--violet-deep); }
.chip.pipe { background: #f4f1ea; color: var(--faint); }
.toc { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 0; }
.toc a { text-decoration: none; background: white; border-radius: 999px; padding: 7px 12px; font-size: 13px; font-weight: 650; }

body.meet { overflow: hidden; height: 100dvh; }
body.meet .page { padding-top: 12px; padding-bottom: 0; }
.deck { position: relative; }
.slide { display: none; }
.slide.on {
  display: block;
  max-height: calc(100dvh - 132px);
  overflow: auto;
  padding: 8px 0 12px;
}
.slide h1 { font-size: clamp(36px, 5vw, 72px); max-width: 16ch; line-height: 1.08; }
.slide .lede { font-size: clamp(18px, 2vw, 24px); max-width: 38rem; }
.slide > p, .slide > .fine, .slide > ol { max-width: 38rem; }
.say { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.deck-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(255, 252, 255, 0.94);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(12px);
  z-index: 40;
}
.deck-bar button, .deck-bar a.jump {
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  border: 0;
  background: white;
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 12px;
  text-decoration: none;
  cursor: pointer;
}
.deck-bar button.go { background: var(--ink); color: white; }
.deck-bar .pos { margin-left: auto; color: var(--faint); font-size: 13px; font-variant-numeric: tabular-nums; }
.deck-bar .jumps { display: flex; flex-wrap: wrap; gap: 6px; }

.journey { display: grid; grid-template-columns: 180px 1fr 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.journey b { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--violet-deep); }

body.door .book-nav {
  padding-left: max(18px, calc((100% - 1180px) / 2 + 18px));
  padding-right: max(18px, calc((100% - 1180px) / 2 + 18px));
}
body.door #desk-root {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 18px 8px;
}
body.door .desk-bar {
  position: static;
  padding-left: 0;
  padding-right: 0;
  background: transparent;
  backdrop-filter: none;
}
body.door .hero-desk,
body.door .stats,
body.door .list { padding-left: 0; padding-right: 0; }
body.door .anno { margin-left: 0; margin-right: 0; }
body.door .sheet { right: max(18px, calc((100% - 1180px) / 2 + 18px)); }
body.door .hero-copy h1 { font-size: clamp(34px, 3.8vw, 52px); max-width: 16ch; line-height: 1.05; }
body.door .hero-copy .lede { font-size: 18px; margin: 8px 0 0; }
body.door .hero-photo { min-height: 240px; }
body.door .list { padding-top: 10px; }
body.door .door-rest { padding-top: 0; }
body.door .door-rest > section:first-child { margin-top: 12px; }

body.embed .book-nav,
body.embed .subnav,
body.embed footer.book { display: none; }
body.embed .desk { min-height: 900px; }

footer.book {
  padding: 28px 18px 48px;
  color: var(--faint);
  font-size: 13px;
}
footer.book .page { padding-top: 0; padding-bottom: 0; }

@media (max-width: 900px) {
  h1 { font-size: clamp(34px, 9vw, 46px); line-height: 1.12; }
  .hero-grid, .frames, .grid-3, .grid-2, .hero-desk, .list, .swatches, .say { grid-template-columns: 1fr; }
  .deck-bar .jumps { display: none; }
  .slide.on { max-height: calc(100dvh - 150px); }
  .steps { grid-template-columns: 1fr 1fr; }
  .journey { grid-template-columns: 1fr; }
  .book-nav { flex-wrap: wrap; }
  .book-nav .app { display: none; }
  .desk-bar { flex-wrap: wrap; }
  .search { min-width: 0; flex: 1 1 100%; }
  .hero-photo { min-height: 180px; }
  body.door .hero-photo { display: none; }
  body.door .stats { display: none; }
  .frame .shot { height: 220px; }
  .frame iframe { transform: scale(0.32); }
}
