:root {
  --bg: #f7f1e5;
  --bg-soft: #fcf8f1;
  --surface: rgba(255, 252, 246, 0.78);
  --surface-strong: #ffffff;
  --text: #1f170e;
  --muted: #746454;
  --line: rgba(55, 37, 12, 0.1);
  --accent: #251707;
  --accent-deep: #8d4f11;
  --forest: #251707;
  --honey: #efc268;
  --shadow: 0 16px 34px rgba(74, 44, 8, 0.08);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 16px;
  --radius-pill: 999px;
  --max-width: 1200px;
  --pointer-x: 50vw;
  --pointer-y: 35vh;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(246, 201, 118, 0.18), transparent 24%),
    linear-gradient(180deg, #f8f1e7 0%, #fbf6ee 45%, #fffdf8 100%);
}

.landing-page {
  overflow-x: hidden;
}

.landing-background {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.bg-orb,
.bg-grid {
  position: absolute;
}

.bg-orb {
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  animation: drift 16s ease-in-out infinite;
}

.orb-one {
  top: 10%;
  left: 8%;
  width: 18rem;
  height: 18rem;
  background: rgba(255, 255, 255, 0.95);
}

.orb-two {
  top: 18%;
  right: 10%;
  width: 22rem;
  height: 22rem;
  background: rgba(209, 214, 255, 0.42);
  animation-duration: 20s;
}

.orb-three {
  bottom: 10%;
  left: 38%;
  width: 20rem;
  height: 20rem;
  background: rgba(213, 229, 224, 0.5);
  animation-duration: 22s;
}

.bg-grid {
  inset: 0;
  background-image:
    linear-gradient(rgba(23, 23, 23, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 23, 23, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 85%);
  opacity: 0.45;
}

.bg-spotlight {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle 16rem at var(--pointer-x) var(--pointer-y), rgba(239, 194, 104, 0.22), transparent 70%),
    radial-gradient(circle 10rem at calc(var(--pointer-x) + 8rem) calc(var(--pointer-y) - 6rem), rgba(141, 79, 17, 0.12), transparent 68%);
}

.floating-motif {
  position: absolute;
  display: grid;
  place-items: center;
  width: 4.75rem;
  height: 4.75rem;
  border: 1px solid rgba(81, 55, 13, 0.08);
  border-radius: 1.4rem;
  background: rgba(255, 251, 244, 0.62);
  box-shadow: 0 18px 30px rgba(73, 43, 7, 0.08);
  backdrop-filter: blur(18px);
  color: #8d4f11;
  font-size: 1.5rem;
  animation: motifFloat 12s ease-in-out infinite;
}

.motif-book {
  top: 14%;
  right: 14%;
  transform: translate3d(calc((var(--pointer-x) - 50vw) / 36), calc((var(--pointer-y) - 50vh) / 44), 0) rotate(-10deg);
}

.motif-open-book {
  top: 54%;
  right: 9%;
  animation-duration: 14s;
  transform: translate3d(calc((var(--pointer-x) - 50vw) / 52), calc((var(--pointer-y) - 50vh) / 38), 0) rotate(6deg);
}

.motif-pen {
  top: 18%;
  left: 8%;
  animation-duration: 16s;
  transform: translate3d(calc((var(--pointer-x) - 50vw) / 48), calc((var(--pointer-y) - 50vh) / 46), 0) rotate(12deg);
}

.motif-feather {
  bottom: 22%;
  left: 10%;
  animation-duration: 15s;
  transform: translate3d(calc((var(--pointer-x) - 50vw) / 60), calc((var(--pointer-y) - 50vh) / 52), 0) rotate(-6deg);
}

.motif-bookmark {
  bottom: 10%;
  right: 28%;
  animation-duration: 18s;
  transform: translate3d(calc((var(--pointer-x) - 50vw) / 56), calc((var(--pointer-y) - 50vh) / 58), 0) rotate(9deg);
}

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(0.8rem, -1.4rem, 0) scale(1.04);
  }
}

@keyframes motifFloat {
  0%,
  100% {
    margin-top: 0;
  }
  50% {
    margin-top: -0.6rem;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

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

.page-shell {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
  padding: 1rem 0 3rem;
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.4rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(81, 55, 13, 0.08);
  border-radius: 1.4rem;
  background: rgba(255, 251, 244, 0.72);
  box-shadow: 0 16px 28px rgba(74, 44, 8, 0.06);
  backdrop-filter: blur(16px);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 1rem;
  background: linear-gradient(180deg, #fff3d9 0%, #f7ca72 100%);
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(93, 54, 7, 0.08);
}

.bee-book-logo::before,
.bee-book-logo::after {
  content: "";
  position: absolute;
}

.bee-book-logo::before {
  width: 1.35rem;
  height: 1rem;
  bottom: 0.72rem;
  left: 0.65rem;
  border-radius: 0.2rem 0.6rem 0.5rem 0.2rem;
  background:
    linear-gradient(90deg, rgba(93, 54, 7, 0.12) 0.18rem, transparent 0.18rem),
    linear-gradient(180deg, #fffdf7 0%, #fff2cf 100%);
  box-shadow:
    0 0 0 1px rgba(93, 54, 7, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.bee-book-logo::after {
  width: 0.95rem;
  height: 0.95rem;
  top: 0.55rem;
  right: 0.52rem;
  border-radius: 50% 50% 44% 44%;
  background:
    radial-gradient(circle at 42% 38%, #2d1905 0.12rem, transparent 0.13rem),
    linear-gradient(180deg, #2f1b07 0%, #5f3609 100%);
  box-shadow:
    -0.62rem 0.12rem 0 -0.12rem rgba(255, 220, 137, 0.9),
    -0.56rem -0.18rem 0 -0.08rem rgba(255, 233, 174, 0.9),
    0 0 0 0.08rem rgba(93, 54, 7, 0.06);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.82);
  font: inherit;
  transition:
    transform 220ms ease,
    background-color 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.95rem;
  padding: 0.3rem;
  border: 1px solid rgba(81, 55, 13, 0.08);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.site-nav-inline {
  position: static;
}

.app-nav {
  gap: 0.8rem;
}

.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.8rem;
  min-height: 2.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.82);
  font-size: 1rem;
  transition:
    transform 220ms ease,
    background-color 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.account-menu {
  position: relative;
}

.account-menu[hidden] {
  display: none !important;
}

.account-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0.7rem 0.95rem;
  cursor: pointer;
}

.account-toggle::-webkit-details-marker {
  display: none;
}

.account-toggle::marker {
  content: "";
}

.account-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  display: grid;
  gap: 0.2rem;
  min-width: 12rem;
  padding: 0.55rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(255, 250, 242, 0.98);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(-0.35rem) scale(0.98);
  transform-origin: top right;
  pointer-events: none;
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

.account-menu[open] .account-dropdown {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.story-menu[open] .story-dropdown {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.account-dropdown a {
  display: block;
  padding: 0.8rem 0.9rem;
  border-radius: 0.85rem;
  transition:
    background-color 200ms ease,
    transform 200ms ease;
}

.account-dropdown a:hover {
  background: rgba(23, 23, 23, 0.05);
  transform: translateX(0.15rem);
}

.subtle {
  color: var(--muted);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    background-color 220ms ease,
    border-color 220ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.07);
}

.menu-toggle:hover,
.icon-link:hover,
.chip:hover,
.account-toggle:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
}

.site-nav a,
.brand,
summary,
input[type="file"]::file-selector-button {
  cursor: pointer;
}

.site-nav a {
  padding: 0.7rem 0.95rem;
  border-radius: var(--radius-pill);
  transition:
    background-color 220ms ease,
    transform 220ms ease,
    color 220ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(239, 194, 104, 0.2);
  color: var(--accent);
  transform: translateY(-1px);
}

.button-dark {
  background: var(--text);
  color: #fff;
}

.button-accent {
  background: var(--accent);
  color: #fff;
  box-shadow: none;
}

.button-light {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.82);
}

.button-ghost {
  border-color: var(--line);
  background: transparent;
}

.full-width {
  width: 100%;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
  min-height: calc(100vh - 6rem);
  padding: 4.5rem 0 1.5rem;
}

.landing-main {
  min-height: calc(100vh - 12rem);
  gap: 2rem;
}

.landing-hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
  min-height: calc(100vh - 8rem);
  padding: 4rem 0 1.5rem;
  position: relative;
}

.minimal-copy {
  max-width: 38rem;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--accent-deep);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1,
.section-intro h2,
.membership h2,
.writers h2 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: clamp(3rem, 6vw, 5.3rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.hero-text,
.membership-copy p,
.writers-panel p,
.site-footer p,
.story-card p,
.editorial-card p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-text {
  max-width: 30rem;
  margin: 1rem 0 0;
  font-size: 1rem;
}

.hero-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.72rem 0.98rem;
  border: 1px solid rgba(81, 55, 13, 0.08);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.74);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.7rem;
}

.hero-metrics article {
  min-width: 9rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.55);
}

.hero-metrics strong {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 1.1rem;
  font-weight: 800;
}

.hero-metrics span {
  color: var(--muted);
  font-size: 0.88rem;
}

.hero-panel {
  position: relative;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 2rem 1rem 0 3rem;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.01));
  filter: blur(8px);
}

.editorial-card,
.story-card,
.pricing-card,
.writers-panel,
.feature-list article {
  position: relative;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.spotlight {
  padding: 2rem;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.78);
}

.landing-card {
  max-width: 25rem;
  margin-left: auto;
  background: rgba(255, 255, 255, 0.72);
}

.landing-section {
  padding: 1rem 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.section-heading h2 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  letter-spacing: -0.04em;
}

.sponsor-strip {
  overflow: hidden;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(81, 55, 13, 0.08);
  border-radius: 1.2rem;
  background: rgba(255, 252, 246, 0.72);
  margin: 3% 0;
}

.sponsor-track {
  display: flex;
  gap: 2.4rem;
  width: max-content;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  animation: marquee 22s linear infinite;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.membership-section {
  display: grid;
  gap: 1rem;
  margin: 3% 0;
}

.membership-card {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow);
}

.membership-rail {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.membership-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
}

.membership-card-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.membership-item {
  min-width: 8rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.62);
}

.membership-item strong {
  display: block;
  margin-top: 0.3rem;
  font-family: "Fraunces", serif;
  font-size: 1.35rem;
}

.membership-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.is-featured {
  background: #251707;
  color: #fff;
}

.is-featured .membership-label {
  color: rgba(255, 255, 255, 0.7);
}

.testimonial-marquee {
  overflow: hidden;
}

.testimonial-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: testimonials-loop 24s linear infinite;
  animation-delay: 2.5s;
}

@keyframes testimonials-loop {
  0%,
  8% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-50% - 0.5rem));
  }
}

.quote-card {
  width: min(24rem, calc(100vw - 3rem));
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.64);
}

.quote-card p {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: 1.4rem;
  letter-spacing: -0.03em;
}

.quote-card span {
  display: block;
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.js-enhanced .reveal-on-scroll {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

.js-enhanced .reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.compact-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.4rem;
}

.compact-meta span {
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 0.88rem;
}

.auth-entry-card {
  max-width: 28rem;
  margin-left: auto;
}

.card-actions {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.25rem;
}

.card-tag,
.price-label {
  margin: 0 0 0.9rem;
  color: var(--forest);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.spotlight h2,
.story-card h3,
.small-card h3,
.feature-list h3 {
  margin: 0;
  font-family: "Fraunces", serif;
  letter-spacing: -0.03em;
}

.spotlight h2 {
  font-size: 1.65rem;
}

.author-row {
  display: none;
}

.section-grid,
.membership,
.writers {
  padding: 2rem 0;
}

.section-intro {
  max-width: 36rem;
  margin-bottom: 1.4rem;
}

.section-intro h2,
.membership h2,
.writers h2 {
  font-size: clamp(2.1rem, 4vw, 3.4rem);
}

.story-card {
  min-height: auto;
  padding: 1.2rem;
  border-radius: var(--radius-lg);
}

.membership {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 1.2rem;
  align-items: center;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
  border-radius: var(--radius-xl);
  background: var(--surface-strong);
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.price-row strong {
  font-family: "Fraunces", serif;
  font-size: 4rem;
  line-height: 1;
}

.price-row span,
.price-note {
  color: var(--muted);
}

.pricing-card .button + .button {
  margin-top: 0.8rem;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.feature-list article {
  padding: 1.25rem;
  border-radius: var(--radius-lg);
}

.simple-grid .story-card h3,
.pricing-card h3,
.section-intro p {
  margin-top: 0;
}

.site-footer {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 2rem;
  padding: 2.4rem 1rem 0;
  border-top: 1px solid rgba(81, 55, 13, 0.08);
}

.minimal-footer {
  padding-top: 1.6rem;
  margin-top: 1rem;
}

.footer-intro p {
  max-width: 22rem;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.footer-group {
  display: grid;
  gap: 0.7rem;
}

.footer-group a {
  color: var(--muted);
}

.footer-label {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
}

.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  max-width: 20rem;
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  background: rgba(27, 20, 15, 0.92);
  color: #fff;
  box-shadow: 0 20px 40px rgba(27, 20, 15, 0.28);
  opacity: 0;
  transform: translateY(0.7rem);
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.app-page {
  min-height: 100vh;
}

.app-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.5rem;
  align-items: start;
  padding: 3rem 0 4rem;
}

.auth-only-layout {
  display: grid;
  place-items: center;
  padding: 5rem 0 6rem;
}

.auth-card-solo {
  width: min(100%, 35.5rem);
}

.auth-card-header {
  display: grid;
  gap: 0.9rem;
  justify-items: start;
  margin-bottom: 1.1rem;
}

.auth-brand {
  padding: 0.45rem 0.7rem 0.45rem 0.45rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.72);
}

.subscribe-layout {
  align-items: stretch;
}

.app-copy,
.app-card,
.dashboard-hero,
.subscriber-banner {
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.app-copy,
.app-card,
.dashboard-hero,
.subscriber-banner {
  padding: 2rem;
  border-radius: var(--radius-xl);
}

.app-title {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.app-text {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.app-text.compact {
  margin-top: 0.5rem;
}

.auth-benefits,
.plan-list,
.dashboard-stack,
.form-stack {
  display: grid;
  gap: 1rem;
}

.auth-benefits article,
.mini-panel {
  display: grid;
  gap: 0.35rem;
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.56);
}

.auth-benefits strong,
.mini-panel strong {
  font-size: 1rem;
}

.auth-benefits span,
.mini-panel span,
.legal-note,
.queue-list li,
.status-note {
  color: var(--muted);
  line-height: 1.6;
}

.status-note {
  margin: 1rem 0 0;
  font-size: 0.95rem;
}

.auth-card h2,
.checkout-card h2,
.centered-card h2,
.subscriber-banner h2 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  letter-spacing: -0.04em;
}

.auth-switcher {
  display: inline-flex;
  gap: 0.6rem;
  margin-bottom: 1.4rem;
  padding: 0.35rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.switch-pill {
  border: 0;
  border-radius: var(--radius-pill);
  padding: 0.8rem 1rem;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
}

.switch-pill.is-active {
  background: var(--text);
  color: #fff;
}

.form-field {
  display: grid;
  gap: 0.45rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 0.9rem;
}

.form-grid-wide {
  grid-template-columns: 1fr;
}

.form-field span {
  font-weight: 700;
  font-size: 0.95rem;
}

.form-field input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 0.95rem 1rem;
  background: rgba(255, 255, 255, 0.74);
  color: var(--text);
  font: inherit;
}

.form-field input:focus {
  outline: 2px solid rgba(217, 111, 60, 0.25);
  border-color: rgba(217, 111, 60, 0.65);
}

.form-help {
  margin: -0.35rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.legal-note {
  margin-bottom: 0;
  margin-top: 0.25rem;
  font-size: 0.92rem;
}

.billing-option {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.65);
}

.billing-option input {
  accent-color: var(--accent);
}

.billing-option span {
  display: grid;
  gap: 0.2rem;
}

.billing-option small {
  color: var(--muted);
  font-size: 0.9rem;
}

.dashboard-stack {
  padding: 3rem 0 4rem;
}

.dashboard-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.product-stack,
.content-layout,
.editor-layout,
.profile-stack,
.reader-layout {
  display: grid;
  gap: 1rem;
  padding: 3rem 0 4rem;
}

.content-layout,
.editor-layout,
.reader-layout {
  grid-template-columns: 1.2fr 0.8fr;
  align-items: start;
}

.editor-layout-single {
  grid-template-columns: minmax(0, 1fr);
}

.product-hero {
  padding: 0 0 0.5rem;
}

.toolbar-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.feed-toolbar-group {
  display: grid;
  gap: 0.9rem;
  flex: 1;
}

.section-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.search-field {
  display: block;
  max-width: 28rem;
}

.search-field input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 0.9rem 1rem;
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  font: inherit;
}

.chip {
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
  padding: 0.7rem 1rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 220ms ease,
    background-color 220ms ease,
    border-color 220ms ease,
    color 220ms ease,
    box-shadow 220ms ease;
}

.chip.is-active {
  background: var(--text);
  color: #fff;
}

.story-feed,
.mini-list,
.comment-list {
  display: grid;
  gap: 1rem;
}

.story-list-card,
.comment-card,
.reader-story,
.editor-shell,
.side-panel > .app-card,
.profile-header {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow);
}

.story-list-card,
.comment-card,
.reader-story,
.editor-shell {
  padding: 1.5rem;
}

.editor-shell {
  width: min(100%, 54rem);
  margin: 0 auto;
}

.story-list-card h2,
.reader-title,
.editor-title {
  margin: 0;
  font-family: "Fraunces", serif;
  letter-spacing: -0.04em;
}

.story-card-cover {
  width: 100%;
  min-height: 11rem;
  margin-bottom: 1rem;
  border-radius: calc(var(--radius-xl) - 6px);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.story-list-card h2 {
  font-size: 1.8rem;
}

.story-list-meta,
.reader-meta,
.muted-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.side-panel {
  display: grid;
  gap: 1rem;
}

.reader-header-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.reader-header-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.icon-action,
.icon-reaction {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.9rem;
  min-height: 2.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  transition:
    transform 220ms ease,
    background-color 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.icon-action:hover,
.icon-reaction:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
}

.icon-action.is-active {
  background: rgba(23, 23, 23, 0.92);
  border-color: rgba(23, 23, 23, 0.92);
  color: #fff;
}

.story-menu {
  position: relative;
}

.story-menu summary {
  list-style: none;
}

.story-menu summary::-webkit-details-marker {
  display: none;
}

.story-dropdown {
  min-width: 11rem;
}

.editor-topbar,
.reader-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.reader-owner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1rem;
}

.editor-form {
  display: grid;
  gap: 1rem;
}

.editor-ribbon {
  display: grid;
  gap: 0.8rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(23, 23, 23, 0.08);
  border-radius: 1.2rem;
  background: rgba(250, 249, 246, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.editor-toolbar-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.editor-toolbar-label {
  min-width: 4.25rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form-field textarea,
.form-field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 0.95rem 1rem;
  background: rgba(255, 255, 255, 0.74);
  color: var(--text);
  font: inherit;
}

.editor-document-shell {
  padding: 1.35rem;
  overflow-x: hidden;
  border: 1px solid rgba(23, 23, 23, 0.08);
  border-radius: 1.4rem;
  background:
    linear-gradient(180deg, rgba(242, 241, 236, 0.94), rgba(250, 250, 248, 0.98));
}

.editor-document {
  min-height: 42rem;
  width: min(100%, 8.5in);
  max-width: 100%;
  margin: 0 auto;
  padding: 1in 0.95in 1.1in;
  border: 1px solid rgba(23, 23, 23, 0.08);
  border-radius: 0.5rem;
  background: #fff;
  box-shadow:
    0 18px 40px rgba(15, 23, 42, 0.08),
    0 2px 10px rgba(15, 23, 42, 0.05);
  outline: none;
  line-height: 1.8;
  font-size: 1.03rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.editor-document:focus {
  box-shadow:
    0 18px 40px rgba(15, 23, 42, 0.08),
    0 2px 10px rgba(15, 23, 42, 0.05),
    0 0 0 3px rgba(23, 23, 23, 0.06);
}

.editor-document:empty::before {
  content: attr(data-placeholder);
  color: rgba(23, 23, 23, 0.35);
}

.editor-document h1,
.editor-document h2,
.editor-document h3 {
  font-family: "Fraunces", serif;
  letter-spacing: -0.04em;
}

.editor-document blockquote {
  margin: 0;
  padding-left: 1rem;
  border-left: 3px solid var(--line);
  color: var(--muted);
}

.editor-document hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 1.5rem 0;
}

.editor-document p {
  margin: 0 0 1rem;
}

.editor-document figure {
  margin: 1.5rem 0;
}

.editor-document .editor-image-block {
  position: relative;
  display: block;
}

.editor-document .editor-image-block.is-selected img {
  box-shadow:
    0 0 0 3px rgba(23, 23, 23, 0.12),
    0 18px 40px rgba(15, 23, 42, 0.08);
}

.editor-document .editor-image-block.image-size-small {
  width: min(16rem, 42%);
}

.editor-document .editor-image-block.image-size-medium {
  width: min(28rem, 72%);
}

.editor-document .editor-image-block.image-size-full {
  width: 100%;
}

.editor-document .editor-image-block.image-wrap-left {
  float: left;
  margin: 0.25rem 1.35rem 0.85rem 0;
  shape-outside: margin-box;
  shape-margin: 1.1rem;
}

.editor-document .editor-image-block.image-wrap-right {
  float: right;
  margin: 0.25rem 0 0.85rem 1.35rem;
  shape-outside: margin-box;
  shape-margin: 1.1rem;
}

.editor-document .editor-image-block.image-wrap-center {
  float: none;
  clear: both;
  margin: 1.15rem auto;
}

.editor-document::after {
  content: "";
  display: block;
  clear: both;
}

.editor-document p,
.editor-document ul,
.editor-document ol,
.editor-document blockquote {
  overflow: visible;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.editor-document img {
  display: block;
  max-width: 100%;
  width: 100%;
  border-radius: 0.9rem;
}

.editor-document figcaption {
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
  cursor: text;
  outline: none;
}

.editor-document figcaption:focus {
  color: var(--text);
}

.preview-card h2 {
  margin: 0;
  font-family: "Fraunces", serif;
  letter-spacing: -0.04em;
}

.preview-cover,
.reader-cover {
  width: 100%;
  min-height: 16rem;
  border-radius: calc(var(--radius-xl) - 4px);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin-bottom: 1.2rem;
}

.preview-body {
  font-size: 0.95rem;
}

.reader-layout {
  grid-template-columns: 1.3fr 0.7fr;
}

.reader-story {
  display: grid;
  gap: 1.25rem;
}

.reader-author-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.15rem;
}

.reader-author-copy {
  display: grid;
  gap: 0.15rem;
}

.reader-author-copy strong {
  font-size: 1rem;
}

.reader-author-date {
  color: var(--muted);
  font-size: 0.78rem;
}

.engagement-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.9rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
  font-weight: 700;
}

.engagement-stack {
  display: block;
}

.reaction-inline-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  align-items: start;
}

.reaction-column {
  display: grid;
  justify-items: center;
  gap: 0.55rem;
}

.comment-scroll {
  max-height: 22rem;
  overflow-y: auto;
  padding-right: 0.35rem;
}

.comment-scroll::-webkit-scrollbar {
  width: 0.5rem;
}

.comment-scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(23, 23, 23, 0.15);
}

.comment-thread-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
}

.comment-avatar {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: #171717;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
}

.comment-thread-body {
  display: grid;
  gap: 0.5rem;
}

.comment-thread-body p {
  margin: 0;
  line-height: 1.65;
}

.comment-thread-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.comment-thread-meta strong {
  font-size: 0.95rem;
}

.comment-thread-meta span {
  color: var(--muted);
  font-size: 0.8rem;
}

.comment-thread-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.reply-thread {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.8rem;
  padding-left: 0.6rem;
  border-left: 1px solid var(--line);
}

.reply-form {
  display: grid;
  gap: 0.6rem;
  margin-top: 0.65rem;
}

.numeric-only {
  min-height: auto;
  padding: 0.2rem 0;
  border: 0;
  background: transparent;
  font-size: 0.9rem;
}

.comment-action {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: color 180ms ease;
}

.comment-action.is-active {
  color: var(--text);
}

.comment-action:hover {
  color: var(--text);
}

.member-lock {
  margin-bottom: 1rem;
}

.reader-header {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 0.35rem;
}

.reader-title {
  font-size: clamp(2.3rem, 4vw, 3.7rem);
  margin: 0;
}

.reader-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  max-width: 42rem;
}

.reader-subtitle:empty {
  display: none;
}

.reader-body {
  display: block;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  line-height: 1.85;
  font-size: 1.04rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.reader-body h2,
.reader-body h3 {
  margin: 1.2rem 0 0.55rem;
  font-family: "Fraunces", serif;
  letter-spacing: -0.03em;
}

.reader-body blockquote {
  margin: 1rem 0;
  padding-left: 1rem;
  border-left: 2px solid var(--line);
  color: var(--muted);
}

.reader-body ul {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.reader-body ol {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
}

.reader-body p {
  margin: 0 0 1rem;
}

.reader-body code {
  padding: 0.12rem 0.35rem;
  border-radius: 0.45rem;
  background: rgba(0, 0, 0, 0.06);
  font-family: "SFMono-Regular", "Consolas", monospace;
  font-size: 0.92em;
}

.reader-body hr {
  width: 100%;
  border: 0;
  border-top: 1px solid var(--line);
  margin: 1.2rem 0;
}

.reader-body figure {
  margin: 1.5rem 0;
}

.reader-body .editor-image-block {
  position: relative;
  display: block;
}

.reader-body .editor-image-block.image-size-small {
  width: min(16rem, 42%);
}

.reader-body .editor-image-block.image-size-medium {
  width: min(28rem, 72%);
}

.reader-body .editor-image-block.image-size-full {
  width: 100%;
}

.reader-body .editor-image-block.image-wrap-left {
  float: left;
  margin: 0.25rem 1.35rem 0.85rem 0;
  shape-outside: margin-box;
  shape-margin: 1.1rem;
}

.reader-body .editor-image-block.image-wrap-right {
  float: right;
  margin: 0.25rem 0 0.85rem 1.35rem;
  shape-outside: margin-box;
  shape-margin: 1.1rem;
}

.reader-body .editor-image-block.image-wrap-center {
  float: none;
  clear: both;
  margin: 1.15rem auto;
}

.reader-body::after {
  content: "";
  display: block;
  clear: both;
}

.reader-body img {
  display: block;
  max-width: 100%;
  width: 100%;
  border-radius: 0.9rem;
}

.reader-body figcaption {
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

.profile-header {
  padding: 2rem;
}

.centered-card {
  max-width: 42rem;
}

.subscriber-banner {
  background:
    linear-gradient(135deg, rgba(31, 74, 67, 0.92), rgba(19, 39, 35, 0.95)),
    var(--surface);
  color: #fff;
}

.subscriber-banner .eyebrow,
.subscriber-banner .app-text {
  color: rgba(255, 255, 255, 0.82);
}

.list-reset {
  margin: 0;
  padding: 0;
  list-style: none;
}

.queue-list {
  display: grid;
  gap: 0.9rem;
}

.queue-list li {
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
}

.compact-form {
  margin-bottom: 1rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.stat-card h2,
.activity-card strong {
  margin: 0;
  font-family: "Fraunces", serif;
  letter-spacing: -0.04em;
}

.activity-card {
  display: grid;
  gap: 0.8rem;
}

.donation-amount-row {
  align-items: center;
}

.collection-card h2,
.notification-card p,
.empty-state-card h2 {
  margin: 0;
  font-family: "Fraunces", serif;
  letter-spacing: -0.04em;
}

.notification-list {
  display: grid;
  gap: 1rem;
}

.notification-card {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.notification-card.is-unread {
  border-color: rgba(23, 23, 23, 0.18);
  background: rgba(255, 255, 255, 0.88);
}

button:disabled,
.button[aria-disabled="true"] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

[hidden] {
  display: none !important;
}

@media (max-width: 960px) {
  .hero,
  .landing-hero,
  .membership-section,
  .membership,
  .writers,
  .feature-list,
  .app-layout,
  .dashboard-grid,
  .content-layout,
  .editor-layout,
  .reader-layout,
  .site-footer,
  .footer-columns {
    grid-template-columns: 1fr;
  }

  .featured-story {
    grid-row: auto;
  }

  .hero {
    min-height: auto;
    padding-top: 2rem;
  }

  .landing-hero {
    min-height: auto;
    padding-top: 2rem;
  }

  .landing-card {
    max-width: none;
    margin-left: 0;
  }

  .membership-rail {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .membership-card-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .toolbar-row,
  .editor-topbar,
  .reader-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .reader-author-inline {
    flex-direction: column;
    align-items: flex-start;
  }

  .reader-header-top {
    flex-direction: column;
  }

  .reaction-row {
    grid-template-columns: 1fr;
  }

  .section-label-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(calc(100% - 1.25rem), var(--max-width));
  }

  .site-header {
    padding: 0.8rem;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.55rem);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.55rem;
    border-radius: 1.1rem;
    background: rgba(255, 250, 242, 0.96);
    box-shadow: 0 16px 30px rgba(61, 38, 10, 0.1);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    width: 100%;
  }

  .hero h1,
  .app-title {
    font-size: clamp(2.4rem, 12vw, 4.1rem);
  }

  .landing-hero {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    order: -1;
  }

  .floating-motif {
    display: none;
  }

  .compact-meta {
    gap: 0.55rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
  }

  .dashboard-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .account-dropdown {
    right: 0;
    left: auto;
    min-width: 11rem;
  }

  .editor-document {
    min-height: 30rem;
    width: 100%;
    padding: 1.35rem;
  }
}
