/* ==========================================================================
   One Mad Apple — static site
   Palette, type scale and layout primitives
   ========================================================================== */

:root {
  --ink: #0c0c0d;
  --ink-soft: #1a1a1c;
  --paper: #ffffff;
  --paper-warm: #f6f4f1;
  --gold: #cc9955;
  --gold-bright: #e0b273;
  --text: #4a4a4d;
  --muted: #8a8a8f;
  --line: rgba(12, 12, 13, 0.12);
  --line-dark: rgba(255, 255, 255, 0.16);

  --panel-w: 34vw;
  --gutter: clamp(1.5rem, 5vw, 5.5rem);
  --measure: 60ch;

  /* Type follows the printed bookmark: serif display, letterspaced sans for UI */
  --font-display: "Lora", Georgia, serif;
  --font-serif: "Lora", Georgia, serif;
  --font-ui: "Raleway", "Helvetica Neue", sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4, h5 {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.12;
}

p { margin: 0 0 1.25em; }
p:last-child { margin-bottom: 0; }

/* film-grain veil — keeps flat colour areas from looking digital-dead */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   Left cover panel + main column
   -------------------------------------------------------------------------- */

.cover-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--panel-w);
  height: 100vh;
  height: 100dvh;
  z-index: 20;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.5rem clamp(1.5rem, 2.5vw, 3rem) 2rem;
  overflow: hidden;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.82);
}

/* The cover art carries its own title and signature, so the panel keeps the
   artwork clear and only adds a CTA inside a dark band at the foot. */
.cover-panel__bg {
  position: absolute;
  inset: 0 0 132px;
  background: url("../img/cover.jpg") center 32% / cover no-repeat;
}

.cover-panel__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 8, 9, 0.2) 0%, rgba(8, 8, 9, 0.1) 55%, rgba(8, 8, 9, 0.85) 100%);
}

.cover-panel__inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.cover-panel__tagline {
  margin: 0 0 0.85rem;
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}

.cover-panel__buy {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  padding: 0.85rem 1.9rem;
  border: 1px solid var(--gold);
  border-radius: 2px;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--gold-bright);
  background: rgba(204, 153, 85, 0.06);
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
}

.cover-panel__buy:hover,
.cover-panel__buy:focus-visible {
  background: var(--gold);
  color: var(--ink);
}

.cover-panel__meta {
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.45);
}

.main {
  margin-left: var(--panel-w);
  min-height: 100vh;
  position: relative;
  z-index: 10;
  background: var(--paper);
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  min-height: 86px;
  padding: 0 var(--gutter);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav__brand {
  margin-right: auto;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__list a {
  display: block;
  padding: 0.5rem 1.1rem;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  transition: color 0.25s var(--ease);
}

.nav__list a:hover,
.nav__list a:focus-visible { color: var(--gold); }

.nav__list li + li { position: relative; }

.nav__list li + li::before {
  content: "";
  position: absolute;
  left: -3px;
  top: 50%;
  width: 5px;
  height: 5px;
  margin-top: -2.5px;
  border-radius: 50%;
  background: var(--gold);
}

.nav__list a[aria-current="page"] { color: var(--gold); }

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  cursor: pointer;
}

.nav__toggle span,
.nav__toggle span::before,
.nav__toggle span::after {
  display: block;
  width: 18px;
  height: 1.5px;
  margin: 0 auto;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.2s linear;
}

.nav__toggle span::before,
.nav__toggle span::after {
  content: "";
  position: relative;
}

.nav__toggle span::before { top: -6px; }
.nav__toggle span::after { top: 4.5px; }

.nav.is-open .nav__toggle span { background: transparent; }
.nav.is-open .nav__toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav__toggle span::after { transform: translateY(-4.5px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   Section shells
   -------------------------------------------------------------------------- */

.section {
  padding: clamp(4rem, 9vw, 8rem) var(--gutter);
}

.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--paper { background: var(--paper-warm); }

.section--dark {
  position: relative;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
  overflow: hidden;
}

.section--dark h1,
.section--dark h2,
.section--dark h3 { color: #fff; }

.section__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.66;
}

/* Light scrim only — legibility comes from the text shadow below, so the
   photograph stays readable instead of being flattened to near-black. */
.section--dark::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 12, 13, 0.28) 0%, rgba(12, 12, 13, 0.46) 100%);
  pointer-events: none;
}

.section--dark .wrap :is(h1, h2, h3, p, span, li) {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55), 0 2px 22px rgba(0, 0, 0, 0.75);
}

/* Cards carry their own panel, so they do not need the halo */
.section--dark .award :is(span),
.section--dark .award-list :is(span) { text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9); }

.section--dark > .wrap { position: relative; z-index: 1; }

.wrap { max-width: 1040px; margin: 0 auto; }
.wrap--narrow { max-width: 720px; }

.eyebrow {
  display: block;
  margin: 0 0 1.1rem;
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
}

.display {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.4rem, 5.2vw, 4rem);
  line-height: 1.05;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.headline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.8rem, 3.1vw, 2.6rem);
  letter-spacing: 0.01em;
}

/* Bookmark-style stacked tagline */
.tagline {
  margin: 1.75rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 400;
  line-height: 1.5;
  color: var(--gold-bright);
}

.kicker {
  margin-top: 2rem;
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.55);
}

.subhead {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  line-height: 1.5;
  color: var(--muted);
}

.rule {
  width: 64px;
  height: 2px;
  margin: 1.6rem 0;
  border: 0;
  background: var(--gold);
}

.rule--center { margin-inline: auto; }

.lede { font-size: 1.15rem; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1rem 2.1rem;
  border: 1px solid var(--ink);
  border-radius: 2px;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}

.btn:hover,
.btn:focus-visible {
  background: var(--ink);
  color: #fff;
}

.btn--gold {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--ink);
}

.btn--gold:hover,
.btn--gold:focus-visible {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
  color: var(--ink);
}

.btn--ghost-light {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.btn--ghost-light:hover,
.btn--ghost-light:focus-visible {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 78vh;
  padding: clamp(5rem, 10vw, 8rem) var(--gutter);
  overflow: hidden;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.8);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: url("../img/hero.jpg") center 30% / cover no-repeat;
  opacity: 0.85;
  transform: scale(1.04);
  animation: heroDrift 24s var(--ease) forwards;
}

@keyframes heroDrift {
  to { transform: scale(1); }
}

/* Dark only behind the copy column; the right half of the photo stays open */
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(12, 12, 13, 0.92) 0%, rgba(12, 12, 13, 0.78) 32%, rgba(12, 12, 13, 0.4) 62%, rgba(12, 12, 13, 0.08) 100%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.hero__inner :is(h1, p, span) {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 2px 24px rgba(0, 0, 0, 0.7);
}

.hero h1 {
  color: #fff;
  margin-bottom: 1.5rem;
}

.hero p { color: rgba(255, 255, 255, 0.82); }

/* --------------------------------------------------------------------------
   Awards strip
   -------------------------------------------------------------------------- */

.awards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

/* One laurel mark, used for every honour — the source laurels come from a
   dozen festivals with clashing backgrounds, so we set them typographically. */
.award {
  position: relative;
  display: grid;
  place-items: center;
  gap: 0.4rem;
  min-height: 200px;
  padding: 3rem 1.75rem;
  text-align: center;
  border: 1px solid var(--line-dark);
  border-radius: 2px;
  /* own panel so the card reads over any photograph behind it */
  background: rgba(10, 10, 11, 0.55);
  backdrop-filter: blur(2px);
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease), background 0.35s var(--ease);
}

.award::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 178px;
  height: 172px;
  transform: translate(-50%, -50%);
  background: url("../img/laurel.svg") center / contain no-repeat;
  opacity: 0.24;
  pointer-events: none;
}

.award:hover {
  border-color: rgba(204, 153, 85, 0.55);
  background: rgba(28, 22, 14, 0.68);
  transform: translateY(-3px);
}

.award > * { position: relative; }

.award__rank {
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.award__name {
  max-width: 14ch;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  line-height: 1.35;
  color: #fff;
}

.award__year {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.42);
}

/* Full honours list — every award visible at once, no carousel */

.award-list {
  margin: 3rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-dark);
}

.award-list li {
  display: grid;
  grid-template-columns: 170px 1fr auto;
  gap: 1rem;
  align-items: baseline;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--line-dark);
}

.award-list__rank {
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.award-list__title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: #fff;
}

.award-list__year {
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.4);
}

.award-list--light { border-top-color: var(--line); }
.award-list--light li { border-bottom-color: var(--line); }
.award-list--light .award-list__title { color: var(--ink); }
.award-list--light .award-list__year { color: var(--muted); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.4rem;
  border: 1px solid var(--gold);
  border-radius: 100px;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

@media (max-width: 700px) {
  .award-list li { grid-template-columns: 1fr auto; }
  .award-list__rank { grid-column: 1 / -1; }
}

/* --------------------------------------------------------------------------
   Author card
   -------------------------------------------------------------------------- */

.author-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

/* Photo second: prose keeps the wide column, portrait stays its natural shape */
.author-card--reverse { grid-template-columns: minmax(0, 1fr) 380px; }

.author-card__photo {
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 24px 60px -28px rgba(12, 12, 13, 0.55);
}

.author-card__photo img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }

.author-card--reverse .author-card__photo img { aspect-ratio: auto; }

/* --------------------------------------------------------------------------
   Reviews
   -------------------------------------------------------------------------- */

/* The fixed cover panel takes a third of the window, so a single wide column
   is the readable default; two columns only once there is room for both. */
.reviews {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}

@media (min-width: 1500px) {
  .reviews { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.review {
  display: flex;
  flex-direction: column;
  padding: 2.25rem 2.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
  box-shadow: 0 20px 50px -40px rgba(12, 12, 13, 0.6);
}

.review__quote {
  flex: 1;
  margin-bottom: 1.75rem;
  font-size: 1.0625rem;
  font-style: italic;
  color: var(--ink);
}

.review__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.review__name {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink);
}

.review__verified {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.stars {
  flex: none;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  color: var(--gold);
}

/* --------------------------------------------------------------------------
   Excerpt / chapter
   -------------------------------------------------------------------------- */

.excerpt {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.excerpt__track {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.excerpt__track::before {
  content: "\266A";
  font-size: 0.9rem;
  color: var(--gold);
}

.excerpt__body p:first-of-type::first-letter {
  float: left;
  margin: 0.08em 0.12em 0 0;
  font-family: var(--font-display);
  font-size: 3.6em;
  font-weight: 800;
  line-height: 0.8;
  color: var(--gold);
}

.excerpt__stage {
  margin-bottom: 1.5rem;
  font-style: italic;
  color: var(--muted);
}

.excerpt__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.excerpt__grid img {
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 2px;
  filter: grayscale(0.35);
  transition: filter 0.5s var(--ease), transform 0.5s var(--ease);
}

.excerpt__grid a:hover img { filter: grayscale(0); transform: scale(1.02); }
.excerpt__grid > :first-child { grid-column: 1 / -1; }
.excerpt__grid > :first-child img { aspect-ratio: 16 / 9; }

/* --------------------------------------------------------------------------
   Split promo (news / purchase)
   -------------------------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.split--reverse > :first-child { order: 2; }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.contact-list { margin: 0; }
.contact-list dt {
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
.contact-list dd {
  margin: 0.35rem 0 1.75rem;
  font-size: 1.05rem;
}
.contact-list a { text-decoration: none; border-bottom: 1px solid var(--line); }
.contact-list a:hover { border-color: var(--gold); color: var(--gold); }

.form { display: grid; gap: 1.25rem; }

.field { display: grid; gap: 0.45rem; }

.field label {
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--paper);
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--ink);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(204, 153, 85, 0.15);
}

.field textarea { min-height: 170px; resize: vertical; }

.form__note {
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  color: var(--muted);
}

.form__status {
  padding: 0.9rem 1.1rem;
  border-radius: 2px;
  font-family: var(--font-ui);
  font-size: 0.875rem;
}

.form__status--ok { background: rgba(204, 153, 85, 0.12); color: #7a5a25; }
.form__status--err { background: rgba(180, 40, 40, 0.08); color: #932222; }

.hp { position: absolute; left: -9999px; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer {
  padding: clamp(3rem, 6vw, 5rem) var(--gutter) 3rem;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--font-ui);
  font-size: 0.8125rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3rem;
  max-width: 1040px;
  margin: 0 auto;
}

.footer a { color: rgba(255, 255, 255, 0.75); text-decoration: none; }
.footer a:hover { color: var(--gold); }

.footer h4 {
  margin-bottom: 1rem;
  color: #fff;
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.footer__links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin: 0 0 1.5rem; padding: 0; list-style: none; }

.footer__bottom {
  max-width: 1040px;
  margin: 3rem auto 0;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line-dark);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}




/* --------------------------------------------------------------------------
   Scroll reveal
   -------------------------------------------------------------------------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

[data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero__bg { animation: none; transform: none; }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1200px) {
  :root { --panel-w: 30vw; }
}

@media (max-width: 1024px) {
  .cover-panel {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 62vh;
    padding-block: 4rem;
  }

  .main { margin-left: 0; }

  .author-card,
  .excerpt,
  .split,
  .contact-grid,
  .footer__grid { grid-template-columns: 1fr; }

  .split--reverse > :first-child { order: 0; }
  .author-card__photo { max-width: 200px; }
  .author-card--reverse .author-card__photo { max-width: 320px; }

  .nav {
    position: sticky;
    flex-wrap: wrap;
    min-height: 70px;
    padding-block: 0.9rem;
  }

  .nav__toggle { display: block; }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease);
  }

  .nav.is-open .nav__list { max-height: 320px; }

  .nav__list a { padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
  .nav__list li + li::before { display: none; }
}

@media (max-width: 600px) {
  body { font-size: 1rem; }
  .review { padding: 1.75rem; }
  .excerpt__grid > :first-child { grid-column: auto; }
  .excerpt__grid > :first-child img { aspect-ratio: 3 / 4; }
}
