/* What Might We Become? — launch site styles
   Light "book" theme (index, opening, 404) and the dark Experience page (body.xp). */

:root {
  --cream: #EDE7E0;
  --paper: #F6F2EC;
  --ink: #1A1A1A;
  --orange: #EA8135;
  --blue: #235473;
  --muted: #5a5650;
  --soon: #6a655e;
  --rule: rgba(26, 26, 26, .16);
  --serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, 'Times New Roman', serif;
  --mono: 'SFMono-Regular', 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
  --gutter: clamp(16px, 5vw, 64px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--cream); }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: var(--serif); font-size: 18px; line-height: 1.55; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: .15em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--orange); color: var(--ink); }
h1, h2, h3 { font-weight: 500; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.label {
  font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 12px;
}
.wrap { width: min(1120px, 100%); margin: 0 auto; padding: 0 var(--gutter); }

/* Header / nav */
.site-head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px 20px; flex-wrap: wrap;
  padding: 18px var(--gutter);
}
.brand { font-family: var(--serif); font-size: 18px; letter-spacing: -.01em; color: var(--ink); text-decoration: none; }
.nav { display: flex; gap: 18px; flex-wrap: wrap; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.nav a { color: var(--muted); text-decoration: none; padding: 4px 0; }
.nav a:hover, .nav a[aria-current] { color: var(--ink); }
.nav a[aria-current] { border-bottom: 1px solid var(--orange); }

/* Hero */
.hero {
  display: grid; grid-template-columns: 1fr; gap: 36px; align-items: center;
  padding: 24px var(--gutter) 64px;
}
.hero-cover { max-width: 300px; margin: 0 auto; width: 100%; }
.hero-cover img {
  border-radius: 4px;
  box-shadow: 0 30px 60px -22px rgba(26, 26, 26, .5), 0 8px 20px -10px rgba(26, 26, 26, .3);
}
.hero h1 { font-size: clamp(44px, 7vw, 84px); line-height: .95; letter-spacing: -.04em; margin: 0 0 18px; text-wrap: balance; }
.subtitle { font-size: clamp(20px, 2.4vw, 27px); line-height: 1.3; margin: 0 0 14px; max-width: 26ch; color: #2a2a2a; text-wrap: balance; }
.author { font-family: var(--mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; margin: 0 0 26px; }
.status { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; margin: 0 0 6px; }
.status::before {
  content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--orange); margin-right: 10px; vertical-align: 1px;
}
.status-note { font-size: 15px; color: var(--muted); margin: 0 0 22px; max-width: 46ch; line-height: 1.45; }
.retailers { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 14px; }
.formats { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: var(--muted); margin: 0; }

@media (min-width: 820px) {
  .hero { grid-template-columns: minmax(260px, 380px) 1fr; gap: clamp(36px, 6vw, 88px); padding-top: 40px; padding-bottom: 96px; }
  .hero-cover { max-width: none; margin: 0; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--serif); font-size: 16px; line-height: 1; padding: 13px 18px;
  border-radius: 999px; border: 1px solid var(--ink); color: var(--ink); background: transparent;
  text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { border-color: var(--blue); color: var(--blue); }
.btn--primary { background: var(--ink); color: var(--cream); }
.btn--primary:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn--soon { border: 1px dashed rgba(26, 26, 26, .32); color: var(--soon); cursor: default; }
.btn--soon:hover { border-color: rgba(26, 26, 26, .32); color: var(--soon); }
.btn--soon .tag {
  font-family: var(--mono); font-size: 9px; letter-spacing: .14em; text-transform: uppercase;
  border: 1px solid currentColor; border-radius: 999px; padding: 3px 7px; line-height: 1;
}

/* Pull-quote */
.pullquote { padding: 56px var(--gutter); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.pullquote blockquote {
  margin: 0 auto; max-width: 30ch; font-size: clamp(26px, 4vw, 44px); line-height: 1.15;
  letter-spacing: -.02em; text-align: center; text-wrap: balance;
}
.pullquote cite {
  display: block; font-style: normal; font-family: var(--mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); margin-top: 22px;
}

/* Blurb */
.blurb { padding: 72px var(--gutter) 64px; }
.blurb .wrap { max-width: 760px; }
.blurb p { font-size: clamp(19px, 2vw, 22px); line-height: 1.5; margin: 0 0 1.2em; }
.blurb p.lead { font-size: clamp(22px, 2.8vw, 30px); line-height: 1.3; letter-spacing: -.01em; }
.blurb p:last-child { margin-bottom: 0; }

/* Inside the book */
.inside { padding: 24px var(--gutter) 80px; }
.inside h2 { font-size: clamp(32px, 4.5vw, 52px); letter-spacing: -.03em; line-height: 1; margin: 0 0 36px; }
.inside h3.sub { font-size: clamp(22px, 2.6vw, 28px); letter-spacing: -.02em; margin: 56px 0 20px; }
.parts { display: grid; border-top: 1px solid var(--rule); }
.part { display: grid; grid-template-columns: 1fr; gap: 4px 24px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.part-num { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--blue); padding-top: 6px; }
.part-title { font-size: 22px; line-height: 1.2; margin: 0 0 4px; }
.part-chapters { margin: 0; font-size: 16px; color: var(--muted); line-height: 1.5; }
.part-chapters span + span::before { content: " · "; color: var(--orange); }
@media (min-width: 720px) { .part { grid-template-columns: 220px 1fr; } }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.card {
  min-height: 150px; border: 1px solid var(--rule); border-radius: 20px; padding: 18px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .18));
  transition: transform .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(35, 84, 115, .45); }
.card small { font-family: var(--mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.card h4 { font-family: var(--serif); font-size: 22px; font-weight: 500; line-height: 1.1; margin: 14px 0 8px; }
.card p { font-size: 15px; line-height: 1.45; color: var(--muted); margin: 0; }

.voices { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); counter-reset: v; }
.voices li {
  display: grid; grid-template-columns: 34px 1fr; gap: 0 12px; align-items: baseline;
  padding: 12px 0; border-bottom: 1px solid var(--rule); counter-increment: v;
}
.voices li::before { content: counter(v); font-family: var(--mono); font-size: 11px; color: var(--blue); }
.voices .vt { font-size: 20px; line-height: 1.25; }
.voices .vs { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; color: var(--muted); grid-column: 2; margin-top: 2px; }
@media (min-width: 720px) {
  .voices li { grid-template-columns: 34px 1fr auto; }
  .voices .vs { grid-column: 3; margin-top: 0; text-align: right; }
}
.framing { font-size: clamp(20px, 2.4vw, 26px); line-height: 1.35; max-width: 32ch; margin: 24px 0 0; font-style: italic; color: #2a2a2a; }

/* Two doorways */
.doors { padding: 0 var(--gutter) 80px; }
.doors .wrap { display: grid; gap: 12px; grid-template-columns: 1fr; }
.door {
  display: block; text-decoration: none; color: var(--ink);
  border: 1px solid var(--ink); border-radius: 24px; padding: 28px 24px;
  transition: background .25s, color .25s;
}
.door .label { color: inherit; opacity: .7; }
.door strong { display: block; font-weight: 500; font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -.02em; line-height: 1.05; margin-bottom: 10px; }
.door span { font-size: 16px; color: var(--muted); }
.door:hover { background: var(--ink); color: var(--cream); }
.door:hover span, .door:hover .label { color: var(--cream); }
.door--dark { background: #0b0d12; color: #f2eee6; border-color: #0b0d12; }
.door--dark span { color: #b8b8bd; }
.door--dark:hover { background: #1a1f2b; color: #fff; }
@media (min-width: 720px) { .doors .wrap { grid-template-columns: 1fr 1fr; } }

/* About */
.about { padding: 0 var(--gutter) 80px; }
.about .wrap { max-width: 760px; }
.about h2 { font-size: clamp(28px, 4vw, 44px); letter-spacing: -.03em; line-height: 1; margin: 0 0 20px; }
.about p { font-size: clamp(18px, 2vw, 21px); line-height: 1.5; margin: 0 0 1.1em; }
.seal-line { display: flex; align-items: center; gap: 18px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--rule); }
.seal-line img { width: 72px; height: 72px; flex: 0 0 auto; }
.seal-line p { margin: 0; font-size: clamp(18px, 2vw, 22px); line-height: 1.3; }

/* Footer */
.foot {
  padding: 36px var(--gutter) 48px; border-top: 1px solid var(--rule);
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--muted);
  display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; align-items: center;
}
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--ink); }

/* Reading page */
.reading { max-width: calc(65ch + 2 * var(--gutter)); margin: 0 auto; padding: 32px var(--gutter) 72px; font-size: 20px; line-height: 1.6; }
.reading h1 { font-size: clamp(30px, 5vw, 46px); letter-spacing: -.03em; line-height: 1.05; margin: 0 0 40px; }
.reading p { margin: 0 0 1.25em; text-wrap: pretty; }
.reading p:first-of-type { font-size: 1.1em; }
.reading .end { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 48px 0 0; }
.reading .after { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--rule); }
.reading .after h2 { font-size: clamp(24px, 3vw, 32px); letter-spacing: -.02em; line-height: 1.1; margin: 0 0 16px; }
.reading .after .status, .reading .after .status-note { margin-bottom: 14px; }

/* Simple page (404) */
.simple { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 48px var(--gutter); }
.simple h1 { font-size: clamp(36px, 7vw, 72px); letter-spacing: -.04em; line-height: 1; margin: 0 0 16px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* =========================================================
   The Experience (dark page)
   ========================================================= */
html.xp-root { background: #030407; }
body.xp { background: #030407; color: #f2eee6; }
.xp a { color: #f2eee6; text-decoration: none; }
.xp a:hover { color: #d6e4ff; }
.xp :focus-visible { outline: 2px solid #fff2a8; outline-offset: 4px; }
.xp ::selection { background: #8d7cff; color: #080910; }

.xp-field { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; background: #030407; }
.xp-grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .16; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.17'/%3E%3C/svg%3E");
}
.xp-progress {
  position: fixed; z-index: 20; top: 0; left: 0; height: 2px; width: 0;
  background: linear-gradient(90deg, #9dbfff, #ff8d78); box-shadow: 0 0 18px #9dbfff;
}
.xp-head {
  position: fixed; z-index: 20; inset: 0 0 auto; display: flex; justify-content: space-between; align-items: center;
  gap: 10px 14px; flex-wrap: wrap; padding: 16px clamp(16px, 4vw, 56px);
  background: linear-gradient(to bottom, rgba(3, 4, 7, .88), transparent);
}
.xp-head .brand { color: #f2eee6; }
.xp-head .nav a { color: rgba(242, 238, 230, .72); }
.xp-head .nav a:hover, .xp-head .nav a[aria-current] { color: #f2eee6; border-color: #ff8d78; }

.xp main { position: relative; z-index: 2; }
.xp section { min-height: 100svh; display: grid; align-items: center; padding: 12vh clamp(16px, 7vw, 110px); }
.xp .threshold { align-items: end; padding: 16vh clamp(16px, 7vw, 110px) 9vh; }
.xp .inner { width: min(880px, 100%); margin: auto; }
.xp .inner--wide { width: min(1100px, 100%); }
.xp .kicker { font-family: var(--mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; }
.xp .kicker--a { color: #9dbfff; }
.xp .kicker--b { color: #d59756; }
.xp .kicker--c { color: #ff8d78; }
.xp .move { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: #9dbfff; margin-bottom: 18px; min-height: 1.4em; }
.xp h1 {
  font-size: clamp(56px, 12.5vw, 168px); line-height: .84; letter-spacing: -.06em; margin: 0; max-width: 8ch; text-wrap: balance; font-weight: 430;
}
.xp .tagline { font-size: clamp(22px, 3vw, 42px); line-height: 1.25; max-width: 22ch; margin: 28px 0; color: #d3d0cd; }
.xp h2 { font-size: clamp(44px, 8vw, 110px); line-height: .9; letter-spacing: -.05em; margin: 12px 0 22px; font-weight: 430; }
.xp .lead { font-size: clamp(20px, 2.4vw, 32px); line-height: 1.35; color: #d0cdca; max-width: 26ch; margin: 0; }
.xp .hint { font-family: var(--mono); font-size: 10px; letter-spacing: .07em; color: #7a7d88; max-width: 52ch; line-height: 1.6; margin-top: 18px; }

.xp .actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.xp .xbtn {
  font-family: var(--serif); font-size: 16px; line-height: 1; border: 1px solid rgba(242, 238, 230, .25); border-radius: 999px;
  background: rgba(8, 11, 18, .38); color: #f2eee6; padding: 12px 18px; cursor: pointer; display: inline-block;
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); transition: border-color .2s, background .2s;
}
.xp .xbtn:hover { border-color: rgba(242, 238, 230, .55); color: #f2eee6; }
.xp .xbtn--solid { background: #f2eee6; color: #11131a; border-color: #f2eee6; }
.xp .xbtn--solid:hover { background: #fff; color: #11131a; }

.xp .qs { display: grid; gap: 26px; margin-top: 48px; }
.xp .q { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 18px; }
.xp .q h3 { font-size: clamp(24px, 3vw, 36px); font-weight: 430; margin: 0 0 14px; line-height: 1.15; }
.xp .chips { display: flex; gap: 8px; flex-wrap: wrap; }
.xp .chip {
  font: 15px ui-sans-serif, system-ui, sans-serif; border: 1px solid rgba(255, 255, 255, .18); background: transparent;
  color: #b8b8bd; border-radius: 999px; padding: 9px 14px; cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.xp .chip:hover { border-color: rgba(255, 255, 255, .45); color: #f2eee6; }
.xp .chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #080910; }
.xp textarea {
  width: 100%; min-height: 110px; border: 1px solid rgba(255, 255, 255, .15); background: rgba(5, 6, 9, .5); color: #f2eee6;
  border-radius: 15px; padding: 16px; font: 18px/1.5 var(--serif); resize: vertical;
}
.xp textarea::placeholder { color: #8a8c96; }

.xp .lens {
  position: relative; min-height: 390px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 28px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .015)); overflow: hidden;
  touch-action: none; cursor: crosshair; margin-top: 34px;
}
.xp .lens-top {
  position: absolute; inset: 0; display: grid; place-items: center; font-size: clamp(28px, 4vw, 56px);
  text-align: center; color: #e8e4df; padding: 40px; margin: 0;
}
.xp .lens-under {
  position: absolute; inset: 0; padding: 35px; font: 13px/1.8 var(--mono); color: #d59756;
  background-color: #050609;
  background-image: repeating-linear-gradient(0deg, rgba(213, 151, 86, .08) 0 1px, transparent 1px 28px), repeating-linear-gradient(90deg, rgba(213, 151, 86, .07) 0 1px, transparent 1px 28px);
  clip-path: circle(90px at 50% 50%);
}
.xp .lens-under b { color: #ffd0c4; font-weight: 600; }
.xp .drag-chip {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: #ffd0c4;
  border: 1px solid rgba(255, 208, 196, .35); border-radius: 999px; padding: 7px 13px; background: rgba(3, 4, 7, .55);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); pointer-events: none; white-space: nowrap;
  animation: chipPulse 2.4s ease-in-out infinite; transition: opacity .5s;
}
@keyframes chipPulse { 0%, 100% { opacity: .85; transform: translateX(-50%) translateY(0); } 50% { opacity: 1; transform: translateX(-50%) translateY(-3px); } }

.xp .stories { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 12px; margin-top: 38px; }
.xp .story {
  min-height: 160px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 20px; padding: 18px;
  background: linear-gradient(145deg, rgba(141, 124, 255, .08), rgba(255, 141, 120, .035)); transition: transform .25s ease, border-color .25s ease;
}
.xp .story:hover { transform: translateY(-6px); border-color: rgba(214, 228, 255, .34); }
.xp .story small { font-family: var(--mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: #9dbfff; }
.xp .story h3 { font-size: 24px; font-weight: 450; line-height: 1.08; margin: 16px 0 8px; }
.xp .story p { font-size: 13px; line-height: 1.5; color: #adacb2; margin: 0; font-family: ui-sans-serif, system-ui, sans-serif; }
.xp .story--end { background: linear-gradient(145deg, rgba(255, 141, 120, .12), rgba(213, 151, 86, .05)); border-color: rgba(255, 208, 196, .25); }
.xp .story--end small { color: #ff8d78; }

.xp .return { display: flex; flex-wrap: wrap; gap: clamp(36px, 7vw, 100px); align-items: center; width: min(1200px, 100%); margin: auto; }
.xp .glyph { width: min(440px, 86vw); flex: 0 1 auto; aspect-ratio: 1; border-radius: 50%; filter: drop-shadow(0 0 35px rgba(157, 191, 255, .18)); }
.xp .return-text { flex: 1 1 340px; min-width: 0; }
.xp .question { font-size: clamp(32px, 4.6vw, 64px); line-height: 1.05; letter-spacing: -.03em; margin: 16px 0 22px; font-weight: 430; }
.xp .note { font: 11px/1.6 var(--mono); color: #8a8a93; max-width: 52ch; margin: 0 0 24px; }

.xp-foot {
  position: relative; z-index: 2; background: #f2eee6; color: #11131a; padding: 70px clamp(16px, 7vw, 110px);
  display: flex; flex-wrap: wrap; gap: 44px; align-items: center;
}
.xp-foot img { width: 190px; height: auto; border-radius: 6px; box-shadow: 0 18px 40px rgba(17, 19, 26, .25); flex: 0 0 auto; }
.xp-foot .ft { flex: 1 1 300px; min-width: 0; }
.xp-foot .label { color: #313746; }
.xp-foot h2 { font-size: clamp(34px, 5vw, 64px); line-height: 1; letter-spacing: -.04em; margin: 0 0 16px; font-weight: 500; }
.xp-foot .sub { font-size: 20px; line-height: 1.5; max-width: 38ch; margin: 0 0 10px; }
.xp-foot .status { color: #11131a; }
.xp-foot .status-note { color: #5a5d66; }
.xp-foot .btn { border-color: #11131a; color: #11131a; }
.xp-foot .btn--primary { background: #11131a; color: #f2eee6; }
.xp-foot .btn--soon { color: #5a5d66; border-color: rgba(17, 19, 26, .35); }
.xp-foot a { color: #11131a; }
.xp-foot .small { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: #5a5d66; margin: 28px 0 0; width: 100%; }
.xp-foot .small a { text-decoration: underline; }
