:root {
  color-scheme: light;
  --ink: #17272a;
  --muted: #526163;
  --accent: #ac3422;
  --paper: #fbfaf7;
  --surface: #f1eee7;
  --line: #dedbd3;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1rem/1.6 var(--sans); }
[hidden] { display: none !important; }
a { color: inherit; }
button, input { font: inherit; }
button { color: inherit; }
img { display: block; width: 100%; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.wrap { width: min(100% - 3.75rem, 73.75rem); margin-inline: auto; }
.skip { position: absolute; z-index: 5; top: .5rem; left: .5rem; padding: .6rem .9rem; background: white; transform: translateY(-140%); }
.skip:focus { transform: none; }
.utility-bar { color: #f7f7f2; background: var(--ink); }
.utility { min-height: 2.35rem; display: flex; align-items: center; justify-content: space-between; gap: .6rem; font-size: .81rem; }
.utility span:first-child { display: inline-flex; gap: .45rem; align-items: center; }
.pin { position: relative; display: inline-block; width: .62rem; height: .62rem; border: 1px solid #f4a18d; border-radius: 50%; }
.pin::after { content: ''; position: absolute; inset: 2px; border-radius: 50%; background: #f4a18d; }
.masthead { min-height: 6.75rem; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; }
.masthead-description { color: var(--muted); font: italic 1rem/1.4 var(--serif); }
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; font: bold clamp(2.55rem, 4.7vw, 4.2rem)/.95 var(--serif); letter-spacing: -.088em; white-space: nowrap; }
.brand-accent { color: var(--accent); }
.brand-mark { position: relative; display: inline-grid; place-items: center; flex: none; width: 2.15rem; height: 2.15rem; background: var(--accent); border-radius: 3px; }
.brand-mark i { display: block; width: 1.05rem; height: 1.18rem; background: var(--paper); clip-path: polygon(0 0, 22% 0, 22% 20%, 40% 20%, 40% 0, 60% 0, 60% 20%, 78% 20%, 78% 0, 100% 0, 100% 34%, 83% 48%, 83% 100%, 62% 100%, 62% 65%, 38% 65%, 38% 100%, 17% 100%, 17% 48%, 0 34%); }
.search-toggle { justify-self: end; display: inline-flex; align-items: center; gap: .6rem; padding: .45rem .8rem; background: transparent; border: 1px solid var(--line); border-radius: 4px; cursor: pointer; font-size: .9rem; font-weight: 650; }
.search-toggle:hover, .search-toggle[aria-expanded=true] { background: var(--surface); }
.search-icon { position: relative; width: .78rem; height: .78rem; border: 1.6px solid; border-radius: 50%; margin-right: .16rem; }
.search-icon::after { content: ''; position: absolute; left: .58rem; top: .62rem; width: .36rem; height: 1.6px; background: currentColor; transform: rotate(45deg); }
.nav-band { border-block: 1px solid var(--line); }
nav { display: flex; justify-content: center; flex-wrap: wrap; column-gap: clamp(1.1rem, 4vw, 3rem); }
nav a { position: relative; padding: .83rem .12rem; font-weight: 650; font-size: .93rem; text-decoration: none; white-space: nowrap; }
nav a:hover, nav a[aria-current=page] { color: var(--accent); }
nav a[aria-current=page]::after { position: absolute; content: ''; inset: auto 0 -1px; height: 3px; background: var(--accent); }
main { min-height: 55vh; padding-block: 1.55rem 4rem; }
.top-grid { display: grid; grid-template-columns: minmax(0, 2.15fr) minmax(0, 1fr); gap: 1.6rem; align-items: stretch; }
.lead { position: relative; isolation: isolate; display: flex; min-height: 28.2rem; align-items: end; border-radius: 4px; overflow: hidden; color: white; background: #173943; text-decoration: none; }
.lead img, .lead::after { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; }
.lead img { object-fit: cover; object-position: center 44%; }
.lead::after { content: ''; background: linear-gradient(180deg, transparent 26%, rgba(10,23,28,.2) 45%, rgba(10,23,28,.82) 78%, rgba(10,23,28,.96) 100%); }
.lead:hover h1 { text-decoration: underline; text-underline-offset: .12em; text-decoration-thickness: 1px; }
.lead-copy { padding: 1.7rem clamp(1.25rem, 3.1vw, 2.55rem) 2rem; }
.lead h1 { font: 700 clamp(2.05rem, 4.2vw, 3.65rem)/1.03 var(--serif); letter-spacing: -.042em; max-width: 16ch; text-wrap: balance; }
.lead p { max-width: 52ch; margin-top: .72rem; color: #f1f5f4; line-height: 1.45; font-size: clamp(.94rem, 1.3vw, 1.06rem); }
.kicker { display: inline-block; color: var(--accent); font-size: .81rem; font-weight: 770; letter-spacing: .055em; text-transform: uppercase; }
.lead .kicker { margin-bottom: .7rem; padding: .16rem .54rem; border-radius: 2px; background: var(--accent); color: white; }
.news-feed { padding: 1.35rem 1.45rem .7rem; background: var(--surface); border-top: 3px solid var(--accent); border-radius: 0 0 4px 4px; }
.news-feed h2 { font: 700 1.9rem/1.15 var(--serif); letter-spacing: -.035em; }
.news-feed ul { margin: .8rem 0 0; padding: 0; list-style: none; }
.news-feed li + li { border-top: 1px solid #d7d4cd; }
.feed-item { display: block; padding: .61rem 0 .76rem; text-decoration: none; }
.feed-item:hover strong { color: var(--accent); }
.feed-item strong { display: block; margin-top: .2rem; font: 700 clamp(1.05rem, 1.55vw, 1.24rem)/1.2 var(--serif); }

.news-section { margin-top: 2.15rem; }
.section-header { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; font: 700 clamp(1.85rem, 3vw, 2.45rem)/1.12 var(--serif); letter-spacing: -.04em; }
.section-header::before { content: ''; width: .24rem; height: .78em; background: var(--accent); }
.section-header::after { content: ''; height: 1px; background: var(--line); flex: 1; margin-left: .25rem; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.55rem; }
.card { display: block; height: 100%; padding-bottom: 1rem; border-bottom: 1px solid var(--line); text-decoration: none; }
.card img { aspect-ratio: 1.95; object-fit: cover; border-radius: 4px; background: var(--surface); }
.card-copy { padding: .7rem 0 0; }
.card--text .card-copy { min-height: 8.75rem; padding: 1rem; background: var(--surface); border-radius: 4px; }
.card-title { display: block; margin-top: .16rem; font: 700 1.37rem/1.2 var(--serif); letter-spacing: -.02em; }
.card:hover .card-title { color: var(--accent); }
.card p { overflow-wrap: anywhere; margin-top: .45rem; color: var(--muted); line-height: 1.5; }

.story { max-width: 48rem; margin-inline: auto; padding-top: .4rem; }
.back-link { display: inline-block; margin-bottom: 1.4rem; color: var(--muted); font-size: .91rem; text-underline-offset: .18em; }
.story h1 { margin-block: .2rem .7rem; font: 700 clamp(2.15rem, 5.5vw, 3.7rem)/1.08 var(--serif); letter-spacing: -.045em; }
.story .summary { color: var(--muted); font-size: 1.14rem; }
.story figure { margin: 1.4rem 0; }
.story figure img { max-height: 29rem; object-fit: cover; border-radius: 4px; }
.story figcaption { margin-top: .4rem; color: var(--muted); font-size: .82rem; }
.story-body { margin-top: 1.2rem; max-width: 69ch; }
.story-body p + p { margin-top: .8rem; }

footer { border-top: 1px solid var(--line); background: var(--surface); }
.footer { display: flex; align-items: start; gap: 1rem; flex-wrap: wrap; justify-content: space-between; padding-block: 1.5rem; }
.footer-brand { display: inline; font-size: 2.2rem; }
.footer p, .footer details { margin-top: .35rem; color: var(--muted); font-size: .87rem; }
.footer summary { cursor: pointer; }
.footer ul { padding-left: 1.25rem; margin-bottom: 0; }

@media (max-width: 880px) {
  .wrap { width: min(100% - 2rem, 73.75rem); }
  .top-grid { gap: 1rem; }
  .lead { min-height: 24rem; }
  .news-feed { padding-inline: 1rem; }
  .cards { gap: 1rem; }
}

@media (max-width: 690px) {
  .masthead { min-height: 5rem; grid-template-columns: 1fr auto; }
  .masthead-description { display: none; }
  .brand-mark { width: 1.72rem; height: 1.72rem; }
  .brand-mark i { width: .82rem; height: .94rem; }
  nav { justify-content: start; flex-wrap: nowrap; gap: 1.2rem; overflow-x: auto; scrollbar-width: thin; padding-inline: .25rem; }
  nav a { padding-block: .75rem; }
  nav a[aria-current=page]::after { bottom: 0; }
  main { padding-top: 1rem; }
  .top-grid { grid-template-columns: 1fr; }
  .news-feed { padding-block: 1rem .5rem; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lead { min-height: clamp(20rem, 85vw, 25rem); }
  .lead-copy { padding-bottom: 1.25rem; }
}

@media (max-width: 420px) {
  .cards { grid-template-columns: 1fr; }
  .masthead { gap: .55rem; }
  .masthead .brand { font-size: clamp(2rem, 8.9vw, 2.55rem); }
  .utility { font-size: .76rem; }
}

.search-toggle { text-decoration: none; }
.top-grid--single { grid-template-columns: 1fr; }
.lead--text { min-height: 18rem; background: #214044; }
.lead--text::after { background: linear-gradient(150deg, #294b50, #10272b); }
.empty-edition { padding-top: .6rem; }
.empty-edition p { margin-bottom: .7rem; }
.article-date, .story-source { margin-top: 1rem; color: var(--muted); }
.article-date { font-size: .87rem; }
.story-body p { white-space: pre-line; overflow-wrap: anywhere; }
.card-title, .lead h1, .story h1, .feed-item strong { overflow-wrap: anywhere; }
.footer > a { font-size: .9rem; text-underline-offset: .18em; }

.button {
  display: inline-block;
  width: fit-content;
  padding: .58rem .92rem;
  background: var(--accent);
  color: white;
  border: 1px solid var(--accent);
  border-radius: 4px;
  font-size: .96rem;
  font-weight: 680;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { background: #862617; }
.button.secondary { background: var(--paper); color: var(--ink); border-color: #949895; }
.button.secondary:hover { background: var(--surface); }

.search-form { display: grid; gap: .35rem; max-width: 36rem; margin-bottom: 1.5rem; }
.search-form > div { display: flex; gap: .6rem; }
.search-form input { flex: 1; min-width: 0; }
.search-form label, .editor-form label { font-weight: 670; }
.pagination { justify-content: start; margin-top: 1.2rem; }

.login { max-width: 30rem; }
.editor-page { max-width: 52rem; }
.editor-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-block: .6rem 1.3rem; }
.editor-list { padding: 0; margin: 0; list-style: none; border-top: 1px solid var(--line); }
.editor-list li { padding: .8rem .25rem; display: flex; align-items: start; justify-content: space-between; gap: .6rem; border-bottom: 1px solid var(--line); }
.editor-list p { font-size: .87rem; color: var(--muted); }
.status { display: inline-block; padding: .2rem .55rem; background: var(--surface); color: var(--ink); font-weight: 700; border-radius: 4px; white-space: nowrap; font-size: .85rem; }
.status--published { color: #174535; background: #dfede3; }
.editor-form { display: grid; gap: .45rem; }
.editor-form label:not(:first-child) { margin-top: .62rem; }
.editor-form label small { display: block; color: var(--muted); font-size: .86rem; font-weight: 500; }
.editor-form input:not([type="checkbox"]), .editor-form textarea, .editor-form select, .search-form input {
  display: block;
  width: 100%;
  padding: .5rem .64rem;
  background: white;
  border: 1px solid #949895;
  border-radius: 4px;
  color: var(--ink);
  font: inherit;
}
.editor-form select {
  appearance: none;
  padding-right: 2rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 1.2rem) 50%, calc(100% - .9rem) 50%;
  background-size: .32rem .32rem;
  background-repeat: no-repeat;
}
.editor-form textarea { resize: vertical; }
.editor-form .checkbox { display: flex; align-items: baseline; gap: .5rem; font-weight: 560; }
.checkbox input { accent-color: var(--accent); }
.login .editor-form, .image-fields { margin-top: .85rem; }
.login .button { margin-top: .65rem; }
.image-fields { border: 1px solid var(--line); padding: .55rem .7rem; border-radius: 4px; }
.image-fields summary { cursor: pointer; font-weight: 660; }
.image-fields label { display: block; margin-top: .35rem; }
.form-alert { background: #fbe9e3; border-left: 3px solid var(--accent); padding: .62rem .85rem; margin-block: .7rem; }
.form-alert ul { margin: 0; padding-left: 1.2rem; }
.withdraw { border-top: 1px solid var(--line); padding-top: .8rem; }

.ada-promo {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.05rem;
  margin-top: 1.55rem;
  padding: .65rem .95rem .65rem .65rem;
  border: 1px solid #dce4dc;
  border-radius: 5px;
  background: #eaf0e9;
}
.ada-promo img { display: block; height: 5.85rem; object-fit: cover; object-position: 50% 40%; border-radius: 3px; background: #1e3b3d; }
.ada-promo h2 { font: 700 clamp(1.4rem, 3vw, 2.05rem)/1.12 var(--serif); letter-spacing: -.035em; }
.ada-promo p { color: var(--muted); }
.ada-hero {
  display: grid;
  grid-template-columns: 1fr 1.12fr;
  overflow: hidden;
  min-height: 24rem;
  background: #172e31;
  color: #fffaf1;
  border-radius: 5px;
}
.ada-hero-copy { align-self: center; padding: clamp(1.35rem, 5vw, 4.2rem); }
.ada-hero-copy .kicker { color: #f2ab96; }
.ada-hero h1 { margin-block: .24rem .7rem; font: bold clamp(2.65rem, 6vw, 5.05rem)/.98 var(--serif); letter-spacing: -.055em; text-wrap: balance; }
.ada-hero p { max-width: 31ch; color: #eef0e9; }
.ada-hero img { display: block; height: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: 50% 39%; }
.ada-section { margin-top: 2rem; }
.ada-episode { padding: 1.1rem 1.2rem; background: var(--surface); border-radius: 4px; }
.ada-episode h3 { font: bold clamp(1.4rem, 3vw, 1.8rem)/1.2 var(--serif); }
.ada-episode > p { margin-top: .35rem; color: var(--muted); }
.ada-actions, .ada-player { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.ada-actions { margin-top: .8rem; }
.ada-actions > a { text-underline-offset: .2em; }
.ada-play { display: inline-flex; align-items: center; gap: .5rem; }
.ada-play-icon { width: .6rem; height: .66rem; background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); }
[data-playing=true] .ada-play-icon { clip-path: none; }
.ada-player-status { color: var(--muted); font-size: .87rem; }
.ada-player-status:empty { display: none; }
.story-audio { margin-top: .8rem; }
.ada-interview { margin-top: .85rem; padding: 1.1rem 1.2rem; background: #eaf0e9; border-radius: 4px; }
.ada-question + .ada-question:not([hidden]) { margin-top: 1.2rem; }
.ada-question-text { margin-bottom: .55rem; font: 700 1.18rem/1.45 var(--serif); }
.ada-question-text strong, .ada-answer strong { display: block; margin-bottom: .1rem; color: var(--accent); }
.ada-answer { margin-top: .8rem; white-space: pre-line; overflow-wrap: anywhere; }
.ada-interview-nav { display: flex; justify-content: space-between; align-items: center; gap: .4rem; margin-top: .9rem; padding-top: .8rem; border-top: 1px solid #cbd8cf; }
.ada-interview-nav span { color: var(--muted); font-size: .87rem; white-space: nowrap; }
.button:disabled { opacity: .48; cursor: default; }
.interview-fields p { color: var(--muted); }
.interview-row { margin: .7rem 0; padding: .6rem .7rem .8rem; min-width: 0; border: 1px solid var(--line); border-radius: 4px; }
.interview-row legend { padding-inline: .3rem; font-weight: 680; }
.interview-row button { margin-top: .55rem; }

@media (max-width: 690px) {
  .ada-hero { grid-template-columns: 1fr; min-height: 0; }
  .ada-hero img { grid-row: 1; max-height: 22rem; }
  .ada-promo { grid-template-columns: 5.7rem minmax(0, 1fr); gap: .55rem .75rem; }
  .ada-promo img { height: 5.15rem; }
  .ada-promo > a { grid-column: 2; }
  .ada-episode, .ada-interview { padding: .85rem; }
  .ada-interview-nav button { padding: .45rem .5rem; font-size: .85rem; }
}
