@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&family=Inter:wght@300;400;500&display=swap');

:root {
  --ivory-mist: #f5f5f4;
  --porcelain: #eeeef0;
  --antique-lace: #dedcdd;
  --stone-veil: #cac7c8;
  --weathered-marble: #b2afb0;
  --graphite-ink: #404040;
  --dried-rose: #7c4a4a;
  --dusty-mauve: #8a7c84;
  --blood-mist: #8a3f3f;
  --faded-plum: #786b73;
  --paper: #fbfbfa;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ivory-mist);
  color: var(--graphite-ink);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 300;
  line-height: 1.75;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 22px clamp(22px, 5vw, 72px);
  background: rgba(245, 245, 244, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(178, 175, 176, 0.32);
}

.brand, .eyebrow, .button, button {
  font-family: 'Cormorant Garamond', serif;
  text-transform: uppercase;
  letter-spacing: 0.24em;
}

.brand {
  grid-column: 2;
  font-size: 15px;
  text-align: center;
}

nav {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.social-nav {
  grid-column: 3;
}

.social-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(64,64,64,.22);
  border-radius: 50%;
  opacity: 0.76;
  transition: opacity .2s ease, border-color .2s ease, transform .2s ease;
}

.social-nav a:hover {
  border-color: rgba(64,64,64,.5);
  opacity: 1;
  transform: translateY(-1px);
}

.social-nav svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
}

.section {
  width: min(1120px, calc(100% - 44px));
  margin: 0 auto;
  padding: clamp(72px, 10vw, 132px) 0;
}

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1fr);
  align-items: center;
  gap: clamp(44px, 7vw, 96px);
}

.hero-image-wrap { position: relative; }

.hero-image-wrap::before {
  content: '';
  position: absolute;
  inset: 8% 1% auto auto;
  width: 62%;
  height: 62%;
  background: radial-gradient(circle, rgba(255,255,255,.85), rgba(222,220,221,.25) 60%, transparent 70%);
  filter: blur(25px);
  z-index: -1;
}

.hero-book {
  width: min(100%, 520px);
  margin-inline: auto;
  filter: drop-shadow(0 30px 46px rgba(64,64,64,.16));
}

h1, h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.95;
  margin: 0;
  letter-spacing: .20em;
}

h1 {
  display: grid;
  gap: .08em;
  font-size: clamp(42px, 6vw, 76px);
  letter-spacing: .42em;
}

h1 span {
  display: block;
}

h2 { font-size: clamp(38px, 5.4vw, 72px); }

.eyebrow {
  margin: 0 0 18px;
  font-size: 14px;
  color: var(--dried-rose);
}

.tagline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(22px, 3vw, 34px);
  letter-spacing: .08em;
  margin: 28px 0 18px;
  color: var(--faded-plum);
}

.description {
  max-width: 520px;
  font-size: 17px;
  color: rgba(64,64,64,.84);
}

.description strong {
  color: var(--graphite-ink);
  font-weight: 500;
}

.release {
  font-family: 'Cormorant Garamond', serif;
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: 15px;
  margin: 28px 0 0;
}

.button-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.button, button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  border: 1px solid var(--graphite-ink);
  background: transparent;
  color: var(--graphite-ink);
  font-size: 14px;
  cursor: pointer;
  transition: all .2s ease;
}

.button.primary, button {
  background: var(--graphite-ink);
  color: var(--ivory-mist);
}

.button.secondary:hover, .button.primary:hover, button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(64,64,64,.12);
}

.dark-panel, .pale-panel {
  width: min(980px, calc(100% - 44px));
  padding: clamp(56px, 8vw, 92px);
  border: 1px solid rgba(178, 175, 176, 0.34);
}

.dark-panel p, .pale-panel p { max-width: 680px; }
.newsletter p, .community p, .author p { font-size: 17px; }

.newsletter {
  width: 100%;
  max-width: none;
  background: #7B4140;
  color: var(--ivory-mist);
  padding: clamp(64px, 9vw, 112px) 22px;
  border: 0;
}

.newsletter-inner {
  width: min(760px, 100%);
  margin: 0 auto;
  text-align: center;
}

.newsletter .eyebrow {
  color: rgba(245,245,244,.72);
}

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

.newsletter p {
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(245,245,244,.86);
}

.newsletter p span {
  display: block;
}

.signup {
  margin-top: 34px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.signup label {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.signup-row {
  display: flex;
  gap: 12px;
}

.ml-form-fieldRow,
.ml-field-group {
  width: 100%;
}

.ml-form-embedSubmit {
  display: flex;
}

input {
  width: 100%;
  border: 1px solid rgba(245,245,244,.34);
  background: rgba(255,255,255,.12);
  min-height: 48px;
  padding: 0 16px;
  font: inherit;
  color: var(--ivory-mist);
}

input::placeholder {
  color: rgba(245,245,244,.62);
}

.newsletter button {
  border-color: var(--ivory-mist);
  background: var(--ivory-mist);
  color: #7B4140;
  white-space: nowrap;
}

.newsletter button.loading {
  display: none !important;
}

small {
  display: block;
  margin-top: 12px;
  color: rgba(245,245,244,.58);
}

[hidden] {
  display: none !important;
}

.signup-error {
  color: rgba(245,245,244,.82);
}

.signup-success {
  display: none;
  max-width: 620px;
  margin: 34px auto 0;
  color: rgba(255,248,244,.78);
}

.signup-success p {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.55;
}

.signup-success p:first-child {
  color: var(--ivory-mist);
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: .12em;
}

.author {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 440px);
  align-items: center;
  gap: clamp(44px, 8vw, 96px);
}

.author-copy p { max-width: 560px; }

.author-copy strong {
  color: var(--graphite-ink);
  font-weight: 500;
}

.author-image {
  border-radius: 2px;
  filter: saturate(.86) contrast(.96);
  box-shadow: 0 26px 60px rgba(64,64,64,.14);
}

.pale-panel {
  width: 100%;
  max-width: none;
  padding: clamp(64px, 9vw, 112px) 22px;
  background: rgba(255,255,255,.38);
  text-align: center;
  border: 0;
}

.pale-panel p {
  margin-left: auto;
  margin-right: auto;
}

.community-inner {
  width: min(780px, 100%);
  margin: 0 auto;
}

.community h2 {
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(30px, 4vw, 52px);
}

.site-footer {
  border-top: 1px solid rgba(178,175,176,.34);
  padding: 34px clamp(22px, 5vw, 72px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 22px;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.site-footer p {
  grid-column: 2;
  margin: 0;
  text-align: center;
}

.site-footer a {
  grid-column: 3;
  justify-self: end;
}

.preview-hero {
  width: 100%;
  padding: clamp(72px, 10vw, 112px) 22px clamp(28px, 5vw, 52px);
  text-align: center;
}

.preview-hero-inner {
  width: min(900px, 100%);
  margin: 0 auto;
}

.chapter {
  width: min(760px, calc(100% - 44px));
  margin: 0 auto;
  padding: 0 0 clamp(54px, 8vw, 88px);
}

.chapter-header {
  padding: 0 0 30px;
  text-align: center;
  margin-bottom: clamp(32px, 6vw, 58px);
}

.chapter-number {
  margin: 0 0 10px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  letter-spacing: .22em;
  color: var(--dried-rose);
}

.chapter-header h2 {
  font-size: clamp(42px, 6vw, 72px);
  letter-spacing: .18em;
}

.chapter-body {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.72;
  color: rgba(64,64,64,.9);
}

.chapter-body p {
  margin: 0 0 1.05em;
}

.chapter-body p:nth-child(5n + 1) {
  text-indent: 0;
}

.preview-signup {
  width: min(860px, calc(100% - 44px));
  margin: 0 auto;
  padding: 0 0 clamp(72px, 10vw, 132px);
  text-align: center;
}

.preview-end {
  width: min(860px, calc(100% - 44px));
  margin: 0 auto;
  padding: 0 0 clamp(42px, 6vw, 70px);
  text-align: center;
}

.preview-end .eyebrow {
  margin-bottom: 0;
}

.preview-signup .newsletter-inner {
  width: min(720px, 100%);
}

.preview-signup h2 {
  font-size: clamp(30px, 4.2vw, 54px);
  letter-spacing: .14em;
}

.preview-signup .newsletter-intro {
  max-width: 640px;
  margin: 24px auto 0;
  color: rgba(64,64,64,.78);
}

.preview-signup .newsletter-intro span {
  display: block;
}

.preview-signup .signup {
  margin-top: 36px;
}

.preview-signup input {
  border-color: rgba(64,64,64,.28);
  background: rgba(255,255,255,.64);
  color: var(--graphite-ink);
}

.preview-signup input::placeholder {
  color: rgba(64,64,64,.48);
}

.preview-signup button {
  border-color: var(--graphite-ink);
  background: var(--graphite-ink);
  color: var(--ivory-mist);
}

.preview-signup small {
  color: rgba(64,64,64,.58);
}

.preview-signup .signup-success {
  color: rgba(64,64,64,.72);
}

.preview-signup .signup-success p:first-child {
  color: var(--graphite-ink);
}

.legal-page {
  width: min(780px, calc(100% - 44px));
  margin: 0 auto;
  padding: clamp(72px, 10vw, 128px) 0 clamp(72px, 10vw, 132px);
}

.legal-body {
  background: #f4f3f1;
}

.legal-header {
  margin-bottom: clamp(58px, 8vw, 88px);
}

.legal-header h1 {
  display: block;
  font-size: clamp(52px, 8vw, 94px);
  letter-spacing: .28em;
  margin-bottom: 34px;
}

.legal-page p,
.legal-page li {
  font-size: 17px;
  line-height: 1.85;
  color: rgba(64,64,64,.84);
}

.legal-page a {
  color: var(--dried-rose);
  border-bottom: 1px solid rgba(124,74,74,.35);
}

.legal-section {
  margin-top: clamp(46px, 7vw, 72px);
}

.legal-section h2 {
  font-size: clamp(30px, 4.2vw, 52px);
  letter-spacing: .18em;
  margin-bottom: 24px;
}

.legal-section ul {
  margin: 12px 0 28px;
  padding-left: 22px;
}

.legal-section li {
  padding-left: 6px;
}

.legal-updated {
  margin-top: clamp(52px, 8vw, 84px);
  font-family: 'Cormorant Garamond', serif;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--faded-plum);
}

@media (max-width: 820px) {
  .site-header {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 14px;
  }

  .brand, .social-nav { grid-column: 1; }
  .social-nav { justify-content: center; }

  .hero, .author { grid-template-columns: 1fr; }
  .hero { padding-top: 56px; }
  .hero-copy { display: contents; }
  .hero-copy h1 { order: 1; }
  .hero-image-wrap { order: 2; }
  .hero-details { order: 3; }
  h1 {
    font-size: clamp(42px, 14vw, 70px);
    letter-spacing: .28em;
  }
  .signup-row { flex-direction: column; }
  .button, button { width: 100%; }
  .preview-hero h1 {
    font-size: clamp(44px, 16vw, 74px);
    letter-spacing: .24em;
  }

  .chapter {
    width: min(680px, calc(100% - 34px));
  }

  .chapter-body {
    font-size: 21px;
    line-height: 1.68;
  }

  .chapter-header h2 {
    letter-spacing: .12em;
  }

  .legal-page {
    width: min(680px, calc(100% - 34px));
  }

  .legal-header h1 {
    font-size: clamp(42px, 15vw, 68px);
    letter-spacing: .2em;
  }

  .site-footer {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .site-footer p,
  .site-footer a {
    grid-column: 1;
    justify-self: center;
  }
}
