/* Homepage — the cosy reading room first, then the rooms of a reading life.
   Uses the site tokens from site.css only. Loaded by index.html alone. */

/* ── Phone header join (appears once the hero has scrolled away) ───────── */
.header-join { display: none; }
@media (max-width: 920px) {
  .header-join {
    margin-left: auto;
    padding: 7px 12px;
    border-radius: var(--radius-sm);
    background: var(--accent);
    color: #fff;
    font-family: var(--ui-font);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
  }
  .header-join:hover { background: var(--accent-dark); color: #fff; }
  .header-join:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 2px; }
  .is-past-hero .header-join { display: inline-flex; }
  .is-past-hero .header-inner { gap: 10px; }
}

/* ── Hero ──────────────────────────────────────────────────────────────── */
.lp-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(calc(100svh - 57px), 880px);
  padding: 48px 20px 72px;
  overflow: hidden;
  background: var(--bg-warm);
}
.lp-hero__art,
.lp-hero__art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.lp-hero__art img {
  max-width: none;
  object-fit: cover;
  object-position: center 46%;
}
.lp-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 64px;
  background: linear-gradient(to bottom, rgba(251, 248, 241, 0), rgba(251, 248, 241, 0.7));
  pointer-events: none;
}
.lp-hero__card {
  position: relative;
  z-index: 1;
  width: min(100%, 560px);
  padding: 30px 32px 22px;
  border-radius: 18px;
  background: rgba(251, 248, 241, 0.66);
  box-shadow: 0 0 34px 6px rgba(251, 248, 241, 0.38);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--text);
  animation: hero-rise 0.9s ease-out both;
}
.lp-hero__title {
  margin: 0;
  font-family: var(--hero-font);
  font-size: clamp(40px, 4.4vw, 58px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.02em;
}
.lp-rule {
  display: block;
  width: 56px;
  height: 1px;
  margin: 18px 0 16px;
  background: var(--gold);
}
.lp-hero__support {
  margin: 0;
  font-size: 18px;
  line-height: 1.5;
}
.lp-hero__manifesto {
  margin: 10px 0 0;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.55;
}
.lp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.lp-actions--center { justify-content: center; }
.lp-hero__signin {
  display: inline-block;
  margin-top: 12px;
  padding: 6px 0;
  color: var(--accent-dark);
  font-family: var(--ui-font);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.lp-hero__signin:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .lp-hero {
    align-items: flex-end;
    min-height: calc(100svh - 57px);
    padding: 0 12px 18px;
  }
  .lp-hero__art img { object-position: center 28%; }
  .lp-hero__card {
    padding: 18px 18px 10px;
    border-radius: 16px;
    background: rgba(251, 248, 241, 0.8);
  }
  .lp-hero__title { font-size: 32px; }
  .lp-rule { margin: 12px 0 10px; }
  .lp-hero__support { font-size: 16px; }
  .lp-hero__manifesto { display: none; }
  .lp-hero .lp-actions { gap: 8px; margin-top: 16px; }
  .lp-hero .lp-actions .btn { flex: 1 1 auto; padding: 12px 12px; font-size: 14px; }
  .lp-hero__signin { margin-top: 4px; }
}

/* ── Section rhythm ────────────────────────────────────────────────────── */
.lp-section { padding: clamp(56px, 7vw, 88px) 0; }
.lp-head {
  max-width: 42rem;
  margin-bottom: clamp(24px, 3vw, 36px);
}
.lp-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.lp-section h2,
.lp-final h2 {
  margin: 0;
  color: var(--text);
  font-family: var(--hero-font);
  font-size: clamp(32px, 4.2vw, 48px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.lp-head p {
  margin: 14px 0 0;
  color: var(--text-muted);
  font-size: 18px;
}
.lp-head p.lp-head__lock,
.lp-head__lock {
  margin: 14px 0 0;
  color: var(--accent);
  font-family: var(--hero-font);
  font-size: clamp(22px, 2.4vw, 26px);
  font-style: italic;
  line-height: 1.3;
}

/* ── Six rooms ─────────────────────────────────────────────────────────── */
.lp-rooms__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.lp-room {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 14px;
  color: #fbf8f1;
  text-decoration: none;
  background: var(--bg-night);
}
.lp-room img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.lp-room::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26, 18, 12, 0) 38%, rgba(26, 18, 12, 0.78) 100%);
}
.lp-room__copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: grid;
  gap: 2px;
  padding: 16px 18px;
}
.lp-room__title {
  font-family: var(--hero-font);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.05;
}
.lp-room__line {
  color: rgba(251, 248, 241, 0.9);
  font-family: var(--ui-font);
  font-size: 14px;
  line-height: 1.35;
}
.lp-room:hover { color: #fbf8f1; }
.lp-room:hover img { transform: scale(1.03); }
.lp-room:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 3px; }
@media (max-width: 760px) {
  .lp-rooms__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .lp-room { aspect-ratio: 3 / 4; border-radius: 12px; }
  .lp-room__copy { padding: 12px; }
  .lp-room__title { font-size: 23px; }
  .lp-room__line { font-size: 13px; }
}

/* ── Reading worlds ────────────────────────────────────────────────────── */
.lp-worlds { background: var(--bg-warm); }
.lp-worlds__stage {
  max-width: 960px;
  margin: 0 auto;
}
.lp-worlds__stage img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(26, 18, 12, 0.16);
}
.lp-worlds__stage figcaption {
  margin-top: 18px;
  color: var(--text);
  font-family: var(--hero-font);
  font-size: 30px;
  font-weight: 500;
  text-align: center;
}
.lp-worlds__hint {
  margin: 4px 0 14px;
  color: var(--text-muted);
  font-family: var(--ui-font);
  font-size: 14px;
  text-align: center;
}
.lp-worlds__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.lp-worlds__chips button {
  padding: 9px 14px;
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text);
  font-family: var(--ui-font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.lp-worlds__chips button[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}
.lp-worlds__chips button:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 2px; }

/* ── Split stories (Reading DNA, Clubhouse) ────────────────────────────── */
.lp-split--warm { background: var(--bg-warm); }
.lp-split__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.lp-split--reverse .lp-split__art { order: 2; }
.lp-split__art { margin: 0; }
.lp-split__art img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 16px;
}
.lp-split__copy .lp-head__lock { margin-top: 12px; }
.lp-split__lede {
  margin: 12px 0 0;
  color: var(--text-muted);
  font-size: 18px;
}
.lp-card {
  max-width: 420px;
  margin: 24px 0 22px;
  padding: 20px 22px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(26, 18, 12, 0.06);
}
.lp-card__kicker {
  margin: 0;
  color: var(--gold);
  font-family: var(--ui-font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.lp-card__title {
  margin: 6px 0 10px;
  font-family: var(--hero-font);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.1;
}
.lp-card__traits {
  margin: 0;
  padding: 0;
  list-style: none;
}
.lp-card__traits li {
  padding: 7px 0;
  border-top: 1px solid var(--border);
  font-size: 16px;
}
.lp-card__rows { margin: 0; }
.lp-card__rows div {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid var(--border);
}
.lp-card__rows dt {
  color: var(--text-muted);
  font-family: var(--ui-font);
  font-size: 13px;
  font-weight: 600;
}
.lp-card__rows dd { margin: 0; font-size: 15px; }
.lp-card__note {
  margin: 10px 0 0;
  color: var(--text-light);
  font-family: var(--ui-font);
  font-size: 12px;
}
.lp-link {
  color: var(--accent);
  font-family: var(--ui-font);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.lp-link:hover { color: var(--accent-dark); text-decoration: underline; }
@media (max-width: 820px) {
  .lp-split__inner { grid-template-columns: 1fr; }
  .lp-split--reverse .lp-split__art { order: 0; }
  .lp-card { max-width: none; }
}

/* ── Marketplace ───────────────────────────────────────────────────────── */
.lp-market__art {
  position: relative;
  display: block;
  max-width: 960px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 16px;
}
.lp-market__art img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.lp-market__art:hover img { transform: scale(1.02); }
.lp-market__art:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 3px; }
.lp-market__go {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: rgba(251, 248, 241, 0.94);
  color: var(--accent-dark);
  font-family: var(--ui-font);
  font-size: 15px;
  font-weight: 600;
}
@media (max-width: 640px) {
  .lp-market__art img { aspect-ratio: 4 / 3; }
  .lp-market__go { left: 12px; bottom: 12px; font-size: 14px; }
}

/* ── Membership ────────────────────────────────────────────────────────── */
.lp-members__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 960px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.lp-plan {
  display: flex;
  flex-direction: column;
  padding: 24px 24px 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(26, 18, 12, 0.06);
}
.lp-plan__price {
  margin: 8px 0 10px;
  font-family: var(--hero-font);
  font-size: 40px;
  font-weight: 500;
  line-height: 1;
}
.lp-plan__price span {
  margin-left: 2px;
  color: var(--text-muted);
  font-family: var(--ui-font);
  font-size: 15px;
}
.lp-plan__body {
  flex: 1;
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.55;
}
.lp-plan__status {
  align-self: flex-start;
  margin: 16px 0 0;
  padding: 5px 10px;
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-family: var(--ui-font);
  font-size: 13px;
  font-weight: 600;
}
.lp-plan__status--open {
  border-color: var(--accent);
  color: var(--accent);
}
.lp-members__note,
.lp-members__founding {
  max-width: 40rem;
  margin: 22px auto 0;
  color: var(--text-muted);
  font-family: var(--ui-font);
  font-size: 14px;
  text-align: center;
}
.lp-members__founding {
  margin-top: 10px;
  color: var(--text);
}
@media (max-width: 820px) {
  .lp-members__grid { grid-template-columns: 1fr; max-width: 480px; }
}

/* ── Closing ───────────────────────────────────────────────────────────── */
.lp-final {
  padding: clamp(64px, 8vw, 96px) 0;
  text-align: center;
}
.lp-final h2 { font-size: clamp(36px, 5vw, 56px); }
.lp-final > .wrap > p:not(.lp-final__note) {
  margin: 12px 0 0;
  color: var(--text-muted);
  font-family: var(--hero-font);
  font-size: clamp(20px, 2.4vw, 24px);
  font-style: italic;
}
.lp-final__note {
  margin: 18px 0 0;
  color: var(--text-light);
  font-family: var(--ui-font);
  font-size: 13px;
}
