:root {
  color-scheme: light;
  --paper: #f3f1ea;
  --paper-deep: #e9e6dc;
  --ink: #172234;
  --muted: #657080;
  --rule: #c9c8c0;
  --blue: #253b59;
  --red: #bd4c38;
  --gold: #c29a52;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'Segoe UI', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--paper); }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
a { color: inherit; }
.masthead, main, .footer { width: min(1240px, calc(100% - 88px)); margin-inline: auto; }
.masthead { height: 74px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--rule); }
.wordmark { color: var(--ink); font-size: 15px; font-weight: 800; text-decoration: none; }
.wordmark span { color: var(--red); font-weight: 500; }
.issue-status { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: 1px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.update-button { height: 39px; padding: 0 14px; border: 1px solid var(--ink); border-radius: 2px; background: transparent; color: var(--ink); font-size: 12px; font-weight: 700; cursor: pointer; }
.update-button span { display: inline-block; margin-right: 5px; font-size: 18px; vertical-align: -2px; }
.update-button:hover { background: var(--ink); color: var(--paper); }
.update-button:disabled { opacity: .6; cursor: wait; }
.is-loading span { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.opening { position: relative; padding: 18px 0 35px; border-bottom: 1px solid var(--ink); overflow: hidden; }
.opening-rule { display: flex; justify-content: space-between; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: 1px; }
.opening-main { display: flex; align-items: end; justify-content: space-between; gap: 30px; padding-top: 35px; }
.kicker { margin: 0 0 13px; color: var(--red); font-size: 9px; font-weight: 800; letter-spacing: 1.3px; }
.opening h1 { position: relative; z-index: 1; margin: 0; font: 500 68px/.88 var(--serif); }
.opening h1 em { color: var(--blue); font-weight: 500; }
.opening-deck { width: min(320px, 36%); margin: 0 5px 3px 0; color: #485363; font: 17px/1.5 var(--serif); }
.staff-lines { position: absolute; right: 24%; top: 62px; width: 104px; height: 102px; transform: rotate(-13deg); opacity: .58; }
.staff-lines i { position: absolute; left: 0; right: 0; height: 1px; background: #bfc2be; }
.staff-lines i:nth-child(1) { top: 15px; }.staff-lines i:nth-child(2) { top: 30px; }.staff-lines i:nth-child(3) { top: 45px; }.staff-lines i:nth-child(4) { top: 60px; }.staff-lines i:nth-child(5) { top: 75px; }
.staff-lines b { position: absolute; top: -12px; left: 40px; color: var(--red); font: 68px/.9 var(--serif); transform: rotate(13deg); }

.lead-section { padding: 28px 0 62px; }
.lead-story { position: relative; display: flex; min-height: 390px; align-items: end; overflow: hidden; background: var(--blue); color: #fff; }
.lead-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lead-wash { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,27,44,.89), rgba(15,27,44,.53) 49%, rgba(15,27,44,.06)), linear-gradient(0deg, rgba(15,27,44,.28), transparent 58%); }
.lead-copy { position: relative; z-index: 1; max-width: 760px; padding: 38px 45px; }
.lead-copy .kicker { color: #efc878; }
.lead-copy h2 { max-width: 710px; margin: 0 0 13px; font: 500 36px/1.12 var(--serif); }
.lead-summary { display: -webkit-box; max-width: 620px; margin: 0 0 18px; overflow: hidden; color: #f1efe9; font-size: 13px; line-height: 1.6; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.lead-meta { display: flex; align-items: center; gap: 23px; color: #d8dbe0; font-size: 10px; }
.lead-meta a { color: #f0c879; font-weight: 700; text-decoration: none; }
.lead-record { position: absolute; top: 40px; right: 10%; width: 250px; aspect-ratio: 1; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; background: repeating-radial-gradient(circle at center, #1d304b 0 3px, #263a56 4px 5px, #20324d 6px 9px); box-shadow: 0 12px 45px #0c1927aa; }
.lead-record::before { content: ""; width: 76px; aspect-ratio: 1; border-radius: 50%; background: var(--red); border: 8px solid #e8b964; }
.lead-record span { position: absolute; z-index: 1; color: #fff8e8; font: 700 13px var(--sans); }

.section-head { display: flex; align-items: end; justify-content: space-between; padding-bottom: 17px; border-bottom: 1px solid var(--ink); }
.section-head .kicker { margin-bottom: 7px; }
.section-head h2 { margin: 0; font: 500 28px/1.1 var(--serif); }
.story-count { margin: 0 0 2px; color: var(--muted); font-size: 11px; }
.filters-row { display: flex; align-items: start; justify-content: space-between; gap: 24px; padding: 18px 0 20px; }
.subject-filters { display: flex; flex: 1; flex-wrap: wrap; gap: 6px; }
.filter-chip { min-height: 30px; padding: 6px 10px; border: 1px solid transparent; border-radius: 1px; background: transparent; color: #515b68; font-size: 10px; cursor: pointer; }
.filter-chip:hover { border-color: #a9adb0; }
.filter-chip.active { border-color: var(--blue); background: var(--blue); color: #fff; }
.search-box { display: flex; width: 260px; height: 34px; flex: 0 0 260px; align-items: center; gap: 8px; border-bottom: 1px solid #9ca2a8; color: var(--muted); }
.search-box > span { font-size: 20px; }
.search-box input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 11px; }
.search-box kbd { padding: 2px 5px; border: 1px solid var(--rule); font-size: 9px; }
.source-notice { margin: 0 0 17px; padding: 10px 12px; border-left: 2px solid var(--gold); background: #ece7d9; color: #695832; font-size: 11px; }
.first-use { display: flex; min-height: 224px; align-items: center; gap: 34px; margin: 1px 0 24px; padding: 27px 5%; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.first-use[hidden] { display: none; }
.record-art { position: relative; width: 150px; flex: 0 0 150px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: repeating-radial-gradient(circle, #172234 0 3px, #263851 4px 5px, #172234 6px 9px); box-shadow: 0 8px 18px #17223425; }
.record-art::before { content: ""; width: 49px; aspect-ratio: 1; border: 6px solid #d5a24c; border-radius: 50%; background: var(--red); }
.record-art > div { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: var(--ink); }
.record-art span { position: absolute; color: #fff8e8; font-size: 8px; font-weight: 800; }
.first-use h3 { margin: 0 0 8px; font: 500 26px/1.15 var(--serif); }
.first-use .kicker { margin-bottom: 9px; }
.first-use p:last-child { max-width: 460px; margin: 0; color: var(--muted); font: 14px/1.6 var(--serif); }
.story-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.story-card { display: flex; min-width: 0; min-height: 300px; flex-direction: column; padding: 18px 19px 15px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: rgba(255,255,255,.2); }
.story-image { display: block; height: 150px; margin: -18px -19px 15px; overflow: hidden; background: var(--paper-deep); }
.story-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.story-card:hover .story-image img { transform: scale(1.025); }
.story-meta { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 9px; }
.story-meta span { color: var(--red); font-weight: 700; }
.story-meta time { white-space: nowrap; text-align: right; }
.story-card h3 { margin: 17px 0 9px; font: 500 20px/1.2 var(--serif); }
.story-card h3 a { text-decoration: none; }
.story-card h3 a:hover { color: var(--red); }
.story-summary { display: -webkit-box; margin: 0 0 13px; overflow: hidden; color: #5c6673; font-size: 11px; line-height: 1.6; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
.story-foot { display: flex; align-items: end; justify-content: space-between; gap: 9px; margin-top: auto; padding-top: 13px; }
.tags { display: flex; flex-wrap: wrap; gap: 5px; }
.tags span { padding: 4px 6px; background: #e5e4dd; color: #445366; font-size: 8px; }
.read-link { width: 25px; height: 25px; flex: 0 0 25px; color: var(--red); font-size: 18px; text-align: center; text-decoration: none; }
.empty-state { padding: 46px 12px; color: var(--muted); text-align: center; font: 16px var(--serif); }
.empty-state[hidden] { display: none; }
.empty-state p { margin: 0 0 10px; }
.empty-state button { border: 0; background: transparent; color: var(--red); text-decoration: underline; cursor: pointer; font-size: 11px; }
.load-error { grid-column: 1/-1; padding: 24px; color: #765834; font: 14px var(--serif); }
.footer { display: flex; justify-content: space-between; gap: 16px; margin-top: 43px; padding: 22px 0 32px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 9px; }
.footer span:first-child { color: var(--blue); font-weight: 800; }

@media (max-width: 900px) {
  .masthead, main, .footer { width: calc(100% - 52px); }
  .opening h1 { font-size: 60px; }
  .staff-lines { right: 22%; }
  .lead-story { min-height: 350px; }
  .lead-copy { max-width: 68%; padding: 30px; }
  .lead-copy h2 { font-size: 31px; }
  .lead-record { right: 5%; width: 195px; }
  .filters-row { flex-direction: column; gap: 13px; }
  .search-box { width: min(100%, 360px); flex-basis: 34px; align-self: flex-end; }
  .story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .masthead, main, .footer { width: calc(100% - 32px); }
  .masthead { height: 61px; }
  .wordmark { font-size: 12px; }
  .issue-status { font-size: 8px; letter-spacing: .7px; }
  .update-button { height: 36px; padding-inline: 9px; font-size: 11px; }
  .opening { padding-top: 15px; padding-bottom: 26px; }
  .opening-rule { font-size: 8px; }
  .opening-main { align-items: start; flex-direction: column; gap: 13px; padding-top: 29px; }
  .opening h1 { font-size: 51px; }
  .opening-deck { width: min(300px, 82%); margin: 0; font-size: 15px; }
  .staff-lines { top: 42px; right: 6%; transform: scale(.75) rotate(-13deg); transform-origin: top right; }
  .lead-section { padding: 20px 0 42px; }
  .lead-story { min-height: 370px; }
  .lead-copy { max-width: none; padding: 22px; }
  .lead-copy h2 { font-size: 26px; }
  .lead-summary { font-size: 12px; }
  .lead-record { top: 19px; right: -15px; width: 138px; opacity: .77; }
  .lead-wash { background: linear-gradient(0deg, rgba(15,27,44,.94), rgba(15,27,44,.65) 48%, rgba(15,27,44,.13)); }
  .section-head { align-items: start; gap: 12px; flex-direction: column; }
  .section-head h2 { font-size: 25px; }
  .filters-row { gap: 10px; padding-top: 13px; }
  .subject-filters { display: grid; width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
  .filter-chip { text-align: left; padding-inline: 8px; }
  .search-box { align-self: stretch; width: 100%; }
  .first-use { min-height: 180px; gap: 17px; margin-bottom: 18px; padding: 20px 4%; }
  .record-art { width: 94px; flex-basis: 94px; }
  .record-art::before { width: 35px; border-width: 4px; }
  .first-use h3 { font-size: 21px; }
  .first-use p:last-child { font-size: 12px; }
  .story-grid { grid-template-columns: 1fr; }
  .story-card { min-height: 0; padding: 16px 15px 13px; }
  .story-image { height: 185px; margin: -16px -15px 14px; }
  .story-card h3 { margin-top: 13px; font-size: 19px; }
  .story-summary { -webkit-line-clamp: 3; }
  .footer { flex-direction: column; gap: 7px; margin-top: 30px; }
}
