:root {
  --bg: oklch(98% 0.006 95);
  --surface: oklch(100% 0.002 95);
  --surface-2: oklch(96% 0.008 95);
  --fg: oklch(18% 0.018 70);
  --muted: oklch(45% 0.014 70);
  --border: oklch(88% 0.008 92);
  --accent: oklch(42% 0.11 28);
  --accent-2: oklch(36% 0.08 250);
  --gold: oklch(67% 0.09 78);
  --success: oklch(52% 0.11 150);
  --warn: oklch(68% 0.12 75);
  --danger: oklch(54% 0.16 30);
  --shadow: 0 16px 34px rgba(45, 28, 20, 0.10);
  --radius: 8px;
  --motion-fast: 140ms;
  --motion-base: 240ms;
  --motion-reveal: 520ms;
  --motion-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Iowan Old Style", "Charter", Georgia, serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, var(--bg), oklch(96.5% 0.007 94));
  color: var(--fg);
  font: 16px/1.5 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid color-mix(in oklch, var(--border) 88%, transparent);
  background: color-mix(in oklch, var(--bg) 86%, white 14%);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  width: min(1440px, calc(100% - 40px));
  min-height: 78px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--fg);
  color: var(--surface);
  background: var(--fg);
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0;
}

.nav-links {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 32px);
  color: var(--muted);
  font-size: 14px;
}

.nav-links a,
.footer-links a {
  position: relative;
}

.nav-links a::after,
.footer-links a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -6px;
  left: 0;
  height: 1px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--accent);
  transition: transform var(--motion-fast) var(--motion-ease);
}

.nav-links a:hover::after,
.footer-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.meta-pill,
.cart-pill,
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  background: color-mix(in oklch, var(--surface) 86%, transparent);
  font-size: 12px;
  line-height: 1;
}

.cart-pill {
  color: var(--fg);
}

.cart-pill strong {
  position: relative;
  min-width: 20px;
  min-height: 20px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  transition: transform var(--motion-fast) var(--motion-ease);
}

.cart-pill.is-bumping strong {
  animation: cartBump 360ms var(--motion-ease);
  will-change: transform;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--fg);
}

.container {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
}

.wide-container {
  width: min(1440px, calc(100% - 40px));
  margin: 0 auto;
}

.section {
  padding: clamp(56px, 8vw, 112px) 0;
}

.section-tight {
  padding: clamp(36px, 6vw, 72px) 0;
}

.kicker {
  margin: 0 0 14px;
  color: var(--accent);
  font: 700 12px/1 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0;
}

h1 {
  max-width: 11ch;
  font-size: clamp(56px, 9vw, 132px);
  line-height: 0.9;
}

h2 {
  font-size: clamp(36px, 5vw, 72px);
  line-height: 0.98;
}

h3 {
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.08;
}

p {
  margin: 0;
}

.lead {
  color: var(--muted);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.55;
}

.copy {
  color: var(--muted);
  line-height: 1.65;
}

.eyebrow-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.button,
.button-ghost,
.button-dark {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 2px;
  border: 1px solid var(--accent);
  cursor: pointer;
  font-weight: 700;
  transition:
    transform var(--motion-fast) var(--motion-ease),
    background var(--motion-fast) linear,
    border-color var(--motion-fast) linear;
}

.button {
  color: white;
  background: var(--accent);
}

.button-dark {
  color: white;
  background: var(--fg);
  border-color: var(--fg);
}

.button-ghost {
  color: var(--fg);
  background: transparent;
  border-color: var(--border);
}

.button:hover,
.button-ghost:hover,
.button-dark:hover {
  transform: translateY(-1px);
}

.button:disabled,
.button-ghost:disabled,
.button-dark:disabled,
button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.62;
  transform: none;
}

.button.is-loading,
.button-ghost.is-loading,
.button-dark.is-loading {
  pointer-events: none;
}

.button.is-loading::before,
.button-ghost.is-loading::before,
.button-dark.is-loading::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 1.5px solid currentColor;
  border-right-color: transparent;
  border-radius: 999px;
  animation: buttonSpin 680ms linear infinite;
}

.button.is-confirmed {
  border-color: var(--accent);
  background: color-mix(in oklch, var(--accent) 88%, var(--fg));
  transform: translateY(-1px) scale(0.985);
}

.button-ghost.is-confirmed {
  border-color: var(--accent);
  background: color-mix(in oklch, var(--accent) 10%, var(--surface));
  transform: translateY(-1px) scale(0.985);
}

.hero {
  min-height: calc(100vh - 78px);
  display: grid;
  align-items: stretch;
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 0.78fr);
  gap: clamp(32px, 6vw, 86px);
  align-items: center;
  padding: clamp(48px, 6vw, 86px) 0;
}

.hero-copy {
  display: grid;
  gap: 28px;
}

.hero-panel {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  border: 1px solid var(--fg);
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 74px),
    oklch(18% 0.018 70);
  color: white;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(255,255,255,0.18);
  pointer-events: none;
}

.hero-stamp {
  position: absolute;
  top: 32px;
  left: 32px;
  width: 120px;
  height: 120px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.45);
  border-radius: 50%;
  color: rgba(255,255,255,0.82);
  font: 700 11px/1.3 var(--font-mono);
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
}

.shelf-visual {
  position: absolute;
  right: 8%;
  bottom: 9%;
  left: 12%;
  height: 72%;
  display: grid;
  grid-template-columns: 1fr 0.86fr 0.72fr;
  align-items: end;
  gap: 16px;
}

.spine {
  position: relative;
  min-height: 72%;
  padding: 22px 18px;
  display: flex;
  align-items: flex-end;
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: 10px 18px 34px rgba(0,0,0,0.22);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--font-display);
  font-size: 34px;
}

.spine:nth-child(1) {
  height: 98%;
  background: #efe3cd;
  color: #2d211a;
}

.spine:nth-child(2) {
  height: 84%;
  background: #6f1f2b;
  color: #fff8ef;
}

.spine:nth-child(3) {
  height: 70%;
  background: #b79b4c;
  color: #1d1711;
}

.proof-strip {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255,255,255,0.18);
}

.proof-strip span {
  padding: 18px 16px;
  border-right: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.74);
  font: 12px/1.4 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stats-row,
.feature-grid,
.book-grid,
.article-grid,
.dashboard-grid {
  display: grid;
  gap: 18px;
}

.stats-row {
  grid-template-columns: repeat(4, 1fr);
  margin-top: 34px;
}

.stat,
.card,
.feature,
.panel,
.notice,
.checkout-card {
  border: 1px solid var(--border);
  background: color-mix(in oklch, var(--surface) 94%, transparent);
}

.stat {
  padding: 22px;
  background: transparent;
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 44px;
  line-height: 1;
}

.stat span {
  color: var(--muted);
  font-size: 13px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 0.75fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.feature-grid {
  grid-template-columns: repeat(3, 1fr);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.mt-20 { margin-top: 20px; }

.feature,
.card,
.panel,
.checkout-card {
  padding: clamp(20px, 3vw, 30px);
}

.feature {
  display: grid;
  gap: 16px;
  align-content: start;
  border-width: 1px 0 0;
  background: transparent;
  padding-inline: 0;
}

.feature-index {
  color: var(--accent);
  font: 700 12px/1 var(--font-mono);
  letter-spacing: 0.12em;
}

.book-grid {
  grid-template-columns: repeat(4, 1fr);
}

.book-card {
  display: grid;
  gap: 14px;
  min-width: 0;
}

[data-catalog-grid] .book-card {
  transition:
    opacity var(--motion-base) var(--motion-ease),
    transform var(--motion-base) var(--motion-ease);
}

[data-catalog-grid] .book-card.is-entering {
  opacity: 0;
  transform: translate3d(0, 10px, 0);
  will-change: opacity, transform;
}

.book-cover {
  position: relative;
  aspect-ratio: 3 / 4.25;
  overflow: hidden;
  border: 1px solid color-mix(in oklch, var(--fg) 26%, var(--border));
  background:
    linear-gradient(180deg, rgba(18, 15, 12, 0.02) 0%, rgba(18, 15, 12, 0.16) 48%, rgba(18, 15, 12, 0.74) 100%),
    var(--cover-image, linear-gradient(135deg, var(--cover-bg, #6a1e2b), color-mix(in oklch, var(--cover-bg, #6a1e2b) 72%, var(--fg)))),
    var(--cover-bg, #6a1e2b);
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow);
}

.book-cover::before {
  content: "";
  position: absolute;
  inset: 7%;
  border: 1px solid color-mix(in oklch, white 48%, transparent);
  background:
    linear-gradient(90deg, rgba(255,255,255,0.08), transparent 20% 80%, rgba(0,0,0,0.18)),
    linear-gradient(180deg, rgba(255,255,255,0.12), transparent 34%);
  mix-blend-mode: soft-light;
}

.book-cover::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 12%;
  width: 1px;
  background: rgba(0,0,0,0.2);
}

.cover-title {
  position: absolute;
  right: 11%;
  bottom: 10%;
  left: 11%;
  color: var(--cover-fg, white);
  font-family: var(--font-display);
  font-size: clamp(26px, 5vw, 48px);
  line-height: 0.92;
  text-shadow: 0 2px 18px rgba(0,0,0,0.48);
}

.cover-meta {
  position: absolute;
  top: 10%;
  left: 11%;
  color: var(--cover-fg, white);
  font: 700 10px/1 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(0,0,0,0.48);
}

.book-meta {
  display: grid;
  gap: 7px;
}

.book-title {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.05;
}

.book-author,
.small {
  color: var(--muted);
  font-size: 14px;
}

.price-row,
.card-row,
.line-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.price {
  font: 700 18px/1 var(--font-mono);
}

.tabs,
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tab,
.filter-chip {
  min-height: 38px;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
}

.tab.is-active,
.filter-chip.is-active,
.status-pill.is-active {
  color: white;
  border-color: var(--accent);
  background: var(--accent);
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto auto;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.field {
  display: grid;
  gap: 8px;
}

.field label,
.field > span {
  color: var(--muted);
  font-size: 13px;
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
  color: var(--fg);
  padding: 11px 12px;
  transition:
    border-color var(--motion-fast) linear,
    box-shadow var(--motion-fast) linear,
    background var(--motion-fast) linear;
}

.input:disabled,
.select:disabled,
.textarea:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  background: color-mix(in oklch, var(--surface-2) 88%, var(--border));
}

.textarea {
  min-height: 120px;
  resize: vertical;
}

.input:focus,
.select:focus,
.textarea:focus,
.tab:focus,
.filter-chip:focus,
.format-card:focus,
.menu-button:focus,
.qty-control button:focus,
.button:focus,
.button-ghost:focus,
.button-dark:focus {
  outline: 2px solid color-mix(in oklch, var(--accent) 35%, transparent);
  outline-offset: 2px;
}

.input[aria-invalid="true"],
.select[aria-invalid="true"],
.textarea[aria-invalid="true"],
.check-row.is-invalid {
  border-color: color-mix(in oklch, var(--danger) 74%, var(--border));
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--danger) 12%, transparent);
}

.check-row.is-invalid {
  padding: 8px 10px;
  border: 1px solid color-mix(in oklch, var(--danger) 74%, var(--border));
  background: color-mix(in oklch, var(--danger) 6%, var(--surface));
}

.field-error,
.form-status {
  color: var(--danger);
  font-size: 13px;
  line-height: 1.4;
}

.form-status {
  margin-top: 12px;
  padding: 11px 12px;
  border: 1px solid color-mix(in oklch, var(--border) 84%, var(--danger));
  background: color-mix(in oklch, var(--surface) 94%, var(--danger) 6%);
}

.form-status.is-success {
  color: color-mix(in oklch, var(--success) 86%, var(--fg));
  border-color: color-mix(in oklch, var(--success) 34%, var(--border));
  background: color-mix(in oklch, var(--success) 8%, var(--surface));
}

.form-status.is-loading {
  color: var(--muted);
}

.empty-state {
  display: grid;
  justify-items: start;
  gap: 12px;
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid color-mix(in oklch, var(--border) 88%, var(--fg));
  background:
    linear-gradient(90deg, color-mix(in oklch, var(--border) 30%, transparent) 1px, transparent 1px) 0 0 / 54px 54px,
    color-mix(in oklch, var(--surface) 94%, var(--bg));
}

.empty-state h3 {
  font-size: clamp(28px, 4vw, 42px);
}

.empty-state p {
  max-width: 58ch;
}

.page-hero {
  padding: clamp(48px, 7vw, 96px) 0 clamp(32px, 5vw, 68px);
  border-bottom: 1px solid var(--border);
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.62fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
}

.breadcrumbs {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 13px;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 26px;
}

.sidebar {
  position: sticky;
  top: 102px;
  align-self: start;
  display: grid;
  gap: 18px;
}

.filter-box {
  padding: 18px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.check-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.check-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
}

.check-row input {
  flex: 0 0 auto;
}

.check-row .field-error {
  flex-basis: 100%;
  padding-left: 24px;
}

.book-detail-grid {
  display: grid;
  grid-template-columns: minmax(340px, 0.72fr) minmax(0, 1fr);
  gap: clamp(34px, 6vw, 88px);
  align-items: start;
}

.purchase-box {
  display: grid;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--fg);
  background: var(--surface);
}

.format-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.format-card {
  padding: 13px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  cursor: pointer;
}

.format-card.is-active {
  border-color: var(--accent);
  background: color-mix(in oklch, var(--accent) 9%, var(--surface));
}

.audio-player,
.reader-preview,
.fund-calculator,
.order-summary {
  display: grid;
  gap: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 20px;
}

.progress {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-2);
}

.progress span {
  display: block;
  height: 100%;
  width: var(--value, 50%);
  background: var(--accent);
}

.cart-layout,
.account-layout,
.admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
}

.cart-item,
.order-item,
.review-item,
.submission-item {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.mini-cover {
  aspect-ratio: 3 / 4;
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(20, 14, 12, 0.06), rgba(20, 14, 12, 0.32)),
    var(--cover-image, linear-gradient(135deg, var(--cover-bg, #6a1e2b), color-mix(in oklch, var(--cover-bg, #6a1e2b) 72%, var(--fg)))),
    var(--cover-bg, #6a1e2b);
  background-position: center;
  background-size: cover;
}

.qty-control {
  display: inline-grid;
  grid-template-columns: 34px 44px 34px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 999px;
}

.qty-control button,
.qty-control span {
  min-height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  background: var(--surface);
}

.qty-control span {
  font-family: var(--font-mono);
}

.account-menu,
.admin-menu {
  display: grid;
  gap: 8px;
}

.menu-button {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  text-align: left;
  cursor: pointer;
}

.menu-button.is-active {
  color: white;
  border-color: var(--fg);
  background: var(--fg);
}

.tab-panel[hidden] {
  display: none;
}

.timeline {
  display: grid;
  gap: 14px;
  counter-reset: step;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 16px;
  align-items: start;
}

.timeline-item::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--fg);
  font-family: var(--font-mono);
  font-size: 12px;
}

.article-grid {
  grid-template-columns: repeat(3, 1fr);
}

.article-card {
  display: grid;
  gap: 18px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.article-image {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  background: var(--article-bg, #2a1a15);
}

.article-image::before {
  content: "";
  position: absolute;
  inset: 22px 26px;
  border: 1px solid color-mix(in oklch, white 36%, transparent);
}

.article-image::after {
  content: "";
  position: absolute;
  top: 18%;
  bottom: 18%;
  left: 50%;
  width: 1px;
  background: color-mix(in oklch, white 32%, transparent);
}

.article-body {
  display: grid;
  gap: 12px;
  padding: 0 20px 22px;
}

.donation-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: start;
}

.program-card {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.program-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  background: var(--surface-2);
  font-family: var(--font-display);
  font-size: 28px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  background: var(--surface);
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font: 700 12px/1 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

td {
  font-size: 14px;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--fg);
  color: white;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.8fr;
  gap: 32px;
  padding: 54px 0;
}

.footer-links {
  display: grid;
  gap: 10px;
  color: rgba(255,255,255,0.72);
}

.newsletter-inline {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 18px;
}

.newsletter-inline .input {
  border-color: rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  color: white;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0 28px;
  border-top: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.58);
  font-size: 13px;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 100;
  max-width: 340px;
  padding: 14px 16px;
  border: 1px solid color-mix(in oklch, var(--accent) 38%, var(--border));
  background: var(--fg);
  color: white;
  box-shadow: var(--shadow);
  transform: translate3d(0, 18px, 0);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity var(--motion-base) var(--motion-ease),
    transform var(--motion-base) var(--motion-ease);
}

.toast.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@keyframes cartBump {
  0% {
    transform: scale(1);
  }
  42% {
    transform: scale(1.18);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes buttonSpin {
  to {
    transform: rotate(1turn);
  }
}

[data-reveal] {
  transform: translate3d(0, 14px, 0);
  opacity: 0;
  transition:
    opacity var(--motion-reveal) var(--motion-ease),
    transform var(--motion-reveal) var(--motion-ease);
}

[data-reveal]:not(.is-visible) {
  will-change: opacity, transform;
}

[data-reveal].is-visible {
  transform: translate3d(0, 0, 0);
  opacity: 1;
}

[data-catalog-grid] .empty-state {
  grid-column: 1 / -1;
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  [data-reveal],
  [data-reveal].is-visible,
  [data-catalog-grid] .book-card,
  [data-catalog-grid] .book-card.is-entering {
    transform: none !important;
    opacity: 1 !important;
  }

  .toast {
    transform: none !important;
  }
}
