:root {
  color-scheme: light;
  --ink: #241f1c;
  --muted: #6f6258;
  --paper: #fffaf2;
  --cream: #f6eadb;
  --mint: #dce8da;
  --rose: #eec2ad;
  --gold: #d89b3d;
  --forest: #2e5c4c;
  --blue: #385f78;
  --line: rgba(36, 31, 28, 0.14);
  --shadow: 0 22px 60px rgba(54, 40, 28, 0.18);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

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

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

.site-header {
  align-items: center;
  background: rgba(255, 250, 242, 0.92);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  left: 0;
  padding: 16px clamp(18px, 4vw, 52px);
  position: sticky;
  right: 0;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
}

.brand {
  align-items: center;
  display: inline-flex;
  font-weight: 800;
  gap: 10px;
  letter-spacing: 0;
}

.brand-mark {
  align-items: center;
  aspect-ratio: 1;
  background: var(--forest);
  color: white;
  display: inline-flex;
  font-size: 0.78rem;
  justify-content: center;
  width: 36px;
}

.site-nav {
  display: flex;
  gap: clamp(14px, 3vw, 34px);
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--muted);
}

.hero {
  display: grid;
  gap: clamp(28px, 5vw, 64px);
  grid-template-columns: minmax(0, 1.02fr) minmax(300px, 0.78fr);
  min-height: calc(100vh - 70px);
  padding: clamp(34px, 5vw, 64px) clamp(18px, 5vw, 72px) 32px;
}

.hero-copy {
  align-self: center;
  max-width: 760px;
}

.eyebrow,
.section-kicker {
  color: var(--forest);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.75rem, 5.6vw, 5.9rem);
  line-height: 0.96;
  margin: 0;
  max-width: 760px;
}

h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 4.1rem);
  line-height: 1;
  margin: 0;
}

h3 {
  font-size: 1.1rem;
  line-height: 1.2;
  margin: 0;
}

p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.hero-lede {
  font-size: clamp(1.02rem, 1.35vw, 1.22rem);
  max-width: 660px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0;
}

.button {
  align-items: center;
  border: 1px solid var(--ink);
  display: inline-flex;
  font-weight: 850;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
}

.button.primary {
  background: var(--ink);
  color: white;
}

.button.secondary {
  background: transparent;
}

.proof-strip {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 30px 0 0;
  max-width: 580px;
  padding-top: 24px;
}

.proof-strip div {
  border-left: 4px solid var(--gold);
  padding-left: 14px;
}

.proof-strip dt {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 800;
}

.proof-strip dd {
  color: var(--muted);
  margin: 3px 0 0;
}

.hero-book {
  align-self: center;
  background: #fff;
  box-shadow: var(--shadow);
  max-width: 520px;
  position: relative;
}

.hero-book img {
  aspect-ratio: 4 / 5;
  height: 100%;
  object-fit: cover;
}

.book-label {
  background: rgba(255, 250, 242, 0.94);
  bottom: 18px;
  left: 18px;
  padding: 14px 16px;
  position: absolute;
  right: 18px;
}

.book-label span {
  color: var(--forest);
  display: block;
  font-size: 0.76rem;
  font-weight: 900;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.book-label strong {
  display: block;
  font-size: 1.1rem;
}

.builder-preview,
.early-access {
  align-items: center;
  background: var(--mint);
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1fr);
  padding: clamp(38px, 6vw, 76px) clamp(18px, 5vw, 72px);
}

.section-heading {
  max-width: 780px;
}

.samples {
  padding: clamp(46px, 7vw, 92px) clamp(18px, 5vw, 72px);
}

.section-heading {
  margin-bottom: 30px;
}

.section-heading p {
  max-width: 690px;
}

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

.sample-card {
  background: white;
  border: 1px solid var(--line);
  display: grid;
  grid-template-rows: auto 1fr;
}

.sample-card img {
  aspect-ratio: 5 / 4;
  object-fit: cover;
}

.sample-card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  background: var(--cream);
  color: var(--forest);
  font-size: 0.76rem;
  font-weight: 850;
  padding: 7px 9px;
}

.sample-card p {
  margin: 0;
}

.sample-card button,
.page-tabs button {
  background: transparent;
  border: 1px solid var(--ink);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 850;
  min-height: 42px;
  padding: 0 14px;
}

.sample-card button {
  margin-top: auto;
}

.reader {
  background: #2b332d;
  color: white;
  display: grid;
  gap: clamp(24px, 4vw, 52px);
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1fr);
  padding: clamp(36px, 6vw, 72px) clamp(18px, 5vw, 72px);
}

.reader-art img {
  aspect-ratio: 4 / 5;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
  object-fit: cover;
}

.reader h2,
.reader h3 {
  color: white;
}

.reader p {
  color: rgba(255, 255, 255, 0.78);
}

.reader .section-kicker {
  color: var(--rose);
}

.reader-panel {
  align-self: center;
}

.page-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 18px;
}

.page-tabs button {
  border-color: rgba(255, 255, 255, 0.36);
  color: white;
}

.page-tabs button[aria-selected="true"] {
  background: white;
  color: var(--ink);
}

.story-page {
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  max-width: 800px;
  padding-top: 18px;
}

.page-number {
  font-size: 0.84rem;
  font-weight: 850;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.builder-preview {
  background: var(--cream);
}

.preview-form,
.signup-form {
  background: white;
  border: 1px solid var(--line);
  display: grid;
  gap: 14px;
  padding: clamp(18px, 3vw, 28px);
}

label {
  color: var(--ink);
  display: grid;
  font-size: 0.88rem;
  font-weight: 850;
  gap: 8px;
}

input,
select {
  background: #fffdf9;
  border: 1px solid var(--line);
  color: var(--ink);
  font: inherit;
  min-height: 44px;
  padding: 0 12px;
}

.prompt-output {
  background: var(--blue);
  color: white;
  display: block;
  font-weight: 800;
  line-height: 1.45;
  min-height: 74px;
  padding: 16px;
}

.early-access {
  background: var(--rose);
}

.signup-form .button {
  cursor: pointer;
  width: 100%;
}

.fine-print {
  font-size: 0.84rem;
  margin: 0;
}

.trust-note {
  border-left: 4px solid var(--forest);
  color: var(--ink);
  font-weight: 750;
  margin: 18px 0 0;
  padding-left: 14px;
}

.form-status {
  color: var(--forest);
  font-size: 0.92rem;
  font-weight: 850;
  margin: 0;
  min-height: 1.5em;
}

.form-status[data-tone="error"] {
  color: #8f3328;
}

.hidden-field {
  display: none;
}

.site-footer {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 22px clamp(18px, 5vw, 72px);
}

.site-footer p {
  margin: 0;
}

.site-footer a,
.privacy-copy a {
  color: var(--forest);
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.privacy-page {
  padding: clamp(46px, 7vw, 92px) clamp(18px, 5vw, 72px);
}

.privacy-page h1 {
  max-width: 920px;
}

.privacy-copy {
  max-width: 760px;
  padding-top: 24px;
}

@media (max-width: 900px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .reader,
  .builder-preview,
  .early-access {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-book {
    justify-self: stretch;
    max-width: none;
  }

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

@media (max-width: 560px) {
  .site-nav {
    flex-wrap: wrap;
  }

  .proof-strip {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }
}
