:root {
  --ink: #140f12;
  --ink-soft: #21171c;
  --paper: #f3ece1;
  --paper-dim: #c9beb2;
  --coral: #ff5a43;
  --wine: #7d2432;
  --line: rgba(243, 236, 225, 0.22);
  --serif: "Bodoni 72", Didot, "Bodoni MT", "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  z-index: 10;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.13'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

a { color: inherit; }
img { display: block; max-width: 100%; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--paper);
  color: var(--ink);
}
.skip-link:focus { top: 1rem; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem clamp(1.25rem, 4vw, 4.5rem);
  border-bottom: 1px solid transparent;
  transition: background 220ms ease, border-color 220ms ease;
}
.site-header.scrolled {
  background: rgba(20, 15, 18, 0.92);
  border-color: var(--line);
  backdrop-filter: blur(14px);
}
.wordmark {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  letter-spacing: 0.28em;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav { display: flex; align-items: center; gap: clamp(1.5rem, 3vw, 3.5rem); }
.site-nav a {
  position: relative;
  color: var(--paper-dim);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -0.4rem;
  height: 1px;
  background: var(--coral);
  transition: right 200ms ease;
}
.site-nav a:hover::after, .site-nav a:focus-visible::after { right: 0; }
.menu-button { display: none; }

.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(25rem, 1.12fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 7rem);
  padding: 8rem clamp(1.25rem, 6vw, 7rem) 5rem;
  background:
    radial-gradient(circle at 78% 25%, rgba(125, 36, 50, 0.28), transparent 35%),
    linear-gradient(135deg, #140f12 0%, #1f151a 56%, #100c0e 100%);
}
.hero-copy { position: relative; z-index: 2; max-width: 42rem; }
.eyebrow {
  margin: 0 0 1.4rem;
  color: var(--coral);
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; line-height: 0.9; }
h1 { font-size: clamp(3.8rem, 6.3vw, 7.2rem); letter-spacing: -0.055em; }
h1 em, h2 em { color: var(--coral); font-weight: 400; }
.hero-intro {
  max-width: 35rem;
  margin: 2.3rem 0 0;
  color: var(--paper-dim);
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  line-height: 1.7;
}
.hero-actions { display: flex; align-items: center; gap: 1.8rem; margin-top: 2.2rem; }
.button {
  display: inline-flex;
  min-height: 3.2rem;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.3rem;
  border: 1px solid var(--coral);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}
.button-primary { background: var(--coral); color: var(--ink); }
.button:hover, .button:focus-visible { transform: translateY(-3px); background: var(--paper); border-color: var(--paper); }
.text-link { color: var(--paper); font-size: 0.88rem; letter-spacing: 0.09em; text-underline-offset: 0.45rem; text-decoration-color: var(--coral); text-transform: uppercase; }

.cover-stage {
  position: relative;
  width: min(44vw, 43rem);
  height: min(75svh, 47rem);
  justify-self: end;
}
.hero-cover {
  position: absolute;
  margin: 0;
  background: #0b0809;
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.5);
}
.hero-cover img { width: 100%; height: 100%; object-fit: cover; }
.hero-cover-left { width: 34%; height: 59%; left: 0; top: 24%; transform: rotate(-8deg); z-index: 1; }
.hero-cover-main { width: 48%; height: 78%; left: 27%; top: 6%; transform: rotate(2.5deg); z-index: 3; }
.hero-cover-right { width: 32%; height: 56%; right: 0; bottom: 2%; transform: rotate(9deg); z-index: 2; }
.hero-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.24);
  pointer-events: none;
}
.stage-note {
  position: absolute;
  top: 2%;
  right: -1rem;
  margin: 0;
  color: rgba(243, 236, 225, 0.42);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  line-height: 1.65;
  writing-mode: vertical-rl;
  z-index: 5;
}
.single-cover .hero-cover-main {
  width: 62%;
  height: auto;
  aspect-ratio: 983 / 1536;
  left: 27%;
  top: 4%;
  transform: rotate(2deg);
}
.single-cover .hero-cover-main img { object-fit: contain; }
.single-cover .stage-title {
  position: absolute;
  left: 1%;
  top: 15%;
  z-index: 0;
  margin: 0;
  color: transparent;
  font-family: var(--serif);
  font-size: clamp(6rem, 12vw, 11rem);
  letter-spacing: -0.05em;
  line-height: 0.72;
  -webkit-text-stroke: 1px rgba(243, 236, 225, 0.28);
}
.two-cover .hero-cover-left {
  width: 47%;
  height: auto;
  aspect-ratio: 983 / 1536;
  left: 2%;
  top: 20%;
  transform: rotate(-7deg);
}
.two-cover .hero-cover-main {
  width: 55%;
  height: auto;
  aspect-ratio: 992 / 1586;
  left: 39%;
  top: 3%;
  transform: rotate(3deg);
}
.two-cover .hero-cover img { object-fit: contain; }
.two-cover .stage-title {
  position: absolute;
  left: -2%;
  bottom: 2%;
  z-index: 0;
  margin: 0;
  color: transparent;
  font-family: var(--serif);
  font-size: clamp(5rem, 10vw, 9rem);
  letter-spacing: -0.05em;
  line-height: 0.72;
  -webkit-text-stroke: 1px rgba(243, 236, 225, 0.22);
}

.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--coral); color: var(--ink); }
.marquee-track {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0.82rem 0;
  animation: marquee 24s linear infinite;
  font-family: var(--serif);
  font-size: 1.2rem;
  letter-spacing: 0.04em;
}
.marquee i { font-size: 0.6rem; font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

.books-section { padding: clamp(6rem, 10vw, 10rem) clamp(1.25rem, 6vw, 7rem); background: var(--paper); color: var(--ink); }
.section-heading { display: grid; grid-template-columns: 1fr 2fr 1fr; align-items: end; gap: 2rem; margin-bottom: clamp(4rem, 8vw, 7rem); }
.section-heading .eyebrow { align-self: start; color: var(--wine); }
.section-heading h2 { font-size: clamp(3.5rem, 7vw, 7.3rem); letter-spacing: -0.05em; }
.section-heading h2 em { color: var(--wine); }
.section-heading > p:last-child { max-width: 13rem; margin: 0; color: #695f5a; }
.book-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: clamp(3rem, 6vw, 7rem) clamp(1.3rem, 3.5vw, 4rem); }
.published-books {
  display: grid;
  gap: clamp(5rem, 10vw, 9rem);
  max-width: 76rem;
  margin: 0 auto;
}
.published-book {
  display: grid;
  grid-template-columns: minmax(16rem, 0.72fr) minmax(20rem, 1.28fr);
  align-items: center;
  gap: clamp(3rem, 9vw, 9rem);
}
.published-book .cover-wrap { max-width: 25rem; }
.published-book-reverse { grid-template-columns: minmax(20rem, 1.28fr) minmax(16rem, 0.72fr); }
.published-book-reverse .cover-wrap { grid-column: 2; grid-row: 1; }
.published-book-reverse .published-copy { grid-column: 1; grid-row: 1; justify-self: end; width: min(100%, 37rem); }
.published-copy { max-width: 37rem; }
.published-copy .book-index { margin: 0 0 2rem; color: var(--wine); font-size: 0.73rem; font-weight: 700; letter-spacing: 0.17em; }
.published-copy h3 { font-size: clamp(4rem, 8vw, 8rem); letter-spacing: -0.055em; }
.published-copy .book-detail { margin: 2rem 0 0; color: #695f5a; font-family: var(--serif); font-size: clamp(1.35rem, 2.2vw, 1.85rem); }
.debut-showcase {
  display: grid;
  grid-template-columns: minmax(17rem, 0.72fr) minmax(20rem, 1.28fr);
  align-items: center;
  gap: clamp(3rem, 9vw, 9rem);
  max-width: 70rem;
  margin: 0 auto;
}
.debut-book { max-width: 25rem; }
.debut-copy { max-width: 37rem; }
.debut-copy .debut-index { margin: 0 0 2rem; color: var(--wine); font-size: 0.73rem; font-weight: 700; letter-spacing: 0.17em; }
.debut-copy h3 { font-size: clamp(4rem, 8vw, 8rem); letter-spacing: -0.055em; }
.debut-copy .debut-lead { margin: 2rem 0 1rem; font-family: var(--serif); font-size: clamp(1.5rem, 2.5vw, 2.15rem); line-height: 1.35; }
.debut-copy .debut-note { max-width: 27rem; color: #695f5a; }
.book-buy { margin-top: 1.5rem; gap: 0.65rem; }
.book-card { min-width: 0; }
.book-card.card-rise { margin-top: 6rem; }
.cover-wrap {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #d3c8bc;
  box-shadow: 0 1.8rem 3.2rem rgba(44, 30, 33, 0.18);
}
.cover-wrap::after {
  content: "AVA DEMOI";
  position: absolute;
  inset: auto 0 0;
  padding: 1rem;
  background: var(--coral);
  color: var(--ink);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-align: center;
  transform: translateY(100%);
  transition: transform 240ms ease;
}
.cover-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms cubic-bezier(.2,.75,.25,1); }
.is-this-real-cover { aspect-ratio: 992 / 1586; }
.is-this-real-cover img { object-fit: contain; }
.book-card:hover .cover-wrap img { transform: scale(1.035); }
.book-card:hover .cover-wrap::after { transform: translateY(0); }
.square-cover { aspect-ratio: 1 / 1; margin-top: 12%; margin-bottom: 21%; }
.book-meta { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; padding-top: 1.35rem; border-top: 1px solid rgba(20, 15, 18, 0.22); margin-top: 1.35rem; }
.book-meta h3 { font-size: clamp(1.4rem, 2vw, 2rem); line-height: 1.05; }
.book-meta p { margin: 0; color: #746962; font-size: 0.72rem; letter-spacing: 0.1em; text-align: right; text-transform: uppercase; }

.about-section {
  position: relative;
  min-height: 42rem;
  display: grid;
  grid-template-columns: 0.9fr 1.5fr 0.55fr;
  align-items: center;
  gap: clamp(2rem, 6vw, 7rem);
  padding: clamp(6rem, 11vw, 11rem) clamp(1.25rem, 6vw, 7rem);
  background: var(--wine);
  overflow: hidden;
}
.author-portrait {
  position: relative;
  z-index: 1;
  width: min(100%, 25rem);
  margin: 0;
  justify-self: center;
  transform: rotate(-1.5deg);
}
.author-portrait::before {
  content: "";
  position: absolute;
  inset: 1.1rem -1.1rem -1.1rem 1.1rem;
  border: 1px solid rgba(255, 196, 185, 0.62);
  z-index: -1;
}
.author-portrait img {
  width: 100%;
  aspect-ratio: 400 / 417;
  object-fit: cover;
  box-shadow: 0 2rem 4.5rem rgba(40, 6, 14, 0.32);
  filter: saturate(0.92) contrast(1.03);
}
.about-copy { position: relative; z-index: 2; max-width: 46rem; }
.about-copy .eyebrow { color: #ffc4b9; }
.about-copy h2 { font-size: clamp(3.2rem, 6vw, 6rem); letter-spacing: -0.045em; }
.about-copy h2 em { color: #ffc4b9; }
.about-copy p { max-width: 40rem; color: #eadad5; font-size: 1.03rem; }
.about-copy .about-lead { margin-top: 2.2rem; color: var(--paper); font-family: var(--serif); font-size: clamp(1.35rem, 2vw, 1.75rem); line-height: 1.45; }
.about-aside { margin: 0; font-size: 0.72rem; letter-spacing: 0.34em; line-height: 2.1; writing-mode: vertical-rl; }

.newsletter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 10vw, 10rem);
  align-items: center;
  padding: clamp(6rem, 11vw, 10rem) clamp(1.25rem, 8vw, 10rem);
  background: var(--ink-soft);
}
.newsletter h2 { font-size: clamp(3.8rem, 7vw, 7.2rem); letter-spacing: -0.05em; }
.newsletter-copy > p:last-child { max-width: 33rem; color: var(--paper-dim); font-size: 1.08rem; }
.newsletter-form { min-height: 13rem; padding: clamp(1.5rem, 4vw, 3rem); border: 1px solid var(--line); background: rgba(0,0,0,0.13); }
.privacy-note { margin: 1rem 0 0; color: #93878c; font-size: 0.75rem; }

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  padding: 2.2rem clamp(1.25rem, 4vw, 4.5rem);
  border-top: 1px solid var(--line);
  background: var(--ink);
  color: var(--paper-dim);
}
.site-footer p { margin: 0; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; }
.site-footer p:last-child { text-align: right; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms ease, transform 700ms ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.hero-cover-left.reveal { transform: rotate(-8deg) translateY(24px); }
.hero-cover-main.reveal { transform: rotate(2.5deg) translateY(24px); }
.hero-cover-right.reveal { transform: rotate(9deg) translateY(24px); }
.hero-cover-left.visible { transform: rotate(-8deg) translateY(0); }
.hero-cover-main.visible { transform: rotate(2.5deg) translateY(0); }
.hero-cover-right.visible { transform: rotate(9deg) translateY(0); }
.author-portrait.reveal { transform: rotate(-1.5deg) translateY(24px); }
.author-portrait.visible { transform: rotate(-1.5deg) translateY(0); }

@media (max-width: 900px) {
  .site-header { padding-block: 1.15rem; }
  .menu-button {
    display: grid;
    gap: 6px;
    width: 2.8rem;
    min-height: 2.8rem;
    place-content: center;
    border: 0;
    background: transparent;
    color: var(--paper);
  }
  .menu-button span:not(.sr-only) { display: block; width: 1.4rem; height: 1px; background: currentColor; transition: transform 180ms ease; }
  .site-nav {
    position: fixed;
    inset: 0;
    z-index: -1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    background: rgba(20,15,18,0.98);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
  }
  .site-nav a { font-family: var(--serif); font-size: 2.4rem; letter-spacing: 0; text-transform: none; }
  .site-header.menu-open .site-nav { opacity: 1; pointer-events: auto; }
  .site-header.menu-open .menu-button span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .site-header.menu-open .menu-button span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }
  .hero { grid-template-columns: 1fr; padding-top: 8rem; }
  .hero-copy { max-width: 38rem; }
  .cover-stage { width: min(90vw, 36rem); height: min(67rem, 118vw); justify-self: center; }
  .section-heading { grid-template-columns: 1fr; }
  .section-heading > p:last-child { max-width: none; }
  .debut-showcase { grid-template-columns: 0.8fr 1.2fr; gap: 3rem; }
  .published-book,
  .published-book-reverse { grid-template-columns: 0.8fr 1.2fr; gap: 3rem; }
  .published-book-reverse .cover-wrap { grid-column: 1; }
  .published-book-reverse .published-copy { grid-column: 2; justify-self: start; }
  .book-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .book-card.card-rise { margin-top: 4rem; }
  .about-section { grid-template-columns: 0.6fr 2fr; }
  .author-portrait { width: min(100%, 20rem); }
  .about-aside { display: none; }
  .newsletter { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .hero { padding-inline: 1.15rem; }
  h1 { font-size: clamp(3.7rem, 20vw, 6rem); }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 1.2rem; }
  .cover-stage { height: 128vw; margin-block: 1rem 2rem; }
  .hero-cover-left { width: 37%; height: 58%; left: 2%; }
  .hero-cover-main { width: 52%; height: 78%; left: 25%; }
  .hero-cover-right { width: 35%; height: 55%; }
  .books-section { padding-inline: 1.15rem; }
  .single-cover .hero-cover-main { width: 70%; height: auto; left: 19%; }
  .single-cover .stage-title { left: 0; top: 12%; }
  .two-cover .hero-cover-left { width: 48%; left: 1%; top: 23%; }
  .two-cover .hero-cover-main { width: 58%; left: 38%; top: 2%; }
  .two-cover .stage-title { bottom: 1%; }
  .debut-showcase { grid-template-columns: 1fr; }
  .debut-book { width: min(82vw, 23rem); margin: 0 auto; }
  .debut-copy { text-align: center; }
  .debut-copy .debut-note { margin-inline: auto; }
  .published-book,
  .published-book-reverse { grid-template-columns: 1fr; }
  .published-book .cover-wrap,
  .published-book-reverse .cover-wrap { grid-column: 1; grid-row: auto; width: min(82vw, 23rem); margin: 0 auto; }
  .published-book .published-copy,
  .published-book-reverse .published-copy { grid-column: 1; grid-row: auto; justify-self: stretch; text-align: center; }
  .book-grid { grid-template-columns: 1fr 1fr; gap: 3.2rem 1rem; }
  .book-card.card-rise { margin-top: 2.5rem; }
  .book-meta { display: block; }
  .book-meta h3 { font-size: 1.35rem; }
  .book-meta p { margin-top: 0.55rem; text-align: left; font-size: 0.64rem; }
  .about-section { grid-template-columns: 1fr; padding-inline: 1.15rem; }
  .author-portrait { width: min(82vw, 21rem); margin-bottom: 2rem; }
  .newsletter { padding-inline: 1.15rem; }
  .site-footer { grid-template-columns: 1fr; text-align: left; }
  .site-footer p:last-child { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none !important; }
}
