/* Tina the Tarantula — Mojave editorial author site */
:root,
[data-theme='light'] {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 4.5rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Hot Mojave sand + terracotta + deep canyon shadow */
  --color-bg: #f6efe4;
  --color-surface: #fbf6ed;
  --color-surface-2: #fffdf8;
  --color-surface-offset: #efe4d2;
  --color-divider: #e2d3bc;
  --color-border: #d4c2a6;
  --color-text: #2a2118;
  --color-text-muted: #6e5f4e;
  --color-text-faint: #756656;
  --color-text-inverse: #fbf6ed;
  --color-primary: #9a4a1c;
  --color-primary-hover: #7a3814;
  --color-primary-active: #5c2a0f;
  --color-primary-highlight: #edd9c8;
  --color-sky: #3d6f8f;
  --color-sky-soft: #c5dce8;

  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-sm: 0 1px 2px oklch(0.35 0.04 60 / 0.08);
  --shadow-md: 0 6px 20px oklch(0.35 0.04 60 / 0.12);
  --shadow-lg: 0 16px 40px oklch(0.35 0.04 60 / 0.16);
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1120px;
  --font-display: 'Fraunces', 'Georgia', serif;
  --font-body: 'Source Sans 3', 'Helvetica Neue', sans-serif;
}

[data-theme='dark'] {
  --color-bg: #1a1612;
  --color-surface: #221c17;
  --color-surface-2: #2a231c;
  --color-surface-offset: #2f2720;
  --color-divider: #3a3229;
  --color-border: #4a3f33;
  --color-text: #ebe2d4;
  --color-text-muted: #a89884;
  --color-text-faint: #b5a48f;
  --color-text-inverse: #1a1612;
  --color-primary: #d4844a;
  --color-primary-hover: #e49a62;
  --color-primary-active: #f0b07a;
  --color-primary-highlight: #3d2c20;
  --color-sky: #7eb0cc;
  --color-sky-soft: #2a3f4a;
  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.3);
  --shadow-md: 0 6px 20px oklch(0 0 0 / 0.35);
  --shadow-lg: 0 16px 40px oklch(0 0 0 / 0.45);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #1a1612;
    --color-surface: #221c17;
    --color-surface-2: #2a231c;
    --color-surface-offset: #2f2720;
    --color-divider: #3a3229;
    --color-border: #4a3f33;
    --color-text: #ebe2d4;
    --color-text-muted: #a89884;
    --color-text-faint: #b5a48f;
    --color-text-inverse: #1a1612;
    --color-primary: #d4844a;
    --color-primary-hover: #e49a62;
    --color-primary-active: #f0b07a;
    --color-primary-highlight: #3d2c20;
    --color-sky: #7eb0cc;
    --color-sky-soft: #2a3f4a;
    --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.3);
    --shadow-md: 0 6px 20px oklch(0 0 0 / 0.35);
    --shadow-lg: 0 16px 40px oklch(0 0 0 / 0.45);
  }
}

body {
  font-family: var(--font-body);
  background:
    radial-gradient(ellipse 120% 60% at 50% -10%, color-mix(in oklab, var(--color-sky-soft) 45%, transparent), transparent 55%),
    var(--color-bg);
}

a {
  color: var(--color-primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--color-primary-hover);
}

.wrap {
  width: min(100% - var(--space-8), var(--content-wide));
  margin-inline: auto;
}

.wrap-narrow {
  width: min(100% - var(--space-8), var(--content-narrow));
  margin-inline: auto;
}

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
  padding-block: var(--space-3);
  min-height: 3.5rem;
  position: relative;
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  margin-left: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-text);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  min-height: 44px;
  min-width: 44px;
}

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

.brand svg {
  flex-shrink: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: var(--text-sm);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-full);
}

.nav a:hover,
.nav a[aria-current='page'] {
  color: var(--color-text);
  background: var(--color-surface-offset);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  border: 1px solid transparent;
}

.theme-toggle:hover {
  color: var(--color-text);
  background: var(--color-surface-offset);
}

/* Hero */
.hero {
  padding-block: clamp(var(--space-12), 10vw, var(--space-24)) var(--space-16);
}

.hero-grid {
  display: grid;
  gap: var(--space-10);
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--space-16);
  }
}

.eyebrow {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-sky);
  margin-bottom: var(--space-4);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 550;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: var(--space-6);
  max-width: 16ch;
}

.lede {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: 1.55;
  max-width: 38ch;
  margin-bottom: var(--space-8);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 2.75rem;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}

.btn-primary:hover {
  background: var(--color-primary-hover);
  color: var(--color-text-inverse);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn-ghost:hover {
  background: var(--color-surface);
  color: var(--color-text);
  border-color: var(--color-primary);
}

.hero-visual {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  aspect-ratio: 16 / 11;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Sections */
.section {
  padding-block: clamp(var(--space-12), 8vw, var(--space-20));
}

.section-alt {
  background: var(--color-surface);
  border-block: 1px solid var(--color-divider);
}

.section-head {
  margin-bottom: var(--space-10);
  max-width: 40rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 550;
  margin-bottom: var(--space-3);
}

.section-head p {
  color: var(--color-text-muted);
}

/* Book cards */
.book-grid {
  display: grid;
  gap: var(--space-8);
}

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

.book-card {
  display: grid;
  gap: var(--space-6);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  transition:
    transform var(--transition-interactive),
    box-shadow var(--transition-interactive);
}

.book-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: inherit;
}

@media (min-width: 520px) {
  .book-card {
    grid-template-columns: 140px 1fr;
    align-items: start;
  }
}

.book-card img {
  width: 100%;
  max-width: 180px;
  margin-inline: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}

.book-meta {
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-sky);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.book-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 550;
  margin-bottom: var(--space-3);
}

.book-card p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.coming-soon {
  margin-top: var(--space-8);
  padding: var(--space-5) var(--space-6);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-lg);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  background: color-mix(in oklab, var(--color-surface-offset) 50%, transparent);
}

/* Trailers */
.trailer-grid {
  display: grid;
  gap: var(--space-10);
}

.trailer-block h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

.trailer-block .meta {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

.video-shell {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: #000;
  box-shadow: var(--shadow-md);
}

.video-shell video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #111;
}

/* Book detail page */
.book-hero {
  display: grid;
  gap: var(--space-10);
  padding-block: clamp(var(--space-10), 8vw, var(--space-16));
  align-items: start;
}

@media (min-width: 800px) {
  .book-hero {
    grid-template-columns: minmax(200px, 280px) 1fr;
    gap: var(--space-12);
  }
}

.cover-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}

.cover-frame img {
  width: 100%;
}

.book-copy h1 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 550;
  margin-bottom: var(--space-3);
}

.book-copy .series-line {
  font-size: var(--text-sm);
  color: var(--color-sky);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--space-6);
}

.prose p {
  margin-bottom: var(--space-5);
  color: var(--color-text);
  max-width: 62ch;
  line-height: 1.7;
}

.prose p:last-child {
  margin-bottom: 0;
}

/* About */
.about-layout {
  display: grid;
  gap: var(--space-10);
  padding-block: clamp(var(--space-10), 8vw, var(--space-16));
}

@media (min-width: 900px) {
  .about-layout {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
  }
}

.about-layout h1 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  margin-bottom: var(--space-6);
}

.about-aside {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}

.about-aside h2 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  margin-bottom: var(--space-4);
}

.about-aside img {
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
  border: 1px solid var(--color-border);
}

.contact-line {
  margin-top: var(--space-6);
  font-size: var(--text-sm);
}

.contact-line a {
  font-weight: 600;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--color-divider);
  padding-block: var(--space-10);
  margin-top: var(--space-8);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: space-between;
  align-items: center;
}

.footer-inner a {
  color: var(--color-text-muted);
  text-decoration: none;
}

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

.page-title-block {
  padding-block: clamp(var(--space-10), 7vw, var(--space-16)) var(--space-4);
}

.page-title-block h1 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  margin-bottom: var(--space-3);
}

.page-title-block p {
  color: var(--color-text-muted);
  max-width: 42ch;
}

.split-visual {
  margin-top: var(--space-12);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
}

.split-visual img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

/* Mobile menu */
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-full);
  color: var(--color-text);
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.menu-toggle:hover {
  background: var(--color-surface-offset);
}

.menu-toggle-bars,
.menu-toggle-bars::before,
.menu-toggle-bars::after {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle-bars::before,
.menu-toggle-bars::after {
  content: '';
  position: absolute;
  left: 0;
}

.menu-toggle-bars::before { top: -6px; }
.menu-toggle-bars::after { top: 6px; }

.menu-toggle[aria-expanded='true'] .menu-toggle-bars {
  background: transparent;
}
.menu-toggle[aria-expanded='true'] .menu-toggle-bars::before {
  top: 0;
  transform: rotate(45deg);
}
.menu-toggle[aria-expanded='true'] .menu-toggle-bars::after {
  top: 0;
  transform: rotate(-45deg);
}

@media (max-width: 759px) {
  .brand-text {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    width: 100%;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-1);
    padding: var(--space-2) 0 var(--space-3);
    border-top: 1px solid var(--color-divider);
    margin-top: var(--space-1);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 0.85rem 1rem;
    min-height: 44px;
    display: flex;
    align-items: center;
    border-radius: var(--radius-md);
    font-size: 1rem;
  }

  .header-inner {
    min-height: 3.25rem;
  }
}

@media (min-width: 760px) {
  .menu-toggle {
    display: none !important;
  }

  .nav {
    display: flex !important;
    width: auto;
    flex-basis: auto;
    flex-direction: row;
    flex-wrap: wrap;
    border-top: 0;
    margin-top: 0;
    padding: 0;
  }

  .header-actions {
    order: 3;
  }

  .nav {
    order: 2;
  }
}

/* Touch-friendly footer / contact */
.footer-inner a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0;
}

.contact-line a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}


/* Book 3 teaser */
.book3-teaser {
  display: grid;
  gap: var(--space-6);
  margin-top: var(--space-10);
  padding: var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background: var(--color-surface-2);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  transition:
    transform var(--transition-interactive),
    box-shadow var(--transition-interactive);
}

.book3-teaser:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: inherit;
}

@media (min-width: 800px) {
  .book3-teaser {
    grid-template-columns: 1.4fr 1fr;
    align-items: center;
    padding: var(--space-5);
    gap: var(--space-8);
  }
}

.book3-teaser-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: #1a1612;
  aspect-ratio: 16 / 9;
}

.book3-teaser-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book3-teaser-copy h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 550;
  margin-bottom: var(--space-3);
}

.book3-teaser-copy p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
}

.teaser-link {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
}

.book3-hero-frame {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  background: var(--color-surface);
}

.book3-hero-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.page-title-block .eyebrow {
  margin-bottom: var(--space-3);
}

/* Three-book home grid */
@media (min-width: 960px) {
  .book-grid-3 {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .book-grid-3 .book-card {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .book-grid-3 .book-card img {
    max-width: 100%;
    margin-inline: 0;
  }
}

.book-card-soon {
  position: relative;
}

.book-card-soon::after {
  content: "Coming soon";
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-inverse);
  background: var(--color-primary);
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-full);
}

/* Amazon buy boxes */
.buy-box {
  margin-top: 1.75rem;
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg, 14px);
  background: var(--color-surface, #f9f8f5);
}

.buy-box-label {
  margin: 0 0 0.25rem;
  font-size: var(--text-xs, 0.75rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted, #7a7974);
}

.buy-box-note {
  margin: 0 0 0.9rem;
  font-size: 0.92rem;
  color: var(--color-text-muted, #7a7974);
}

.buy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.btn-amazon {
  background: #146eb4;
  color: #fff !important;
  border: 1px solid #146eb4;
}

.btn-amazon:hover {
  background: #0f5a94;
  border-color: #0f5a94;
}

.btn-amazon-outline {
  background: transparent;
  color: #146eb4 !important;
  border: 1px solid #146eb4;
}

.btn-amazon-outline:hover {
  background: rgba(20, 110, 180, 0.08);
}

.btn-amazon-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  filter: grayscale(0.25);
  box-shadow: none;
  user-select: none;
}
.btn-amazon.btn-amazon-disabled {
  background: #146eb4;
  color: #fff !important;
  border-color: #146eb4;
}
.btn-amazon-outline.btn-amazon-disabled {
  background: transparent;
  color: #146eb4 !important;
}
.btn-ghost.btn-amazon-disabled {
  opacity: 0.45;
}

.buy-box-soon {
  border-style: dashed;
}

[data-theme="dark"] .buy-box {
  background: var(--color-surface, #1c1b19);
}

[data-theme="dark"] .btn-amazon-outline {
  color: #6db3e8 !important;
  border-color: #6db3e8;
}

/* Book excerpt: Listen or Read */
.excerpt-panel {
  margin-top: 0.5rem;
}

.excerpt-tabs {
  display: inline-flex;
  gap: 0.35rem;
  padding: 0.3rem;
  border-radius: 999px;
  background: var(--color-surface, #f9f8f5);
  border: 1px solid var(--color-border, #d4d1ca);
  margin-bottom: 1.25rem;
}

.excerpt-tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--color-text-muted, #7a7974);
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  cursor: pointer;
}

.excerpt-tab.is-active {
  background: var(--color-primary, #6b4f3a);
  color: #fff;
}

.excerpt-layout {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 900px) {
  .excerpt-layout {
    grid-template-columns: 1.05fr 1fr;
    gap: 2rem;
  }
}

.excerpt-art {
  margin: 0;
  border-radius: var(--radius-lg, 14px);
  overflow: hidden;
  border: 1px solid var(--color-border, #d4d1ca);
  background: var(--color-surface, #f9f8f5);
}

.excerpt-art img {
  display: block;
  width: 100%;
  height: auto;
}

.excerpt-art figcaption {
  padding: 0.7rem 1rem 0.85rem;
  font-size: 0.9rem;
  color: var(--color-text-muted, #7a7974);
  font-style: italic;
}

.excerpt-body {
  min-width: 0;
}

.excerpt-meta {
  margin: 0 0 0.85rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-muted, #7a7974);
}

.excerpt-directive {
  margin: 0 0 0.85rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text, #2a2118);
  line-height: 1.45;
}

.excerpt-play {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  border: 0;
  border-radius: 999px;
  background: var(--color-primary, #9a4a1c);
  color: var(--color-text-inverse, #fbf6ed);
  font: inherit;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.85rem 1.35rem 0.85rem 1.1rem;
  cursor: pointer;
  margin: 0 0 0.85rem;
  box-shadow: 0 2px 0 color-mix(in oklab, var(--color-primary, #9a4a1c) 55%, #000);
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.excerpt-play:hover {
  background: var(--color-primary-hover, #7a3814);
}

.excerpt-play:focus-visible {
  outline: 3px solid var(--color-sky, #3d6f8f);
  outline-offset: 3px;
}

.excerpt-play-icon {
  display: inline-flex;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  background: color-mix(in oklab, #fff 18%, transparent);
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.excerpt-play-icon svg {
  display: block;
  width: 0.95rem;
  height: 0.95rem;
}

.excerpt-play .icon-pause {
  display: none;
}

.excerpt-play.is-playing .icon-play {
  display: none;
}

.excerpt-play.is-playing .icon-pause {
  display: block;
}

.excerpt-play.is-highlighted,
.excerpt-audio.is-highlighted {
  animation: excerpt-pulse 0.8s ease 0s 3;
}

@keyframes excerpt-pulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--color-primary, #9a4a1c) 0%, transparent); }
  50% { box-shadow: 0 0 0 8px color-mix(in oklab, var(--color-primary, #9a4a1c) 28%, transparent); }
}

.excerpt-audio {
  width: 100%;
  margin: 0.15rem 0 0.75rem;
}

.excerpt-prose p {
  margin: 0 0 1rem;
  line-height: 1.7;
}

.excerpt-hint {
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
  color: var(--color-text-muted, #7a7974);
}

[data-theme="dark"] .excerpt-play {
  color: #1a1410;
}


.text-link {
  appearance: none;
  border: 0;
  background: none;
  color: var(--color-primary);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  cursor: pointer;
  padding: 0.35rem 0.45rem;
  margin: -0.35rem -0.2rem;
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
}

[data-theme="dark"] .excerpt-tabs {
  background: var(--color-surface, #1c1b19);
}

[data-theme="dark"] .excerpt-tab.is-active {
  background: var(--color-primary, #c4a574);
  color: #1a1410;
}

.excerpt-art-note {
  display: block;
  font-style: normal;
  font-size: 0.8rem;
  opacity: 0.85;
  margin-top: 0.2rem;
}
