/* The Woman on the Bonnet — prestige Edwardian literary landing */

:root {
  --navy: #070e18;
  --navy-mid: #0b1520;
  --navy-lift: #12202e;
  --chrome: #c8d0d8;
  --chrome-dim: #8b96a2;
  --ink: #ebe4d6;
  --muted: #b7ae9e;
  --gold: #c9a45c;
  --gold-deep: #a8843d;
  --gold-pale: #e4d2a0;
  --paper: #f4efe4;
  --display: "Cormorant Garamond", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--navy);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--gold);
  color: var(--navy);
}

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

a {
  color: var(--gold-pale);
}

a:hover {
  color: #fff;
}

cite {
  font-style: italic;
  font-family: var(--display);
}

.skip {
  position: absolute;
  left: -999px;
  top: 0.75rem;
  background: var(--paper);
  color: var(--navy);
  padding: 0.5rem 0.85rem;
  z-index: 30;
}

.skip:focus {
  left: 0.75rem;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 180px 180px;
}

/* —— HERO —— */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 0 clamp(1.25rem, 5vw, 5.75rem) clamp(2.5rem, 6vh, 4.5rem);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 48% at 78% 88%, rgba(201, 164, 92, 0.22), transparent 58%),
    radial-gradient(ellipse 45% 36% at 12% 100%, rgba(180, 196, 210, 0.08), transparent 70%),
    radial-gradient(ellipse 90% 55% at 40% 0%, rgba(18, 32, 46, 0.9), transparent 62%),
    linear-gradient(180deg, #050910 0%, #070e18 42%, #0c1824 100%);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 14, 24, 0.15) 0%, rgba(7, 14, 24, 0.08) 40%, rgba(7, 14, 24, 0.55) 100%),
    linear-gradient(90deg, rgba(7, 14, 24, 0.35) 0%, transparent 48%, rgba(7, 14, 24, 0.2) 100%);
  pointer-events: none;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.55;
  pointer-events: none;
  z-index: 2;
}

.hero::before { top: 12px; }
.hero::after { bottom: 14px; }

.mast {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 1.85rem 0 0;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--chrome-dim);
  position: relative;
  z-index: 3;
  animation: rise 0.9s ease both;
}

.mast span + span {
  color: var(--gold);
  letter-spacing: 0.2em;
}

.hero-stage {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(15rem, 22rem);
  gap: clamp(2rem, 5vw, 5.5rem);
  align-items: center;
  padding: clamp(1.5rem, 5vh, 3.5rem) 0 1rem;
  position: relative;
  z-index: 3;
}

.hero-copy {
  max-width: 40rem;
  animation: rise 1.15s ease 0.1s both;
}

.kicker {
  margin: 0 0 0.95rem;
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
}

h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(3rem, 7vw, 6.1rem);
  line-height: 0.92;
  letter-spacing: 0.01em;
  color: #f7f1e6;
  text-shadow: 0 2px 28px rgba(7, 14, 24, 0.55);
}

h1 em {
  display: block;
  font-weight: 400;
  font-style: italic;
  color: var(--gold-pale);
}

.subtitle {
  margin: 1.05rem 0 0;
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  font-weight: 400;
  color: var(--chrome);
}

.rule {
  width: 3.75rem;
  height: 1px;
  margin: 1.45rem 0 1.35rem;
  border: 0;
  background: var(--gold);
}

.governing {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.28rem, 2.5vw, 1.75rem);
  font-weight: 500;
  line-height: 1.32;
  color: #f3eee3;
  max-width: 28ch;
  text-shadow: 0 1px 18px rgba(7, 14, 24, 0.45);
}

.pitch {
  margin: 1.35rem 0 0;
  color: var(--muted);
  max-width: 36rem;
  font-size: 1.05rem;
  line-height: 1.7;
}

.byline {
  margin: 1.7rem 0 0;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--chrome);
}

.byline strong {
  font-weight: 600;
  color: var(--paper);
}

.imprint {
  margin: 0.35rem 0 0;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--chrome-dim);
}

.buy {
  margin: 1.85rem 0 0;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 10.5rem;
  min-height: 2.75rem;
  padding: 0.82rem 1.35rem;
  border: 1px solid var(--chrome);
  background: transparent;
  color: var(--paper);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--gold-pale);
  border-color: var(--gold-pale);
  color: var(--navy);
  outline: none;
}

.btn-ghost {
  background: transparent;
  border-color: rgba(200, 208, 216, 0.55);
  color: var(--paper);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: rgba(201, 164, 92, 0.1);
  border-color: var(--gold);
  color: #fff;
  outline: none;
}

.note {
  margin: 0.8rem 0 0;
  font-size: 0.78rem;
  color: var(--chrome-dim);
  max-width: 34rem;
}

/* Book cover */
.cover {
  margin: 0;
  justify-self: end;
  width: 100%;
  max-width: 22rem;
  animation: rise 1.3s ease 0.18s both;
}

.cover-frame {
  position: relative;
  border: 1px solid rgba(201, 164, 92, 0.95);
  box-shadow:
    0 0 0 1px rgba(200, 208, 216, 0.18),
    0 28px 70px rgba(0, 0, 0, 0.5),
    0 0 80px rgba(201, 164, 92, 0.12);
}

.cover-frame::before,
.cover-frame::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--gold);
  border-style: solid;
  z-index: 2;
  pointer-events: none;
}

.cover-frame::before {
  top: -1px;
  left: -1px;
  border-width: 2px 0 0 2px;
}

.cover-frame::after {
  right: -1px;
  bottom: -1px;
  border-width: 0 2px 2px 0;
}

.cover img {
  width: 100%;
  aspect-ratio: 1600 / 2560;
  object-fit: cover;
  object-position: center top;
}

.cover figcaption {
  margin: 0.75rem 0 0;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--chrome-dim);
}

/* —— STORY —— */
.story {
  border-top: 1px solid rgba(201, 164, 92, 0.28);
  background: var(--navy-mid);
}

.band {
  max-width: 42rem;
  margin: 0 auto;
  padding: clamp(3.5rem, 8vh, 6.25rem) clamp(1.25rem, 5vw, 2rem);
}

.band-narrow {
  max-width: 36rem;
}

.story h2,
.cta-band h2,
.author h2,
.wait h2,
.notify h2 {
  margin: 0 0 1.15rem;
  font-family: var(--display);
  font-size: clamp(2.05rem, 4.4vw, 3.2rem);
  font-weight: 500;
  line-height: 1.12;
  color: #f7f1e6;
}

.story p,
.cta-band p,
.author p,
.wait-copy,
.notify p {
  margin: 0 0 1.15rem;
  color: var(--muted);
  max-width: 38rem;
  font-size: 1.05rem;
}

.story p:last-child,
.author p:last-child {
  margin-bottom: 0;
}

/* —— THREE TURNS —— */
.turns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(201, 164, 92, 0.35);
  border-top: 1px solid rgba(201, 164, 92, 0.35);
}

.turn {
  background: var(--navy);
  padding: clamp(2.25rem, 5vw, 3.4rem) clamp(1.4rem, 3vw, 2.4rem) clamp(2.5rem, 5vw, 3.6rem);
}

.num {
  margin: 0 0 1.1rem;
  font-family: var(--display);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--gold);
}

.turn h3 {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-size: clamp(1.45rem, 2.2vw, 1.75rem);
  font-weight: 500;
  line-height: 1.2;
  color: #f7f1e6;
}

.turn p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

/* —— CTA BAND —— */
.cta-band {
  background:
    radial-gradient(ellipse 70% 80% at 50% 120%, rgba(201, 164, 92, 0.14), transparent 60%),
    var(--navy-mid);
  border-top: 1px solid rgba(201, 164, 92, 0.28);
  text-align: center;
}

.cta-band .band {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-band p,
.cta-band h2 {
  max-width: 28rem;
}

.cta-band .buttons {
  justify-content: center;
  margin-top: 0.4rem;
}

/* —— AUTHOR —— */
.author {
  border-top: 1px solid rgba(200, 208, 216, 0.1);
  padding: clamp(3.5rem, 8vh, 6.25rem) clamp(1.25rem, 5vw, 5.75rem);
}

.author-grid {
  max-width: 62rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(10rem, 16rem) minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
}

.portrait {
  margin: 0;
}

.portrait img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  filter: contrast(1.04) saturate(0.92);
}

/* —— WAIT / NOTIFY —— */
.wait,
.notify {
  border-top: 1px solid rgba(200, 208, 216, 0.1);
}

.wait {
  background: var(--navy-mid);
}

.notify {
  border-top: 1px solid rgba(201, 164, 92, 0.38);
}

.signup {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  max-width: 32rem;
}

.signup label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.signup input[type="email"] {
  flex: 1 1 14rem;
  min-width: 12rem;
  padding: 0.78rem 0.95rem;
  border: 1px solid var(--chrome-dim);
  background: var(--navy-lift);
  color: var(--paper);
  font: inherit;
  font-size: 1rem;
}

.signup input[type="email"]::placeholder {
  color: var(--chrome-dim);
}

.signup input[type="email"]:focus {
  outline: 1px solid var(--gold);
  border-color: var(--gold);
}

.signup button {
  padding: 0.78rem 1.35rem;
  border: 1px solid var(--chrome);
  background: transparent;
  color: var(--paper);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.signup button:hover,
.signup button:focus-visible {
  background: rgba(201, 164, 92, 0.12);
  border-color: var(--gold);
  outline: none;
}

.form-status {
  margin: 0.7rem 0 0;
  font-size: 0.78rem;
  color: var(--chrome-dim);
}

.site-foot {
  padding: 1.5rem 1.5rem 1.9rem;
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--chrome-dim);
  border-top: 1px solid rgba(200, 208, 216, 0.1);
}

.site-foot p {
  margin: 0;
}

.site-foot .legal {
  margin: 0.7rem auto 0;
  max-width: 38rem;
  letter-spacing: 0.02em;
  font-size: 0.68rem;
  line-height: 1.5;
  color: #6f7a86;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(1.05rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grain { display: none; }
  .mast,
  .hero-copy,
  .cover {
    animation: none;
  }
}

@media (max-width: 980px) {
  .hero-stage {
    grid-template-columns: 1fr;
    gap: 2.25rem;
    padding-top: 1.75rem;
  }

  .cover {
    justify-self: center;
    max-width: 18.5rem;
    order: -1;
  }

  h1 {
    font-size: clamp(2.7rem, 11vw, 4.6rem);
  }

  .governing {
    max-width: none;
  }

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

  .author-grid {
    grid-template-columns: 1fr;
    max-width: 40rem;
  }

  .portrait {
    max-width: 16rem;
  }
}

@media (max-width: 720px) {
  .mast {
    flex-direction: column;
    gap: 0.3rem;
    padding-top: 1.85rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-left: 1.15rem;
    padding-right: 1.15rem;
  }

  .cover {
    max-width: 16.5rem;
  }

  .btn,
  .signup button {
    width: 100%;
  }

  .signup input[type="email"] {
    flex-basis: 100%;
  }

  .author {
    padding-left: 1.15rem;
    padding-right: 1.15rem;
  }
}


/* —— AUTHOR LINKS / AUTHOR PAGE —— */
.mast-end {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  color: var(--gold);
  letter-spacing: 0.2em;
}

.mast-end a {
  color: var(--chrome);
  text-decoration: none;
  letter-spacing: 0.28em;
}

.mast-end a:hover,
.mast-end a:focus-visible {
  color: #fff;
}

.mast-end a[aria-current="page"] {
  color: var(--gold);
}

.byline a {
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 164, 92, 0.75);
}

.byline a:hover,
.byline a:focus-visible {
  color: #fff;
  border-bottom-color: var(--gold-pale);
}

.author h2 a {
  color: inherit;
  text-decoration: none;
}

.author h2 a:hover,
.author h2 a:focus-visible {
  color: #fff;
}

.site-foot a {
  color: var(--chrome);
  text-decoration: none;
}

.site-foot a:hover,
.site-foot a:focus-visible {
  color: #fff;
}

.site-foot a[aria-current="page"] {
  color: var(--gold);
}

.foot-nav {
  margin: 0.55rem 0 0;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.68rem;
}

.page-mast {
  padding-left: clamp(1.25rem, 5vw, 5.75rem);
  padding-right: clamp(1.25rem, 5vw, 5.75rem);
}

.author-panel {
  padding: clamp(2.25rem, 6vh, 4.5rem) clamp(1.25rem, 5vw, 5.75rem) clamp(3rem, 7vh, 5rem);
}

.page-author .author-grid {
  max-width: 58rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(9rem, 14rem) minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: start;
}

.author-portrait {
  margin: 0;
  max-width: 14rem;
}

.author-portrait img {
  width: 100%;
  aspect-ratio: 143 / 181;
  object-fit: cover;
  object-position: center 12%;
  filter: contrast(1.04) saturate(0.92);
}

.author-portrait figcaption {
  margin: 0.75rem 0 0;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--chrome-dim);
}

.page-author h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
}

.page-author h1 em {
  color: var(--gold-pale);
}

.author-copy p {
  margin: 0 0 1rem;
  color: var(--muted);
  max-width: 36rem;
}

.author-copy p:last-child {
  margin-bottom: 0;
}

.page-author .titles {
  background: var(--navy-mid);
  border-top: 1px solid rgba(201, 164, 92, 0.28);
}

.page-author .titles h2 {
  margin: 0 0 1.5rem;
  font-family: var(--display);
  font-size: clamp(2.05rem, 4.4vw, 3.2rem);
  font-weight: 500;
  line-height: 1.12;
  color: #f7f1e6;
}

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

.booklist li + li {
  margin-top: 1.6rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(201, 164, 92, 0.22);
}

.booklist > li > cite {
  display: block;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 500;
  color: #f7f1e6;
}

.booklist .meta {
  margin: 0.45rem 0 0.95rem;
  color: var(--muted);
  font-size: 1rem;
  max-width: 34rem;
}

.booklist .btn {
  min-width: 0;
}

@media (max-width: 720px) {
  .page-author .author-grid {
    grid-template-columns: 1fr;
    max-width: 40rem;
  }

  .author-portrait {
    max-width: 12.5rem;
  }

  .mast-end {
    flex-direction: column;
    gap: 0.3rem;
    align-items: flex-start;
  }
}

.reach-slot {
  max-width: 28rem;
  margin: 1.5rem auto 0;
  min-height: 12rem;
}
.reach-slot [data-reach-form] {
  min-height: 12rem;
}
