/* ==========================================================================
   Frida Ludwig — Author Website
   Design language: Editorial / literary / warm minimalism
   ========================================================================== */

/* --- Self-hosted fonts (Fraunces + DM Sans) ---------------------------- */
/* Currently installed: regular weight (400) only, single combined latin +
   latin-ext WOFF2 per family. Browsers will synthesize bold and italic
   when needed. To add real bold/italic weights, drop additional .woff2
   files into /assets/fonts/ and add matching @font-face blocks below. */

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url('/assets/fonts/dm-sans-regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url('/assets/fonts/fraunces-regular.woff2') format('woff2');
}

/* --- Design tokens ----------------------------------------------------- */
:root {
  /* Palette — warm, paper-like */
  --paper:        #F4EFE8;
  --paper-deep:   #EBE3D5;
  --surface:      #FAF6EF;
  --ink:          #1A1815;
  --ink-soft:     #4A4540;
  --ink-mute:     #7A7368;
  --rule:         #D9CFBF;
  --accent:       #B8654A;       /* terracotta / clay */
  --accent-deep:  #8E4A33;
  --highlight:    #F4D6C0;       /* peach blush */

  /* Typography */
  --serif:  'Fraunces', 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans:   'DM Sans', 'Helvetica Neue', system-ui, sans-serif;

  /* Type scale */
  --fs-xs:   0.75rem;
  --fs-sm:   0.875rem;
  --fs-base: 1.0625rem;
  --fs-md:   1.25rem;
  --fs-lg:   1.625rem;
  --fs-xl:   2.25rem;
  --fs-2xl:  3.5rem;
  --fs-3xl:  clamp(3rem, 9vw, 7.5rem);
  --fs-hero: clamp(4rem, 16vw, 14rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2.5rem;
  --space-6: 4rem;
  --space-7: 6rem;
  --space-8: 9rem;

  /* Layout */
  --content-max: 1280px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  font-family: var(--serif);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: "ss01", "ss03", "kern";
  background-image:
    radial-gradient(circle at 18% 12%, rgba(184, 101, 74, 0.04) 0%, transparent 38%),
    radial-gradient(circle at 88% 78%, rgba(184, 101, 74, 0.035) 0%, transparent 42%);
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
picture { display: block; }
button { font-family: inherit; cursor: pointer; }

/* Subtle paper grain overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.45;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' seed='5'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.06 0'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>");
}

::selection { background: var(--accent); color: var(--paper); }

/* --- Layout primitives ------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--sans);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--accent);
}

/* Chapter numbers */
.chapter-num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: var(--fs-md);
  color: var(--accent);
  letter-spacing: 0.05em;
}

/* --- Top bar / nav ----------------------------------------------------- */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--gutter);
  pointer-events: none;
  /* default colors: light text (we start over the dark hero photo on the left) */
  --tb-fg: var(--paper);
  --tb-fg-mute: rgba(244, 239, 232, 0.55);
  --tb-accent: var(--accent);
  transition: background-color 320ms var(--ease-out);
}
.topbar > * { pointer-events: auto; }

/* When scrolled past the hero, the topbar is over cream — switch to dark text. */
.topbar.is-scrolled {
  --tb-fg: var(--ink);
  --tb-fg-mute: var(--ink-mute);
  background-color: rgba(244, 239, 232, 0.88);
  backdrop-filter: blur(10px) saturate(1.1);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  border-bottom: 1px solid rgba(217, 207, 191, 0.4);
}

.brandmark {
  font-family: var(--serif);
  font-weight: 500;
  font-size: var(--fs-md);
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--tb-fg);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  transition: color 320ms var(--ease-out), opacity 240ms var(--ease-out), text-shadow 320ms var(--ease-out);
}
.brandmark em {
  font-style: italic;
  font-weight: 300;
  color: var(--tb-accent);
}
.topbar.is-scrolled .brandmark {
  text-shadow: none;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--sans);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.lang-switch a {
  color: var(--tb-fg);
  text-decoration: none;
  padding: 0.35rem 0.55rem;
  border: 1px solid transparent;
  transition: border-color 240ms, color 240ms;
}
.lang-switch a[aria-current="true"] {
  border-color: currentColor;
}
.lang-switch a:hover { color: var(--tb-accent); }
.lang-switch span {
  color: var(--tb-fg-mute);
}

/* On the desktop hero, the right side of the topbar sits over the cream
   content panel — make sure the lang switch is readable there too. */
@media (min-width: 981px) {
  .topbar:not(.is-scrolled) .lang-switch a {
    color: var(--ink);
  }
  .topbar:not(.is-scrolled) .lang-switch a:hover {
    color: var(--accent);
  }
  .topbar:not(.is-scrolled) .lang-switch span {
    color: var(--ink-mute);
  }
}

/* --- HERO -------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: stretch;
  background: var(--ink);
  overflow: hidden;
}

.hero__image {
  position: relative;
  overflow: hidden;
  background: #0c0a08;
}
.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  filter: contrast(1.05) brightness(0.95);
  transform: scale(1.04);
  transition: transform 1200ms var(--ease-out);
}
.hero.is-loaded .hero__image img { transform: scale(1.0); }

/* Vertical "no. 01" marker on photo */
.hero__marker {
  position: absolute;
  top: 50%;
  left: var(--space-4);
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: left top;
  font-family: var(--sans);
  font-size: var(--fs-xs);
  letter-spacing: 0.4em;
  color: rgba(244, 239, 232, 0.55);
  text-transform: uppercase;
  z-index: 2;
  white-space: nowrap;
}

.hero__content {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-7) var(--gutter);
  background: var(--paper);
  z-index: 1;
}

.hero__eyebrow {
  margin-bottom: var(--space-5);
  opacity: 0;
  animation: fadeUp 900ms var(--ease-out) 0.5s forwards;
}

.hero__name {
  font-family: var(--serif);
  font-weight: 200;
  font-size: var(--fs-3xl);
  line-height: 0.92;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--ink);
}
.hero__name span {
  display: block;
}
.hero__name .first {
  opacity: 0;
  animation: fadeUp 1100ms var(--ease-out) 0.7s forwards;
}
.hero__name .last {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
  margin-left: 0.4em;
  opacity: 0;
  animation: fadeUp 1100ms var(--ease-out) 0.95s forwards;
}

.hero__rule {
  width: 80px;
  height: 1px;
  background: var(--accent);
  margin: var(--space-5) 0 var(--space-4);
  transform-origin: left;
  transform: scaleX(0);
  animation: ruleIn 900ms var(--ease-out) 1.3s forwards;
}

.hero__tagline {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: var(--fs-md);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 30ch;
  margin: 0 0 var(--space-5);
  opacity: 0;
  animation: fadeUp 1000ms var(--ease-out) 1.4s forwards;
}

.hero__meta {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  font-family: var(--sans);
  font-size: var(--fs-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: auto;
  opacity: 0;
  animation: fadeUp 1000ms var(--ease-out) 1.6s forwards;
}
.hero__meta strong {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink);
  font-size: var(--fs-sm);
}

.scroll-cue {
  position: absolute;
  bottom: var(--space-4);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--sans);
  font-size: var(--fs-xs);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-mute);
  z-index: 3;
  opacity: 0;
  animation: fadeUp 1000ms var(--ease-out) 2s forwards;
}
.scroll-cue::after {
  content: "";
  width: 1px;
  height: 38px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2.4s ease-in-out infinite;
}

/* --- WELCOME / ABOUT --------------------------------------------------- */
.welcome {
  padding: var(--space-8) 0 var(--space-7);
  position: relative;
}

.welcome__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--space-7);
  align-items: start;
}

.welcome__visual {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--ink);
}
.welcome__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.04);
}
.welcome__visual::after {
  content: "";
  position: absolute;
  inset: var(--space-3);
  border: 1px solid rgba(244, 239, 232, 0.18);
  pointer-events: none;
}

.welcome__caption {
  position: absolute;
  bottom: var(--space-3);
  left: var(--space-3);
  right: var(--space-3);
  font-family: var(--sans);
  font-size: var(--fs-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper);
  background: rgba(26, 24, 21, 0.7);
  backdrop-filter: blur(8px);
  padding: 0.7rem 1rem;
}

.welcome__text {
  padding-top: var(--space-5);
}

.welcome__heading {
  font-family: var(--serif);
  font-weight: 250;
  font-size: var(--fs-2xl);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: var(--space-4) 0 var(--space-5);
  color: var(--ink);
}
.welcome__heading em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}

.welcome__body {
  font-size: var(--fs-md);
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 60ch;
}
.welcome__body p { margin: 0 0 var(--space-4); }
.welcome__body p:first-of-type::first-letter {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 4.6em;
  float: left;
  line-height: 0.85;
  margin: 0.1em 0.12em -0.05em -0.04em;
  color: var(--accent);
}
.welcome__body em {
  font-style: italic;
  color: var(--ink);
  font-weight: 400;
}
.welcome__body a {
  color: var(--ink);
  text-decoration: none;
  background-image: linear-gradient(to top, var(--accent) 1px, transparent 1px);
  background-position: 0 95%;
  background-repeat: repeat-x;
  transition: color 200ms;
}
.welcome__body a:hover { color: var(--accent); }

/* --- BOOKS ------------------------------------------------------------- */
.books {
  padding: var(--space-7) 0 var(--space-8);
  background: var(--surface);
  position: relative;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.books__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: end;
  gap: var(--space-5);
  margin-bottom: var(--space-7);
}
.books__title {
  font-family: var(--serif);
  font-weight: 250;
  font-size: var(--fs-2xl);
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin: var(--space-3) 0 0;
}
.books__title em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}
.books__intro {
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--fs-md);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 38ch;
  margin: 0 0 0.4em;
}

.books__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-6);
}

.book {
  display: grid;
  grid-template-columns: minmax(160px, 220px) minmax(0, 1fr);
  gap: var(--space-5);
  align-items: start;
}

.book__cover {
  position: relative;
  aspect-ratio: 5 / 7;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: 1.4rem 1.2rem 1.6rem;
  color: var(--paper);
  text-decoration: none;
  overflow: hidden;
  box-shadow: 0 30px 50px -28px rgba(26, 24, 21, 0.45),
              0 1px 0 rgba(26, 24, 21, 0.06);
  transition: transform 360ms var(--ease-out), box-shadow 360ms var(--ease-out);
  isolation: isolate;
}
.book__cover::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
}
.book__cover::after {
  /* book "spine" shadow on left */
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 8px;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.25), transparent);
  z-index: -1;
}
.book__cover:hover {
  transform: translateY(-6px) rotate(-0.6deg);
  box-shadow: 0 40px 60px -20px rgba(26, 24, 21, 0.55);
}

.book--01 .book__cover::before {
  background:
    radial-gradient(circle at 75% 20%, rgba(244, 214, 192, 0.25), transparent 55%),
    linear-gradient(155deg, #2c1f17 0%, #4a3528 50%, #2c1f17 100%);
}
.book--02 .book__cover::before {
  background:
    radial-gradient(circle at 25% 80%, rgba(244, 214, 192, 0.22), transparent 55%),
    linear-gradient(155deg, #5a3324 0%, #b8654a 55%, #8e4a33 100%);
}

.book__cover-tag {
  font-family: var(--sans);
  font-size: 0.65rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  opacity: 0.75;
  align-self: start;
}
.book__cover-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 1.55rem;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0;
}
.book__cover-title em {
  font-style: italic;
  font-weight: 200;
  display: block;
}
.book__cover-author {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.85rem;
  margin-top: 0.8rem;
  opacity: 0.85;
}

.book__details { padding-top: 0.4rem; }
.book__num {
  font-family: var(--sans);
  font-size: var(--fs-xs);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.8rem;
}
.book__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: var(--fs-lg);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-3);
  color: var(--ink);
}
.book__title em {
  font-style: italic;
  color: var(--accent);
}
.book__desc {
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 var(--space-4);
  max-width: 38ch;
}
.book__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.book__link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.95rem;
  font-family: var(--sans);
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--rule);
  background: transparent;
  transition: all 220ms var(--ease-out);
}
.book__link:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.book__link svg {
  width: 11px;
  height: 11px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
}

/* --- COMING NEXT ------------------------------------------------------- */
.coming {
  padding: var(--space-7) 0;
  text-align: center;
  position: relative;
}
.coming__inner {
  max-width: 36ch;
  margin: 0 auto;
}
.coming__num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: var(--fs-md);
  color: var(--accent);
  margin-bottom: var(--space-3);
}
.coming__heading {
  font-family: var(--serif);
  font-weight: 250;
  font-size: var(--fs-xl);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 var(--space-3);
}
.coming__heading em {
  font-style: italic;
  color: var(--accent);
}
.coming__text {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-soft);
  font-size: var(--fs-md);
  line-height: 1.55;
  margin: 0;
}

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: var(--space-5) 0;
  color: var(--accent);
}
.ornament::before, .ornament::after {
  content: "";
  width: 60px;
  height: 1px;
  background: currentColor;
  opacity: 0.4;
}

/* --- FOOTER ------------------------------------------------------------ */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: var(--space-6) 0 var(--space-4);
}
.site-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: var(--space-5);
  align-items: end;
  padding-bottom: var(--space-5);
  border-bottom: 1px solid rgba(244, 239, 232, 0.12);
}
.site-footer__brand {
  font-family: var(--serif);
  font-weight: 250;
  font-size: var(--fs-2xl);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0;
}
.site-footer__brand em {
  font-style: italic;
  color: var(--accent);
  font-weight: 300;
}
.site-footer__quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--fs-md);
  color: rgba(244, 239, 232, 0.7);
  line-height: 1.5;
  max-width: 32ch;
  margin: 0;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  padding-top: var(--space-4);
  font-family: var(--sans);
  font-size: var(--fs-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(244, 239, 232, 0.55);
}
.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
}
.site-footer__legal a, .site-footer__legal button {
  color: rgba(244, 239, 232, 0.7);
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  transition: color 200ms;
  cursor: pointer;
}
.site-footer__legal a:hover, .site-footer__legal button:hover {
  color: var(--accent);
}

/* --- Animations -------------------------------------------------------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes ruleIn {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); transform-origin: top; }
  50%      { transform: scaleY(0.4); transform-origin: top; }
}

/* Reveal on scroll — opt-in via body.has-js so content is visible
   for crawlers, RSS readers, and JS-disabled clients */
body.has-js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out);
}
body.has-js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
body.has-js .reveal[data-delay="1"] { transition-delay: 100ms; }
body.has-js .reveal[data-delay="2"] { transition-delay: 220ms; }
body.has-js .reveal[data-delay="3"] { transition-delay: 340ms; }

/* --- Responsive -------------------------------------------------------- */
@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: 50svh auto;
  }
  .hero__image img { object-position: 50% 22%; }
  .hero__content { padding: var(--space-6) var(--gutter) var(--space-6); }
  .hero__marker { display: none; }
  .scroll-cue { display: none; }

  .welcome { padding: var(--space-7) 0 var(--space-6); }
  .welcome__grid { grid-template-columns: 1fr; gap: var(--space-5); }
  .welcome__visual { aspect-ratio: 1 / 1; max-height: 80vh; }
  .welcome__text { padding-top: 0; }

  .books__head { grid-template-columns: 1fr; gap: var(--space-3); }
  .books__grid { grid-template-columns: 1fr; gap: var(--space-6); }
}

@media (max-width: 640px) {
  :root {
    --space-7: 4.5rem;
    --space-8: 6rem;
  }
  .hero__name { font-size: clamp(3rem, 16vw, 5rem); }
  .welcome__heading { font-size: clamp(2rem, 8vw, 3rem); }
  .books__title { font-size: clamp(2rem, 8vw, 3rem); }
  .book {
    grid-template-columns: 1fr;
    gap: var(--space-4);
    max-width: 32rem;
    margin-inline: auto;
  }
  .book__cover {
    max-width: 220px;
  }
  .site-footer__top { grid-template-columns: 1fr; }
  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

/* Print */
@media print {
  body::before, .scroll-cue, .lang-switch { display: none; }
  .hero, .books { background: white; color: black; }
}
