:root {
  --paper: #f3efe7;
  --ink: #1c1916;
  --muted: #6e675e;
  --line: #d4cdc2;
  --oxide: #8d3a2b;
  --wash: #efe4d4;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Avenir Next", "Segoe UI", sans-serif;
  color-scheme: light;
}

:root[data-bs-theme="dark"] {
  --paper: #161410;
  --ink: #f3efe7;
  --muted: #b3aa9e;
  --line: #3c352d;
  --oxide: #d48474;
  --wash: #2a241e;
  color-scheme: dark;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

.dateline,
.status,
.kicker,
.checked,
.colophon {
  color: var(--muted);
}

.dateline {
  justify-self: start;
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mast-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.25rem;
}

.brand,
.brand:visited {
  justify-self: center;
  color: inherit;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.5vw, 2.15rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.9;
  text-decoration: none;
  white-space: nowrap;
}

.brand span {
  color: var(--oxide);
}

.live-tag {
  display: none;
}

.mast.is-live .live-tag {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.28em 0.48em 0.2em;
  border-radius: 999px;
  background: var(--oxide);
  color: #f3efe7;
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1;
  vertical-align: 0.32em;
}

.mast-tools {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.theme-btn {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  line-height: 1;
}

.theme-btn:hover {
  border-color: var(--ink);
  background: var(--wash);
}

.status {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pulse {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--oxide);
}

.pulse.is-on {
  animation: beat 2.4s ease-out infinite;
}

.listen-icon {
  display: block;
  font-size: 0.72rem;
}

.listen-icon.fa-play {
  margin-left: 0.08rem;
}

.listen {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  appearance: none;
  min-width: 6.1rem;
  min-height: 2rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  font: inherit;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
}

.listen:hover {
  background: color-mix(in srgb, var(--ink) 86%, var(--paper));
}

.listen[aria-pressed="true"],
.listen[aria-pressed="true"]:hover {
  background: transparent;
  color: var(--ink);
}

:root[data-bs-theme="dark"] .listen {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

:root[data-bs-theme="dark"] .listen:hover,
:root[data-bs-theme="dark"] .listen[aria-pressed="true"],
:root[data-bs-theme="dark"] .listen[aria-pressed="true"]:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.listen:focus-visible,
.theme-btn:focus-visible,
.brand:focus-visible,
.lead a:focus-visible,
.callout a:focus-visible,
.story a:focus-visible {
  outline: 2px solid var(--oxide);
  outline-offset: 3px;
}

.tooltip.hear-tip {
  --bs-tooltip-bg: var(--ink);
  --bs-tooltip-color: var(--paper);
  --bs-tooltip-opacity: 1;
  font-family: var(--sans);
  font-size: 0.75rem;
}

.mast {
  background: var(--paper);
  border-bottom: 3px double var(--ink);
  container-type: inline-size;
  container-name: mast;
  transition: background-color 0.28s ease, color 0.28s ease, border-color 0.28s ease;
}

.mast.is-live {
  background: var(--ink);
  color: var(--paper);
  border-bottom-color: var(--oxide);
}

.mast.is-live .dateline,
.mast.is-live .status,
.mast.is-live .checked,
.mast.is-live .theme-btn {
  color: var(--paper);
}

.mast.is-live .theme-btn {
  border-color: color-mix(in srgb, var(--paper) 40%, transparent);
}

.mast.is-live .theme-btn:hover {
  border-color: var(--paper);
  background: color-mix(in srgb, var(--paper) 16%, transparent);
  color: var(--paper);
}

.mast.is-live .brand span {
  color: #e8b4a8;
}

:root[data-bs-theme="dark"] .mast.is-live .brand span {
  color: var(--oxide);
}

.mast.is-live .brand .live-tag {
  color: #f3efe7;
}

:root[data-bs-theme="dark"] .mast.is-live .brand .live-tag {
  color: #1c1916;
}

.mast.is-live .listen,
.mast.is-live .listen:hover,
.mast.is-live .listen[aria-pressed="true"],
.mast.is-live .listen[aria-pressed="true"]:hover,
:root[data-bs-theme="dark"] .mast.is-live .listen,
:root[data-bs-theme="dark"] .mast.is-live .listen:hover,
:root[data-bs-theme="dark"] .mast.is-live .listen[aria-pressed="true"],
:root[data-bs-theme="dark"] .mast.is-live .listen[aria-pressed="true"]:hover {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

.front {
  border-bottom: 1px solid var(--line);
}

.lead a,
.callout a,
.story a,
.lead a:visited,
.callout a:visited,
.story a:visited {
  color: inherit;
  text-decoration: none;
}

.lead {
  display: flex;
  flex: 1 1 auto;
  width: 100%;
}

.lead a {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  padding: 1rem 1.15rem;
}

.lead figure,
.callout figure,
.story figure {
  margin: 0;
  overflow: hidden;
  background: var(--paper);
  isolation: isolate;
}

.lead figure {
  flex: 0 0 auto;
  width: 100%;
  margin-bottom: 1.05rem;
}

.lead img,
.callout img,
.story img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transform: scale(1);
  transition: transform 0.55s ease, opacity 0.28s ease;
}

.eyebrow,
.kicker {
  margin: 0 0 0.4rem;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.kicker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.pub.badge {
  --bs-badge-padding-x: 0.55em;
  --bs-badge-padding-y: 0.35em;
  --bs-badge-font-size: 0.68rem;
  --bs-badge-font-weight: 500;
  --bs-badge-color: var(--paper);
  background-color: var(--ink);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lead,
.callout,
.story {
  container-type: inline-size;
}

.lead h1,
.lead-quiet h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.35rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.08;
  overflow-wrap: break-word;
}

.lead.no-image a,
.callout.no-image a,
.story.no-image a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  height: 100%;
  text-align: left;
}

.lead-col {
  display: flex;
  flex-direction: column;
}

.lead.no-image a {
  flex: 1 1 auto;
  min-height: clamp(16rem, 38vw, 28rem);
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.lead.no-image h1,
.callout.no-image h2,
.story.no-image h3 {
  width: 100%;
  text-align: left;
  text-wrap: balance;
}

.lead.no-image h1 {
  font-size: clamp(2.8rem, 8.5cqw, 8rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
}

.lead-quiet {
  padding: 2.5rem 0 3rem;
}

.callout-col {
  display: flex;
  flex-direction: column;
}

.callout {
  flex: 1 1 auto;
  border-bottom: 1px solid var(--line);
}

.callout:last-child {
  border-bottom: 0;
}

.callout a {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 0.9rem;
  align-items: center;
  height: 100%;
  padding: 1rem 0.2rem 1rem 1.15rem;
}


.callout.no-image {
  display: flex;
}

.callout.no-image a {
  flex: 1;
  align-items: stretch;
  grid-template-columns: 1fr;
  min-height: 8.5rem;
  padding-left: 1.15rem;
  padding-right: 1.15rem;
}

.callout h2,
.story h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
  overflow-wrap: break-word;
}

.callout h2 {
  font-size: 1.35rem;
}

.callout a,
.callout.no-image a,
.callout.no-image h2 {
  text-align: left;
}

.callout.no-image h2 {
  font-size: clamp(1.7rem, 8cqw, 3.4rem);
  line-height: 1.02;
}

.lead time,
.callout time,
.story time {
  display: block;
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}

.lead,
.callout,
.story {
  transition: background-color 0.28s ease;
}

.lead:hover,
.callout:hover,
.story:hover,
.lead:focus-within,
.callout:focus-within,
.story:focus-within {
  background: var(--wash);
}

.is-speaking {
  background: var(--wash);
  box-shadow: inset 3px 0 0 var(--oxide);
}

::highlight(speaking) {
  background-color: var(--ink);
  color: var(--paper);
}

mark.spoken-word {
  background-color: var(--ink);
  color: var(--paper);
}

.day-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 1.35rem 0 0.75rem;
}

.day-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.checked {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.mosaic {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.story {
  grid-column: span 4;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.story:nth-child(5n + 1),
.story:nth-child(5n + 2) {
  grid-column: span 6;
}

.story:nth-child(5n + 2),
.story:nth-child(5n + 5),
.story:last-child {
  border-right: 0;
}

.story a {
  display: block;
  height: 100%;
  padding: 0.95rem 1rem 1.1rem;
}

.story figure {
  margin-bottom: 0.75rem;
}

.lead a:hover img.opacity-50,
.callout a:hover img.opacity-50,
.story a:hover img.opacity-50,
.lead a:focus-visible img.opacity-50,
.callout a:focus-visible img.opacity-50,
.story a:focus-visible img.opacity-50 {
  opacity: 0.75 !important;
  transform: scale(1.045);
}

@media (prefers-reduced-motion: reduce) {
  .lead,
  .callout,
  .story,
  .lead img,
  .callout img,
  .story img {
    transition: none;
  }

  .lead a:hover img.opacity-50,
  .callout a:hover img.opacity-50,
  .story a:hover img.opacity-50,
  .lead a:focus-visible img.opacity-50,
  .callout a:focus-visible img.opacity-50,
  .story a:focus-visible img.opacity-50 {
    transform: none;
  }
}

.story h3 {
  font-size: 1.12rem;
}

.story:nth-child(5n + 1) h3,
.story:nth-child(5n + 2) h3 {
  font-size: 1.5rem;
  line-height: 1.15;
}

.story.no-image {
  display: flex;
}

.story.no-image a {
  flex: 1;
  min-height: 12.5rem;
}

.story.no-image h3,
.story.no-image:nth-child(5n + 1) h3,
.story.no-image:nth-child(5n + 2) h3 {
  font-size: clamp(1.6rem, 8.5cqw, 4.2rem);
  line-height: 1.02;
}

.story .kicker {
  margin-bottom: 0.3rem;
}

.is-new {
  animation: rise 0.55s ease;
}

.colophon {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
}

body:has(#reader.show) .modal-backdrop {
  --bs-backdrop-opacity: 1;
  background-color: transparent;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.reader-sheet {
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  color: var(--ink);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.reader-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
  position: sticky;
  top: 0;
  z-index: 2;
  background: transparent;
  border-bottom: 1px solid var(--line);
}

.reader-kicker {
  justify-self: start;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.reader-bar .btn-close {
  justify-self: end;
  margin: 0;
}

.reader-copy {
  max-width: 40rem;
  margin: 0 auto;
  padding-bottom: 4rem;
}

.reader-listen {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  justify-self: center;
  margin: 0;
}

.reader-listen .listen {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-width: 0;
}

.reader-listen .listen i {
  font-size: 0.72rem;
}

.reader-listen .fa-play {
  margin-left: 0.08rem;
}

.reader-copy .reader-eyebrow {
  margin: 0.15rem 0 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1;
}

.reader-copy .reader-eyebrow:empty {
  display: none;
}

.speed-read {
  margin: 16vh 0 2rem;
}

.speed-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.35fr);
  align-items: baseline;
  min-height: 1.2em;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.speed-before {
  overflow: hidden;
  text-align: right;
  white-space: nowrap;
}

.speed-focus {
  color: var(--oxide);
}

.speed-after {
  overflow: hidden;
  white-space: nowrap;
}

.speed-pace {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.speed-pace button {
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 1rem;
  letter-spacing: 0;
  line-height: 1;
}

.speed-pace button:hover {
  border-color: var(--ink);
  background: var(--wash);
}

.reader-copy.is-speeding .reader-eyebrow,
.reader-copy.is-speeding h1,
.reader-copy.is-speeding #reader-body,
.reader-copy.is-speeding .reader-out {
  display: none;
}

@media (max-width: 575.98px) {
  .reader-restart,
  .reader-speed {
    position: relative;
  }

  .reader-restart span,
  .reader-speed span {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}

.reader-copy h1 {
  margin: 0.35rem 0 1.5rem;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.reader-copy p,
.reader-copy blockquote {
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.6;
}

.reader-copy blockquote {
  margin: 1.25rem 0;
  padding-left: 1rem;
  border-left: 2px solid var(--oxide);
  color: var(--muted);
}

.reader-copy h2 {
  margin: 1.8rem 0 0.7rem;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 500;
}

.reader-status {
  color: var(--muted);
}

.reader-out {
  margin-top: 2rem;
  font-family: var(--sans);
  font-size: 0.92rem;
}

.reader-out a {
  color: var(--oxide);
}

.colophon .container-fluid {
  padding-top: 1.1rem;
  padding-bottom: 1.4rem;
}

::selection {
  background: #e7d3c6;
}

@keyframes beat {
  0% { box-shadow: 0 0 0 0 rgba(141, 58, 43, 0.45); }
  100% { box-shadow: 0 0 0 8px rgba(141, 58, 43, 0); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

@media (min-width: 992px) {
  .lead-col {
    min-height: 75vh;
  }

  .front.has-callouts .lead-col {
    border-right: 1px solid var(--line);
  }
}

@media (max-width: 991.98px) {
  .lead a {
    padding-left: 0;
    padding-right: 0;
  }

  .lead.no-image a {
    padding-right: 1.15rem;
    padding-left: 1.15rem;
  }

  .front.has-callouts .callout-col {
    border-top: 1px solid var(--line);
  }

  .callout a {
    padding-left: 0;
  }

  .callout.no-image a {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .mosaic {
    grid-template-columns: 1fr 1fr;
  }

  .story {
    border-right: 1px solid var(--line);
  }

  .story:nth-child(2n),
  .story:last-child {
    border-right: 0;
  }

  .story,
  .story:nth-child(5n + 1),
  .story:nth-child(5n + 2) {
    grid-column: span 1;
  }

  .story:nth-child(5n + 1) h3,
  .story:nth-child(5n + 2) h3 {
    font-size: 1.28rem;
  }

  .story.no-image h3,
  .story.no-image:nth-child(5n + 1) h3,
  .story.no-image:nth-child(5n + 2) h3 {
    font-size: clamp(1.55rem, 8cqw, 3rem);
  }
}

@container mast (max-width: 900px) {
  .mast-bar {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 0;
    padding-block: 0.4rem;
  }

  .brand {
    order: 0;
    flex: 0 0 auto;
    font-size: 1.28rem;
  }

  .dateline {
    order: 1;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    font-size: 0.62rem;
    letter-spacing: 0.06em;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mast-tools {
    order: 2;
    flex: 0 0 auto;
    gap: 0.4rem;
  }

  .checked,
  #status-text {
    display: none;
  }

  .status {
    gap: 0;
  }

  .listen-label {
    display: none;
  }

  .listen {
    display: grid;
    place-items: center;
    width: 2rem;
    min-width: 2rem;
    height: 2rem;
    min-height: 2rem;
    padding: 0;
  }
}

@media (max-width: 575.98px) {
  .callout a {
    grid-template-columns: 5.5rem minmax(0, 1fr);
  }

  .mosaic {
    grid-template-columns: 1fr;
  }

  .story,
  .story:nth-child(2n) {
    border-right: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pulse.is-on,
  .is-new {
    animation: none;
  }
}
