/* Editorial theme: newsprint, serif headlines, hairline rules, one accent. */
:root {
  --paper: #f6f4ef;
  --surface: #ffffff;
  --ink: #16140f;
  --ink-2: #4b4740;
  --ink-3: #7a756b;
  --rule: #d8d3c8;
  --rule-strong: #16140f;
  --accent: #b3122e;
  --accent-ink: #ffffff;
  --serif: "Iowan Old Style", Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #131210;
    --surface: #1b1a17;
    --ink: #ece9e2;
    --ink-2: #bdb8ae;
    --ink-3: #8c877d;
    --rule: #34312b;
    --rule-strong: #ece9e2;
    --accent: #ff5c6c;
    --accent-ink: #131210;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 var(--sans); }
a { color: inherit; }
code { font-size: .9em; background: var(--surface); border: 1px solid var(--rule); padding: 0 .3em; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }

/* Masthead */
.masthead { border-bottom: 1px solid var(--rule); }
.mast { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 16px; padding-top: 22px; padding-bottom: 14px; }
.dateline { font-size: .78rem; color: var(--ink-3); }
.mast-tools { display: flex; justify-content: flex-end; }
.wordmark { font-family: var(--serif); font-weight: 700; font-size: clamp(1.9rem, 5vw, 2.9rem); line-height: 1; letter-spacing: -.02em; text-decoration: none; text-align: center; }
.mainnav { display: flex; justify-content: center; gap: 4px 22px; flex-wrap: wrap; border-top: 1px solid var(--rule); padding-top: 9px; padding-bottom: 9px; }
.mainnav a { font-size: .86rem; font-weight: 600; text-decoration: none; color: var(--ink-2); }
.mainnav a:hover, .mainnav a[aria-current] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); }
@media (max-width: 720px) {
  .mast { grid-template-columns: 1fr; text-align: center; gap: 6px; padding-top: 16px; position: relative; }
  .mast-tools { position: absolute; top: 12px; right: 16px; }
  .wordmark { padding: 0 64px; }
  .wordmark { order: -1; }
  .mainnav { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .mainnav a { white-space: nowrap; }
}

/* Launch ticker */
.ticker { border-bottom: 1px solid var(--rule); font-size: .85rem; }
.ticker .wrap { display: flex; align-items: center; gap: 12px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.ticker-tag { background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: .72rem; padding: 2px 7px; letter-spacing: .04em; }
.ticker-text { color: var(--ink-2); }
.ticker-text [data-cd] { font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 600; }
.ticker a { margin-left: auto; font-weight: 600; text-underline-offset: 3px; }
@media (max-width: 600px) {
  .ticker .wrap { flex-wrap: nowrap; align-items: flex-start; font-size: .8rem; }
  .ticker-tag { flex: none; margin-top: 1px; }
  .ticker a { display: none; }
}

/* Shared type */
.label { display: block; font-size: .74rem; font-weight: 700; color: var(--accent); letter-spacing: .02em; margin-bottom: 4px; }
.dek { font-family: var(--serif); color: var(--ink-2); margin: 6px 0 0; }
.byline, .fine { font-size: .8rem; color: var(--ink-3); }
.rubric { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 4px; padding-top: 8px; border-top: 3px solid var(--rule-strong); font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.more { font-size: .78rem; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--ink-2); }

/* Front page */
.front { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 32px; padding: 28px 0 24px; border-bottom: 1px solid var(--rule); }
.lead h1 { font-family: var(--serif); font-size: clamp(1.9rem, 4.2vw, 3rem); line-height: 1.08; letter-spacing: -.015em; margin: 0; }
.lead h1 a { text-decoration: none; }
.lead h1 a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.lead .dek { font-size: 1.2rem; line-height: 1.45; margin-top: 12px; }
.front-side { border-left: 1px solid var(--rule); padding-left: 32px; }
.front-side .stories li:first-child { padding-top: 0; }
@media (max-width: 860px) {
  .front { grid-template-columns: 1fr; gap: 8px; }
  .front-side { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); padding-top: 12px; }
}

.grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; padding: 24px 0 56px; }
@media (max-width: 960px) { .grid { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
.side { display: grid; gap: 28px; }

/* Story lists */
.stories { list-style: none; margin: 0; padding: 0; }
.stories li { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.stories li:last-child { border-bottom: 0; }
.hed { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; line-height: 1.25; text-decoration: none; }
.hed:hover { text-decoration: underline; text-underline-offset: 3px; }
.stories .dek { font-size: .95rem; }
.numbered { counter-reset: n; }
.numbered li { counter-increment: n; display: grid; grid-template-columns: 30px 1fr; column-gap: 6px; }
.numbered li::before { content: counter(n); grid-row: span 2; font-family: var(--serif); font-size: 1.5rem; font-weight: 700; color: var(--ink-3); line-height: 1; }
.numbered .hed { font-size: 1rem; }

/* News river */
.river { list-style: none; margin: 0; padding: 0; }
.river li { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.river time { font-size: .76rem; color: var(--ink-3); font-variant-numeric: tabular-nums; padding-top: 3px; }
.river a { font-family: var(--serif); font-size: 1.07rem; line-height: 1.3; text-decoration: none; }
.river a:hover { text-decoration: underline; text-underline-offset: 3px; }
.river .src { display: block; font-size: .76rem; color: var(--ink-3); margin-top: 3px; }
@media (max-width: 520px) { .river li { grid-template-columns: 1fr; gap: 2px; } .river time { order: 2; padding: 0; } }

/* Page header */
.page-head { padding: 28px 0 18px; border-bottom: 1px solid var(--rule); }
.page-head h1 { font-family: var(--serif); font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1.1; margin: 0; }
.page-head .dek { font-size: 1.1rem; max-width: 680px; }

/* Article */
.post { min-width: 0; padding-top: 4px; }
.post-head { padding-bottom: 18px; border-bottom: 1px solid var(--rule); margin-bottom: 8px; }
.post h1 { font-family: var(--serif); font-size: clamp(2rem, 4.6vw, 3rem); line-height: 1.08; letter-spacing: -.015em; margin: 0; }
.post-head .dek { font-size: 1.25rem; line-height: 1.45; margin-top: 12px; }
.post-head .byline { margin: 14px 0 0; }
.body, .post.narrow { max-width: 680px; font-family: var(--serif); font-size: 1.15rem; line-height: 1.7; }
.post.narrow { padding-top: 28px; padding-bottom: 56px; }
.post.narrow h1 { margin-bottom: 12px; }
.body h2, .post.narrow h2 { font-size: 1.55rem; line-height: 1.2; margin: 1.6em 0 .4em; }
.body h3 { font-size: 1.25rem; margin: 1.4em 0 .3em; }
.body a, .post.narrow a { color: var(--accent); text-underline-offset: 3px; }
.body li { margin: .35em 0; }
.body blockquote { margin: 1.4em 0; padding: 2px 0 2px 18px; border-left: 3px solid var(--accent); font-style: italic; color: var(--ink-2); }
.body blockquote p { margin: 0; }
.related { margin-top: 48px; }

/* Ads and shopping */
.ad { margin: 24px 0; }
.ad-label { display: block; text-align: center; font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }
.ad-box { min-height: 90px; background: repeating-linear-gradient(-45deg, transparent 0 8px, var(--rule) 8px 9px); border: 1px solid var(--rule); }
.side .ad { margin: 0; }
.side .ad-box { min-height: 250px; }
.body .ad { font-family: var(--sans); }
.shop ul { list-style: none; margin: 0; padding: 0; }
.shop li { border-bottom: 1px solid var(--rule); }
.shop a { display: block; padding: 10px 0; font-weight: 600; font-size: .92rem; text-decoration: none; }
.shop a::after { content: " \2192"; color: var(--ink-3); }
.shop a:hover { color: var(--accent); }
.body .shop { font-family: var(--sans); margin: 28px 0; padding: 0; }

/* Footer */
.foot { border-top: 3px solid var(--rule-strong); padding: 22px 0 44px; font-size: .82rem; color: var(--ink-3); }
.foot p { max-width: 760px; }
.foot-name { font-family: var(--serif); font-weight: 700; font-size: 1.2rem; color: var(--ink); margin: 0 0 6px; }

/* Language switcher */
.lang { position: relative; font-size: .82rem; }
.lang summary { list-style: none; display: flex; align-items: center; gap: 6px; cursor: pointer; padding: 5px 9px;
  border: 1px solid var(--rule); color: var(--ink-2); font-weight: 600; user-select: none; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { color: var(--ink); border-color: var(--ink-3); }
.lang summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lang ul { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; list-style: none; margin: 0; padding: 4px 0;
  min-width: 160px; background: var(--surface); border: 1px solid var(--rule); box-shadow: 0 8px 24px rgba(0,0,0,.12); text-align: left; }
.lang a { display: flex; justify-content: space-between; padding: 8px 14px; text-decoration: none; color: var(--ink-2); }
.lang a:hover { background: var(--paper); color: var(--ink); }
.lang a[aria-current]{ color: var(--ink); font-weight: 700; }
.lang a[aria-current]::after { content: "\2713"; color: var(--accent); }

/* "Read in your language" hint */
.lang-hint { border-bottom: 1px solid var(--rule); background: var(--surface); font-size: .85rem; }
.lang-hint .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 8px; padding-bottom: 8px; }
.lang-hint a { font-weight: 700; color: var(--accent); text-underline-offset: 3px; }
.lang-hint button { background: none; border: 0; color: var(--ink-3); font-size: 1.1rem; cursor: pointer; padding: 0 4px; }

/* Newsletter */
.newsletter { padding-bottom: 4px; }
.newsletter p { margin: 8px 0 12px; font-family: var(--serif); color: var(--ink-2); }
.post > .newsletter { max-width: 680px; margin-top: 40px; }
.btn { display: inline-block; background: var(--ink); color: var(--paper); font-weight: 700; font-size: .88rem;
  padding: 9px 16px; text-decoration: none; }
.btn:hover { background: var(--accent); color: var(--accent-ink); }
