/* Light only: tell browsers not to auto-darken. */
:root {
  color-scheme: light;
  --ink: #14181f;
  --ink-2: #4a515c;
  --paper: #f5ecde;
  --paper-hi: #fbf6ec;
  --wash: #ece1cf;
  --rule: #d9ccb6;
  --red: #b3162b;
  --blue: #1d4f91;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(1rem, 3vw, 1.75rem);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.5 var(--serif); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: 700px; margin-left: auto; margin-right: auto; padding: 0 var(--gutter); }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip:focus { position: fixed; z-index: 100; top: .5rem; left: .5rem; background: var(--paper); padding: .5rem 1rem; }

/* progress */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--red); transform: scaleX(0); transform-origin: 0 50%; }

/* buttons */
.btn { display: inline-block; font: 700 .9rem/1 var(--sans); background: var(--ink); color: var(--paper); border: 0; padding: .85rem 1.25rem; text-decoration: none; cursor: pointer; border-radius: 2px; }
.btn:hover { background: var(--red); color: #fff; }
.btn-sm { padding: .5rem .85rem; font-size: .8rem; }

/* utility bar */
.utility { border-bottom: 1px solid var(--rule); font: 500 .8rem/1 var(--sans); color: var(--ink-2); }
.utility-row { display: flex; align-items: center; gap: 1rem; min-height: 2.6rem; }
.utility-weather { margin-right: auto; }
.utility-actions { display: flex; align-items: center; gap: 1rem; }
.utility-actions a:not(.btn) { text-decoration: none; }
.utility-actions a:not(.btn):hover { text-decoration: underline; }
.utility-actions .btn { color: var(--paper); }

/* masthead */
.masthead { border-bottom: 1px solid var(--rule); }
.nameplate { margin: 0; }
.nameplate a { display: block; }
.nameplate img { display: block; width: min(680px, 92vw); height: auto; margin: 0 auto;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 3%, #000 97%, transparent), linear-gradient(to bottom, transparent, #000 4%, #000 96%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 3%, #000 97%, transparent), linear-gradient(to bottom, transparent, #000 4%, #000 96%, transparent);
  mask-composite: intersect; }

/* section nav */
.navbar { position: sticky; top: 0; z-index: 50; background: var(--paper); border-top: 3px double var(--ink); border-bottom: 1px solid var(--ink); }
.navbar-row { display: flex; align-items: center; gap: 1.25rem; min-height: 3rem; }
.navbar-mark, .navbar-cta { display: none; }
.navbar.is-stuck { box-shadow: 0 2px 10px rgb(0 0 0 / .12); border-top-width: 0; }
.navbar.is-stuck .navbar-mark { display: block; font: 800 1.35rem/1 var(--serif); letter-spacing: -.01em; text-decoration: none; white-space: nowrap; }
.navbar.is-stuck .navbar-cta { display: inline-block; margin-left: auto; }
.sections { overflow-x: auto; scrollbar-width: none; flex: 1; }
.sections::-webkit-scrollbar { display: none; }
.sections ul { display: flex; gap: 1.4rem; list-style: none; margin: 0; padding: 0; white-space: nowrap; }
.navbar:not(.is-stuck) .sections ul { justify-content: center; }
.sections a { display: block; padding: .9rem 0; font: 700 .85rem/1 var(--sans); text-decoration: none; border-bottom: 3px solid transparent; }
.sections a:hover { border-bottom-color: var(--red); }

/* ticker */
.ticker { background: var(--wash); font: 500 .9rem/1.3 var(--sans); padding: .6rem 0; border-bottom: 1px solid var(--rule); }
.ticker strong { color: var(--red); margin-right: .6rem; font-weight: 800; }
.ticker a { text-decoration: none; }
.ticker a:hover { text-decoration: underline; }

/* labels, kickers, bylines */
.kicker { display: inline-block; font: 800 .78rem/1 var(--sans); color: var(--red); text-decoration: none; margin-bottom: .5rem; }
a.kicker:hover { text-decoration: underline; }
.byline { margin: .6rem 0 0; font: 500 .78rem/1.3 var(--sans); color: var(--ink-2); }
.byline .by { font-weight: 700; color: var(--ink); }
.byline .by::after { content: " \00b7  "; font-weight: 400; }
.label { margin: 0 0 .9rem; padding-top: .55rem; border-top: 3px solid var(--ink); font: 800 1.05rem/1 var(--sans); }
.label a { text-decoration: none; }
.label a:hover { color: var(--red); }
.label-big { font-size: 1.5rem; font-family: var(--serif); font-weight: 800; padding-top: .7rem; margin-bottom: 1.25rem; }

/* front page */
.front { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; padding: 1.75rem 0 2rem; }
.lead-img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.lead-body { padding-top: 1rem; }
.lead-title { margin: 0; font: 800 clamp(2rem, 4.6vw, 3.3rem)/1.04 var(--serif); letter-spacing: -.015em; text-wrap: balance; }
.lead-title a { text-decoration: none; }
.lead-title a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.lead-dek { margin: .8rem 0 0; font-size: 1.2rem; line-height: 1.45; color: var(--ink-2); }
.reading { margin: .3rem 0 0; font: 500 .78rem/1 var(--sans); color: var(--ink-2); }
.brief { padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.brief:first-of-type { padding-top: 0; }
.brief:last-child { border-bottom: 0; }
.brief-title { margin: 0; font: 700 1.2rem/1.2 var(--serif); }
.brief-title a { text-decoration: none; }
.brief-title a:hover { text-decoration: underline; }
.trending ol { list-style: none; counter-reset: t; margin: 0; padding: 0; }
.trending li { counter-increment: t; display: grid; grid-template-columns: 2rem 1fr; padding: .85rem 0; border-bottom: 1px solid var(--rule); font: 700 1.02rem/1.25 var(--serif); }
.trending li::before { content: counter(t); font: 800 1.6rem/1 var(--serif); color: var(--red); }
.trending a { text-decoration: none; }
.trending a:hover { text-decoration: underline; }

@media (min-width: 760px) {
  .front { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
  .lead { grid-column: 1 / -1; }
  .rail, .trending { align-self: start; }
}
@media (min-width: 1040px) {
  .front { grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr) minmax(0, .9fr); column-gap: 0; }
  .lead { grid-column: 1; grid-row: 1 / span 1; padding-right: 1.5rem; }
  .rail { grid-column: 2; grid-row: 1; padding: 0 1.5rem; border-left: 1px solid var(--rule); }
  .trending { grid-column: 3; grid-row: 1; padding-left: 1.5rem; border-left: 1px solid var(--rule); }
}

/* cards & grids */
.grid { display: grid; gap: 2rem 1.5rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card { display: flex; flex-direction: column; }
.card-img { margin-bottom: .8rem; overflow: hidden; }
.card-img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card-title { margin: 0; font: 700 1.3rem/1.15 var(--serif); letter-spacing: -.005em; }
.card-title a { text-decoration: none; }
.card-title a:hover { text-decoration: underline; }
.card-dek { margin: .5rem 0 0; font-size: .98rem; line-height: 1.45; color: var(--ink-2); }
.more, .section, .related { padding: 1.5rem 0 2.25rem; }
.section { border-top: 1px solid var(--rule); }
@media (min-width: 1040px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.archive-head { padding: 2.5rem 0 1.5rem; border-bottom: 1px solid var(--rule); margin-bottom: 2rem; }
.archive-head h1 { margin: 0; font: 800 clamp(2.2rem, 6vw, 3.5rem)/1 var(--serif); }
.archive-head p { margin: .6rem 0 0; color: var(--ink-2); max-width: 40rem; }

/* pagination */
.pagination { display: flex; justify-content: space-between; align-items: center; padding: 1rem 0 3rem; font: 700 .9rem/1 var(--sans); }
.pagination a { text-decoration: none; border: 1px solid var(--ink); padding: .7rem 1rem; border-radius: 2px; }
.pagination a:hover { background: var(--ink); color: var(--paper); }

/* story */
.story-head { padding-top: 2.25rem; }
.story-title { margin: 0; font: 800 clamp(2.1rem, 5.4vw, 3.4rem)/1.05 var(--serif); letter-spacing: -.015em; text-wrap: balance; }
.story-dek { margin: 1rem 0 0; font-size: 1.3rem; line-height: 1.4; color: var(--ink-2); }
.story-meta { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; margin-top: 1.4rem; padding: .9rem 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); font-family: var(--sans); }
.story-meta .by { font-weight: 700; font-size: .9rem; }
.story-meta .by a { text-decoration: none; }
.story-meta .byline { margin-top: .25rem; }
.share { display: flex; gap: .5rem; }
.share a, .share button { font: 700 .75rem/1 var(--sans); color: var(--ink); background: none; border: 1px solid var(--rule); padding: .55rem .75rem; border-radius: 2px; text-decoration: none; cursor: pointer; }
.share a:hover, .share button:hover { border-color: var(--ink); }
.story-figure { max-width: 1000px; margin: 1.75rem auto 0; padding: 0 var(--gutter); }
.story-figure img { width: 100%; }
.story-figure figcaption { margin-top: .5rem; font: 400 .82rem/1.4 var(--sans); color: var(--ink-2); }
.story-body { padding-top: 2rem; padding-bottom: 1rem; font-size: 1.22rem; line-height: 1.65; }
.story-body > p:first-of-type::first-letter { float: left; font: 800 4.3rem/.85 var(--serif); padding: .3rem .5rem 0 0; }
.story-body h2, .story-body h3 { font-family: var(--serif); font-weight: 800; line-height: 1.15; margin: 2.2rem 0 .6rem; }
.story-body a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.story-body blockquote { margin: 2rem 0; padding: 0 0 0 1.25rem; border-left: 4px solid var(--red); font: italic 600 1.45rem/1.35 var(--serif); }
.story-body img { margin: 1.5rem auto; }
.story-body figure { margin: 1.75rem 0; }
.story-body figcaption { font: 400 .82rem/1.4 var(--sans); color: var(--ink-2); }
.story-body hr { border: 0; border-top: 1px solid var(--rule); margin: 2.5rem 0; }
.story-body .kg-width-wide { width: min(1000px, 94vw); margin-left: 50%; transform: translateX(-50%); }
.story-body .kg-width-full { width: 100vw; margin-left: 50%; transform: translateX(-50%); }
.story-foot { padding-bottom: 2.5rem; font: 500 .85rem/1.4 var(--sans); color: var(--ink-2); }
.story-foot a { color: var(--ink); font-weight: 700; }
.related { border-top: 3px solid var(--ink); margin-top: 1rem; }

/* newsletter */
.newsletter { background: var(--ink); color: var(--paper); margin-top: 1.5rem; }
.newsletter-row { display: grid; gap: 1.25rem; padding-top: 2.5rem; padding-bottom: 2.5rem; align-items: center; }
.newsletter h2 { margin: 0; font: 800 clamp(1.7rem, 3.5vw, 2.4rem)/1.1 var(--serif); }
.newsletter p { margin: .4rem 0 0; opacity: .85; }
.signup { display: flex; flex-wrap: wrap; gap: .5rem; }
.signup input { flex: 1 1 14rem; padding: .85rem 1rem; font: 400 1rem var(--sans); border: 2px solid transparent; border-radius: 2px; background: var(--paper-hi); color: var(--ink); }
.signup .btn { background: var(--red); color: #fff; }
.signup .btn:hover { background: #fff; color: var(--ink); }
.signup .message { display: none; flex-basis: 100%; font: 500 .9rem var(--sans); margin: 0; }
.signup.success .success, .signup.error .error { display: block; }
@media (min-width: 800px) { .newsletter-row { grid-template-columns: 1fr 1.2fr; gap: 3rem; } }

/* footer */
.footer { padding: 2rem 0 2.5rem; font: 400 .85rem/1.5 var(--sans); color: var(--ink-2); }
.footer-top { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; padding-bottom: 1.25rem; border-bottom: 1px solid var(--rule); }
.footer-name { font: 800 1.6rem/1 var(--serif); color: var(--ink); text-decoration: none; }
.footer ul { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; list-style: none; margin: 0; padding: 0; }
.footer a { color: var(--ink); }
.satire { margin: 1.25rem 0 .25rem; font-weight: 600; color: var(--ink); }
.copy { margin: 0; }

@media (max-width: 640px) {
  .utility-weather { display: none; }
  .utility-date { margin-right: auto; }
  .story-body { font-size: 1.12rem; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* Ghost editor cards */
.kg-gallery-container { display: flex; flex-direction: column; gap: .5rem; margin: 1.75rem 0; }
.kg-gallery-row { display: flex; gap: .5rem; }
.kg-gallery-image { flex: 1 1 0; }
.kg-gallery-image img { width: 100%; height: 100%; margin: 0; object-fit: cover; }
.kg-bookmark-card { margin: 1.75rem 0; font-family: var(--sans); }
.kg-bookmark-container { display: flex; border: 1px solid var(--rule); color: inherit; text-decoration: none; border-radius: 2px; overflow: hidden; }
.kg-bookmark-container:hover { border-color: var(--ink); }
.kg-bookmark-content { flex: 1; padding: 1rem; min-width: 0; }
.kg-bookmark-title { font-weight: 700; font-size: 1rem; line-height: 1.3; }
.kg-bookmark-description { margin-top: .3rem; font-size: .85rem; line-height: 1.4; color: var(--ink-2); max-height: 3.6em; overflow: hidden; }
.kg-bookmark-metadata { display: flex; align-items: center; gap: .4rem; margin-top: .6rem; font-size: .78rem; color: var(--ink-2); }
.kg-bookmark-icon { width: 1.1rem; height: 1.1rem; margin: 0 !important; }
.kg-bookmark-author::after { content: " \00b7  "; }
.kg-bookmark-publisher { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kg-bookmark-thumbnail { flex: 0 0 30%; position: relative; }
.kg-bookmark-thumbnail img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; margin: 0; }
