/* Self-hosted fonts (latin + latin-ext). Cormorant Garamond for headings, Literata for text. */

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/cormorant-garamond-latin-ext-400-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/cormorant-garamond-latin-400-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/cormorant-garamond-latin-ext-500-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/cormorant-garamond-latin-500-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/cormorant-garamond-latin-ext-600-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/cormorant-garamond-latin-600-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/cormorant-garamond-latin-ext-700-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/cormorant-garamond-latin-700-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/cormorant-garamond-latin-ext-400-italic.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/cormorant-garamond-latin-400-italic.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/cormorant-garamond-latin-ext-500-italic.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/cormorant-garamond-latin-500-italic.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/cormorant-garamond-latin-ext-600-italic.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/cormorant-garamond-latin-600-italic.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: 'Literata';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/literata-latin-ext-wght-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
  font-family: 'Literata';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/literata-latin-wght-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: 'Literata';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/literata-latin-ext-wght-italic.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
  font-family: 'Literata';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/literata-latin-wght-italic.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* ==========================================================================
   Azélie Rainbow — Author Website
   Design system: dark romantic fantasy — deep jewel tones + antique gold
   Fonts: Cormorant Garamond (display) / Literata (body)
   ========================================================================== */

/* -------------------------------------------------------------------------
   0. Tokens
   ------------------------------------------------------------------------- */
:root {
  /* colour */
  --midnight:      #170D1C;   /* base background — near-black aubergine */
  --midnight-deep: #0E0812;   /* deepest panels / footer */
  --wine:          #5A1631;   /* primary accent — deep wine */
  --wine-bright:   #8A2142;   /* wine hover state */
  --amethyst:      #2E1D3E;   /* secondary panel background */
  --amethyst-line: #4A3260;   /* hairline on amethyst panels */
  --gold:          #C6A15B;   /* antique gold — accents, ctas */
  --gold-bright:   #E4C888;   /* gold hover / active */
  --ivory:         #F3E8D8;   /* primary text on dark */
  --muted:         #BBA9BE;   /* secondary text, muted lavender-grey */
  --hairline:      rgba(198, 161, 91, 0.28);

  /* type */
  --font-display: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Literata', 'Iowan Old Style', Georgia, serif;

  /* scale (fluid) */
  --step-1: clamp(0.85rem, 0.82rem + 0.15vw, 0.95rem);
  --step0:  clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step1:  clamp(1.2rem, 1.1rem + 0.45vw, 1.5rem);
  --step2:  clamp(1.5rem, 1.35rem + 0.75vw, 2rem);
  --step3:  clamp(2rem, 1.7rem + 1.4vw, 2.9rem);
  --step4:  clamp(2.6rem, 2.1rem + 2.4vw, 4.2rem);
  --step5:  clamp(3.2rem, 2.4rem + 3.8vw, 5.6rem);

  /* layout */
  --content-max: 74rem;
  --measure: 62ch;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 2px;

  /* motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* -------------------------------------------------------------------------
   1. Reset
   ------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { min-height: 100vh; }
img, picture, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul[class], ol[class] { list-style: none; padding: 0; }

@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;
    scroll-behavior: auto !important;
  }
}

/* -------------------------------------------------------------------------
   2. Base
   ------------------------------------------------------------------------- */
body {
  background: var(--midnight);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: var(--step0);
  line-height: 1.65;
  font-weight: 400;
}

body::before {
  /* faint vignette + grain-like radial wash, fixed, subtle */
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(90, 22, 49, 0.35), transparent 60%),
    radial-gradient(ellipse 70% 50% at 100% 100%, rgba(20, 61, 52, 0.25), transparent 60%);
}

main, header, footer { position: relative; z-index: 1; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  color: var(--ivory);
  letter-spacing: 0.01em;
}

h1 { font-size: var(--step5); font-weight: 700; }
h2 { font-size: var(--step3); }
h3 { font-size: var(--step2); }
h4 { font-size: var(--step1); font-family: var(--font-body); font-weight: 600; }

p { max-width: var(--measure); }
p + p { margin-top: 1.1em; }

.italic { font-style: italic; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

.visually-hidden {
  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: absolute;
  left: 1rem; top: -3rem;
  background: var(--gold);
  color: var(--midnight-deep);
  padding: 0.6em 1em;
  z-index: 100;
  transition: top 0.2s var(--ease);
  font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* -------------------------------------------------------------------------
   3. Layout helpers
   ------------------------------------------------------------------------- */
.wrap {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.band {
  padding-block: clamp(3.5rem, 6vw, 6.5rem);
  border-top: 1px solid var(--hairline);
}
.band--midnight { background: var(--midnight); }
.band--amethyst { background: var(--amethyst); }
.band--deep { background: var(--midnight-deep); }

.band-head {
  max-width: 40rem;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}
.band-head--center { margin-inline: auto; text-align: center; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--step1);
  color: var(--gold-bright);
  margin-bottom: 0.6em;
}
.kicker svg { width: 1.1em; height: 1.1em; flex: none; }

.lede {
  font-size: var(--step1);
  color: var(--muted);
  margin-top: 0.75em;
}

/* ornamental divider, reused as the site's recurring motif */
.flourish {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--gold);
  margin-block: 1.5rem;
}
.flourish::before,
.flourish::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, var(--hairline) 20%, var(--hairline) 80%, transparent);
}
.flourish svg { width: 1.3rem; height: 1.3rem; flex: none; }
.flourish--start::before { display: none; }
.flourish--start { justify-content: flex-start; }
.flourish--start::after { flex: 1; }

/* -------------------------------------------------------------------------
   4. Buttons & links
   ------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.85em 1.7em;
  font-family: var(--font-body);
  font-size: var(--step-1);
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.btn-primary {
  background: var(--gold);
  color: var(--midnight-deep);
}
.btn-primary:hover, .btn-primary:focus-visible {
  background: var(--gold-bright);
  transform: translateY(-2px);
}
.btn-ghost {
  border-color: var(--hairline);
  color: var(--ivory);
}
.btn-ghost:hover, .btn-ghost:focus-visible {
  border-color: var(--gold);
  color: var(--gold-bright);
}
.btn-small { padding: 0.6em 1.2em; font-size: var(--step-1); }

.text-link {
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 0.1em;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.text-link:hover, .text-link:focus-visible {
  color: var(--gold-bright);
  border-color: var(--gold-bright);
}

/* -------------------------------------------------------------------------
   5. Header & navigation
   ------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
/* The frosted background lives on a pseudo-element: a backdrop-filter on the
   header itself would make it the containing block of the position:fixed
   mobile menu, shrinking the menu to header height and causing sideways scroll. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(14, 8, 18, 0.82);
  backdrop-filter: blur(10px);
}
.site-header.is-scrolled {
  border-bottom-color: var(--hairline);
  box-shadow: 0 12px 30px -18px rgba(0,0,0,0.7);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.1rem;
  gap: 1.5rem;
}

.wordmark {
  font-family: var(--font-display);
  font-size: var(--step2);
  font-weight: 700;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  color: var(--ivory);
}
.wordmark em {
  font-style: italic;
  color: var(--gold-bright);
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 2vw, 2.1rem);
}
.nav-links a {
  font-size: var(--step-1);
  letter-spacing: 0.02em;
  padding-block: 0.3em;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--gold-bright); }
.nav-links a[aria-current="page"] {
  color: var(--gold-bright);
  border-color: var(--gold);
}

.nav-cta { flex: none; }
.nav-cta-mobile { display: none; } /* shown only inside the mobile menu, see media query below */

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 0.4rem;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--ivory);
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Language selector (top right) — a <details> dropdown, so it works without JS */
.nav-links { margin-left: auto; }
.nav .wordmark + .lang-switch { margin-left: auto; } /* 404 page: no nav links */
.lang-switch { position: relative; flex: none; }
.lang-switch summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.65rem;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  color: var(--ivory);
  font-size: var(--step-1);
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary:hover,
.lang-switch details[open] summary { color: var(--gold-bright); border-color: var(--gold); }
.lang-switch summary svg { width: 1.1em; height: 1.1em; flex: none; }
.lang-switch .lang-chevron { transition: transform 0.2s var(--ease); }
.lang-switch details[open] .lang-chevron { transform: rotate(180deg); }
.lang-switch ul {
  list-style: none;
  margin: 0;
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  min-width: 9.5rem;
  padding: 0.35rem;
  background: var(--midnight-deep);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: 0 18px 36px -18px rgba(0, 0, 0, 0.8);
  z-index: 60;
}
.lang-switch li a {
  display: block;
  padding: 0.55rem 0.85rem;
  font-size: var(--step-1);
  color: var(--muted);
  border-radius: var(--radius);
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.lang-switch li a:hover,
.lang-switch li a:focus-visible { color: var(--ivory); background: var(--amethyst); }
.lang-switch li a[aria-current="true"] { color: var(--gold-bright); }
.lang-switch li a[aria-current="true"]::after { content: " \2713"; }

@media (max-width: 860px) {
  .nav { gap: 0.9rem; }
  .lang-switch { order: 2; margin-left: auto; }
  .nav-toggle { display: inline-flex; order: 3; position: relative; z-index: 2; } /* stays above the open menu */
  .nav-links {
    position: fixed;
    inset: 0 0 0 30%;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem clamp(1.5rem, 8vw, 3rem);
    background: var(--midnight-deep);
    border-left: 1px solid var(--hairline);
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
  }
  .nav-links.is-open { transform: translateX(0); }
  .nav-links a { font-size: var(--step1); }
  .nav-cta { display: none; }
  .nav-links .nav-cta-mobile { display: inline-flex; margin-top: 1rem; }
}

/* -------------------------------------------------------------------------
   6. Hero
   ------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: clip;
  padding-block: clamp(4.5rem, 12vw, 9rem) clamp(4rem, 9vw, 7rem);
}

.hero-embers {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-embers span {
  position: absolute;
  bottom: -10%;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0;
  animation: rise 9s linear infinite;
}

@keyframes rise {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: 0.8; }
  90% { opacity: 0.35; }
  100% { transform: translateY(-70vh) translateX(var(--drift, 20px)); opacity: 0; }
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 68rem; /* wide enough for the longer French headline on two lines */
}

.hero-eyebrow {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--step1);
  color: var(--gold-bright);
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-size: var(--step5);
}
.hero h1 .line {
  display: block;
  overflow: hidden;
}
.hero h1 .line span {
  display: block;
  text-wrap: balance;
  transform: translateY(110%);
  animation: reveal 0.9s var(--ease) forwards;
}
.hero h1 .line:nth-child(2) span { animation-delay: 0.12s; }

@keyframes reveal {
  to { transform: translateY(0); }
}

.hero-tagline {
  font-size: var(--step1);
  color: var(--muted);
  margin-top: 1.3rem;
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.4rem;
}

.hero-page {
  /* smaller banner-style hero used on inner pages */
  padding-block: clamp(3.5rem, 8vw, 5.5rem) clamp(2.5rem, 5vw, 3.5rem);
}
.hero-page h1 { font-size: var(--step4); }
.hero-page .lede { max-width: 40rem; }

/* -------------------------------------------------------------------------
   8. Featured book / split panels
   ------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: minmax(14rem, 22rem) 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split.split--reverse { grid-template-columns: 1fr minmax(14rem, 22rem); }
.split.split--reverse .split-media { order: 2; }

@media (max-width: 780px) {
  .split, .split.split--reverse { grid-template-columns: 1fr; }
  .split.split--reverse .split-media { order: 0; }
}

.split-media {
  aspect-ratio: 2 / 3;
  background: linear-gradient(155deg, var(--amethyst), var(--midnight-deep));
  border: 1px solid var(--hairline);
  position: relative;
}
.split-media--square { aspect-ratio: 1 / 1; }
.split-media img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.split-media .corner {
  position: absolute; width: 22px; height: 22px;
  border: 1px solid var(--gold);
  opacity: 0.85;
}
.split-media .corner.tl { top: 10px; left: 10px; border-right: none; border-bottom: none; }
.split-media .corner.br { bottom: 10px; right: 10px; border-left: none; border-top: none; }

.spice {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: var(--step-1);
  color: var(--gold-bright);
  margin-top: 0.9rem;
}
.spice svg { width: 1rem; height: 1rem; }
.spice svg.is-off { color: var(--amethyst-line); }

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
.tag {
  font-size: var(--step-1);
  color: var(--muted);
  border: 1px solid var(--hairline);
  padding: 0.3em 0.85em;
  letter-spacing: 0.02em;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-size: var(--step-1);
  color: var(--gold-bright);
  border: 1px solid var(--gold);
  padding: 0.3em 0.9em;
  letter-spacing: 0.02em;
}
.badge svg { width: 0.85em; height: 0.85em; }

.book-foot--buy { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
.buy-row { display: flex; gap: 0.6rem; flex-wrap: wrap; }

/* -------------------------------------------------------------------------
   9. Content advisory banner
   ------------------------------------------------------------------------- */
.advisory {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--midnight-deep);
  border: 1px solid var(--wine-bright);
  border-left: 4px solid var(--wine-bright);
  padding: 1.1rem 1.4rem;
  max-width: 42rem;
}
.advisory svg { width: 1.4rem; height: 1.4rem; flex: none; color: var(--gold); margin-top: 0.1rem; }
.advisory strong { color: var(--ivory); display: block; margin-bottom: 0.2rem; }
.advisory p { color: var(--muted); font-size: var(--step-1); }

/* spice legend */
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1rem, 3vw, 2.25rem);
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hairline);
}
.legend-item { display: flex; align-items: center; gap: 0.6rem; font-size: var(--step-1); color: var(--muted); }
.legend-item .spice { margin-top: 0; }

/* -------------------------------------------------------------------------
   10. Book catalog (library-card style)
   ------------------------------------------------------------------------- */
.series-block + .series-block { margin-top: clamp(3rem, 6vw, 4.5rem); }
.series-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.series-head h3 { font-size: var(--step2); }
.series-head span { color: var(--muted); font-size: var(--step-1); font-style: italic; font-family: var(--font-display); }

.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: clamp(1.5rem, 3vw, 2.25rem);
}

.book-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--hairline);
  background: linear-gradient(180deg, rgba(74,50,96,0.18), transparent 40%);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.book-card:hover { border-color: var(--gold); transform: translateY(-3px); }

.book-cover {
  aspect-ratio: 2 / 3;
  background: linear-gradient(155deg, var(--amethyst), var(--midnight-deep));
  border-bottom: 1px solid var(--hairline);
  position: relative;
}
.book-cover img { width: 100%; height: 100%; object-fit: cover; }
.book-cover .corner { position: absolute; width: 16px; height: 16px; border: 1px solid var(--gold); opacity: 0.8; }
.book-cover .corner.tl { top: 8px; left: 8px; border-right: none; border-bottom: none; }
.book-cover .corner.br { bottom: 8px; right: 8px; border-left: none; border-top: none; }

.book-body { padding: 1.25rem 1.35rem 1.5rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.book-body h3 { font-family: var(--font-display); font-size: var(--step1); font-weight: 600; }
.book-body .book-kind { font-size: var(--step-1); color: var(--gold-bright); font-style: italic; font-family: var(--font-display); }
.book-body p.blurb { font-size: var(--step-1); color: var(--muted); }
.book-body .book-foot { margin-top: auto; padding-top: 0.75rem; display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }

/* -------------------------------------------------------------------------
   12. Newsletter band
   ------------------------------------------------------------------------- */
.newsletter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem;
}
.newsletter-copy { max-width: 32rem; }
.newsletter-copy p { color: var(--muted); }

/* -------------------------------------------------------------------------
   13. Stat grid (about page)
   ------------------------------------------------------------------------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 2rem;
  margin-top: 1rem;
}
.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: var(--step3);
  color: var(--gold-bright);
  font-weight: 700;
}
.stat span {
  font-size: var(--step-1);
  color: var(--muted);
}

/* quirks list */
.quirks {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}
.quirks li {
  display: flex;
  gap: 0.9rem;
  padding-block: 0.9rem;
  border-top: 1px solid var(--hairline);
  color: var(--muted);
}
.quirks li:last-child { border-bottom: 1px solid var(--hairline); }
.quirks strong { color: var(--ivory); font-weight: 600; min-width: 9rem; flex: none; }
.quirks span { min-width: 0; }
/* Longer labels (e.g. German) stack above their text on narrow screens. */
@media (max-width: 560px) {
  .quirks li { flex-direction: column; gap: 0.25rem; }
  .quirks strong { min-width: 0; }
}

.pull {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--step2);
  line-height: 1.35;
  color: var(--gold-bright);
  border-left: 2px solid var(--gold);
  padding-left: 1.5rem;
  max-width: 32rem;
}

/* -------------------------------------------------------------------------
   15. Forms
   ------------------------------------------------------------------------- */
.form-grid { display: grid; gap: 1.25rem; max-width: 34rem; }
.form-row { display: grid; gap: 1.25rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

.field { display: grid; gap: 0.5rem; }
.field label { font-size: var(--step-1); color: var(--muted); }
.field input,
.field select,
.field textarea {
  background: var(--midnight-deep);
  border: 1px solid var(--hairline);
  color: var(--ivory);
  padding: 0.75em 0.9em;
  font-size: var(--step0);
  border-radius: var(--radius);
  transition: border-color 0.2s var(--ease);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--gold);
  outline: none;
}
.field textarea { resize: vertical; min-height: 8rem; }

.form-note { font-size: var(--step-1); color: var(--muted); }
.form-status { font-size: var(--step-1); margin-top: 0.5rem; min-height: 1.4em; }
.form-status.is-success { color: var(--gold-bright); }
.form-status.is-error { color: #e08585; }

/* -------------------------------------------------------------------------
   16. Contact info & FAQ accordion
   ------------------------------------------------------------------------- */
.info-list { display: grid; gap: 1.25rem; margin-top: 1.5rem; }
.info-list dt { font-size: var(--step-1); color: var(--muted); }
.info-list dd { font-family: var(--font-display); font-size: var(--step1); color: var(--gold-bright); margin-top: 0.2rem; }

.faq { border-top: 1px solid var(--hairline); }
.faq-item { border-bottom: 1px solid var(--hairline); }
.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.25rem;
  font-family: var(--font-display);
  font-size: var(--step1);
  font-weight: 600;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus {
  flex: none;
  width: 1.3rem; height: 1.3rem;
  position: relative;
  color: var(--gold);
}
.faq-item summary .plus::before,
.faq-item summary .plus::after {
  content: "";
  position: absolute;
  background: currentColor;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.faq-item summary .plus::before { width: 100%; height: 1px; }
.faq-item summary .plus::after { width: 1px; height: 100%; transition: transform 0.2s var(--ease); }
.faq-item[open] summary .plus::after { transform: translate(-50%, -50%) rotate(90deg) scaleX(0); }
.faq-item p { color: var(--muted); padding-bottom: 1.4rem; max-width: 40rem; }

/* -------------------------------------------------------------------------
   17. Social icons
   ------------------------------------------------------------------------- */
.social-row { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.social-row a {
  width: 2.6rem; height: 2.6rem;
  display: grid; place-items: center;
  border: 1px solid var(--hairline);
  color: var(--muted);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.social-row a:hover, .social-row a:focus-visible { color: var(--gold-bright); border-color: var(--gold); }
.social-row svg { width: 1.15rem; height: 1.15rem; }

/* -------------------------------------------------------------------------
   18. Footer
   ------------------------------------------------------------------------- */
.site-footer { background: var(--midnight-deep); border-top: 1px solid var(--hairline); }
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  padding-block: clamp(3rem, 6vw, 4rem);
}
@media (max-width: 780px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-top { grid-template-columns: 1fr; } }

.footer-brand p { color: var(--muted); font-size: var(--step-1); margin-top: 0.75rem; max-width: 22rem; }
.footer-col .footer-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--step0);
  color: var(--gold-bright);
  margin-bottom: 1rem;
}
.footer-col ul { display: grid; gap: 0.65rem; list-style: none; padding: 0; margin: 0; }
.footer-col a { color: var(--muted); font-size: var(--step-1); transition: color 0.2s var(--ease); }
.footer-col a:hover, .footer-col a:focus-visible { color: var(--ivory); }

.footer-bottom {
  border-top: 1px solid var(--hairline);
  padding-block: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  font-size: var(--step-1);
  color: var(--muted);
}

/* -------------------------------------------------------------------------
   19. Utility
   ------------------------------------------------------------------------- */
.mt-0 { margin-top: 0 !important; }
.center { text-align: center; }
.max-measure { max-width: var(--measure); }

/* Contact page: form + details side by side, stacked on narrow screens */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 780px) {
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Footer legal row: privacy link + "Cookie settings" button that looks like a link */
.footer-legal { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: baseline; }
.footer-legal a, .link-button {
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: var(--hairline);
  text-underline-offset: 0.2em;
  transition: color 0.2s var(--ease);
}
.footer-legal .link-button, .link-button { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); cursor: pointer; }
.footer-legal a:hover, .footer-legal a:focus-visible,
.footer-legal .link-button:hover, .footer-legal .link-button:focus-visible, .link-button:hover, .link-button:focus-visible { color: var(--ivory); }

/* Privacy / legal text pages */
.legal { max-width: 46rem; }
.legal h2 { font-size: var(--step2); margin: 2.5rem 0 0.75rem; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--ivory); }
.legal ul { margin: 0.75rem 0 1rem; padding-left: 1.25rem; list-style: disc; display: grid; gap: 0.5rem; }
.legal a { color: var(--gold-bright); text-decoration: underline; text-underline-offset: 0.2em; }
.legal .updated { color: var(--muted); font-size: var(--step-1); margin-top: 2.5rem; }

button.btn-ghost { background: transparent; cursor: pointer; } /* a <button> otherwise keeps the browser's light grey */

/* "Included with Kindle Unlimited" line + small edition notes */
.ku-line { color: var(--gold-bright); font-style: italic; margin-top: 1rem; }
.book-body p.ku-meta { font-size: 0.9rem; color: var(--gold-bright); margin-top: -0.4rem; }
