/* Margot Dorée — author home. House language from The Woman on the Bonnet. */

: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;
}

/* Mast and nav */

.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;
}

.mast-end {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  color: var(--gold);
  letter-spacing: 0.2em;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav {
  display: flex;
  align-items: baseline;
  gap: 1.05rem;
  flex-wrap: wrap;
}

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

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

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

.page-mast {
  padding-left: clamp(1.25rem, 5vw, 5.75rem);
  padding-right: clamp(1.25rem, 5vw, 5.75rem);
  padding-top: 1.25rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid rgba(201, 164, 92, 0.35);
  align-items: center;
}

header.page-mast + main > section:first-child {
  border-top: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: inherit;
  text-decoration: none;
  letter-spacing: inherit;
  text-transform: inherit;
}

.brand:hover,
.brand:focus-visible {
  color: #fff;
}

.medallion {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  flex: 0 0 auto;
  display: block;
  filter: drop-shadow(0 0 10px rgba(196, 163, 90, 0.28));
}

.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(2.15rem, 4.6vw, 3.65rem);
  line-height: 0.94;
  letter-spacing: 0.01em;
  color: #f7f1e6;
}

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

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

.identity {
  margin: 0;
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  font-weight: 400;
  line-height: 1.35;
  color: var(--chrome);
}

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

/* Buttons */

.buy {
  margin: 1.7rem 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;
}

/* Author hero */

.author-hero {
  position: relative;
  isolation: isolate;
  padding: 0 clamp(1.25rem, 5vw, 5.75rem) clamp(3rem, 8vh, 5.5rem);
  background:
    radial-gradient(ellipse 55% 70% at 88% 20%, rgba(201, 164, 92, 0.12), transparent 58%),
    radial-gradient(ellipse 40% 50% at 8% 90%, rgba(201, 164, 92, 0.06), transparent 55%),
    var(--navy);
  overflow: hidden;
}

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

.author-hero::before { top: 0; }
.author-hero::after { bottom: 0; }

.author-hero .mast {
  padding-top: 1.25rem;
  padding-bottom: 0.4rem;
}

.hero-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(11rem, 16.5rem);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding: clamp(2.25rem, 7vh, 4.75rem) 0 0.5rem;
  position: relative;
  z-index: 3;
  max-width: 72rem;
  margin: 0 auto;
}

.hero-copy {
  max-width: 38rem;
  animation: rise 1.1s ease 0.08s both;
}

.hero-copy h1 {
  font-size: clamp(3.2rem, 8vw, 6.2rem);
  line-height: 0.9;
  text-shadow: 0 2px 28px rgba(7, 14, 24, 0.55);
}

.hero-copy .rule {
  margin: 1.35rem 0 1.25rem;
}

.hero-portrait {
  margin: 0;
  animation: rise 1.15s ease 0.16s both;
}

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

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

.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;
}

/* Featured title */

.book-strip {
  border-top: 1px solid rgba(201, 164, 92, 0.28);
  background:
    radial-gradient(ellipse 50% 80% at 12% 80%, rgba(201, 164, 92, 0.1), transparent 62%),
    var(--navy);
  padding: clamp(2.25rem, 6vh, 4.25rem) clamp(1.25rem, 5vw, 5.75rem);
}

.book-grid {
  max-width: 68rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(11rem, 16.5rem) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.cover {
  margin: 0;
  width: 100%;
  max-width: 16.5rem;
}

.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);
}

.book-copy h2,
.catalog h2,
.about-band h2,
.notify h2,
.page-panel h1,
.page-404 h1 {
  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;
}

.book-copy h1,
.book-copy h2 {
  margin: 0 0 0.55rem;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 0.95;
}

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

.overlay-hed {
  margin: 0.35rem 0 1rem;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.15rem, 2.1vw, 1.55rem);
  line-height: 1.22;
  color: var(--gold-pale);
}

.book-copy p,
.catalog p,
.about-band p,
.notify p,
.page-panel p,
.page-404 p {
  margin: 0 0 1.15rem;
  color: var(--muted);
  max-width: 38rem;
  font-size: 1.05rem;
}

.book-copy p:last-of-type {
  margin-bottom: 0;
}

/* Quiet catalog (Parisian, forthcoming) */

.catalog {
  border-top: 1px solid rgba(201, 164, 92, 0.28);
  background: var(--navy-mid);
  padding: clamp(3rem, 7vh, 5.25rem) clamp(1.25rem, 5vw, 5.75rem);
}

.catalog-inner {
  max-width: 42rem;
  margin: 0 auto;
}

.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;
}


.page-404 .buttons {
  margin-top: 1.4rem;
}

.booklist .quiet > cite {
  color: var(--muted);
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
}

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

.booklist .quiet .meta {
  margin-bottom: 0;
}

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

/* About */

.about-band,
.page-panel {
  border-top: 1px solid rgba(200, 208, 216, 0.1);
  padding: clamp(3.25rem, 8vh, 5.75rem) clamp(1.25rem, 5vw, 5.75rem);
}

.about-grid,
.page-author .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;
}

.page-author .author-grid {
  max-width: 58rem;
  align-items: start;
  grid-template-columns: minmax(9rem, 14rem) minmax(0, 1fr);
}

.portrait,
.author-portrait {
  margin: 0;
}

.portrait img,
.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 {
  max-width: 14rem;
}

.author-portrait figcaption,
.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);
}

.more-link {
  margin-top: 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.more-link a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 164, 92, 0.55);
}

.more-link a:hover,
.more-link a:focus-visible {
  color: #fff;
}

.page-author .titles {
  background: var(--navy-mid);
  border-top: 1px solid rgba(201, 164, 92, 0.28);
  padding: clamp(3rem, 7vh, 5.25rem) clamp(1.25rem, 5vw, 5.75rem);
}

.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;
}

.band {
  max-width: 42rem;
  margin: 0 auto;
}

/* Notify */

.notify {
  border-top: 1px solid rgba(201, 164, 92, 0.38);
  background: var(--navy);
  padding: clamp(3.25rem, 8vh, 5.75rem) clamp(1.25rem, 5vw, 5.75rem);
}

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

.reach-slot [data-reach-form] {
  min-height: 12rem;
}

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

/* Contact */

.contact-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

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

.contact-list .label {
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.contact-list a {
  color: var(--gold-pale);
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 164, 92, 0.4);
}

.contact-list a:hover,
.contact-list a:focus-visible {
  color: #fff;
}

/* 404 */

.page-404 .page-panel {
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-panel .buttons {
  margin-top: 0.6rem;
}

/* Footer */

.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;
}

.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;
}

.foot-sites {
  margin: 0.7rem 0 0;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
}

.foot-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  margin: 0 0 0.75rem;
}

.foot-brand .medallion {
  width: 2.75rem;
  height: 2.75rem;
}

@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; }
  .hero-copy,
  .hero-portrait {
    animation: none;
  }
}

@media (max-width: 980px) {
  .hero-stage,
  .book-grid,
  .about-grid,
  .page-author .author-grid {
    grid-template-columns: 1fr;
    max-width: 40rem;
  }

  .cover,
  .hero-portrait,
  .portrait,
  .author-portrait {
    justify-self: center;
    max-width: 16.5rem;
  }

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

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

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

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

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

@media (max-width: 480px) {
  .author-hero,
  .book-strip,
  .catalog,
  .about-band,
  .page-panel,
  .page-author .titles,
  .notify {
    padding-left: 1.15rem;
    padding-right: 1.15rem;
  }

  .btn {
    width: 100%;
  }
}

.booklist li.quiet {
  display: flex;
  align-items: center;
  gap: 1rem;
  opacity: 0.82;
}
.quiet-cover {
  margin: 0;
  width: 4.25rem;
  flex: 0 0 4.25rem;
}
.quiet-cover img {
  width: 100%;
  height: auto;
  border: 1px solid rgba(201, 164, 92, 0.25);
}
