/* Ammon Covino — dusk edition.
   One serif, two voices. Navy ink on cream stock; cream on night.
   Animation is transform/opacity only; GPU shaders live in static/js/shader.js. */

:root {
  --ink: #17232e;
  --ink-2: #3c4d5b;
  --ink-3: #66788a;
  --paper: #f3ede3;
  --paper-2: #e6ddcd;
  --card: #fbf8f2;
  --night: #0b1522;
  --night-2: #16283a;
  --cream: #f6efe2;
  --cream-2: #cfc4b3;
  --gold: #e6ad5e;
  --gold-2: #c9822b;
  --ember: #b4451d;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua",
           "Century Schoolbook L", "Bitstream Charter", Charter, Georgia, "Times New Roman", serif;

  --s1: .25rem; --s2: .5rem; --s3: .75rem; --s4: 1rem; --s5: 1.5rem;
  --s6: 2rem; --s7: 3rem; --s8: 4.5rem; --s9: 7rem;
  --r: 4px; --r-lg: 10px;
  --wrap: 1180px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --shadow: 0 1px 2px rgba(23, 35, 46, .06), 0 12px 32px -12px rgba(23, 35, 46, .28);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.55;
  overflow-x: hidden;
}

h1, h2, h3 { font-weight: 400; line-height: 1.1; margin: 0; }
p { margin: 0; }
em { font-style: italic; }
a { color: var(--gold-2); text-underline-offset: .15em; }

:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 3px; }

.skip {
  position: absolute; left: var(--s4); top: -3rem; z-index: 50;
  padding: var(--s2) var(--s4); background: var(--ink); color: var(--cream);
  border-radius: 0 0 var(--r) var(--r);
}
.skip:focus { top: 0; }

.kicker {
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ---------- Header ---------- */

.site-header {
  position: absolute; inset: 0 0 auto 0; z-index: 5;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline;
  row-gap: var(--s3);
  max-width: var(--wrap); margin: 0 auto;
  padding: var(--s5) var(--s5) 0;
  color: var(--cream);
}
.site-brand {
  font-size: 1.05rem; letter-spacing: .06em; text-transform: uppercase;
  color: inherit; text-decoration: none;
}
.site-nav { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s5); font-size: .92rem; }
.site-nav a { color: inherit; text-decoration: none; opacity: .82; transition: opacity .2s var(--ease); }
.site-nav a:hover { opacity: 1; text-decoration: underline; }

/* Home: full-bleed dark top wash so nav stays readable over a bright sunset photo */
.is-home .site-header {
  left: 0; right: 0;
  max-width: none;
  width: 100%;
  box-sizing: border-box;
  padding:
    var(--s5)
    max(var(--s5), calc((100% - var(--wrap)) / 2 + var(--s5)))
    1.6rem
    max(var(--s5), calc((100% - var(--wrap)) / 2 + var(--s5)));
  background: linear-gradient(
    180deg,
    rgba(11, 21, 34, .82) 0%,
    rgba(11, 21, 34, .5) 55%,
    rgba(11, 21, 34, 0) 100%
  );
  text-shadow: 0 1px 2px rgba(0, 0, 0, .7), 0 0 16px rgba(11, 21, 34, .55);
}
.is-home .site-nav a { opacity: .95; font-weight: 500; }
.is-home .site-nav a:hover { opacity: 1; }

.is-page .site-header { position: relative; color: var(--ink); padding-bottom: var(--s5); }
.is-page main { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--s5) var(--s8); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: end;
  background: linear-gradient(180deg, #0c1727 0%, #1c3049 46%, #2a3f5a 63%, #1a2c42 66%, #14233a 69%, #0b1522 100%);
  color: var(--cream);
}
.hero-sky, .hero-photo, .hero-scrim { position: absolute; }
.hero-sky { inset: 0; width: 100%; height: 100%; }

.hero-photo {
  top: 0; right: 0; height: 100%; width: min(62%, 84vh);
  object-fit: cover; object-position: 62% 42%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 42%), linear-gradient(0deg, transparent 0, #000 34%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0, #000 42%), linear-gradient(0deg, transparent 0, #000 34%);
  mask-composite: intersect;
  will-change: transform;
}

.hero-scrim {
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 21, 34, .55) 0, rgba(11, 21, 34, .2) 18%, rgba(11, 21, 34, 0) 34%),
    linear-gradient(0deg, rgba(11, 21, 34, .85) 0, rgba(11, 21, 34, .35) 22%, rgba(11, 21, 34, 0) 42%),
    linear-gradient(90deg, rgba(11, 21, 34, .22) 0, rgba(11, 21, 34, 0) 45%);
}

.hero-copy {
  position: relative; z-index: 1;
  width: min(100%, var(--wrap)); margin: 0 auto;
  padding: var(--s9) var(--s5) var(--s8);
}
.hero-copy .kicker { color: var(--cream-2); margin-bottom: var(--s4); }

.hero-role {
  margin: 0 0 var(--s3);
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-style: italic;
  letter-spacing: -.01em;
  text-transform: none;
  color: var(--cream-2);
}

.hero-name {
  font-size: clamp(2.6rem, 8.5vw, 6.4rem);
  line-height: .95;
  letter-spacing: -.015em;
  margin: 0 0 var(--s4) -.04em;
  color: var(--cream);
}
.hero-name span { display: block; }
.hero-name-pair {
  font-style: normal;
}
.hero-name-last {
  font-style: normal;
  padding-left: .15em;
}

.hero-line {
  max-width: 46ch;
  margin: 0 0 var(--s3);
  font-size: clamp(.95rem, 1.25vw, 1.1rem);
  line-height: 1.45;
  color: var(--cream-2);
}

.hero-with {
  margin: 0 0 var(--s4);
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  font-style: normal;
  letter-spacing: .02em;
  color: var(--cream-2);
}

.hero-joint {
  max-width: 42ch;
  margin: 0 0 var(--s4);
  font-size: clamp(.95rem, 1.2vw, 1.05rem);
  line-height: 1.45;
  color: var(--cream-2);
}

.hero-lede {
  max-width: 44ch;
  margin: var(--s2) 0 0;
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.5;
  color: var(--cream);
}

.hero-cue {
  display: inline-flex; align-items: center; gap: var(--s3);
  margin-top: var(--s6);
  font-size: .78rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--cream-2); text-decoration: none;
}
.hero-cue i { width: 2.6rem; height: 1px; background: currentColor; transform-origin: left; }
.hero-cue:hover { color: var(--cream); }

@media (prefers-reduced-motion: no-preference) {
  .hero-cue i { animation: cue 2.4s var(--ease) infinite; }
  @keyframes cue {
    0% { transform: scaleX(0); opacity: 0; }
    40% { transform: scaleX(1); opacity: 1; }
    100% { transform: scaleX(1) translateX(60%); opacity: 0; }
  }
}

@media (min-width: 760px) {
  .hero-copy { padding-bottom: var(--s9); }
  .hero-role, .hero-with, .hero-joint, .hero-line, .hero-lede { padding-left: .15rem; }
}

@media (max-width: 759px) {
  /* Photo on top, names below — Crystal’s face stays clear of the type */
  .hero {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-content: stretch;
    min-height: 100dvh;
  }
  .hero-photo {
    position: relative;
    top: auto;
    right: auto;
    z-index: 1;
    width: 100%;
    height: min(56vh, 440px);
    flex: 0 0 auto;
    object-position: center 22%; /* slide crop up toward faces */
    -webkit-mask-image: none;
    mask-image: none;
  }
  .hero-scrim {
    background:
      linear-gradient(180deg, rgba(11, 21, 34, .45) 0, rgba(11, 21, 34, 0) 22%),
      linear-gradient(0deg, rgba(11, 21, 34, .88) 0, rgba(11, 21, 34, .35) 22%, rgba(11, 21, 34, 0) 40%);
  }
  .hero-copy {
    position: relative;
    z-index: 2;
    margin-top: auto;
    padding: var(--s6) var(--s5) var(--s7);
    background: linear-gradient(
      180deg,
      rgba(11, 21, 34, .35) 0,
      rgba(11, 21, 34, .92) 14%,
      #0b1522 100%
    );
  }
  .hero-name { font-size: clamp(3.2rem, 17vw, 5rem); }
}

/* ---------- Books ---------- */

.books {
  position: relative;
  background: var(--paper);
  color: var(--ink);
}
.books-paper { position: absolute; inset: 0; width: 100%; height: 100%; }
.books-inner {
  position: relative; z-index: 1;
  max-width: var(--wrap); margin: 0 auto;
  padding: var(--s8) var(--s5) var(--s8);
}

.books-head {
  display: grid; gap: var(--s3);
  max-width: 60ch;
  margin-bottom: var(--s7);
}
.books-head h2 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); letter-spacing: -.01em; }
.books-note { color: var(--ink-2); }

.shelf {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: var(--s5);
}
.shelf-item { flex: 1 1 280px; display: flex; }
.shelf-item:first-child { flex: 2 1 460px; }

.tome {
  position: relative; isolation: isolate;
  display: grid; grid-template-rows: auto auto auto 1fr auto; gap: var(--s2);
  width: 100%;
  padding: var(--s5) var(--s5) var(--s5);
  background: var(--card);
  border: 1px solid var(--paper-2);
  border-radius: var(--r-lg);
  transition: transform .45s var(--ease);
}
.tome::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-radius: inherit; box-shadow: var(--shadow);
  opacity: 0; transition: opacity .45s var(--ease);
}
.shelf-item:first-child .tome { border-color: #dcc7a4; background: linear-gradient(160deg, #fdfaf4, #f8efdf); }

/* A cover adds a leading grid child; keep the blurb on the 1fr row so the foot stays put. */
.tome:has(.tome-cover) { grid-template-rows: auto auto auto auto 1fr auto; }

@media (hover: hover) {
  .tome:hover { transform: translateY(-5px); }
  .tome:hover::after { opacity: 1; }
}

.tome-no {
  font-size: .78rem; letter-spacing: .18em; color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.tome-title { font-size: 1.45rem; line-height: 1.15; letter-spacing: -.005em; }
.shelf-item:first-child .tome-title { font-size: clamp(1.7rem, 2.6vw, 2.3rem); }
.tome-title a { color: inherit; text-decoration: none; }
.tome-title a:hover { text-decoration: underline; text-decoration-color: var(--gold-2); }
.tome-sub { font-style: italic; color: var(--ink-2); }
.tome-blurb { color: var(--ink-2); font-size: .98rem; margin-top: var(--s2); }
.tome-foot {
  display: flex; justify-content: space-between; align-items: center; gap: var(--s3);
  margin-top: var(--s4); padding-top: var(--s4);
  border-top: 1px solid var(--paper-2);
}
.tome-words { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.books-wip-line {
  margin: var(--s6) 0 0;
  font-size: .95rem;
  color: var(--ink-3);
  font-style: italic;
}
.books-wip-line a { color: inherit; }
.books-wip-line a:hover { color: var(--ink); }
.tome form { margin: 0; }
/* Titles without a word count have a single child here — keep it flush right. */
.tome-foot > form, .tome-foot > .tome-wip, .tome-foot > .store-btn:first-of-type { margin-left: auto; }
.tome-foot > .free-form { margin-left: 0; flex: 1 1 100%; }

.tome-cover-link { display: block; }
.tome-cover {
  display: block; width: 100%; max-width: 220px; height: auto;
  border-radius: var(--r); margin: 0 auto var(--s3);
}

/* ---------- Buttons ---------- */

.buy-btn {
  display: inline-flex; align-items: baseline; gap: .45em;
  font: inherit; font-size: .95rem;
  background: var(--ink); color: var(--cream);
  border: 1px solid var(--ink); border-radius: var(--r);
  padding: .55rem 1rem;
  cursor: pointer; text-decoration: none;
  transition: transform .3s var(--ease), background-color .3s var(--ease);
}
.buy-btn:hover { background: var(--night-2); transform: translateY(-1px); }
.buy-btn.buy-digital { background: var(--gold-2); border-color: var(--gold-2); color: #1a1207; }
.buy-btn.buy-digital:hover { background: var(--gold); border-color: var(--gold); }
.buy-price { font-variant-numeric: tabular-nums; opacity: .85; }
.buy-btn:disabled { background: var(--paper-2); border-color: var(--paper-2); color: var(--ink-3); cursor: not-allowed; transform: none; }

.buy-buttons { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s4); }
.buy-buttons form { margin: 0; }
.store-links { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); margin-top: var(--s2); }
.store-soon { margin: 0; font-size: .9rem; color: var(--ink-3); }

/* ---------- Free capture, in-progress, bundle ---------- */

.sr-only {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

.free-form { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; margin: 0; }
.free-email {
  font: inherit; color: var(--ink); background: var(--card);
  border: 1px solid #cbbfa9; border-radius: var(--r);
  padding: var(--s2) var(--s3); min-width: 16ch; flex: 1 1 18ch;
}
.free-email::placeholder { color: var(--ink-3); }

.tome-wip {
  font-size: .78rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-3); border: 1px dashed #cbbfa9; border-radius: var(--r);
  padding: var(--s2) var(--s3);
}
.tome.is-wip { opacity: .82; }

.bundle {
  display: grid; gap: var(--s5); align-items: center;
  margin-top: var(--s9); padding-top: var(--s7);
  border-top: 1px solid #d4c7b2;
}
.bundle-copy { display: grid; gap: var(--s3); max-width: 52ch; }
.bundle-copy h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); letter-spacing: -.01em; }
.bundle-copy p { color: var(--ink-2); }
.bundle form { margin: 0; }

@media (min-width: 760px) {
  .bundle { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s8); }
  .bundle form { justify-self: end; }
}

.book-imprint { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }

/* ---------- Book detail & success (subpages) ---------- */

.book-detail, .success {
  max-width: 68ch;
  display: grid; gap: var(--s4);
  padding: var(--s6) 0;
}
.book-detail h1, .success h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); letter-spacing: -.01em; }
.book-subtitle { font-style: italic; color: var(--ink-2); }
.book-byline { color: var(--ink-2); }
.book-isbn { font-size: .85rem; color: var(--ink-3); }
.book-words { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }

.book-long { color: var(--ink-2); }
.book-toc-wrap { display: grid; gap: var(--s2); }
.book-toc { list-style: none; margin: 0; padding: 0; display: grid; gap: .3em; color: var(--ink-2); }
.book-toc li { padding-left: 1.1em; position: relative; }
.book-toc li::before { content: "—"; position: absolute; left: 0; color: var(--ink-3); }
.book-sample {
  margin: 0; padding: 0 0 0 var(--s4);
  border-left: 3px solid #d4c7b2;
  font-style: italic; color: var(--ink-2);
}
.book-for { color: var(--ink-3); font-size: .95rem; }
.book-formats { margin: .5rem 0; }
.ebook-price, .paperback-price { color: var(--ink-2); margin: .25rem 0; }

.book-cover {
  display: block; width: 100%; max-width: 260px; height: auto;
  border-radius: var(--r); box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  margin: 0 0 var(--s5);
}
.success .note { color: var(--ink-3); font-size: .95rem; }

/* ---------- Politics shelf ---------- */

.politics-shelf {
  max-width: 68ch;
  display: grid;
  gap: var(--s6);
  padding: var(--s6) 0;
}
.politics-shelf h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); letter-spacing: -.01em; }
.shelf-intro { color: var(--ink-2); }
.shelf-section { display: grid; gap: var(--s5); }
.shelf-note { color: var(--ink-2); }
.shelf-entry { display: grid; gap: var(--s3); }
.shelf-entry h3 { font-weight: 700; font-size: 1.15rem; line-height: 1.3; }
.shelf-subtitle { font-style: italic; color: var(--ink-2); }
.shelf-link { font-size: .95rem; }

/* ---------- Footer ---------- */

.site-footer {
  max-width: var(--wrap); margin: 0 auto;
  padding: var(--s7) var(--s5) var(--s7);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: var(--s5) var(--s7);
  border-top: 1px solid var(--paper-2);
  color: var(--ink-2); font-size: .95rem;
}
.foot-id { display: grid; gap: var(--s1); }
.foot-name { font-size: 1.4rem; color: var(--ink); margin-bottom: var(--s2); }
.foot-fine { margin-top: var(--s4); font-size: .82rem; color: var(--ink-3); }
.foot-nav { display: grid; gap: var(--s2); text-align: right; }
.foot-nav a { color: inherit; text-decoration: none; }
.foot-nav a:hover { text-decoration: underline; text-decoration-color: var(--gold-2); }
.is-home .site-footer {
  border-top: 0; max-width: none;
  padding: var(--s8) max(var(--s5), calc((100% - var(--wrap)) / 2 + var(--s5)));
  background: var(--night); color: var(--cream-2);
}
.is-home .foot-name { color: var(--cream); }
.is-home .foot-fine { color: var(--cream-2); opacity: .75; }
.is-home .foot-nav a:hover { text-decoration-color: var(--gold); }
@media (max-width: 759px) { .foot-nav { text-align: left; } }
.is-page .site-footer { padding-inline: 0; max-width: calc(var(--wrap) - 2 * var(--s5)); width: calc(100% - 2 * var(--s5)); }

/* ---------- Scroll-driven motion (progressive; compositor-only) ---------- */

@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero-copy, .hero-photo {
      animation: hero-leave linear both;
      animation-timeline: scroll(root);
      animation-range: 0 100vh;
    }
    .hero-photo { animation-name: photo-leave; }
    @keyframes hero-leave { to { transform: translateY(-14vh); opacity: 0; } }
    @keyframes photo-leave { to { transform: translateY(-9vh) scale(1.05); opacity: .6; } }

    .shelf-item {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 50%;
    }
    @keyframes rise { from { transform: translateY(28px); opacity: 0; } }
  }
}

/* ---------- About ---------- */

.about {
  padding: var(--s8) var(--s5) var(--s9);
  background: var(--paper);
}
.about-inner {
  max-width: 42rem;
  margin: 0 auto;
}
.about-head { margin-bottom: var(--s6); }
.about-head h1 {
  margin-top: var(--s2);
  font-size: clamp(2rem, 4vw, 2.75rem);
}
.about-block { margin-bottom: var(--s7); }
.about-block h2 {
  font-size: 1.45rem;
  margin-bottom: var(--s4);
}
.about-block p + p { margin-top: var(--s4); }
.about-note {
  margin: var(--s5) 0 0;
  padding: var(--s4) var(--s5);
  border-left: 3px solid var(--gold-2);
  background: var(--card);
  color: var(--ink-2);
}
.about-note p + p { margin-top: var(--s3); }
.about-back { margin-top: var(--s7); }
.about-back a { text-decoration: none; }


/* ---------- Home bios (after books; collapsed by default) ---------- */

.home-bios {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  padding: var(--s6) var(--s5) var(--s8);
  border-top: 1px solid var(--paper-2);
}
.home-bios-inner {
  max-width: var(--wrap);
  margin: 0 auto;
}
.home-bios-details {
  border: 1px solid var(--paper-2);
  border-radius: var(--r-lg);
  background: var(--card);
  padding: 0;
}
.home-bios-summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--s2) var(--s4);
  align-items: baseline;
  padding: var(--s5);
  user-select: none;
}
.home-bios-summary::-webkit-details-marker { display: none; }
.home-bios-summary .kicker {
  grid-column: 1 / -1;
  margin: 0;
}
.home-bios-summary-title {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  letter-spacing: -.01em;
}
.home-bios-hint {
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.home-bios-hint .when-open { display: none; }
.home-bios-details[open] .home-bios-hint .when-closed { display: none; }
.home-bios-details[open] .home-bios-hint .when-open { display: inline; }
.home-bios-body {
  padding: 0 var(--s5) var(--s5);
  border-top: 1px solid var(--paper-2);
  padding-top: var(--s5);
}
.home-bios-block {
  max-width: 42rem;
  margin-bottom: var(--s6);
}
.home-bios-block h3 {
  font-size: 1.35rem;
  margin-bottom: var(--s4);
}
.home-bios-block p + p { margin-top: var(--s4); }
.home-bios-grid {
  display: grid;
  gap: var(--s6);
  margin-bottom: var(--s5);
}
@media (min-width: 860px) {
  .home-bios-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--s7);
    align-items: start;
  }
  .home-bios-grid .home-bios-block { max-width: none; margin-bottom: 0; }
}
.home-bios-more {
  margin-top: var(--s5);
  font-size: .95rem;
}
.home-bios-more a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--gold-2);
}
.home-bios-more a:hover { border-bottom-color: var(--ink); }


/* ---------- In the news (60 Minutes media card) ---------- */

.in-the-news {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  padding: 0 var(--s5) var(--s6);
}
.in-the-news-inner {
  max-width: var(--wrap);
  margin: 0 auto;
}
.news-card {
  display: grid;
  gap: var(--s4);
  padding: var(--s5);
  background: var(--card);
  border: 1px solid var(--paper-2);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}
.news-head { display: grid; gap: var(--s2); max-width: 52ch; }
.news-head h2 {
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  letter-spacing: -.01em;
}
.news-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--night);
  border-radius: var(--r);
  overflow: hidden;
}
.news-poster {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: var(--night);
  color: inherit;
}
.news-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
}
.news-play {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 4.25rem;
  height: 4.25rem;
  margin: -2.125rem 0 0 -2.125rem;
  border-radius: 50%;
  background: rgba(11, 21, 34, .72);
  border: 2px solid rgba(246, 239, 226, .9);
  box-shadow: 0 8px 24px rgba(11, 21, 34, .35);
  transition: transform .3s var(--ease), background-color .3s var(--ease);
}
.news-play::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: .65rem 0 .65rem 1.1rem;
  border-color: transparent transparent transparent var(--cream);
}
.news-poster:hover .news-play,
.news-poster:focus-visible .news-play {
  transform: scale(1.06);
  background: rgba(201, 130, 43, .92);
  border-color: var(--cream);
}
.news-embed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.news-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s2) var(--s3);
  font-size: .95rem;
  color: var(--ink-2);
}
.news-meta a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--gold-2);
}
.news-meta a:hover { border-bottom-color: var(--ink); }
.news-sep { color: var(--ink-3); }
.news-watch { font-weight: 500; }

@media (max-width: 759px) {
  .in-the-news { padding-bottom: var(--s5); }
  .news-card { padding: var(--s4); }
  .news-play { width: 3.5rem; height: 3.5rem; margin: -1.75rem 0 0 -1.75rem; }
  .news-play::before { border-width: .55rem 0 .55rem .95rem; }
}

/* ---------- Alpha–Omega free tools ---------- */

.lens-page {
  width: min(100%, 72ch);
  margin: 0 auto;
  padding: var(--s6) 0 var(--s8);
  display: grid;
  gap: var(--s7);
}
.lens-hero { display: grid; gap: var(--s4); }
.lens-hero h1 { font-size: clamp(2.15rem, 8vw, 4.2rem); letter-spacing: -.025em; }
.lens-hero-line { max-width: 40ch; font-size: clamp(1.12rem, 4vw, 1.45rem); color: var(--ink-2); }
.lens-section { display: grid; gap: var(--s4); }
.lens-section h2, .lens-break h2 { font-size: clamp(1.45rem, 5vw, 2.2rem); }
.lens-section p, .lens-break p, .lens-inc-item p { max-width: 68ch; }
.lens-chooser { display: grid; gap: var(--s3); }
.lens-chooser a {
  display: grid; gap: var(--s2); padding: var(--s4);
  color: var(--ink); background: var(--card); border: 1px solid var(--paper-2);
  text-decoration: none; border-radius: var(--r);
}
.lens-chooser a:hover { border-color: var(--gold-2); }
.lens-chooser span { color: var(--ink-2); }
.lens-tool { scroll-margin-top: var(--s5); padding-top: var(--s5); border-top: 1px solid var(--paper-2); }
.lens-question { font-style: italic; color: var(--ink-2); }
.lens-list { margin: 0; padding-left: 1.25em; display: grid; gap: var(--s2); }
.lens-prompt { border-top: 1px solid var(--paper-2); border-bottom: 1px solid var(--paper-2); }
.lens-prompt summary { padding: var(--s4) 0; cursor: pointer; font-weight: 700; }
.lens-prompt-body { display: grid; gap: var(--s3); padding-bottom: var(--s4); }
.lens-prompt pre {
  max-width: 100%; max-height: 60vh; overflow: auto; white-space: pre-wrap;
  overflow-wrap: anywhere; padding: var(--s4); background: var(--card);
  border: 1px solid var(--paper-2); border-radius: var(--r);
  font: .92rem/1.5 ui-monospace, SFMono-Regular, Consolas, monospace;
  user-select: text;
}
.lens-prompt-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); }
.lens-copy { min-height: 44px; padding: var(--s2) var(--s4); border: 1px solid var(--ink); border-radius: var(--r); background: var(--ink); color: var(--cream); font: inherit; cursor: pointer; }
.lens-copy:hover { background: var(--night-2); }
.lens-copy-status { min-height: 1.5em; color: var(--ink-2); font-size: .92rem; }
.lens-teaser { padding: var(--s5); background: var(--card); border: 1px solid var(--paper-2); border-radius: var(--r-lg); }
.lens-text-link { font-weight: 700; }
.lens-card-list { display: grid; gap: var(--s3); }
.lens-card-list a { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s2); padding: var(--s3) 0; border-bottom: 1px solid var(--paper-2); }
.lens-card-list span { color: var(--ink-3); font-size: .9rem; }
.lens-break { display: grid; gap: var(--s3); padding: var(--s5); color: #8A5A16; background: #F7F0E2; border-left: 4px solid currentColor; }
.lens-break blockquote {
  margin: 0;
  padding: 0 0 0 var(--s4);
  border-left: 3px solid currentColor;
  font-style: italic;
}
.lens-glossary { display: grid; grid-template-columns: 1fr; gap: var(--s2) var(--s4); margin: 0; }
.lens-glossary dt { font-weight: 700; }
.lens-glossary dd { margin: 0 0 var(--s3); color: var(--ink-2); }
.lens-author { display: grid; gap: var(--s3); padding-top: var(--s5); border-top: 1px solid var(--paper-2); font-size: .96rem; }
.lens-inc-items { display: grid; gap: var(--s5); }
.lens-inc-item { display: grid; gap: var(--s3); padding: var(--s4); background: var(--card); border: 1px solid var(--paper-2); border-radius: var(--r); }
.lens-inc-item h2 { font-size: 1.4rem; }
.lens-inc-back { padding-top: var(--s4); border-top: 1px solid var(--paper-2); }

@media (min-width: 46rem) {
  .lens-chooser { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lens-inc-items { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lens-glossary { grid-template-columns: minmax(10rem, .7fr) 2fr; }
  .lens-glossary dd { margin-bottom: var(--s2); }
}

/* ---------- AI Reader ---------- */

.reader-page {
  width: min(100%, 72ch);
  margin: 0 auto;
  padding: var(--s6) 0 var(--s8);
  display: grid;
  gap: var(--s7);
}
.reader-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s4); }
.reader-list > li { display: grid; gap: var(--s3); padding: var(--s4); background: var(--card); border: 1px solid var(--paper-2); border-radius: var(--r); }
.reader-list a:not(.buy-btn) { display: grid; gap: var(--s1); color: var(--ink); text-decoration: none; }
.reader-list a:not(.buy-btn):hover strong { text-decoration: underline; }
.reader-list strong { font-weight: 700; }
.reader-list span { color: var(--ink-2); font-style: italic; }
.reader-steps { margin: 0; padding-left: 1.25em; display: grid; gap: var(--s3); }
.reader-page .note { color: var(--ink-3); font-size: .95rem; }
.reader-script { display: grid; gap: var(--s3); }
.reader-script pre {
  max-width: 100%; max-height: 60vh; overflow: auto; white-space: pre-wrap;
  overflow-wrap: anywhere; margin: var(--s3) 0 0; padding: var(--s4); background: var(--card);
  border: 1px solid var(--paper-2); border-radius: var(--r);
  font: .92rem/1.5 ui-monospace, SFMono-Regular, Consolas, monospace;
  user-select: text;
}
.reader-script summary { cursor: pointer; color: var(--ink-2); }
.reader-script .buy-btn { text-decoration: none; display: inline-flex; align-items: center; }
.ai-reader { display: grid; gap: var(--s4); margin: var(--s6) 0; padding: var(--s5); background: var(--card); border: 1px solid var(--paper-2); border-radius: var(--r-lg); }
.ai-reader h2 { margin: 0; }
.ai-reader p { margin: 0; }
