/*
Theme Name: Sandra Maletski
Theme URI: https://sandramaletski.com/
Author: Built with Lovable
Description: Warm literary editorial theme for a contemporary romance author — cream paper, deep ink, terracotta rose and soft gold. Single-page front page with hero, featured novel, marquee, interview, books with excerpts, reader reviews, three cities, about with recognition timeline, press and a working newsletter signup stored in WordPress.
Version: 2.0.0
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sandra-maletski
Tags: one-column, custom-colors, custom-logo, custom-menu, editor-style, featured-images, translation-ready, blog
*/

/* -------------------------------------------------------------
   Design tokens — warm literary editorial
   ------------------------------------------------------------- */
:root {
  --paper: oklch(0.972 0.014 84.5);
  --paper-deep: oklch(0.941 0.019 79);
  --ink: oklch(0.268 0.021 47);
  --rose: oklch(0.567 0.108 26.5);
  --gold: oklch(0.744 0.078 78);

  --background: var(--paper);
  --foreground: var(--ink);
  --primary: var(--rose);
  --primary-foreground: oklch(0.98 0.01 84.5);
  --secondary: var(--paper-deep);
  --muted-foreground: oklch(0.5 0.024 48);
  --accent: oklch(0.9 0.032 60);
  --destructive: oklch(0.52 0.19 27);
  --border: oklch(0.87 0.024 74);
  --ring: var(--gold);

  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "Manrope", ui-sans-serif, system-ui, -apple-system, sans-serif;

  --gradient-paper: linear-gradient(180deg, var(--paper) 0%, oklch(0.955 0.021 72) 100%);
  --shadow-book: 0 24px 60px -24px oklch(0.268 0.021 47 / 0.45);
  --shadow-soft: 0 12px 40px -18px oklch(0.268 0.021 47 / 0.22);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --wrap: 72rem;
}

/* -------------------------------------------------------------
   Base
   ------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  border-color: var(--border);
}

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

body {
  margin: 0;
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

h1,
h2,
h3,
h4,
blockquote,
figure,
p,
dl,
dd {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button,
input {
  font: inherit;
  color: inherit;
}

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

.screen-reader-text,
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 100;
  clip: auto;
  width: auto;
  height: auto;
  padding: 0.75rem 1rem;
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* -------------------------------------------------------------
   Shared primitives
   ------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (min-width: 640px) {
  .wrap {
    padding: 0 2rem;
  }
}

.display {
  font-family: var(--font-display);
  font-weight: 300;
}

.italic {
  font-style: italic;
}

.muted {
  color: var(--muted-foreground);
}

.gold {
  color: var(--gold);
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.kicker {
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.rule-gold {
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold) 80%, transparent);
}

.rule-draw {
  display: block;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), color-mix(in oklab, var(--gold) 20%, transparent));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1100ms var(--ease) 120ms;
}

[data-revealed="true"] .rule-draw,
.reveal[data-revealed="true"].rule-draw {
  transform: scaleX(1);
}

.section {
  padding: 5rem 0;
}

.section--tight {
  padding: 5rem 0 4.5rem;
}

@media (min-width: 640px) {
  .section {
    padding: 7rem 0;
  }
  .section--tight {
    padding: 6rem 0;
  }
}

.section--bordered {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section--secondary {
  background: var(--secondary);
}

.paper-grain {
  background-image: var(--gradient-paper);
  position: relative;
}

.paper-grain::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: radial-gradient(oklch(0.268 0.021 47) 0.5px, transparent 0.5px);
  background-size: 4px 4px;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
}

.btn--solid {
  background: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
  transition: opacity 300ms ease;
}

.btn--solid:hover {
  opacity: 0.9;
}

.btn--outline-primary {
  border-color: color-mix(in oklab, var(--primary) 50%, transparent);
  color: var(--primary);
}

/* Ink that fills upward on hover */
.ink-fill {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition: color 400ms ease;
}

.ink-fill::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--primary);
  transform: translateY(101%);
  transition: transform 450ms var(--ease);
}

.ink-fill:hover {
  color: var(--primary-foreground);
}

.ink-fill:hover::before {
  transform: translateY(0);
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 900ms var(--ease),
    transform 900ms var(--ease);
}

.reveal[data-revealed="true"] {
  opacity: 1;
  transform: none;
}

.word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.7em) rotate(1.5deg);
  transition:
    opacity 800ms var(--ease),
    transform 800ms var(--ease);
}

.word[data-revealed="true"] {
  opacity: 1;
  transform: none;
}

.grid-hairline {
  display: grid;
  gap: 1px;
  background: var(--border);
}

.grid-hairline > * {
  background: var(--background);
}

/* -------------------------------------------------------------
   Header
   ------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color 500ms ease, border-color 500ms ease, backdrop-filter 500ms ease;
}

.site-header[data-scrolled="true"] {
  background: color-mix(in oklab, var(--background) 85%, transparent);
  border-bottom-color: color-mix(in oklab, var(--border) 70%, transparent);
  backdrop-filter: blur(12px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.brand {
  display: flex;
  flex-direction: column;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.125rem;
  line-height: 1;
  letter-spacing: 0.02em;
}

.brand__cities {
  margin-top: 0.25rem;
  font-size: 0.625rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav a {
  color: var(--muted-foreground);
  transition: color 300ms ease;
}

.nav a:hover,
.nav a[data-active="true"] {
  color: var(--primary);
}

.nav__subscribe {
  border: 1px solid color-mix(in oklab, var(--primary) 40%, transparent);
  padding: 0.4rem 0.8rem;
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  color: var(--primary) !important;
}

.nav__links {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  padding: 0.5rem 0;
  background: none;
  border: 0;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 1.5rem;
  height: 1px;
  background: var(--foreground);
}

@media (min-width: 640px) {
  .nav__links {
    display: flex;
  }
  .nav__subscribe {
    display: inline-block;
  }
  .menu-toggle {
    display: none;
  }
}

@media (max-width: 639px) {
  .nav__subscribe {
    display: none;
  }
}

.progress-bar {
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
}

/* Mobile overlay menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 400ms ease;
}

.mobile-menu[data-open="true"] {
  opacity: 1;
  pointer-events: auto;
}

@media (min-width: 640px) {
  .mobile-menu {
    display: none;
  }
}

.mobile-menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
}

.mobile-menu__close {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
  background: none;
  border: 0;
  cursor: pointer;
}

.mobile-menu__nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
  padding: 0 2rem;
}

.mobile-menu__nav a {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-style: italic;
  font-weight: 300;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
}

.mobile-menu__foot {
  padding: 0 2rem 2.5rem;
  font-size: 0.625rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

/* -------------------------------------------------------------
   Hero
   ------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 9rem 0 5rem;
  text-align: center;
}

@media (min-width: 640px) {
  .hero {
    padding: 11rem 0 7rem;
  }
}

.hero__glow {
  position: absolute;
  top: -6rem;
  left: 50%;
  width: 32rem;
  height: 32rem;
  border-radius: 9999px;
  background: color-mix(in oklab, var(--accent) 40%, transparent);
  filter: blur(64px);
  transform: translateX(-50%);
  pointer-events: none;
}

.hero__ghost {
  position: absolute;
  inset-inline: 0;
  top: 33%;
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 9rem;
  line-height: 1;
  color: color-mix(in oklab, var(--gold) 10%, transparent);
  user-select: none;
  pointer-events: none;
}

@media (min-width: 640px) {
  .hero__ghost {
    font-size: 14rem;
  }
}

.hero__inner {
  position: relative;
  max-width: 56rem;
  margin: 0 auto;
}

.hero__title {
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(3rem, 11vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
}

.hero__title span {
  display: block;
  font-style: italic;
}

.hero__role {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 22rem;
  margin: 1.75rem auto 0;
}

.hero__role .rule-gold {
  flex: 1;
}

.hero__role span:not(.rule-gold) {
  font-size: 0.625rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--muted-foreground);
}

.hero__intro {
  max-width: 42rem;
  margin: 2rem auto 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

@media (min-width: 640px) {
  .hero__intro {
    font-size: 1.5rem;
  }
}

.stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 32rem;
  margin: 3.5rem auto 0;
  border: 1px solid var(--border);
}

.stats > div {
  padding: 1.5rem 0.75rem;
  transition: background-color 300ms ease;
}

.stats > div:hover {
  background: var(--secondary);
}

.stats dt {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
}

.stats dd {
  margin-top: 0.5rem;
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.scroll-cue {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3.5rem;
  font-size: 0.625rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  transition: color 300ms ease;
}

.scroll-cue:hover {
  color: var(--primary);
}

.scroll-cue span {
  width: 1px;
  height: 2.5rem;
  background: linear-gradient(to bottom, var(--gold), transparent);
}

/* -------------------------------------------------------------
   Book covers with tilt
   ------------------------------------------------------------- */
.tilt-stage {
  perspective: 1100px;
}

.tilt-card {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 500ms var(--ease);
  will-change: transform;
}

.tilt-card img {
  box-shadow: var(--shadow-book);
  width: 100%;
}

.book-spine {
  position: absolute;
  inset-block: 0;
  left: 0;
  width: 10px;
  background: linear-gradient(90deg, oklch(0.2 0.02 47 / 0.42), oklch(0.2 0.02 47 / 0.05));
  pointer-events: none;
}

.book-sheen {
  position: absolute;
  inset-block: 0;
  right: 0;
  width: 5px;
  background: linear-gradient(90deg, oklch(1 0 0 / 0), oklch(1 0 0 / 0.5));
  pointer-events: none;
}

/* -------------------------------------------------------------
   Featured novel
   ------------------------------------------------------------- */
.featured__grid {
  display: grid;
  align-items: center;
  gap: 3rem;
}

@media (min-width: 768px) {
  .featured__grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
    gap: 4rem;
  }
}

.featured__cover {
  width: 100%;
  max-width: 18rem;
  margin: 0 auto;
}

.featured__caption {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.25rem, 5vw, 3rem);
  line-height: 1.1;
}

.h2--italic {
  font-style: italic;
}

.subtitle {
  margin-top: 0.5rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--muted-foreground);
}

.lede {
  margin-top: 1.75rem;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--muted-foreground);
}

@media (min-width: 640px) {
  .lede {
    font-size: 1.125rem;
  }
}

.characters {
  margin-top: 2.25rem;
}

@media (min-width: 640px) {
  .characters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.characters article {
  padding: 1.25rem;
}

.characters h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1;
}

.characters p:first-of-type {
  margin-top: 0.5rem;
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.characters p:last-of-type {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--muted-foreground);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

/* -------------------------------------------------------------
   Marquee
   ------------------------------------------------------------- */
.marquee {
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: var(--secondary);
  padding: 1rem 0;
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee-slide 46s linear infinite;
}

.marquee__group {
  display: flex;
  flex-shrink: 0;
}

.marquee__item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0 1.5rem;
  font-family: var(--font-display);
  font-size: 1.125rem;
  white-space: nowrap;
  color: var(--muted-foreground);
}

@keyframes marquee-slide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* -------------------------------------------------------------
   Pull quote
   ------------------------------------------------------------- */
.pullquote {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
}

.pullquote__mark {
  display: block;
  font-family: var(--font-display);
  font-size: 3.75rem;
  line-height: 1;
  color: var(--gold);
}

.pullquote blockquote {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1.35;
}

@media (min-width: 640px) {
  .pullquote blockquote {
    font-size: 1.875rem;
  }
}

.pullquote cite {
  display: block;
  margin-top: 2rem;
  font-style: normal;
  font-size: 0.625rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

/* -------------------------------------------------------------
   Interview
   ------------------------------------------------------------- */
.interview__grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 768px) {
  .interview__grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
    gap: 4rem;
  }
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--background);
  box-shadow: var(--shadow-soft);
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* -------------------------------------------------------------
   Books
   ------------------------------------------------------------- */
.books__list {
  margin-top: 4rem;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.book {
  display: grid;
  gap: 2rem;
  border-top: 1px solid var(--border);
  padding-top: 2.5rem;
}

@media (min-width: 768px) {
  .book {
    grid-template-columns: minmax(0, 14rem) minmax(0, 1fr);
    gap: 3rem;
  }
}

.book__cover {
  width: 100%;
  max-width: 14rem;
  margin: 0 auto;
}

.book h3 {
  margin-top: 0.75rem;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.875rem, 4vw, 2.25rem);
  line-height: 1.15;
}

.book__subtitle {
  margin-top: 0.25rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--muted-foreground);
}

.book__synopsis {
  margin-top: 1.25rem;
  line-height: 1.75;
  color: var(--muted-foreground);
}

.book__rating {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.book__rating strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
}

.book__rating .kicker {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
}

.excerpt {
  margin-top: 2rem;
  border-left: 2px solid var(--gold);
  padding: 1.75rem 1.5rem;
}

@media (min-width: 640px) {
  .excerpt {
    padding: 1.75rem 2rem;
  }
}

.excerpt[hidden] {
  display: none;
}

.excerpt__body {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: 1.125rem;
  line-height: 1.7;
}

@media (min-width: 640px) {
  .excerpt__body {
    font-size: 1.25rem;
  }
}

.excerpt__body::first-letter {
  float: left;
  font-family: var(--font-display);
  font-size: 3.4em;
  line-height: 0.82;
  padding-right: 0.08em;
  color: var(--primary);
}

/* -------------------------------------------------------------
   Reader reviews carousel
   ------------------------------------------------------------- */
.reviews {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
}

.reviews__stage {
  position: relative;
  margin-top: 2.5rem;
  min-height: 15rem;
}

@media (min-width: 640px) {
  .reviews__stage {
    min-height: 12rem;
  }
}

.reviews__item {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 700ms ease;
}

.reviews__item[data-on="true"] {
  opacity: 1;
}

.reviews__item blockquote {
  margin-top: 1.25rem;
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1.35;
}

@media (min-width: 640px) {
  .reviews__item blockquote {
    font-size: 1.875rem;
  }
}

.reviews__item figcaption {
  margin-top: 1.5rem;
  font-size: 0.625rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.reviews__dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.reviews__dots button {
  width: 2rem;
  height: 0.375rem;
  border: 0;
  background: var(--border);
  cursor: pointer;
  transition: background-color 300ms ease;
}

.reviews__dots button[data-on="true"] {
  background: var(--gold);
}

/* -------------------------------------------------------------
   Places
   ------------------------------------------------------------- */
.places {
  margin-top: 3.5rem;
}

@media (min-width: 640px) {
  .places {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.places article {
  height: 100%;
  padding: 2.5rem 1.5rem;
}

.places h3 {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.875rem;
}

.places p:first-child {
  font-size: 0.625rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

.places p:last-child {
  margin-top: 1rem;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--muted-foreground);
}

/* -------------------------------------------------------------
   About
   ------------------------------------------------------------- */
.about__grid {
  position: relative;
  display: grid;
  gap: 3.5rem;
}

@media (min-width: 768px) {
  .about__grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
    gap: 4rem;
  }
}

.about__portrait img {
  box-shadow: var(--shadow-soft);
  width: 100%;
}

.about__portrait figcaption {
  margin-top: 1rem;
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.about__bio {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  line-height: 1.75;
  color: var(--muted-foreground);
}

@media (min-width: 640px) {
  .about__bio {
    font-size: 1.125rem;
  }
}

.timeline {
  margin-top: 3rem;
}

.timeline__thread {
  position: absolute;
  top: 0.5rem;
  bottom: 0.5rem;
  left: 0;
  width: 1px;
  background: linear-gradient(180deg, var(--gold), color-mix(in oklab, var(--gold) 10%, transparent));
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform 1200ms var(--ease);
}

.timeline[data-revealed="true"] .timeline__thread {
  transform: scaleY(1);
}

.timeline__list {
  position: relative;
  margin-top: 1.5rem;
  padding-left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.timeline__list li {
  position: relative;
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1rem;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.timeline__list li::before {
  content: "";
  position: absolute;
  top: 1.5rem;
  left: -1.5rem;
  width: 0.375rem;
  height: 0.375rem;
  margin-left: -3px;
  border-radius: 9999px;
  background: var(--gold);
}

.timeline__year {
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--gold);
}

.timeline__text {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--muted-foreground);
}

/* -------------------------------------------------------------
   Press
   ------------------------------------------------------------- */
.press {
  margin-top: 3rem;
}

@media (min-width: 640px) {
  .press {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.press__card {
  display: flex;
  height: 100%;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.75rem;
  transition: background-color 300ms ease;
}

@media (min-width: 640px) {
  .press__card {
    padding: 2.25rem;
  }
}

.press__card:hover {
  background: var(--secondary);
}

.press__headline {
  display: block;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.5rem;
  line-height: 1.3;
  transition: color 300ms ease;
}

@media (min-width: 640px) {
  .press__headline {
    font-size: 1.875rem;
  }
}

.press__card:hover .press__headline {
  color: var(--primary);
}

.press__note {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.press__arrow {
  color: var(--gold);
  transition: transform 300ms ease;
}

.press__card:hover .press__arrow {
  transform: translateX(4px);
}

/* -------------------------------------------------------------
   Newsletter
   ------------------------------------------------------------- */
.letter {
  max-width: 42rem;
  margin: 0 auto;
  text-align: center;
}

.letter__envelope {
  width: 4rem;
  height: 3rem;
  margin: 0 auto;
  color: var(--gold);
}

.letter__promises {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

@media (min-width: 640px) {
  .letter__promises {
    flex-direction: row;
    justify-content: center;
    gap: 1.5rem;
  }
}

.letter__promises li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.letter__form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 28rem;
  margin: 2.5rem auto 0;
}

@media (min-width: 640px) {
  .letter__form {
    flex-direction: row;
  }
}

.letter__form input {
  flex: 1;
  border: 1px solid var(--border);
  background: var(--background);
  padding: 0.8rem 1rem;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 300ms ease;
}

.letter__form input:focus {
  border-color: var(--ring);
}

.letter__form button[disabled] {
  opacity: 0.6;
}

.letter__note {
  margin-top: 1rem;
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.letter__error {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--destructive);
}

.letter__done {
  margin-top: 2.5rem;
}

.stamp {
  display: flex;
  width: 7rem;
  height: 7rem;
  margin: 0 auto;
  align-items: center;
  justify-content: center;
  border: 2px solid color-mix(in oklab, var(--primary) 60%, transparent);
  border-radius: 9999px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  line-height: 1.3;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  color: var(--primary);
  animation: stamp-in 700ms var(--ease) both;
}

@keyframes stamp-in {
  0% {
    opacity: 0;
    transform: scale(1.6) rotate(-14deg);
  }
  60% {
    opacity: 1;
    transform: scale(0.94) rotate(-7deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(-7deg);
  }
}

.letter__done p {
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--muted-foreground);
}

/* -------------------------------------------------------------
   Sticky order bar
   ------------------------------------------------------------- */
.book-bar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 40;
  border-top: 1px solid var(--border);
  background: color-mix(in oklab, var(--background) 95%, transparent);
  backdrop-filter: blur(12px);
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 500ms var(--ease), opacity 500ms ease;
}

.book-bar[data-visible="true"] {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.book-bar__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.book-bar img {
  width: 2rem;
  height: 3rem;
  object-fit: cover;
}

.book-bar__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.book-bar__text {
  flex: 1;
  min-width: 0;
}

/* -------------------------------------------------------------
   Footer
   ------------------------------------------------------------- */
.site-footer {
  padding: 3.5rem 0 7rem;
}

@media (min-width: 640px) {
  .site-footer {
    padding-bottom: 5rem;
  }
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.site-footer__name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.03em;
}

.site-footer .rule-gold {
  width: 10rem;
}

.site-footer__line {
  max-width: 28rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.35;
  color: var(--muted-foreground);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.625rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.site-footer nav a {
  color: var(--muted-foreground);
  transition: color 300ms ease;
}

.site-footer nav a:hover {
  color: var(--primary);
}

.site-footer__copy {
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

/* -------------------------------------------------------------
   Blog / inner pages (fallback templates)
   ------------------------------------------------------------- */
.page-shell {
  padding: 9rem 0 5rem;
}

.entry + .entry {
  margin-top: 3.5rem;
  border-top: 1px solid var(--border);
  padding-top: 3.5rem;
}

.entry__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
}

.entry__meta {
  margin-top: 0.75rem;
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.entry__content {
  margin-top: 1.5rem;
  line-height: 1.8;
  color: var(--muted-foreground);
}

.entry__content h2,
.entry__content h3 {
  font-family: var(--font-display);
  color: var(--foreground);
  margin-top: 2rem;
}

.entry__content p {
  margin-bottom: 1.25rem;
}

.entry__content a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.entry__content ul,
.entry__content ol {
  margin: 0 0 1.25rem 1.25rem;
  list-style: disc;
}

.entry__content blockquote {
  border-left: 2px solid var(--gold);
  padding-left: 1.25rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
}

.pagination {
  display: flex;
  gap: 1rem;
  margin-top: 3rem;
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.pagination a,
.pagination .current {
  border: 1px solid var(--border);
  padding: 0.6rem 0.9rem;
}

.pagination .current {
  border-color: var(--gold);
  color: var(--gold);
}

/* -------------------------------------------------------------
   Reduced motion
   ------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .marquee__track,
  .stamp {
    animation: none;
  }
  .reveal,
  .word {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .rule-draw,
  .timeline__thread {
    transform: none;
    transition: none;
  }
  .tilt-card {
    transform: none !important;
    transition: none;
  }
}
/* v4: preserve visible, breakable spacing between animated inline-block words. */
.word-space::before { content: " "; white-space: pre; }
