/* Business Habit — public site */

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* The reading column: ~65–70 characters per line at the body size. */
:root { --measure: 40rem; --read: calc(var(--measure) + 2 * var(--gutter)); }

/* ------------------------------------------------------------ top bar & masthead */

.topbar { border-bottom: 1px solid var(--rule); font-size: .78rem; color: var(--muted); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 2.6rem; }
.topbar__date { letter-spacing: .02em; }
.topbar__actions { display: flex; align-items: center; gap: 1.1rem; }
.topbar__actions a { font-weight: 600; color: var(--ink-2); }
.topbar__actions a:hover { color: var(--accent); }
.topbar__search { display: inline-flex; align-items: center; gap: .35rem; }
.topbar__search svg { width: 14px; height: 14px; }

.masthead { text-align: center; padding: clamp(1.1rem, 3vw, 2rem) 0 clamp(.9rem, 2vw, 1.3rem); }
.wordmark {
  display: inline-flex; align-items: baseline; gap: .28em;
  font-family: var(--serif); font-weight: 700; letter-spacing: -.025em; line-height: 1;
  font-size: clamp(2.1rem, 6vw, 3.9rem); color: var(--ink);
}
.wordmark em { font-style: italic; font-weight: 600; color: var(--accent); }
.masthead__tagline {
  margin-top: .5rem; font-family: var(--serif); font-style: italic; color: var(--muted);
  font-size: clamp(.86rem, 1.6vw, 1rem);
}

/* Section navigation: double rule above, single below, like a broadsheet.
   The double rule is a mid tone; in full ink it reads as a heavy bar. */
.sections {
  position: sticky; top: 0; z-index: 30; background: var(--bg);
  border-top: 3px double var(--rule-mid); border-bottom: 1px solid var(--rule);
}
.sections .wrap { display: flex; align-items: center; gap: 1rem; }
.sections__mini {
  font-family: var(--serif); font-weight: 700; font-size: 1.12rem; letter-spacing: -.02em; white-space: nowrap;
  width: 0; overflow: hidden; opacity: 0; transition: opacity .2s, width .2s;
  margin-right: -1rem; /* cancel the flex gap while it's hidden */
}
.sections__mini em { color: var(--accent); }
.sections.is-stuck .sections__mini { width: auto; opacity: 1; margin-right: 0; }
.sections { transition: transform .25s ease; }
.sections.is-hidden:not(:focus-within) { transform: translateY(-100%); }
.sections.is-compact { border-top: 0; }
.sections.is-compact .sections__mini { font-size: 1.3rem; padding: .55rem 0; }
.sections__tools { display: flex; align-items: center; gap: .9rem; flex: none; }
.sections__tools a { display: grid; place-items: center; color: var(--ink-2); }
.sections__tools a:hover { color: var(--accent); }
.sections__tools svg { width: 17px; height: 17px; }
.sections__list {
  list-style: none; display: flex; gap: clamp(.9rem, 2vw, 1.7rem); overflow-x: auto; scrollbar-width: none;
  flex: 1; justify-content: center; padding: 0;
}
.sections.is-stuck .sections__list { justify-content: flex-start; }
.sections__list::-webkit-scrollbar { display: none; }
/* When names run past the edge, fade them out so it's clear there are more. */
.sections__list.is-overflowing {
  justify-content: flex-start; padding-right: 2rem;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 3rem), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 3rem), transparent);
}
.sections__list a {
  display: block; padding: .78rem 0 .7rem; white-space: nowrap;
  font-size: .8rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.sections__list a:hover { color: var(--ink); border-color: var(--rule-strong); }
.sections__list a[aria-current="page"] { color: var(--accent); border-color: var(--accent); }

/* All sections + search, dropped down from the section bar. */
.menu { flex: none; }
.menu__btn {
  display: inline-flex; align-items: center; gap: .4rem; min-height: 2.75rem; padding: 0 .1rem;
  list-style: none; cursor: pointer; user-select: none; -webkit-user-select: none;
  font: 650 .8rem/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2);
}
.menu__btn::-webkit-details-marker { display: none; }
.menu__btn:hover, .menu[open] .menu__btn { color: var(--accent); }
.menu__btn svg { width: 19px; height: 19px; flex: none; }
.menu__close, .menu[open] .menu__open { display: none; }
.menu[open] .menu__close { display: block; }
.menu__panel {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--bg); border-top: 1px solid var(--rule); border-bottom: 2px solid var(--rule-strong); box-shadow: var(--shadow);
  max-height: calc(100vh - 6rem); max-height: calc(100dvh - 6rem); overflow-y: auto; overscroll-behavior: contain;
  padding: 1.2rem 0 1.8rem;
}
.sections .menu__panel .wrap { display: block; }
.menu__panel .searchbox { margin-top: 0; }
.menu__list {
  list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: 0 2rem; margin-top: 1rem;
}
.menu__list a {
  display: block; padding: .8rem 0; border-bottom: 1px solid var(--rule);
  font: 600 1.08rem/1.3 var(--serif); color: var(--ink);
}
.menu__list a:hover { color: var(--accent); }
.menu__list a[aria-current="page"] { color: var(--accent); }

/* Breaking news: a quiet strip in the page's own tone. Only the small label
   carries the alert colour, so the headline reads like a headline. */
.breaking { background: var(--bg-alt); border-bottom: 1px solid var(--rule); }
.breaking .wrap { display: flex; align-items: center; gap: 1rem; min-height: 3rem; padding-top: .55rem; padding-bottom: .55rem; }
.breaking__label {
  flex: none; display: inline-flex; align-items: center; gap: .5rem; padding-right: 1rem; border-right: 1px solid var(--rule);
  font: 750 .68rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--hot);
}
.breaking__label::before {
  content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: var(--hot);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--hot) 45%, transparent);
  animation: ping 2.4s ease-out 3;
}
.breaking a {
  min-width: 0; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2;
  font: 600 1.02rem/1.3 var(--serif); color: var(--ink); text-wrap: pretty;
}
.breaking a:hover { color: var(--accent); }
.breaking time { margin-left: auto; flex: none; font-size: .78rem; color: var(--muted); }
@keyframes ping { 70%, 100% { box-shadow: 0 0 0 .4rem transparent; } }

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

.flash {
  max-width: var(--max); margin: 1rem auto 0; padding: .8rem var(--gutter);
  background: var(--accent-soft); color: var(--ink); border-left: 3px solid var(--accent); font-weight: 500;
}

/* ------------------------------------------------------------ story primitives
   Type does the work: black headlines, quiet labels, hairline rules.
   Colour is reserved for links, the active section and real alerts. */

.kicker {
  display: inline-block; font: 700 .78rem/1.2 var(--sans); color: var(--ink-2); margin-bottom: .35rem;
}
.kicker--hot { color: var(--hot); }
.headline { font-family: var(--serif); font-weight: 700; letter-spacing: -.01em; line-height: 1.16; color: var(--ink); text-wrap: balance; }
.headline a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; }
.dek { color: var(--ink-2); font-size: .98rem; line-height: 1.5; margin-top: .4rem; text-wrap: pretty; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .5rem; margin-top: .55rem; font-size: .76rem; color: var(--muted); }
.meta a { font-weight: 600; color: var(--ink-2); }
.meta a:hover { text-decoration: underline; }
.meta > * + *::before { content: "·"; margin-right: .5rem; color: var(--faint); }
/* Compact cards only carry a timestamp. */
.story--sm .meta > :not(time), .story--md .meta > span { display: none; }
.story--sm .meta > time::before, .story--md .meta > time + span::before { content: none; }

.thumb { display: block; position: relative; overflow: hidden; background: var(--bg-alt); aspect-ratio: 3 / 2; margin-bottom: .75rem; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }

.story { position: relative; }
.story--lead .headline { font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.08; letter-spacing: -.02em; }
.story--lead .dek { font-size: 1.12rem; font-family: var(--serif); color: var(--ink-2); line-height: 1.45; }
.story--lead .thumb { aspect-ratio: 16 / 10; }
.story--md .headline { font-size: 1.28rem; }
.story--sm .headline { font-size: 1.06rem; line-height: 1.22; }
.story--sm .dek { display: none; }

/* horizontal list item: text left, thumb right */
.row { display: grid; grid-template-columns: 1fr 9.5rem; gap: 1.25rem; padding: 1.25rem 0; border-top: 1px solid var(--rule); }
.row:first-child { border-top: 0; padding-top: 0; }
.row .thumb { margin: 0; aspect-ratio: 4 / 3; }
.row .headline { font-size: 1.3rem; }
.row--nothumb { grid-template-columns: 1fr; }

.section-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  border-top: 1px solid var(--rule-strong); padding-top: .6rem; margin-bottom: 1.2rem;
}
.section-head h2 { font-family: var(--serif); font-size: 1.45rem; letter-spacing: -.015em; }
.section-head h2 a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.section-head__more { font-size: .8rem; color: var(--muted); white-space: nowrap; }
.section-head__more:hover { color: var(--ink); text-decoration: underline; }
.section-head__more::after { content: " ›"; }

/* ------------------------------------------------------------ home */

.front { display: grid; gap: 2rem; grid-template-columns: 15rem minmax(0, 1fr) 17rem; padding: 1.8rem 0 2.4rem; }
.front__latest { grid-column: 1; grid-row: 1; border-right: 1px solid var(--rule); padding-right: 1.6rem; }
.front__lead { grid-column: 2; }
.front__side { grid-column: 3; border-left: 1px solid var(--rule); padding-left: 1.6rem; display: grid; gap: 1.4rem; align-content: start; }
.front__side > * + * { border-top: 1px solid var(--rule); padding-top: 1.4rem; }

/* Rail headings: a short serif title over a hairline, like a newspaper column. */
.rail-title {
  font: 700 1.05rem/1.2 var(--serif); letter-spacing: -.005em; color: var(--ink);
  padding-bottom: .55rem; margin-bottom: .9rem; border-bottom: 1px solid var(--rule-strong);
}

.wire { list-style: none; }
.wire li { padding: .8rem 0; border-top: 1px solid var(--rule); }
.wire li:first-child { border-top: 0; padding-top: 0; }
.wire time { display: block; font: 600 .74rem/1 var(--sans); color: var(--muted); margin-bottom: .35rem; font-variant-numeric: tabular-nums; }
.wire a { font-family: var(--serif); font-size: 1rem; line-height: 1.28; font-weight: 600; }
.wire a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.wire__all { display: inline-block; margin-top: .9rem; font-size: .8rem; color: var(--muted); }
.wire__all:hover { color: var(--ink); text-decoration: underline; }

/* Most read: numbered like a printed index */
.mostread { border-top: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule); padding: .9rem 0 1.4rem; margin-bottom: 2.6rem; }
.mostread .rail-title { border: 0; padding: 0; margin-bottom: 1rem; }
.mostread ol { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: mr; }
.mostread li { counter-increment: mr; display: grid; grid-template-columns: auto 1fr; gap: .6rem; align-items: start; padding: 0 1.2rem; border-left: 1px solid var(--rule); }
.mostread li:first-child { padding-left: 0; border-left: 0; }
.mostread li::before { content: counter(mr); font: 400 2rem/0.95 var(--serif); color: var(--faint); font-variant-numeric: lining-nums; }
.mostread a { font-family: var(--serif); font-weight: 600; font-size: 1rem; line-height: 1.28; }
.mostread a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.mostread .meta { margin-top: .3rem; }

.desk { margin-bottom: 2.6rem; }
.desk__grid { display: grid; grid-template-columns: 6fr 3fr 3fr; gap: 1.8rem; }
.desk__grid > :first-child .headline { font-size: 1.6rem; line-height: 1.12; }
.desk__first .thumb { aspect-ratio: 16 / 9; }
.desk__stack { display: grid; gap: 1.1rem; align-content: start; border-left: 1px solid var(--rule); padding-left: 1.8rem; }
.desk__stack > * + * { border-top: 1px solid var(--rule); padding-top: 1.1rem; }
.desk__stack + div { border-left: 1px solid var(--rule); padding-left: 1.8rem; }

.desk__grid--n1 { grid-template-columns: 1fr; }
.desk__grid--n1 .desk__first .story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 2rem; align-items: start; }
.desk__grid--n1 .desk__first .headline { font-size: 1.8rem; }
.desk__grid--n1 .desk__first .dek { font-family: var(--serif); font-size: 1.08rem; display: block; }
.desk__grid--n1 .desk__first .thumb { grid-row: 1 / span 6; margin: 0; aspect-ratio: 16 / 10; }
.desk__grid--n2, .desk__grid--n3 { grid-template-columns: 6fr 4fr; }

.underlead { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--rule); }
.underlead > * + * { border-left: 1px solid var(--rule); padding-left: 1.6rem; }

/* Opinion: columnist's name over an italic headline, divided by rules */
.desk--opinion .desk__grid { grid-template-columns: repeat(4, 1fr); gap: 0; }
.desk--opinion .desk__grid > .story { padding: 0 1.4rem; border-left: 1px solid var(--rule); }
.desk--opinion .desk__grid > .story:first-child { padding-left: 0; border-left: 0; }
.desk--opinion .desk__grid > .story:first-child .headline { font-size: 1.22rem; }
.columnist { display: block; margin-bottom: .45rem; font: 700 .8rem/1.2 var(--sans); color: var(--ink-2); }
.columnist:hover { text-decoration: underline; }
.desk--opinion .headline { font-style: italic; font-weight: 500; font-size: 1.22rem; line-height: 1.22; }
.desk--opinion .dek { font-size: .92rem; }

/* newsletter: a ruled box, not a marketing banner */
.newsletter { max-width: var(--max); margin: 0 auto 2.8rem; padding: 0 var(--gutter); scroll-margin-top: 4rem; }
.newsletter .wrap { max-width: none; padding-left: 0; padding-right: 0; }
.newsletter .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 1.5rem 3rem; align-items: center; }
.newsletter .wrap { border-top: 3px double var(--rule-strong); border-bottom: 1px solid var(--rule); padding-top: 1.8rem; padding-bottom: 1.8rem; }
.newsletter__eyebrow { font: 700 .78rem/1.2 var(--sans); color: var(--muted); }
.newsletter h2 { font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 1.9rem); letter-spacing: -.02em; margin: .2rem 0 .35rem; }
.newsletter p { color: var(--ink-2); max-width: 32rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  padding: .8rem 1.2rem; border-radius: 2px; border: 1px solid var(--ink);
  background: var(--ink); color: var(--bg); font-weight: 650; font-size: .92rem;
  transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--bg); color: var(--ink); }

.more-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; margin-bottom: 3rem; }

/* ------------------------------------------------------------ list pages */

.listhead { padding: 2.4rem 0 1.6rem; border-bottom: 1px solid var(--rule); margin-bottom: 2rem; }
.listhead__eyebrow { font: 700 .82rem/1.2 var(--sans); color: var(--muted); }
.listhead h1 { font-family: var(--serif); font-size: clamp(2.2rem, 5.5vw, 3.6rem); letter-spacing: -.03em; line-height: 1.02; margin-top: .3rem; }
.listhead p { margin-top: .8rem; max-width: 40rem; color: var(--ink-2); font-family: var(--serif); font-size: 1.1rem; }
.listhead--author { display: flex; gap: 1.4rem; align-items: center; }
.listhead__avatar { flex: none; width: 96px; height: 96px; border-radius: 50%; object-fit: cover; background: var(--rule); }


.searchbox { display: flex; gap: .6rem; margin-top: 1.2rem; max-width: 40rem; }
.searchbox input {
  flex: 1; min-width: 0; padding: .9rem 1rem; font-size: 1.1rem; font-family: var(--serif);
  border: 1px solid var(--rule-strong); border-radius: var(--radius); background: var(--surface);
}

.listing { display: grid; grid-template-columns: minmax(0, 1fr) 18rem; gap: 3rem; padding-bottom: 3rem; }
.listing__lead { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1.8rem; padding-bottom: 1.8rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--rule); }
.listing__lead .thumb { margin: 0; }
.listing__lead .headline { font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.1; }
.listing__lead .dek { font-family: var(--serif); font-size: 1.05rem; }
.aside-sticky { position: sticky; top: 4.5rem; align-self: start; }

.mini-rank { list-style: none; counter-reset: r; }
.mini-rank li { counter-increment: r; display: grid; grid-template-columns: 1.8rem 1fr; gap: .4rem; padding: .85rem 0; border-top: 1px solid var(--rule); }
.mini-rank li:first-child { border-top: 0; padding-top: 0; }
.mini-rank li::before { content: counter(r); font: 400 1.4rem/1 var(--serif); color: var(--faint); }
.mini-rank a { font-family: var(--serif); font-weight: 600; line-height: 1.28; }
.mini-rank a:hover { text-decoration: underline; text-decoration-thickness: 1px; }

.empty { padding: 3rem 0; color: var(--muted); font-family: var(--serif); font-size: 1.15rem; }

.pager { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--rule); font-size: .9rem; }
.pager a { font-weight: 650; padding: .5rem .9rem; border: 1px solid var(--rule); border-radius: var(--radius); }
.pager a:hover { border-color: var(--ink); }
.pager span { color: var(--muted); }

/* ------------------------------------------------------------ article */

.preview-bar { background: var(--mark); color: var(--ink); text-align: center; padding: .55rem 1rem; font-size: .85rem; font-weight: 600; }
.preview-bar a { text-decoration: underline; }

.article-head { max-width: var(--read); margin: 0 auto; padding: clamp(1.6rem, 4vw, 3rem) var(--gutter) 1.6rem; }
.crumbs { display: flex; gap: .5rem; font-size: .75rem; color: var(--muted); margin-bottom: .9rem; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs li { list-style: none; }
.crumbs li + li::before { content: "/"; margin-right: .5rem; color: var(--faint); }
.article-head h1 { font-family: var(--serif); font-size: clamp(2rem, 4.6vw, 3rem); line-height: 1.08; letter-spacing: -.025em; text-wrap: balance; }
.article-head .standfirst { margin-top: 1rem; font-family: var(--serif); font-size: clamp(1.1rem, 2vw, 1.32rem); line-height: 1.45; color: var(--ink-2); text-wrap: pretty; }

.byline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.6rem; padding: 1rem 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.byline__who { display: flex; align-items: center; gap: .75rem; }
.byline__name { font-weight: 700; font-size: .92rem; }
.byline__name a:hover { text-decoration: underline; }
.byline__role { font-size: .78rem; color: var(--muted); }
.byline__when { font-size: .78rem; color: var(--muted); }
.byline__when time { color: var(--ink-2); font-weight: 600; }

.share { display: flex; gap: .4rem; }
.share a, .share button {
  display: inline-grid; place-items: center; width: 2.15rem; height: 2.15rem; border-radius: 50%;
  border: 1px solid var(--rule); background: transparent; color: var(--ink-2); transition: all .15s;
}
.share a:hover, .share button:hover { border-color: var(--ink); color: var(--ink); }
.share svg { width: 15px; height: 15px; }
.share button.is-copied { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.hero { max-width: calc(56rem + 2 * var(--gutter)); margin: 0 auto 2.4rem; padding: 0 var(--gutter); }
.hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--bg-alt); }
.hero figcaption, .figure figcaption, .embed figcaption { margin-top: .6rem; font: .85rem/1.5 var(--sans); color: var(--muted); }
.hero figcaption { max-width: var(--measure); }
.credit { color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-size: .68rem; }

.article-body { max-width: var(--read); margin: 0 auto; padding: 0 var(--gutter); }

/* prose: the reading experience */
.prose {
  font-family: var(--serif); font-size: clamp(1.125rem, 1.05rem + .3vw, 1.25rem); line-height: 1.72; color: var(--prose);
  font-kerning: normal; font-variant-ligatures: common-ligatures; overflow-wrap: break-word;
}
.prose p { text-wrap: pretty; }
.prose > * + * { margin-top: 1.15em; }
.prose > h2 + *, .prose > h3 + * { margin-top: .6em; }
.prose p.lede { display: flow-root; }
.prose p.lede::first-letter {
  float: left; font-size: 4.1em; line-height: .82; font-weight: 700; margin: .06em .1em 0 0; color: var(--ink);
}
.prose h2 { font-size: 1.5em; line-height: 1.22; letter-spacing: -.015em; margin-top: 1.9em; text-wrap: balance; scroll-margin-top: 5rem; }
.prose h3 { font-family: var(--sans); font-size: 1.05rem; text-transform: uppercase; letter-spacing: .06em; margin-top: 1.8em; scroll-margin-top: 5rem; }
.prose a { color: inherit; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: .2em; }
.prose a:hover { color: var(--accent); }
.prose a:hover { text-decoration-thickness: 2px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--muted); }
.prose blockquote { margin-left: 0; margin-right: 0; padding-left: 1.2rem; border-left: 2px solid var(--rule-strong); color: var(--ink-2); }
.prose blockquote cite { display: block; margin-top: .5rem; font: normal 600 .82rem/1.4 var(--sans); color: var(--muted); }
.prose blockquote cite::before { content: "— "; }
.prose pre { overflow-x: auto; padding: 1rem 1.2rem; background: var(--bg-alt); border: 1px solid var(--rule); border-radius: var(--radius); font-size: .82rem; line-height: 1.55; }
.prose hr.divider { border: 0; text-align: center; margin: 2.2em 0; }
.prose hr.divider::after { content: "◆ ◆ ◆"; color: var(--faint); font-size: .6rem; letter-spacing: 1em; }

.pullquote { margin: 2em 0 !important; padding: 1.4rem 0; border-top: 2px solid var(--rule-strong); border-bottom: 1px solid var(--rule); }
.pullquote blockquote { margin: 0; padding: 0; border: 0; font-style: normal; color: var(--ink); }
.pullquote blockquote p { font-size: clamp(1.4rem, 2.6vw, 1.8rem); line-height: 1.25; font-weight: 600; letter-spacing: -.015em; }
.pullquote blockquote p::before { content: "“"; color: var(--faint); margin-left: -.45em; }
.pullquote figcaption { margin-top: .7rem; font: 600 .8rem/1.4 var(--sans); color: var(--muted); }

.keypoints { background: var(--bg-alt); border-top: 2px solid var(--rule-strong); padding: 1.1rem 1.4rem 1.2rem; font-family: var(--sans); }
.prose .keypoints__title { font: 700 1rem/1.2 var(--serif); color: var(--ink); margin: 0 0 .7rem; }
.keypoints ul { list-style: none; padding: 0; }
.keypoints li { position: relative; padding-left: 1.3rem; font-size: 1rem; line-height: 1.5; }
.keypoints li::before { content: ""; position: absolute; left: 0; top: .62em; width: .4rem; height: .4rem; background: var(--ink-2); }

.stat { display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; align-items: center; padding: 1.2rem 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.stat__value { font-size: clamp(2.4rem, 6vw, 3.4rem); line-height: 1; letter-spacing: -.03em; color: var(--ink); font-variant-numeric: lining-nums tabular-nums; }
.stat__label { font: 500 .95rem/1.45 var(--sans); color: var(--ink-2); }

.callout { border: 1px solid var(--rule-strong); padding: 1.1rem 1.3rem; font-family: var(--sans); font-size: 1rem; line-height: 1.6; }
.prose .callout__title { font: 700 1rem/1.2 var(--serif); margin: 0 0 .5rem; }

.embed__frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.embed__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.article-foot { max-width: var(--read); margin: 2.8rem auto 0; padding: 0 var(--gutter); }
.tags { display: flex; flex-wrap: wrap; gap: .45rem; }
.tags a { font-size: .8rem; font-weight: 600; padding: .3rem .65rem; border: 1px solid var(--rule); border-radius: 2px; color: var(--ink-2); }
.tags a:hover { border-color: var(--ink); color: var(--ink); }
.authorbox { display: flex; gap: 1rem; align-items: center; margin-top: 2rem; padding: 1.3rem 0; border-top: 2px solid var(--rule-strong); border-bottom: 1px solid var(--rule); }
.authorbox__avatar { flex: none; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: var(--rule); }

.authorbox h2 { font-family: var(--serif); font-size: 1.15rem; }
.authorbox p { font-size: .9rem; color: var(--ink-2); margin-top: .25rem; }
.authorbox a.more { display: inline-block; margin-top: .45rem; font-size: .82rem; font-weight: 600; color: var(--ink-2); text-decoration: underline; text-underline-offset: .2em; }

.related { margin: 3.5rem auto 2.5rem; }
.related__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; }

/* static pages */
.page-body { max-width: 42rem; margin: 0 auto; padding: 0 var(--gutter) 4rem; }

/* 404 */
.notfound { padding: 4rem 0 2rem; max-width: 44rem; }
.notfound__code { font: 700 .75rem/1 var(--mono); letter-spacing: .2em; color: var(--hot); }
.notfound h1 { font-family: var(--serif); font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -.03em; margin: .6rem 0 1rem; line-height: 1.05; }
.notfound p { font-family: var(--serif); font-size: 1.15rem; color: var(--ink-2); }

/* ------------------------------------------------------------ footer */

.footer { margin-top: 1rem; background: #141414; color: #d6d6d3; }
:root[data-theme="dark"] .footer { background: #151412; border-top: 1px solid var(--rule); }
.footer a:hover { color: #fff; }
.footer__top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; padding: 3rem 0 2.4rem; }
.footer .wordmark { font-size: 2rem; color: #fff; }
.footer .wordmark em { color: #79c2a3; }
.footer__note { margin-top: .9rem; max-width: 22rem; font-family: var(--serif); color: #b3b3af; line-height: 1.55; }
.footer h2 { font: 700 .85rem/1.2 var(--sans); color: #fff; margin-bottom: .9rem; }
.footer ul { list-style: none; display: grid; gap: .5rem; font-size: .9rem; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding: 1.2rem 0 1.6rem; border-top: 1px solid #2e2e2c; font-size: .78rem; color: #9a9a96; }

/* ------------------------------------------------------------ responsive */

@media (max-width: 1100px) {
  .front { grid-template-columns: minmax(0, 1fr) 16rem; }
  .front__latest { grid-column: 1 / -1; grid-row: 3; border: 0; padding: 0; border-top: 2px solid var(--rule-strong); padding-top: 1rem; }
  .wire { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 1.6rem; }
  .front__lead { grid-column: 1; grid-row: 1; }
  .front__side { grid-column: 2; grid-row: 1; }
  .mostread ol { grid-template-columns: repeat(3, 1fr); }
  .mostread li:nth-child(n+4) { display: none; }
  .desk--opinion .desk__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .front { grid-template-columns: 1fr; gap: 1.6rem; padding-top: 1.4rem; }
  .front__lead, .front__side, .front__latest { grid-column: 1; grid-row: auto; }
  .front__side { border: 0; padding: 0; border-top: 1px solid var(--rule); padding-top: 1.4rem; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
  .front__side > * + * { border: 0; padding: 0; }
  .wire { grid-template-columns: 1fr; }
  .mostread ol { grid-template-columns: 1fr; gap: 1rem; }
  .mostread li:nth-child(n+4) { display: grid; }
  .desk__grid { grid-template-columns: 1fr 1fr; }
  .desk__grid > :first-child { grid-column: 1 / -1; }
  .desk__stack, .desk__stack + div { border: 0; padding: 0; }
  .desk__grid--n1 .desk__first .story { display: block; }
  .desk__grid--n1 .desk__first .thumb { margin-bottom: .8rem; }
  .newsletter .wrap { grid-template-columns: 1fr; }
  .more-grid, .related__grid { grid-template-columns: 1fr 1fr; }
  .listing { grid-template-columns: 1fr; }
  .listing__lead { grid-template-columns: 1fr; }
  .pullquote blockquote p::before { margin-left: 0; margin-right: .05em; }
  .aside-sticky { position: static; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .topbar__date { display: none; }
  .sections__list { justify-content: flex-start; padding-right: 2rem; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .menu__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .menu__btn { min-width: 2.75rem; justify-content: center; }
  .menu__list { grid-template-columns: 1fr 1fr; gap: 0 1.2rem; }
  .sections.is-stuck:not(.is-compact) .sections__mini { display: none; }
  .sections.is-compact .wrap { flex-wrap: wrap; gap: 0 1rem; }
  .sections.is-compact .menu { margin-left: auto; }
  .sections.is-compact .sections__list { order: 3; flex-basis: 100%; border-top: 1px solid var(--rule); }
  .topbar .wrap { justify-content: flex-end; }
}

@media (max-width: 520px) {
  .front__side, .desk__grid, .desk--opinion .desk__grid, .more-grid, .related__grid, .underlead { grid-template-columns: 1fr; }
  .underlead > * + * { border: 0; padding: 0; }
  .row { grid-template-columns: 1fr 6.5rem; gap: .9rem; }
  .row .headline { font-size: 1.1rem; }
  .row .dek { display: none; }
  .prose { hyphens: auto; -webkit-hyphens: auto; }
  .byline { flex-direction: column; align-items: flex-start; }
  .footer__top { grid-template-columns: 1fr; }
  .breaking time { display: none; }
  .breaking .wrap { flex-direction: column; align-items: flex-start; gap: .3rem; }
  .breaking__label { border: 0; padding: 0; }
}

/* Fingers need bigger targets than a mouse pointer. Extra padding on the
   small links widens what can be tapped; where padding would move things, a
   matching negative margin keeps the layout as it was. */
@media (pointer: coarse) {
  .topbar__actions a { display: inline-flex; align-items: center; min-height: 2.6rem; }
  .theme-toggle { width: 2.5rem; height: 2.5rem; }
  .sections__tools a { width: 2.75rem; height: 2.75rem; }
  .crumbs a, .byline__name a { padding-block: .5rem; }
  .meta a, .section-head__more { padding-block: .5rem; margin-block: -.5rem; }
  .wire__all { padding-block: .5rem; margin: .4rem 0 -.5rem; }
  .authorbox a.more { padding-block: .5rem; margin: -.05rem 0 -.5rem; }
  .share a, .share button { width: 2.6rem; height: 2.6rem; }
  .tags a { padding: .5rem .8rem; }
  .footer ul { gap: 0; }
  .footer li a { display: inline-block; padding: .45rem 0; }
}

@media print {
  .topbar, .sections, .breaking, .share, .newsletter, .nl-inline, .mostread, .footer, .related, .progress { display: none !important; }
  body { background: #fff; color: #000; }
  .prose { font-size: 12pt; }
}

/* ------------------------------------------------------------ newsletter forms */
.nl-form { display: grid; gap: .45rem; }
.nl-row { display: flex; gap: .55rem; flex-wrap: wrap; }
.nl-email { flex: 1 1 14rem; min-width: 0; display: flex; }
.nl-email input {
  width: 100%; padding: .8rem 1rem; border: 1px solid var(--rule-strong); border-radius: 2px; background: var(--surface); color: var(--ink);
}
.nl-email input:focus { outline: 2px solid var(--focus); outline-offset: 1px; }
.nl-msg { font-size: .9rem; font-weight: 600; color: var(--accent); min-height: 0; }
.nl-msg:empty { display: none; }
.nl-msg.is-error { color: var(--hot); }
.nl-fine { font-size: .76rem; color: var(--muted); }
.nl-form.is-done .nl-row, .nl-form.is-done .nl-fine { display: none; }
.nl-form.is-done .nl-msg { font-family: var(--serif); font-size: 1.05rem; color: var(--ink); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* under each article */
.nl-inline {
  display: grid; grid-template-columns: 1fr; gap: .9rem; margin-top: .4rem; padding: 1.3rem 0 1.4rem;
  border-top: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule);
}
.nl-inline h2 { font: 700 1.3rem/1.2 var(--serif); letter-spacing: -.01em; }
.nl-inline__text p { color: var(--ink-2); margin-top: .25rem; font-size: .95rem; }

/* the sign-up dialog */
.nl-modal {
  width: min(30rem, calc(100vw - 2rem)); padding: 2rem 1.8rem 1.4rem; border: 0; border-top: 3px solid var(--rule-strong);
  background: var(--surface); color: var(--ink); box-shadow: 0 20px 60px rgb(0 0 0 / 25%);
}
.nl-modal[open] { animation: nl-in .35s cubic-bezier(.2, .8, .2, 1); }
.nl-modal::backdrop { background: rgb(12 12 12 / 45%); }
@keyframes nl-in { from { opacity: 0; transform: translateY(12px); } }
.nl-modal__x {
  position: absolute; top: .6rem; right: .6rem; display: grid; place-items: center; width: 2.2rem; height: 2.2rem;
  border: 0; background: none; color: var(--muted); border-radius: 50%;
}
.nl-modal__x:hover { color: var(--ink); background: var(--bg-alt); }
.nl-modal__x svg { width: 18px; height: 18px; }
.nl-modal__eyebrow { font: 700 .8rem/1.2 var(--sans); color: var(--muted); }
.nl-modal h2 { font: 700 clamp(1.7rem, 4vw, 2.1rem)/1.1 var(--serif); letter-spacing: -.02em; margin: .3rem 0 .5rem; }
.nl-modal__blurb { font-family: var(--serif); font-size: 1.08rem; line-height: 1.45; color: var(--ink-2); margin-bottom: 1.1rem; }
.nl-modal__later { display: block; margin: .9rem auto 0; border: 0; background: none; color: var(--muted); font-size: .85rem; text-decoration: underline; text-underline-offset: .2em; }
.nl-modal__later:hover { color: var(--ink); }

@media (max-width: 520px) {
  /* a bottom sheet on phones: easy to reach, easy to dismiss */
  .nl-modal { width: 100vw; max-width: 100vw; margin: auto 0 0; padding: 1.6rem 1.2rem 1.2rem; }
  .nl-modal[open] { animation-name: nl-up; }
  @keyframes nl-up { from { transform: translateY(100%); } }
}
.nl-modal:has(.nl-form.is-done) .nl-modal__later { display: none; }
