/* ==========================================================================
   Maureen McQuerry — site styles
   Classic · clean · a little whimsical
   Palette: forest green & gilt gold (from The Telling Stone cover)
   Display: Cormorant Garamond · Body: Outfit
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */

:root {
  /* From The Telling Stone cover: cream parchment, forest green, gilt gold */
  --paper: #faf7f0;
  --paper-warm: #f0ebe0;
  --ink: #1a2e24;
  --ink-soft: #4a5c52;
  --line: #ddd6c8;
  --line-strong: #c4baa8;

  /* Forest green — title & serpent from the cover */
  --green: #2a5640;
  --green-deep: #1a3a2a;
  --green-soft: #e5efe8;
  --moss: #5c7d66;

  /* Gilt gold — banner, stone glow, ornaments */
  --gold: #c4a24a;
  --gold-bright: #d4b45c;
  --gold-soft: #f3ead0;

  --on-green: #f7f5ef;

  /* Legacy aliases (blue → green) so older class hooks still resolve */
  --blue: var(--green);
  --blue-deep: var(--green-deep);
  --blue-soft: var(--green-soft);
  --on-blue: var(--on-green);

  --font-display: "Cormorant Garamond", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: "Outfit", system-ui, -apple-system, sans-serif;

  --step-xs: 0.75rem;
  --step-sm: 0.875rem;
  --step-body: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --step-lead: clamp(1.125rem, 1.05rem + 0.35vw, 1.3rem);
  --step-h3: clamp(1.35rem, 1.2rem + 0.6vw, 1.65rem);
  --step-h2: clamp(1.85rem, 1.5rem + 1.4vw, 2.55rem);
  --step-h1: clamp(2.4rem, 1.8rem + 2.4vw, 3.5rem);
  --step-hero: clamp(2.75rem, 2rem + 3.2vw, 4.25rem);

  --container: 1080px;
  --container-narrow: 680px;
  --gutter: clamp(1.25rem, 4.5vw, 2.5rem);
  --section-y: clamp(3.25rem, 6.5vw, 5.75rem);
  --header-h: 4.25rem;

  --radius: 6px;
  --radius-lg: 14px;
  --shadow: 0 12px 40px -20px rgba(26, 46, 36, 0.22);
  --shadow-soft: 0 8px 28px -16px rgba(26, 46, 36, 0.14);
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-body);
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

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

h1 {
  font-size: var(--step-h1);
  font-weight: 500;
}

h2 {
  font-size: var(--step-h2);
}

h3 {
  font-size: var(--step-h3);
}

h4 {
  font-size: 1.2rem;
  font-weight: 600;
}

p {
  color: var(--ink-soft);
}

strong {
  font-weight: 600;
  color: var(--ink);
}

em {
  font-style: italic;
}

::selection {
  background: var(--green-soft);
  color: var(--ink);
}

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

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--gutter);
  z-index: 1000;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  font-size: var(--step-sm);
  font-weight: 500;
}

.skip-link:focus {
  top: 0.75rem;
}

/* --------------------------------------------------------------------------
   3. Layout
   -------------------------------------------------------------------------- */

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.container--narrow {
  width: min(100% - 2 * var(--gutter), var(--container-narrow));
  margin-inline: auto;
}

.section {
  padding-block: var(--section-y);
}

.section--soft {
  background: var(--paper-warm);
}

.section--green,
.section--blue {
  background: var(--green);
  color: var(--on-green);
}

.section--green h2,
.section--green h3,
.section--green h4,
.section--green strong,
.section--blue h2,
.section--blue h3,
.section--blue h4,
.section--blue strong {
  color: var(--on-green);
}

.section--green p,
.section--green .lede,
.section--blue p,
.section--blue .lede {
  color: rgba(247, 245, 239, 0.88);
}

.section-head {
  max-width: 36rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head p {
  margin-top: 0.85rem;
}

/* --------------------------------------------------------------------------
   4. Header & nav
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(252, 251, 249, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition:
    border-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 20px -12px rgba(34, 38, 46, 0.12);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1.5rem;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
  line-height: 1;
  white-space: nowrap;
}

.brand em {
  font-style: italic;
  font-weight: 500;
  color: var(--green);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.75rem;
  list-style: none;
}

.nav-links a {
  font-size: var(--step-sm);
  font-weight: 450;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 0.35rem 0;
  position: relative;
  transition: color 0.2s var(--ease);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s 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);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  height: 1.5px;
  width: 100%;
  background: var(--ink);
  border-radius: 1px;
  transition:
    transform 0.25s var(--ease),
    opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

@media (max-width: 720px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem var(--gutter) 1.25rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition:
      transform 0.3s var(--ease),
      opacity 0.25s var(--ease);
  }

  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    display: block;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
    text-transform: none;
    letter-spacing: 0.02em;
    font-size: 1rem;
  }

  .nav-links a::after {
    display: none;
  }

  .nav-links li:last-child a {
    border-bottom: 0;
  }
}

/* --------------------------------------------------------------------------
   5. Buttons & links
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.75rem 1.35rem;
  font-family: var(--font-body);
  font-size: var(--step-sm);
  font-weight: 500;
  letter-spacing: 0.03em;
  line-height: 1.2;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition:
    background 0.2s var(--ease),
    color 0.2s var(--ease),
    border-color 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--green);
  color: var(--on-green);
  border-color: var(--green);
}

.btn--primary:hover {
  background: var(--green-deep);
  border-color: var(--green-deep);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn--ghost:hover {
  border-color: var(--ink);
  background: var(--paper-warm);
}

.btn--on-green,
.btn--on-blue {
  background: var(--paper);
  color: var(--green-deep);
  border-color: var(--paper);
}

.btn--on-green:hover,
.btn--on-blue:hover {
  background: var(--gold-soft);
  border-color: var(--gold-soft);
  color: var(--green-deep);
}

.btn--ghost-on-green,
.btn--ghost-on-blue {
  background: transparent;
  color: var(--on-green);
  border-color: rgba(247, 245, 239, 0.45);
}

.btn--ghost-on-green:hover,
.btn--ghost-on-blue:hover {
  border-color: var(--on-green);
  background: rgba(247, 245, 239, 0.08);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-top: 1.5rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--green);
  font-weight: 500;
  font-size: var(--step-sm);
  letter-spacing: 0.02em;
  border-bottom: 1px solid transparent;
  transition:
    border-color 0.2s var(--ease),
    gap 0.2s var(--ease);
}

.text-link:hover {
  border-bottom-color: var(--green);
  gap: 0.5rem;
}

.text-link .arrow {
  transition: transform 0.2s var(--ease);
}

.text-link:hover .arrow {
  transform: translateX(2px);
}

/* --------------------------------------------------------------------------
   6. Type utilities
   -------------------------------------------------------------------------- */

.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: var(--step-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.75rem;
}

.section--green .eyebrow,
.section--blue .eyebrow {
  color: var(--gold);
}

.lede {
  font-size: var(--step-lead);
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 38rem;
}

.asterism {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  color: var(--gold);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  margin-block: 0.5rem;
  user-select: none;
}

.asterism span {
  line-height: 1;
}

/* Horizontal rule with a center mark — classic page break */
.pagebreak {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: min(100%, 36rem);
  margin: 1.35rem auto 0;
  color: var(--gold);
  user-select: none;
}

.pagebreak::before,
.pagebreak::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(to var(--pagebreak-dir, right), transparent, var(--line-strong));
}

.pagebreak::before {
  --pagebreak-dir: right;
}

.pagebreak::after {
  --pagebreak-dir: left;
}

.pagebreak__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
  font-size: 0.85rem;
  color: var(--gold);
}

.pagebreak__mark svg {
  width: 0.85rem;
  height: 0.85rem;
  display: block;
}

.pagebreak--wide {
  width: min(100%, 48rem);
}

.pagebreak--ink {
  color: var(--ink-soft);
}

.pagebreak--ink .pagebreak__mark {
  color: var(--green);
}

.pagebreak--ink::before,
.pagebreak--ink::after {
  background: linear-gradient(to var(--pagebreak-dir, right), transparent, var(--line));
}

.pull-quote {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1.15rem + 0.8vw, 1.75rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.4;
  color: var(--ink);
  max-width: 36rem;
}

.pull-quote cite {
  display: block;
  margin-top: 0.85rem;
  font-family: var(--font-body);
  font-size: var(--step-sm);
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.prose {
  max-width: 40rem;
}

.prose p + p {
  margin-top: 1.15rem;
}

.prose h2 {
  margin-top: 2.25rem;
  margin-bottom: 0.85rem;
}

.prose a {
  color: var(--green);
  border-bottom: 1px solid rgba(42, 86, 64, 0.35);
  transition: border-color 0.2s;
}

.prose a:hover {
  border-bottom-color: var(--green);
}

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */

.hero {
  padding-block: clamp(3rem, 8vw, 5.5rem) clamp(2.5rem, 6vw, 4.5rem);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero h1 {
  font-size: var(--step-hero);
  font-weight: 500;
  max-width: 14ch;
  margin-bottom: 1.15rem;
}

.hero h1 .soft {
  font-style: italic;
  font-weight: 400;
  color: var(--green);
}

.hero .lede {
  margin-bottom: 0.25rem;
}

.hero-portrait {
  position: relative;
}

.hero-portrait img {
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero-portrait::before {
  content: "";
  position: absolute;
  inset: 1rem -0.75rem -0.75rem 1rem;
  border: 1.5px solid var(--line-strong);
  border-radius: calc(var(--radius-lg) + 4px);
  z-index: -1;
  pointer-events: none;
}

@media (max-width: 820px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero h1 {
    max-width: none;
  }

  .hero-portrait {
    max-width: 360px;
    margin-inline: auto;
  }

  .hero-portrait img {
    aspect-ratio: 5 / 4;
  }
}

/* --------------------------------------------------------------------------
   8. Quote band
   -------------------------------------------------------------------------- */

.quote-band {
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
  text-align: center;
  border-block: 1px solid var(--line);
  background: var(--paper-warm);
}

.quote-band .pull-quote {
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   9. Featured book
   -------------------------------------------------------------------------- */

.featured {
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: start;
}

.featured__cover {
  box-shadow: var(--shadow);
  border-radius: 4px;
  overflow: hidden;
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.featured__cover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px -20px rgba(34, 38, 46, 0.3);
}

.featured__cover img {
  width: 100%;
  display: block;
}

.featured__body .byline {
  font-size: var(--step-sm);
  color: var(--ink-soft);
  margin: 0.35rem 0 1rem;
}

.featured__body h2 {
  margin-bottom: 0;
}

.featured__body > p {
  max-width: 36rem;
}

.featured__body .pull-quote {
  margin-top: 1.35rem;
  padding-left: 1.15rem;
  border-left: 2px solid var(--gold);
  font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.35rem);
}

@media (max-width: 640px) {
  .featured {
    grid-template-columns: 1fr;
  }

  .featured__cover {
    max-width: 200px;
  }
}

/* --------------------------------------------------------------------------
   10. Book grid / cards
   -------------------------------------------------------------------------- */

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

.book-grid--wide {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.book-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.book-card__cover {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: var(--paper-warm);
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.book-card a.book-card__cover:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.book-card__cover img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.book-card__cover--square img {
  aspect-ratio: 1;
}

.cover-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: var(--shadow-soft);
  background: var(--line);
}

.cover-mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: auto;
}

.book-card__meta h3,
.book-card__meta h4 {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.book-card__meta .tag {
  display: block;
  font-size: var(--step-xs);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.5rem;
}

.book-card__meta p {
  font-size: var(--step-sm);
  line-height: 1.55;
}

/* Decorative plate for books without covers */
.plate {
  aspect-ratio: 2 / 3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.25rem;
  border-radius: 4px;
  background: var(--plate-bg, #2a5640);
  color: var(--plate-fg, #f7f9fb);
  box-shadow: var(--shadow-soft);
}

.plate__kicker {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.75;
}

.plate__title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1.15;
  font-style: italic;
}

.plate__foot {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  opacity: 0.7;
}

/* --------------------------------------------------------------------------
   11. Shelf label
   -------------------------------------------------------------------------- */

.shelf + .shelf {
  margin-top: clamp(3rem, 6vw, 4.5rem);
}

.shelf__label {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.shelf__label h2,
.shelf__label h3 {
  font-size: clamp(1.4rem, 1.2rem + 0.7vw, 1.75rem);
  white-space: nowrap;
}

.shelf__rule {
  flex: 1;
  height: 1px;
  background: var(--line);
  min-width: 2rem;
}

.shelf__count {
  font-size: var(--step-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   12. Theme chips / soft facts
   -------------------------------------------------------------------------- */

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: var(--step-sm);
  color: var(--ink-soft);
  transition:
    border-color 0.2s,
    color 0.2s;
}

.chip:hover {
  border-color: var(--gold);
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   13. Split / about preview
   -------------------------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

.split__media img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  object-fit: cover;
  aspect-ratio: 5 / 4;
}

.split__body h2 {
  margin-bottom: 1rem;
}

.split__body p + p {
  margin-top: 0.9rem;
}

@media (max-width: 760px) {
  .split {
    grid-template-columns: 1fr;
  }

  .split__media {
    max-width: 420px;
  }
}

/* --------------------------------------------------------------------------
   14. Page head
   -------------------------------------------------------------------------- */

.page-head {
  padding-block: clamp(2.75rem, 6vw, 4rem) clamp(1.5rem, 3vw, 2rem);
  text-align: center;
}

.page-head h1 {
  max-width: 18ch;
  margin-inline: auto;
}

.page-head .lede,
.page-head > .container > p {
  margin-inline: auto;
  margin-top: 1rem;
  max-width: 36rem;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   15. Bio layout
   -------------------------------------------------------------------------- */

.bio-layout {
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}

.bio-portrait {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
}

.bio-portrait img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: left center;
}

.bio-scene {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  max-width: 36rem;
  margin-inline: auto;
  text-align: center;
}

.bio-scene img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.bio-scene figcaption {
  margin-top: 0.85rem;
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: var(--step-body);
  font-style: italic;
  line-height: 1.5;
}

.fact-list {
  list-style: none;
  margin-top: 2rem;
  border-top: 1px solid var(--line);
}

.fact-list li {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 0.75rem 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--step-sm);
}

.fact-list .k {
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: var(--step-xs);
  color: var(--green);
  padding-top: 0.15rem;
}

.fact-list a {
  color: var(--green);
  border-bottom: 1px solid transparent;
}

.fact-list a:hover {
  border-bottom-color: var(--green);
}

.award-list {
  list-style: none;
  max-width: 40rem;
  margin-inline: auto;
}

.award-list li {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 1rem 1.5rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(247, 249, 251, 0.15);
  font-size: var(--step-sm);
  line-height: 1.55;
}

.award-list li:first-child {
  border-top: 1px solid rgba(247, 249, 251, 0.15);
}

.award-list .year {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--gold);
}

.award-list .what {
  color: rgba(247, 249, 251, 0.9);
}

.award-list strong {
  color: var(--on-green);
  font-weight: 500;
}

.award-list--plain li {
  grid-template-columns: 1fr;
  text-align: center;
}

.award-list--plain .what {
  max-width: 32rem;
  margin-inline: auto;
}

@media (max-width: 760px) {
  .bio-layout {
    grid-template-columns: 1fr;
  }

  .bio-portrait {
    position: static;
    max-width: 300px;
    margin-inline: auto;
  }
}

/* --------------------------------------------------------------------------
   16. Contact
   -------------------------------------------------------------------------- */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}

.contact-aside p {
  font-size: var(--step-sm);
  margin-top: 0.5rem;
}

.contact-aside .aside-block + .aside-block {
  margin-top: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}

.contact-aside h3 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2rem);
  box-shadow: var(--shadow-soft);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field label {
  font-size: var(--step-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.7rem 0.9rem;
  transition:
    border-color 0.2s,
    background 0.2s;
  width: 100%;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green);
  background: var(--paper);
  box-shadow: 0 0 0 3px var(--green-soft);
}

.field textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.55;
}

.field .hint {
  font-size: var(--step-xs);
  color: var(--ink-soft);
}

.form-status {
  font-size: var(--step-sm);
  color: var(--green);
  min-height: 1.4em;
  opacity: 0;
  transition: opacity 0.25s;
}

.form-status.is-visible {
  opacity: 1;
}

.form-status.is-error {
  color: #8b2e2e;
}

.form-note {
  font-size: var(--step-xs);
  color: var(--ink-soft);
}

@media (max-width: 760px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   17. Footer
   -------------------------------------------------------------------------- */

.site-footer {
  margin-top: auto;
  padding-block: 3rem 1.75rem;
  background: var(--green-deep);
  color: rgba(247, 245, 239, 0.72);
}

.site-footer .brand {
  color: var(--on-green);
  font-size: 1.35rem;
}

.site-footer .brand em {
  color: var(--gold);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem 2.5rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid rgba(247, 245, 239, 0.12);
}

.footer-brand p {
  margin-top: 0.85rem;
  max-width: 22rem;
  font-size: var(--step-sm);
  color: rgba(247, 245, 239, 0.55);
  line-height: 1.6;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: var(--step-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(247, 245, 239, 0.45);
  margin-bottom: 0.85rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.footer-col a {
  font-size: var(--step-sm);
  color: rgba(247, 245, 239, 0.75);
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--on-green);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 1.35rem;
  font-size: var(--step-xs);
  color: rgba(247, 245, 239, 0.4);
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* --------------------------------------------------------------------------
   18. Reveal animation
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal[data-delay="1"] {
  transition-delay: 0.08s;
}
.reveal[data-delay="2"] {
  transition-delay: 0.16s;
}
.reveal[data-delay="3"] {
  transition-delay: 0.24s;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn:hover,
  .book-card a.book-card__cover:hover,
  .featured__cover:hover,
  .gallery-item:hover,
  .gallery-item:focus-visible {
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   19. Gallery
   -------------------------------------------------------------------------- */

.container--wide {
  width: 80%;
  margin-inline: auto;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 1.25rem;
}

.gallery-item {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  background: var(--paper-warm);
  aspect-ratio: 3 / 4;
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s var(--ease);
}

.gallery-item:hover,
.gallery-item:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  outline: none;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.04);
}

.gallery-item:focus-visible {
  box-shadow:
    var(--shadow),
    0 0 0 2px var(--paper),
    0 0 0 4px var(--gold);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(18, 28, 22, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lightbox[hidden] {
  display: none;
}

.lightbox__figure {
  max-width: min(92vw, 720px);
  max-height: 90vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.lightbox__img {
  max-width: 100%;
  max-height: calc(90vh - 2.5rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 24px 64px -16px rgba(0, 0, 0, 0.5);
}

.lightbox__caption {
  font-family: var(--font-body);
  font-size: var(--step-sm);
  color: rgba(247, 245, 239, 0.75);
  letter-spacing: 0.04em;
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  appearance: none;
  border: 0;
  background: rgba(250, 247, 240, 0.12);
  color: var(--on-green);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition:
    background 0.2s var(--ease),
    color 0.2s var(--ease);
  line-height: 1;
}

.lightbox__close:hover,
.lightbox__nav:hover,
.lightbox__close:focus-visible,
.lightbox__nav:focus-visible {
  background: rgba(250, 247, 240, 0.22);
  color: #fff;
  outline: none;
}

.lightbox__close {
  top: 1rem;
  right: 1rem;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  font-size: 1.75rem;
}

.lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  font-size: 2rem;
  font-family: var(--font-display);
}

.lightbox__nav--prev {
  left: 0.75rem;
}

.lightbox__nav--next {
  right: 0.75rem;
}

@media (max-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
  }

  .lightbox__nav {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 1.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-item,
  .gallery-item img {
    transition: none;
  }

  .gallery-item:hover,
  .gallery-item:focus-visible {
    transform: none;
  }

  .gallery-item:hover img,
  .gallery-item:focus-visible img {
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   20. Utilities
   -------------------------------------------------------------------------- */

.text-center {
  text-align: center;
}

.mt-0 {
  margin-top: 0;
}

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