:root {
  --paper: #ffffff;
  --ink: #111418;
  --grey: #5d6269;
  --rule: #e4e6ea;
  --blue: #1e2bd8;
  --blue-soft: #eef0ff;
  --serif: "Newsreader", Georgia, serif;
  --sans: "Archivo", -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; }
body { background: var(--paper); color: var(--ink); font-family: var(--serif); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* The publication */

.publication {
  display: flex; align-items: baseline; justify-content: space-between; gap: 24px;
  max-width: 1080px; margin: 0 auto; padding: 22px 24px 18px;
  border-bottom: 1px solid var(--ink);
}
.masthead { font-size: 30px; font-weight: 600; letter-spacing: -0.02em; text-decoration: none; font-optical-sizing: auto; }
.publication nav { display: flex; gap: 22px; font-family: var(--sans); font-size: 14px; }
.publication nav a { text-decoration: none; color: var(--grey); }
.publication nav a:hover { color: var(--ink); }

.story { max-width: 680px; margin: 0 auto; padding: 56px 24px 24px; }
.section { font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--grey); }
h1 { font-size: clamp(38px, 6vw, 58px); line-height: 1.04; font-weight: 500; letter-spacing: -0.025em; margin-top: 14px; text-wrap: balance; }
.dek { font-size: clamp(20px, 2.4vw, 23px); line-height: 1.4; color: var(--grey); margin-top: 18px; font-style: italic; }
.byline { font-family: var(--sans); font-size: 14px; margin-top: 22px; }
.byline span { color: var(--grey); margin-left: 12px; }

.body { margin-top: 40px; font-size: 20px; line-height: 1.62; }
.body p { margin-bottom: 1.1em; transition: background-color .4s, box-shadow .4s; border-radius: 3px; }
.body p:first-child::first-letter { float: left; font-size: 4.1em; line-height: .82; font-weight: 500; margin: .06em .08em 0 0; }
.body p.discussed { background: var(--blue-soft); box-shadow: 0 0 0 8px var(--blue-soft); }
blockquote { font-size: 28px; line-height: 1.28; font-style: italic; margin: 1.3em 0 1.3em; padding-left: 22px; border-left: 3px solid var(--ink); text-wrap: balance; }

/* The Narrate player: the only thing on the page in Narrate blue */

.narrate { margin-top: 34px; border: 1px solid var(--rule); border-radius: 18px; overflow: hidden; font-family: var(--sans); background: var(--paper); box-shadow: 0 1px 0 var(--rule), 0 18px 40px -28px rgba(30, 43, 216, .45); }
.narrate-bar { display: flex; align-items: center; gap: 16px; padding: 14px 16px 14px 14px; }
.narrate-play {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  background: var(--blue); color: #fff; border: 0; border-radius: 999px; padding: 12px 20px 12px 15px;
  font-size: 15px; font-weight: 600; transition: transform .15s, background-color .15s;
}
.narrate-play:hover { background: #1621b3; }
.narrate-play:active { transform: scale(.97); }
.narrate-play svg { width: 20px; height: 20px; fill: currentColor; }
.icon-stop, .playing .icon-play { display: none; }
.playing .icon-stop { display: block; }
.narrate-what { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.narrate-what strong { font-size: 15px; font-weight: 600; }
.narrate-what span { font-size: 13.5px; color: var(--grey); }
.narrate-what b { font-weight: 500; color: var(--ink); }
.narrate-brand { margin-left: auto; display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--blue); text-decoration: none; flex: none; }
.narrate-brand svg { width: 20px; height: 20px; fill: var(--blue); }

.narrate-stage { border-top: 1px solid var(--rule); padding: 6px 18px 16px; }
.transcript { list-style: none; padding: 0; max-height: 300px; overflow-y: auto; scroll-behavior: smooth; }
.turn { display: grid; grid-template-columns: 58px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); animation: arrive .35s ease-out; }
.turn:last-child { border-bottom: 0; }
.who { font-size: 13px; font-weight: 600; padding-top: 3px; display: flex; align-items: center; gap: 6px; }
.who::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); flex: none; }
.turn[data-voice="adam"] .who::before { background: var(--ink); }
.turn p { font-family: var(--serif); font-size: 18px; line-height: 1.45; }
.word { color: #b9bdc4; transition: color .12s; }
.word.said { color: var(--ink); }
.turn.speaking .who::before { animation: pulse 1s ease-in-out infinite; }

.narrate-progress { height: 3px; background: var(--rule); border-radius: 3px; margin-top: 12px; overflow: hidden; }
.narrate-progress i { display: block; height: 100%; width: 0; background: var(--blue); }
.narrate-time { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--grey); margin-top: 7px; font-variant-numeric: tabular-nums; }

@keyframes arrive { from { opacity: 0; transform: translateY(6px); } }
@keyframes pulse { 50% { transform: scale(1.5); opacity: .6; } }

/* For publishers */

.publishers { border-top: 1px solid var(--ink); margin-top: 48px; font-family: var(--sans); }
.publishers-inner { max-width: 680px; margin: 0 auto; padding: 44px 24px 40px; }
.publishers h2 { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; color: var(--blue); }
.publishers-lede { font-size: 17px; line-height: 1.5; color: var(--grey); margin-top: 10px; max-width: 52ch; }
.snippet { display: flex; align-items: center; gap: 12px; margin-top: 22px; background: #0f1330; color: #dfe3ff; border-radius: 12px; padding: 14px 14px 14px 18px; }
.snippet code { flex: 1; min-width: 0; font-size: 13px; overflow-x: auto; white-space: nowrap; font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.copy { background: var(--blue); color: #fff; border: 0; border-radius: 8px; padding: 8px 14px; font-size: 13px; font-weight: 600; flex: none; }
.facts { list-style: none; padding: 0; margin-top: 26px; display: grid; gap: 12px; font-size: 15.5px; line-height: 1.5; color: var(--grey); }
.facts b { color: var(--ink); font-weight: 600; }

.foot { max-width: 680px; margin: 0 auto; padding: 22px 24px 40px; display: flex; flex-wrap: wrap; gap: 8px 20px; font-family: var(--sans); font-size: 13px; color: var(--grey); border-top: 1px solid var(--rule); }
.foot a { color: var(--blue); font-weight: 600; text-decoration: none; }

@media (max-width: 560px) {
  .publication nav { display: none; }
  .narrate-bar { flex-wrap: wrap; }
  .narrate-brand { display: none; }
  .body { font-size: 19px; }
  .turn { grid-template-columns: 1fr; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before { animation: none !important; transition: none !important; }
  .transcript { scroll-behavior: auto; }
}
