/* ─── TOKENS ─────────────────────────────────────────────── */
:root {
  --ivory:   #F5F2ED;
  --charcoal: #1A1814;
  --bronze:  #B8935A;
  --mid:     #9A9590;

  --serif: 'PT Serif', Georgia, serif;
  --sans:  'Inter', system-ui, sans-serif;

  --max:    1200px;
  --gutter: clamp(24px, 5vw, 80px);
}

/* ─── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--ivory);
  color: var(--charcoal);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--bronze); color: #fff; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ─── NAV ────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 24px var(--gutter);
  background: var(--ivory);
  border-bottom: 1px solid rgba(26,24,20,0.1);
  transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: 0 1px 20px rgba(26,24,20,0.07); }

.nav-logo {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
  color: inherit;
}
.nav-logo-title {
  display: block;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
}
.nav-logo-sub {
  display: block;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(26,24,20,0.5);
  line-height: 1;
  margin-top: 5px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.6;
  transition: opacity 0.2s, color 0.2s;
}
.nav-links a:hover { opacity: 1; }
.nav-links .nav-active { opacity: 1; color: var(--bronze); }
.nav-links .nav-cta {
  opacity: 1;
  border: 1px solid rgba(26,24,20,0.4);
  padding: 9px 20px;
  transition: background 0.2s, color 0.2s;
}
.nav-links .nav-cta:hover {
  background: var(--charcoal);
  color: var(--ivory);
  border-color: var(--charcoal);
}
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  position: relative;
  z-index: 101;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--charcoal);
}

/* ─── SHARED ─────────────────────────────────────────────── */
.eyebrow {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 24px;
}

/* ─── SECTION 1: PAGE HEADER ─────────────────────────────── */
.page-header {
  max-width: var(--max);
  margin: 0 auto;
  padding: 160px var(--gutter) 100px;
  border-bottom: 1px solid rgba(26,24,20,0.1);
}
.page-title {
  font-family: var(--serif);
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 300;
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}
.page-title em {
  font-style: italic;
  font-weight: 300;
}
.page-subtitle {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 300;
  font-style: italic;
  line-height: 1.5;
  color: rgba(26,24,20,0.65);
  max-width: 640px;
  margin-bottom: 36px;
}
.forthcoming-tag {
  display: inline-block;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bronze);
}

/* ─── SECTION 2: BOOK DESCRIPTION ───────────────────────── */
.book-section {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
  max-width: var(--max);
  margin: 0 auto;
  padding: 100px var(--gutter);
  border-bottom: 1px solid rgba(26,24,20,0.1);
}

.book-cover-placeholder {
  width: 100%;
  aspect-ratio: 2/3;
  background: var(--charcoal);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px 36px;
  position: relative;
}
.cover-title-preview {
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 300;
  line-height: 1.1;
  color: var(--ivory);
  letter-spacing: -0.01em;
}
.cover-title-preview em { font-style: italic; color: var(--bronze); }
.cover-author-preview {
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245,242,237,0.45);
}

.book-label {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 28px;
}
.book-pull {
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.4;
  color: var(--charcoal);
  border-left: 2px solid var(--bronze);
  padding-left: 24px;
  margin-bottom: 36px;
}
.book-body {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.85;
  color: rgba(26,24,20,0.75);
  margin-bottom: 20px;
}
.book-body:last-child { margin-bottom: 0; }

/* ─── SECTION 3: WAITLIST ────────────────────────────────── */
.waitlist {
  background: var(--charcoal);
  padding: 100px var(--gutter);
}
.waitlist-inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}
.waitlist .eyebrow { color: var(--bronze); }
.waitlist-heading {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 300;
  line-height: 1.1;
  color: var(--ivory);
  margin-bottom: 24px;
}
.waitlist-heading em { font-style: italic; }
.waitlist-body {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(245,242,237,0.5);
  margin-bottom: 48px;
}
.waitlist-form {
  display: flex;
  gap: 0;
  border: 1px solid rgba(245,242,237,0.15);
}
.waitlist-form input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 16px 20px;
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 300;
  color: var(--ivory);
  outline: none;
}
.waitlist-form input::placeholder { color: rgba(245,242,237,0.3); }
.waitlist-form button {
  background: var(--bronze);
  border: none;
  padding: 16px 28px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.waitlist-form button:hover { opacity: 0.85; }
.waitlist-confirm {
  font-size: 14px;
  color: var(--bronze);
  letter-spacing: 0.06em;
  margin-top: 20px;
}

/* ─── FOOTER ─────────────────────────────────────────────── */
footer {
  background: var(--charcoal);
  border-top: 1px solid rgba(245,242,237,0.07);
  padding: 32px var(--gutter);
  text-align: center;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245,242,237,0.3);
}

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 860px) {
  .book-section {
    grid-template-columns: 1fr;
    gap: 56px;
  }
  .book-cover-placeholder { max-width: 320px; }

  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: var(--ivory);
    justify-content: center;
    align-items: center;
    gap: 40px;
    z-index: 99;
  }
  .nav-links.open a { font-size: 15px; opacity: 1; }
  .nav-hamburger { display: flex; }
}

@media (max-width: 540px) {
  .nav-logo-title { font-size: 18px; }
  .nav-logo-sub { font-size: 11px; }
  .page-header { padding: 100px var(--gutter) 48px; }
  .book-section { padding: 48px var(--gutter); }
  .waitlist { padding: 64px var(--gutter); }
  .waitlist-form { flex-direction: column; }
  .waitlist-form button { width: 100%; }
}
