/* Elysia Wages — design system
   Palette drawn from the New York Blaze covers: ice white, ink serif, blush florals. */

:root {
  --ice: #f7f5f2;
  --ice-deep: #eeebe6;
  --ice-card: #fdfcfa;
  --ink: #221e1d;
  --ink-soft: #5b5350;
  --ink-faint: #8a817d;
  --blush: #e3aab8;
  --blush-deep: #c2758b;
  --blush-ink: #a05a70;
  --line: rgba(34, 30, 29, 0.12);
  --line-soft: rgba(34, 30, 29, 0.07);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Jost", "Segoe UI", sans-serif;
  --shadow-card: 0 1px 2px rgba(34,30,29,.05), 0 12px 32px -12px rgba(34,30,29,.18);
  --shadow-cover: 0 2px 4px rgba(34,30,29,.12), 0 24px 48px -16px rgba(34,30,29,.35);
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--ice);
  background-image:
    radial-gradient(1200px 600px at 85% -5%, rgba(227,170,184,.16), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(255,255,255,.9), transparent 55%),
    radial-gradient(700px 700px at 50% 110%, rgba(227,170,184,.10), transparent 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--blush-ink); text-decoration: none; transition: color .25s var(--ease); }
a:hover { color: var(--ink); }

:focus-visible { outline: 2px solid var(--blush-deep); outline-offset: 3px; border-radius: 1px; }

/* subtle paper grain — premium, tactile, barely-there */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 999; pointer-events: none;
  opacity: .035; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (prefers-reduced-motion: reduce) { body::before { display: none; } }

body { animation: page-in .6s var(--ease) both; }
@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { body { animation: none; } }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- Type ---------- */

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; }

.display {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 700;
}
.display em { font-style: italic; color: var(--blush-deep); }

h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.4rem; }

.eyebrow {
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--blush-ink);
  margin-bottom: 1.1rem;
}

.lede { font-size: 1.2rem; font-weight: 300; color: var(--ink-soft); max-width: 58ch; }

.muted { color: var(--ink-soft); }
.small { font-size: .9rem; }

/* ---------- Nav ---------- */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,245,242,.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.brand {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--ink);
}
.brand span { color: var(--blush-deep); }

.nav-links { display: flex; align-items: center; gap: 2.2rem; list-style: none; }
.nav-links a {
  font-size: .95rem; font-weight: 500; letter-spacing: .06em;
  color: var(--ink-soft);
  position: relative; padding: 4px 0;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--blush-deep);
  transform: scaleX(0); transform-origin: right;
  transition: transform .35s var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after {
  transform: scaleX(1); transform-origin: left;
}

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; margin-right: -8px;
  flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: var(--ink); transition: all .3s var(--ease); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--sans); font-size: .92rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  padding: 15px 34px;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.btn:hover { background: var(--ink); color: var(--ice); transform: translateY(-2px); }

.btn-solid { background: var(--ink); color: var(--ice); }
.btn-solid:hover { background: var(--blush-deep); border-color: var(--blush-deep); color: #fff; }

.btn-blush { border-color: var(--blush-deep); color: var(--blush-ink); }
.btn-blush:hover { background: var(--blush-deep); border-color: var(--blush-deep); color: #fff; }

/* ---------- Hero ---------- */

.hero { position: relative; padding: clamp(64px, 10vw, 128px) 0 clamp(56px, 8vw, 104px); overflow: hidden; }
.hero-video {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: center 35%;
}
.hero-scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(247,245,242,.42) 0%, rgba(247,245,242,.6) 55%, var(--ice) 96%),
    linear-gradient(100deg, rgba(247,245,242,.94) 0%, rgba(247,245,242,.66) 40%, rgba(247,245,242,.32) 68%);
}
.hero #icefx { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; pointer-events: none; }
.hero .hero-grid { position: relative; z-index: 3; }
.hero-copy h1, .hero-copy .eyebrow, .hero-copy .lede {
  text-shadow: 0 2px 28px rgba(247,245,242,.8), 0 1px 2px rgba(247,245,242,.6);
}
@media (max-width: 900px) {
  .hero-scrim {
    background:
      linear-gradient(180deg, rgba(247,245,242,.55) 0%, rgba(247,245,242,.7) 45%, var(--ice) 96%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
}
.hero-grid {
  display: grid; grid-template-columns: 1.1fr .9fr;
  gap: clamp(40px, 6vw, 88px); align-items: center;
}
.hero-copy .lede { margin: 1.6rem 0 2.4rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

/* ---------- Rating badge ---------- */

.rating { display: inline-flex; align-items: center; gap: 9px; }
.rating svg { width: 15px; height: 15px; fill: var(--blush-deep); flex-shrink: 0; }
.rating-value { font-family: var(--serif); font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.rating-count { font-size: .84rem; color: var(--ink-soft); }
.hero-rating { margin-top: 1.5rem; text-shadow: 0 2px 20px rgba(247,245,242,.85); }
.book-card .rating, .book-hero .rating { margin-bottom: .7rem; }

/* ---------- Rating badge ---------- */

.rating { display: inline-flex; align-items: center; gap: 9px; }
.rating svg { width: 15px; height: 15px; fill: var(--blush-deep); flex-shrink: 0; }
.rating-value { font-family: var(--serif); font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.rating-count { font-size: .85rem; color: var(--ink-soft); }
.hero-rating { margin-top: 1.4rem; }
.book-card .rating, .book-hero .rating { margin-bottom: .6rem; }

.cover-fan { position: relative; height: clamp(360px, 40vw, 520px); }
.cover-fan img {
  position: absolute; width: clamp(180px, 21vw, 270px);
  box-shadow: var(--shadow-cover);
  transition: transform .5s var(--ease);
}
.cover-fan .fan-1 { left: 0; top: 8%; transform: rotate(-8deg); z-index: 1; }
.cover-fan .fan-2 { left: 26%; top: 0; transform: rotate(-1deg); z-index: 2; }
.cover-fan .fan-3 { left: 52%; top: 10%; transform: rotate(7deg); z-index: 3; }
.cover-fan:hover .fan-1 { transform: rotate(-11deg) translateX(-14px); }
.cover-fan:hover .fan-2 { transform: rotate(0deg) translateY(-12px); }
.cover-fan:hover .fan-3 { transform: rotate(10deg) translateX(14px); }

/* ---------- Sections ---------- */

.section { padding: clamp(56px, 8vw, 108px) 0; }
.section-line { border-top: 1px solid var(--line-soft); }
.section-head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head p { margin-top: 1rem; color: var(--ink-soft); }

.ice { background: linear-gradient(180deg, var(--ice-deep), var(--ice)); }

/* ---------- New release feature ---------- */

.feature {
  display: grid; grid-template-columns: minmax(240px, 340px) 1fr;
  gap: clamp(40px, 6vw, 88px); align-items: start;
}
.feature-copy { padding-top: clamp(4px, 1.5vw, 20px); }
.feature-cover { position: relative; }
.feature-cover img { box-shadow: var(--shadow-cover); transition: transform .5s var(--ease); }
.feature-cover:hover img { transform: translateY(-8px); }
.feature-badge {
  position: absolute; top: -16px; right: -16px; z-index: 2;
  background: var(--blush-deep); color: #fff;
  font-size: .72rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  padding: 10px 18px;
}
.feature-copy h2 { margin-bottom: .4rem; }
.feature-copy .book-series { margin-bottom: 1.4rem; }
.feature-copy blockquote {
  font-family: var(--serif); font-style: italic; font-size: 1.25rem; line-height: 1.5;
  color: var(--ink-soft);
  border-left: 2px solid var(--blush); padding-left: 1.4rem;
  margin: 1.6rem 0 2rem;
}

.book-series {
  font-size: .82rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase;
  color: var(--ink-faint);
}

/* ---------- Book cards ---------- */

.book-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3.5vw, 48px);
}
.book-card {
  background: var(--ice-card);
  border: 1px solid var(--line-soft);
  padding: clamp(24px, 3vw, 36px);
  display: flex; flex-direction: column; align-items: center; text-align: center;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.book-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); }
.book-card img {
  width: min(100%, 230px);
  box-shadow: var(--shadow-cover);
  margin-bottom: 1.8rem;
  transition: transform .4s var(--ease);
}
.book-card:hover img { transform: scale(1.02); }
.book-card .book-series { margin-bottom: .5rem; }
.book-card h3 { font-size: 1.5rem; margin-bottom: .7rem; }
.book-card h3 a { color: var(--ink); }
.book-card h3 a:hover { color: var(--blush-ink); }
.book-card p.desc { font-size: .97rem; color: var(--ink-soft); flex: 1; margin-bottom: 1.4rem; }
.book-card .read-more {
  font-size: .85rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
}

/* ---------- Book detail ---------- */

.book-hero { display: grid; grid-template-columns: minmax(250px, 360px) 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.book-hero .cover { box-shadow: var(--shadow-cover); position: sticky; top: 110px; }
.book-hero h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); margin: .4rem 0 1rem; }
.book-meta {
  display: flex; flex-wrap: wrap; gap: .6rem 2rem;
  font-size: .92rem; color: var(--ink-soft);
  border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
  padding: 1rem 0; margin: 1.6rem 0;
}
.book-meta strong { font-weight: 500; color: var(--ink); }
.blurb p { margin-bottom: 1.1rem; max-width: 62ch; }
.tropes { display: flex; flex-wrap: wrap; gap: 10px; margin: 1.8rem 0 2.2rem; }
.trope {
  font-size: .8rem; font-weight: 500; letter-spacing: .08em;
  color: var(--blush-ink);
  border: 1px solid var(--blush);
  padding: 7px 16px; border-radius: 100px;
  background: rgba(227,170,184,.08);
}
.buy-row { display: flex; flex-wrap: wrap; gap: 14px; }

.crumbs { font-size: .85rem; letter-spacing: .04em; color: var(--ink-faint); margin-bottom: 2.4rem; }
.crumbs a { color: var(--ink-faint); }
.crumbs a:hover { color: var(--blush-ink); }

/* ---------- About ---------- */

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.about-copy p { margin-bottom: 1.2rem; max-width: 58ch; }
.pull-quote {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.4;
  color: var(--ink);
  border-left: 2px solid var(--blush); padding-left: 1.6rem;
  margin: 2rem 0;
}

/* ---------- Contact ---------- */

.contact-card {
  background: var(--ice-card); border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-card);
  padding: clamp(32px, 5vw, 64px);
  max-width: 720px;
}
.contact-email {
  font-family: var(--serif); font-size: clamp(1.3rem, 2.6vw, 1.9rem); font-weight: 600;
  color: var(--ink); word-break: break-all;
}
.contact-email:hover { color: var(--blush-ink); }
.contact-list { list-style: none; margin-top: 2rem; }
.contact-list li { padding: 1rem 0; border-top: 1px solid var(--line-soft); display: flex; gap: 1.2rem; align-items: baseline; }
.contact-list .label { min-width: 130px; font-size: .8rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-faint); }

/* ---------- Socials ---------- */

.social-row { display: flex; flex-wrap: wrap; gap: 12px; }
.social-row a {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .88rem; font-weight: 500; letter-spacing: .1em;
  color: var(--ink-soft);
  border: 1px solid var(--line); border-radius: 100px;
  padding: 9px 20px;
  transition: all .3s var(--ease);
}
.social-row a:hover { border-color: var(--blush-deep); color: var(--blush-ink); transform: translateY(-2px); }
.social-row svg { width: 15px; height: 15px; fill: currentColor; }

/* ---------- CTA band ---------- */

.cta-band { text-align: center; }
.cta-band .inner {
  max-width: 680px; margin: 0 auto;
  padding: clamp(48px, 7vw, 88px) 24px;
}
.cta-band h2 { margin-bottom: 1rem; }
.cta-band p { color: var(--ink-soft); margin-bottom: 2.2rem; }

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--line-soft);
  padding: 48px 0 40px;
  background: var(--ice-deep);
}
.foot-grid { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 1.6rem; list-style: none; }
.foot-nav a { font-size: .88rem; color: var(--ink-soft); letter-spacing: .05em; }
.foot-nav a:hover { color: var(--blush-ink); }
.foot-social { display: flex; gap: 14px; }
.foot-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line); color: var(--ink-soft);
  transition: all .3s var(--ease);
}
.foot-social a:hover { border-color: var(--blush-deep); color: var(--blush-ink); transform: translateY(-2px); background: rgba(227,170,184,.08); }
.foot-social svg { width: 14px; height: 14px; fill: currentColor; }
.copyright { font-size: .85rem; color: var(--ink-faint); width: 100%; margin-top: 20px; }

/* ---------- Reveal ---------- */

html.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero-grid, .feature, .book-hero, .about-grid { grid-template-columns: 1fr; }
  .book-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
  .cover-fan { height: clamp(300px, 60vw, 420px); max-width: 480px; }
  .cover-fan img { width: clamp(150px, 30vw, 220px); }
  .book-hero .cover { position: static; max-width: 300px; }
  .hero { padding-top: 48px; }
}

@media (max-width: 760px) {
  .nav-links {
    display: flex;
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--ice);
    border-bottom: 1px solid var(--line);
    padding: 0 24px;
    max-height: 0; overflow: hidden; opacity: 0;
    border-bottom-width: 0;
    transition: max-height .4s var(--ease), opacity .3s var(--ease), padding .4s var(--ease), border-bottom-width .4s var(--ease);
  }
  .nav-links.open { max-height: 320px; opacity: 1; padding: 8px 24px 16px; border-bottom-width: 1px; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 14px 0; font-size: 1.05rem; }
  .nav-links a::after { display: none; }
  .nav-toggle { display: flex; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
}
