: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,
.byline,
.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;
}

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

.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 {
  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 {
  border-bottom: 3px double var(--ink);
}

.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 a {
  display: block;
  padding: 1.35rem 1.5rem 1.6rem 0;
}

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

.lead figure {
  aspect-ratio: 16 / 10;
  margin-bottom: 1.05rem;
}

.lead img,
.callout img,
.story img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) sepia(0.35) contrast(1.04);
  mix-blend-mode: multiply;
}

:root[data-bs-theme="dark"] .lead img,
:root[data-bs-theme="dark"] .callout img,
:root[data-bs-theme="dark"] .story img {
  filter: grayscale(1) sepia(0.45) contrast(1.05) brightness(0.82);
  mix-blend-mode: normal;
}

.eyebrow,
.kicker,
.reading {
  margin: 0 0 0.4rem;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  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: center;
}

.lead.no-image a {
  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: center;
  text-wrap: balance;
}

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

.byline {
  margin: 0.8rem 0 0;
  font-size: 0.92rem;
  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: start;
  height: 100%;
  padding: 1rem 0.2rem 1rem 1.15rem;
}

.callout figure {
  aspect-ratio: 1;
}

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

.callout.no-image a {
  flex: 1;
  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;
}

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

.reading {
  display: none;
  color: var(--oxide);
}

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

.is-speaking .reading {
  display: inline;
  margin-right: 0.45rem;
}

.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 {
  aspect-ratio: 16 / 10;
  margin-bottom: 0.75rem;
}

.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;
}

.reader-sheet {
  background: var(--paper);
  color: var(--ink);
}

.reader-bar {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.reader-kicker {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

.reader-copy h1 {
  margin: 0.4rem 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) {
  .front.has-callouts .lead-col {
    border-right: 1px solid var(--line);
  }
}

@media (max-width: 991.98px) {
  .lead a {
    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);
  }
}

@media (max-width: 767.98px) {
  .mast-bar {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .mast-tools {
    justify-self: center;
  }
}

@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;
  }
}
