:root {
  --bg: #0A0A0F;
  --surface: #14141C;
  --line: #22222E;
  --line-strong: #3A3A4A;
  --text: #EEEEF3;
  --text-2: #C9C9D6;
  --muted: #A6A6B8;
  --cyan: #3CCFE5;
  --orange: #F2913D;
  --violet: #A98BF7;
  --red: #EF5B4C;
  --cta: var(--orange);
  --display: "Oswald", "Arial Narrow", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

a { color: var(--text); }

h1, h2, h3 { margin: 0; }

h1, h2 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: 0.01em;
}

h2 { font-size: clamp(30px, 4vw, 44px); }

p { margin: 0; }

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Preview bar */
.preview-bar {
  background: #1C1C26;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  padding: 7px 16px;
  border-bottom: 1px solid var(--line);
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--cta);
  color: var(--bg);
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
  padding: 15px 26px;
  border-radius: 8px;
  border: 1px solid var(--cta);
  transition: filter 0.15s ease;
}
.btn:hover { filter: brightness(1.1); color: var(--bg); }
.btn:focus-visible, a:focus-visible, .nav-button:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-ghost:hover { color: var(--text); border-color: var(--text-2); filter: none; }
.btn-small { font-size: 15px; padding: 9px 16px; }

.actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Text helpers */
.eyebrow {
  font-family: var(--display);
  font-size: 14px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow-orange { color: var(--orange); }
.accent { color: var(--cta); }
.lede { font-size: 19px; color: var(--text-2); max-width: 520px; }
.muted { color: var(--text-2); font-size: 17px; }
.muted-lg { color: var(--text-2); font-size: 18px; max-width: 640px; }
.text-link { color: var(--text); font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); position: relative; }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}
.nameplate {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-decoration: none;
  white-space: nowrap;
}
.main-nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.main-nav a:not(.btn) { color: var(--text-2); text-decoration: none; }
.main-nav a:not(.btn):hover { color: var(--text); }
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-button { display: none; }

/* Hero */
.hero-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 56px;
  padding-top: 88px;
  padding-bottom: 96px;
}
.hero-copy {
  flex: 1 1 440px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.hero-copy h1 { font-size: clamp(40px, 5.4vw, 64px); }
.hero-copy .actions { padding-top: 8px; }

.cover-fan {
  flex: 1 1 460px;
  min-width: 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding: 24px 0;
}
.cover-fan img {
  width: 25%;
  max-width: 180px;
  aspect-ratio: 5 / 8;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65);
  position: relative;
  background: var(--surface);
}
.cover-fan img + img { margin-left: -2%; }
.cover-fan .c1 { transform: rotate(-6deg) translateY(10px); z-index: 1; }
.cover-fan .c2 { transform: rotate(-2deg); z-index: 2; }
.cover-fan .c3 { transform: rotate(3deg); z-index: 3; }
.cover-fan .c4 { transform: rotate(6deg) translateY(10px); z-index: 4; }

/* Launch band */
.launch {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.launch-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px;
  padding-top: 64px;
  padding-bottom: 64px;
}
.type-cover {
  flex: 0 0 180px;
  aspect-ratio: 5 / 8;
  background: #2E0F0D;
  border: 1px solid var(--red);
  border-radius: 4px;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
  font-family: var(--display);
}
.tc-name { font-size: 11px; letter-spacing: 0.3em; color: var(--text-2); text-align: center; }
.tc-title { font-size: 30px; font-weight: 600; line-height: 1; color: var(--red); }
.tc-series { font-size: 10px; letter-spacing: 0.2em; color: var(--muted); }
.launch-copy {
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.launch-copy .hook { font-size: 18px; max-width: 560px; }
.launch-copy .actions { padding-top: 10px; }

/* Series */
.series {
  padding-top: 96px;
  padding-bottom: 96px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.section-head { display: flex; flex-direction: column; gap: 10px; }
.series-grid { display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; }
.reszo { flex: 2 1 620px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.solo { flex: 1 1 290px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.reszo-cards { display: flex; flex-wrap: wrap; gap: 24px; flex: 1 1 auto; }
.reszo-cards .card { flex: 1 1 290px; }
.solo .card { flex: 1 1 auto; }

.group-label { display: flex; align-items: center; gap: 14px; }
.gl-name {
  font-family: var(--display);
  font-size: 14px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  white-space: nowrap;
}
.gl-note { font-size: 14px; color: var(--muted); white-space: nowrap; }
.gl-rule { flex: 1 1 auto; height: 1px; background: var(--line-strong); }

.card {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--card-accent);
  border-radius: 8px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.card-cyan { --card-accent: var(--cyan); }
.card-orange { --card-accent: var(--orange); }
.card-violet { --card-accent: var(--violet); }
.card-cover {
  width: 96px;
  aspect-ratio: 5 / 8;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
}
.card-body { display: flex; flex-direction: column; gap: 12px; flex: 1 1 auto; }
.card-eyebrow {
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--card-accent);
}
.card h3 { font-family: var(--display); font-weight: 600; font-size: 32px; line-height: 1.1; }
.card-body > p:not(.card-eyebrow):not(.card-meta) { font-size: 17px; }
.card-meta { font-size: 15px; color: var(--muted); }
.card-link {
  margin-top: auto;
  padding-top: 6px;
  color: var(--card-accent);
  font-weight: 600;
  text-decoration: none;
}
.card-link:hover { text-decoration: underline; color: var(--card-accent); }

/* Explore */
.explore {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 88px 0;
}
.explore-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 36px;
}
.explore-head > div { display: flex; flex-direction: column; gap: 10px; }
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.tile {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  background: var(--bg);
  border: 1px solid #2C2C3A;
  border-radius: 8px;
  overflow: hidden;
  padding-bottom: 22px;
  transition: border-color 0.15s ease;
}
.tile:hover { border-color: var(--line-strong); color: var(--text); }
.tile img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; margin-bottom: 8px; }
.tile h3, .tile p { padding: 0 20px; }
.tile h3 { font-size: 18px; font-weight: 600; }
.tile p { font-size: 15px; color: var(--muted); }

/* About */
.about {
  padding-top: 96px;
  padding-bottom: 96px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); }
.footer-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  padding: 72px 0 48px;
}
.footer-cta > div { display: flex; flex-direction: column; gap: 8px; }
.footer-cta h2 { font-size: clamp(28px, 3.4vw, 36px); }
.footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
.footer-meta nav { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-meta a { color: var(--text-2); text-decoration: none; }
.footer-meta a:hover { color: var(--text); }

/* Phone */
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .header-inner { min-height: 60px; }
  .nameplate { font-size: 18px; letter-spacing: 0.28em; }
  .nav-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    cursor: pointer;
    color: var(--text);
  }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 10;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 8px 16px 16px;
  }
  .main-nav a:not(.btn) { padding: 12px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
  .main-nav .btn { margin-top: 14px; text-align: center; }
  .nav-toggle:checked ~ .main-nav { display: flex; }

  /* covers first on phones */
  .hero-inner { gap: 24px; padding-top: 28px; padding-bottom: 48px; }
  .cover-fan { order: -1; flex-basis: 100%; padding: 8px 0 4px; }
  .hero-copy { gap: 18px; }
  .lede { font-size: 16px; }
  .hero-copy .actions .btn { flex: 1 1 100%; text-align: center; }

  .launch-inner { flex-wrap: nowrap; align-items: flex-start; gap: 18px; padding-top: 28px; padding-bottom: 28px; }
  .type-cover { flex: 0 0 96px; padding: 10px 8px; }
  .tc-title { font-size: 16px; }
  .tc-name, .tc-series { font-size: 7px; }
  .launch-copy h2 { font-size: 26px; }
  .launch-copy .hook { font-size: 16px; }
  .launch-copy .actions { flex-direction: column; gap: 10px; }
  .launch-copy .btn { font-size: 15px; padding: 12px 16px; text-align: center; }

  .series, .about { padding-top: 56px; padding-bottom: 56px; }
  .gl-note { display: none; }
  .card { flex-direction: row; align-items: flex-start; padding: 18px; gap: 16px; }
  .card-cover { width: 72px; flex: 0 0 72px; }
  .card h3 { font-size: 24px; }
  .card-eyebrow { font-size: 11px; letter-spacing: 0.16em; }
  .card-body > p:not(.card-eyebrow):not(.card-meta) { font-size: 15px; }

  .explore { padding: 56px 0; }
  .footer-cta { padding: 48px 0 32px; }
  .footer-cta .btn { flex: 1 1 100%; text-align: center; }
}
/* Launch cover image */
.launch-cover {
  flex: 0 0 180px;
  width: 180px;
  aspect-ratio: 5 / 8;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}
@media (max-width: 760px) {
  .launch-cover { flex: 0 0 96px; width: 96px; }
}


/* ---------- Inner pages ---------- */
body { --accent: var(--orange); }
body.page-lost-time { --accent: var(--cyan); }
body.page-timespace { --accent: var(--orange); }
body.page-boundless { --accent: var(--violet); }
.main-nav a[aria-current="page"] { color: var(--text); }
.hero .eyebrow.accent-eyebrow { color: var(--accent); }
.hero-sub { font-size: 21px; font-weight: 500; color: var(--text); max-width: 560px; }

.books-section { padding: 24px 0 72px; }
.books-section > .wrap > h2 { margin: 56px 0 8px; }
.books-section > .wrap > .muted-lg { margin-bottom: 8px; }
.book {
  display: flex;
  gap: 36px;
  padding: 44px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 16px;
}
.book-cover {
  flex: 0 0 200px;
  width: 200px;
  aspect-ratio: 5 / 8;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
  background: var(--surface);
}
.book-cover.wide { aspect-ratio: auto; object-fit: contain; background: transparent; box-shadow: none; }
.book-body { flex: 1 1 auto; min-width: 0; max-width: 720px; display: flex; flex-direction: column; gap: 12px; }
.book-label {
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.free-tag {
  background: var(--accent);
  color: var(--bg);
  border-radius: 4px;
  padding: 2px 8px;
  letter-spacing: 0.12em;
  font-weight: 600;
}
.book h3 { font-family: var(--display); font-weight: 600; font-size: 34px; line-height: 1.1; }
.book-tagline { font-size: 19px; font-weight: 500; color: var(--text); }
.book-body > p:not(.book-label):not(.book-tagline), .book-body details p { color: var(--text-2); }
.book details { color: var(--text-2); }
.book details summary {
  cursor: pointer;
  color: var(--accent);
  font-weight: 600;
  padding: 6px 0;
  width: fit-content;
}
.book details[open] summary { margin-bottom: 10px; }
.book details p + p { margin-top: 12px; }
.book-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding-top: 8px; }
.book-actions .btn { font-size: 15px; padding: 11px 18px; }
.book-actions .text-link { font-size: 15px; padding: 8px 4px; }
.book.is-short { padding: 32px 0; }
.book.is-short .book-cover { flex-basis: 140px; width: 140px; }
.book.is-short h3 { font-size: 26px; }

.type-cover.violet { background: #1C1433; border-color: var(--violet); }
.type-cover.violet .tc-title { color: var(--violet); }
.book .type-cover { flex: 0 0 140px; width: 140px; }

.bridge { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.bridge-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 40px; padding-top: 64px; padding-bottom: 64px; }
.bridge-inner img { width: 140px; aspect-ratio: 5 / 8; object-fit: cover; border-radius: 4px; box-shadow: 0 18px 40px rgba(0,0,0,0.5); }
.bridge-copy { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.bridge-copy .eyebrow { color: var(--bridge, var(--accent)); }

/* Reading order */
.era { padding: 48px 0 8px; }
.era h2 { margin-bottom: 6px; }
.era > .muted-lg { margin-bottom: 20px; }
.ro-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.ro-list li { display: flex; align-items: center; gap: 18px; padding: 14px 0; border-top: 1px solid var(--line); }
.ro-num { flex: 0 0 28px; font-family: var(--display); font-size: 18px; color: var(--muted); text-align: right; }
.ro-list img, .ro-list .ro-blank { flex: 0 0 52px; width: 52px; aspect-ratio: 5 / 8; object-fit: cover; border-radius: 3px; background: var(--surface); }
.ro-blank { border: 1px solid var(--line-strong); }
.ro-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ro-text strong { font-size: 17px; font-weight: 600; }
.ro-text span { font-size: 14px; color: var(--muted); }
.ro-list a.ro-link { flex: 0 0 auto; color: var(--ro-accent, var(--accent)); font-weight: 600; text-decoration: none; font-size: 15px; padding: 10px 0; }
.ro-list a.ro-link:hover { text-decoration: underline; }
.era-cyan { --ro-accent: var(--cyan); }
.era-orange { --ro-accent: var(--orange); }
.era-violet { --ro-accent: var(--violet); }
.era-label { font-family: var(--display); font-size: 14px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ro-accent); margin-bottom: 8px; }

/* Free page */
.free-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; padding: 8px 0 24px; }
.free-item { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 20px; display: flex; gap: 16px; align-items: flex-start; }
.free-item img { flex: 0 0 72px; width: 72px; aspect-ratio: 5 / 8; object-fit: cover; border-radius: 3px; }
.free-item div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.free-item strong { font-size: 17px; }
.free-item span { font-size: 14px; color: var(--muted); }
.free-item p { font-size: 15px; color: var(--text-2); }
.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-2); font-size: 17px; }
.checklist svg { flex: 0 0 20px; margin-top: 4px; }

/* Prose */
.prose { max-width: 720px; display: flex; flex-direction: column; gap: 18px; font-size: 18px; color: var(--text-2); }
.prose ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; }
.prose strong { color: var(--text); }
.page-section { padding-top: 72px; padding-bottom: 72px; }

/* Nav collapses earlier now that it has more links */
@media (max-width: 1240px) {
  .nav-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    cursor: pointer;
    color: var(--text);
  }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 10;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 8px 16px 16px;
  }
  .main-nav a:not(.btn) { padding: 12px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
  .main-nav .btn { margin-top: 14px; text-align: center; }
  .nav-toggle:checked ~ .main-nav { display: flex; }
}

@media (max-width: 760px) {
  .hero-sub { font-size: 18px; }
  .book { gap: 16px; padding: 28px 0; }
  .book-cover, .book.is-short .book-cover, .book .type-cover { flex: 0 0 92px; width: 92px; }
  .book h3, .book.is-short h3 { font-size: 24px; }
  .book-tagline { font-size: 17px; }
  .book-body > p:not(.book-label):not(.book-tagline), .book details { font-size: 15px; }
  .book-label { font-size: 11px; letter-spacing: 0.14em; gap: 6px; }
  .book-actions { flex-direction: column; align-items: stretch; }
  .book-actions .btn { text-align: center; }
  .bridge-inner { gap: 20px; padding-top: 40px; padding-bottom: 40px; flex-wrap: nowrap; align-items: flex-start; }
  .bridge-inner img { width: 88px; }
  .ro-list li { gap: 12px; flex-wrap: wrap; }
  .ro-num { flex-basis: 20px; }
  .ro-list a.ro-link { flex-basis: 100%; padding: 4px 0 0 32px; }
  .page-section { padding-top: 48px; padding-bottom: 48px; }
  .prose { font-size: 16px; }
}

.tile.no-img { padding-top: 22px; }
.free-item:hover { border-color: var(--line-strong); }
.prose a { color: var(--text); }

/* Five-cover spread */
.cover-fan.five img { width: 21%; max-width: 160px; }
.cover-fan.five img + img { margin-left: -3%; }
.cover-fan.five .c1 { transform: rotate(-9deg) translateY(16px); z-index: 1; }
.cover-fan.five .c2 { transform: rotate(-4deg) translateY(4px); z-index: 2; }
.cover-fan.five .c3 { transform: rotate(0deg); z-index: 3; }
.cover-fan.five .c4 { transform: rotate(4deg) translateY(4px); z-index: 4; }
.cover-fan.five .c5 { transform: rotate(9deg) translateY(16px); z-index: 5; }

/* Fixes: covers keep their shape; tidy reading-order rows on phones */
.book { align-items: flex-start; }
.book-cover, .book .type-cover { height: auto; align-self: flex-start; }
@media (max-width: 760px) {
  .ro-list li {
    display: grid;
    grid-template-columns: 20px 44px minmax(0, 1fr);
    column-gap: 12px;
    row-gap: 2px;
    align-items: center;
  }
  .ro-num { grid-row: 1 / span 2; grid-column: 1; }
  .ro-list img, .ro-list .ro-blank { grid-row: 1 / span 2; grid-column: 2; width: 44px; }
  .ro-text { grid-column: 3; grid-row: 1; }
  .ro-list a.ro-link { grid-column: 3; grid-row: 2; padding: 2px 0 0; flex-basis: auto; }
}


/* ---------- Store + members wiring ---------- */
button.btn { font-family: var(--body); cursor: pointer; }
.btn[aria-busy="true"], button.btn:disabled { opacity: 0.7; cursor: progress; }
.header-inner { justify-content: flex-start; }
.nameplate { margin-right: auto; }
.main-nav { order: 2; }
.nav-button { order: 4; }
.cart-button {
  order: 3;
  position: relative;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  margin-left: 20px;
}
.cart-button:hover { border-color: var(--text-2); }
.cart-count {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  background: var(--cta);
  color: var(--bg);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-count[hidden] { display: none; }
.cart-drawer { position: fixed; inset: 0; z-index: 50; }
.cart-drawer[hidden] { display: none; }
.cart-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.6); }
.cart-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 100%);
  background: var(--surface);
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  box-sizing: border-box;
  overflow-y: auto;
}
.cart-head { display: flex; justify-content: space-between; align-items: center; }
.cart-head h2 { font-size: 28px; }
.cart-close { width: 44px; height: 44px; background: transparent; border: none; color: var(--text); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.cart-lines { flex: 1 1 auto; display: flex; flex-direction: column; gap: 14px; }
.cart-line { display: flex; gap: 12px; align-items: center; }
.cart-line img { width: 52px; aspect-ratio: 5 / 8; object-fit: cover; border-radius: 3px; background: var(--bg); }
.cart-line-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cart-line-name { font-weight: 600; font-size: 15px; }
.cart-line-price { color: var(--muted); font-size: 14px; }
.cart-remove { background: transparent; border: none; color: var(--text-2); text-decoration: underline; cursor: pointer; font-size: 14px; padding: 12px 4px; font-family: var(--body); }
.cart-empty { color: var(--text-2); }
.cart-error { color: #FF9B8F; font-size: 15px; }
.cart-error[hidden] { display: none; }
.cart-foot { border-top: 1px solid var(--line); padding-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.cart-foot[hidden] { display: none; }
.cart-subtotal { display: flex; justify-content: space-between; font-size: 17px; }
.cart-note { font-size: 14px; color: var(--muted); }
.cart-checkout { width: 100%; text-align: center; }

.account-root h1 { font-size: clamp(36px, 5vw, 56px); margin-bottom: 10px; }
.account-grid { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 28px; }
.account-card {
  flex: 1 1 340px;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.account-card h2 { font-size: 28px; }
.account-card p { color: var(--text-2); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; color: var(--text-2); }
.field input {
  height: 50px;
  box-sizing: border-box;
  padding: 0 16px;
  font-size: 16px;
  font-family: var(--body);
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--text);
}
.field input:focus { outline: 2px solid var(--cta); outline-offset: 1px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.form-error { color: #FF9B8F; font-size: 15px; }
.form-note { color: var(--muted); font-size: 14px; }
.link-button { background: none; border: none; color: var(--text-2); text-decoration: underline; cursor: pointer; font-family: var(--body); font-size: 15px; padding: 10px 0; }
.btn-google { display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.notice { background: #1C2A1F; border: 1px solid #3E6B4A; color: var(--text); border-radius: 8px; padding: 14px 18px; margin-top: 20px; }
.extras-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.extras-list li { border-top: 1px solid var(--line); padding: 14px 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; align-items: center; }
.extras-list strong { font-size: 17px; }
.extras-list span { color: var(--muted); font-size: 14px; display: block; }
.extras-list a { color: var(--cta); font-weight: 600; text-decoration: none; padding: 8px 0; }
@media (max-width: 760px) {
  .cart-button { margin-left: 8px; }
  .account-card { padding: 20px; }
}

/* Keep the cart's checkout button clear of the hosting badge */
.cart-panel { padding-bottom: 88px; }

/* History of Old Earth */
.ep-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px 24px; }
.ep { display: flex; flex-direction: column; gap: 6px; }
.ep-play { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--surface); cursor: pointer; margin-bottom: 8px; }
.ep-play img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.15s ease; }
.ep-play:hover img { opacity: 0.85; }
.ep-icon { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: rgba(10, 10, 15, 0.75); color: var(--text); display: flex; align-items: center; justify-content: center; border: 1px solid rgba(238, 238, 243, 0.4); }
.ep-play iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ep-num { font-family: var(--display); font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--violet); }
.ep h3 { font-size: 19px; font-weight: 600; }

/* Member extras */
.extras { display: flex; flex-direction: column; gap: 28px; margin-top: 28px; }
.extras-group h2 { font-size: 26px; margin-bottom: 6px; }
.extras-group .group-note { color: var(--muted); font-size: 15px; margin-bottom: 8px; }
.extras-list audio { width: 100%; max-width: 420px; height: 40px; }
.extras-list li.audio-row { flex-direction: column; align-items: stretch; }
.extras-list li.audio-row .row-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.dl-link { color: var(--cta); font-weight: 600; text-decoration: none; padding: 8px 0; white-space: nowrap; }
.dl-link:hover { text-decoration: underline; }

/* Store */
.store-head { padding-top: 64px; display: flex; flex-direction: column; gap: 14px; }
.store-head h1 { font-size: clamp(42px, 6vw, 68px); }
.store-head .lede { max-width: 640px; }
.store-banner { display: flex; gap: 28px; align-items: center; margin-top: 28px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; --accent: var(--orange); }
.store-banner img { flex: 0 0 120px; width: 120px; aspect-ratio: 5 / 8; object-fit: cover; border-radius: 4px; box-shadow: 0 14px 32px rgba(0, 0, 0, 0.5); }
.store-banner-copy { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.store-banner-copy h2 { font-size: clamp(24px, 3vw, 32px); }
.store-banner-copy .actions { margin-top: 6px; }
.shop-section { padding-top: 64px; }
.shop-section:last-of-type { padding-bottom: 80px; }
.shop-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 20px; margin-bottom: 26px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.shop-head .text-link { color: var(--accent); }
.shop-note { color: var(--muted); margin: -10px 0 24px; max-width: 640px; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 36px 24px; }
.shop-item { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.shop-cover { width: 100%; aspect-ratio: 5 / 8; object-fit: cover; border-radius: 4px; background: var(--surface); box-shadow: 0 14px 32px rgba(0, 0, 0, 0.5); margin-bottom: 6px; }
.shop-cover.wide { object-fit: contain; background: transparent; box-shadow: none; }
.shop-label { font-family: var(--display); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); }
.shop-label .free-tag { font-size: 11px; margin-left: 4px; }
.shop-item h3 { font-family: var(--display); font-weight: 600; font-size: 21px; line-height: 1.15; }
.shop-item .btn { margin-top: auto; text-align: center; }
.shop-item h3 + .btn { margin-top: 8px; }
@media (max-width: 760px) {
  .store-head { padding-top: 40px; }
  .store-banner { flex-direction: column; align-items: flex-start; padding: 20px; }
  .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 16px; }
  .shop-item .btn { font-size: 14px; padding: 9px 8px; }
}

/* Header menu: keep labels on one line; menu collapses below 1240px */
@media (min-width: 1241px) {
  .main-nav { gap: 20px; }
  .main-nav a { white-space: nowrap; }
}

/* Prose (privacy) */
.prose { max-width: 780px; display: flex; flex-direction: column; gap: 16px; }
.prose h1 { font-size: clamp(40px, 6vw, 60px); }
.prose h2 { font-size: 24px; margin-top: 24px; }
.prose h3 { font-family: var(--display); font-weight: 500; font-size: 19px; margin-top: 4px; }
.prose p, .prose li, .prose td { color: var(--text-2); }
.prose ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.prose a { color: var(--cta); }
.prose-table { width: 100%; border-collapse: collapse; border: 1px solid var(--line); }
.prose-table th, .prose-table td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.prose-table th { font-family: var(--display); font-weight: 500; letter-spacing: 0.04em; color: var(--text); background: var(--surface); }

/* Extra space above the hero question line */
.hero h1 .accent { display: inline-block; margin-top: 0.16em; }

/* Join form checkbox */
.check { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; font-size: 15px; color: var(--text-2); cursor: pointer; }
.check input { flex: 0 0 auto; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--cta); }

/* Extras cover art */
.extras-list li.has-thumb { flex-wrap: nowrap; justify-content: flex-start; gap: 16px; }
.extras-list li.has-thumb .extra-text { flex: 1 1 auto; min-width: 0; }
.extra-thumb { flex: 0 0 auto; width: 72px; aspect-ratio: 5 / 8; object-fit: cover; border-radius: 3px; background: var(--surface); box-shadow: 0 8px 18px rgba(0, 0, 0, 0.45); }
.extra-thumb.wide { width: 112px; aspect-ratio: 16 / 9; border-radius: 4px; }
.group-art { display: flex; gap: 16px; align-items: center; margin-bottom: 10px; }
.group-art img { flex: 0 0 auto; width: 96px; height: 96px; object-fit: cover; border-radius: 6px; box-shadow: 0 8px 18px rgba(0, 0, 0, 0.45); }
.group-art .group-note { margin: 0; }
@media (max-width: 760px) {
  .extra-thumb { width: 48px; }
  .extra-thumb.wide { width: 84px; }
  .extras-list li.has-thumb { gap: 12px; }
}

/* Extras cards size to their content (they stack in a column) */
.extras > .account-card { flex: 0 0 auto; }

/* reCAPTCHA slot */
.captcha { margin-top: 16px; min-height: 78px; }
.captcha[hidden] { display: none; }
@media (max-width: 360px) { .captcha { transform: scale(0.9); transform-origin: 0 0; } }
