/* Gazzetta Civica 2 theme
   Plain CSS, no build step: edit this file and redeploy.

   1. Fonts
   2. Tokens (light and dark)
   3. Base
   4. Shared pieces (labels, buttons, rules, bylines)
   5. Ticker
   6. Header and drawer
   7. Cards
   8. Front page
   9. Homepage sections
   10. Newsletter box and membership band
   11. Article and page
   12. Content (Ghost editor output)
   13. Archives, pagination, error
   14. Footer
   15. Notification toast
   16. Responsive */


/* 1. Fonts — Source Serif 4 and Inter, self-hosted under the SIL Open Font License
   (assets/fonts/OFL-*.txt). Variable files, so each covers every weight. */

@font-face {
    font-family: "Source Serif 4";
    font-style: normal;
    font-weight: 200 900;
    font-display: swap;
    src: url("../fonts/source-serif-4-latin-opsz-normal.woff2") format("woff2");
}

@font-face {
    font-family: "Source Serif 4";
    font-style: italic;
    font-weight: 200 900;
    font-display: swap;
    src: url("../fonts/source-serif-4-latin-opsz-italic.woff2") format("woff2");
}

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
}


/* 2. Tokens */

:root {
    color-scheme: light;

    /* Theme settings → Background color and Text color (default.hbs sets --custom-*).
       The in-between shades are mixed from those two. Dark mode swaps them (below). */
    --paper: var(--custom-paper, #fafaf7);
    --ink: var(--custom-ink, #14130f);
    --paper-2: color-mix(in oklab, var(--ink) 4%, var(--paper));
    --paper-3: color-mix(in oklab, var(--ink) 8%, var(--paper));
    --rule: color-mix(in oklab, var(--ink) 15%, var(--paper));
    --rule-2: color-mix(in oklab, var(--ink) 25%, var(--paper));
    --ink-2: color-mix(in oklab, var(--ink) 90%, var(--paper));
    --ink-3: color-mix(in oklab, var(--ink) 76%, var(--paper));
    --ink-mute: color-mix(in oklab, var(--ink) 64%, var(--paper));
    --band: var(--ink);
    --band-ink: var(--paper);
    --ticker: #14110d;

    /* Ghost Admin → Design & branding → Accent color. Text on it is white, so pick a
       dark, saturated color. --accent-text is the version used for links and labels. */
    --accent: var(--ghost-accent-color, #a4271c);
    --accent-text: var(--accent);
    --on-accent: #fff;

    /* Ghost Admin → Design & branding → Typography can swap the serif. */
    --heading: var(--gh-font-heading, "Source Serif 4", Georgia, serif);
    --body: var(--gh-font-body, "Source Serif 4", Georgia, serif);
    --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

    --container: 1280px;
    --gutter: 28px;
    --article: 680px;
    --article-text: 1.1875rem;
}

/* Dark mode swaps the two theme colors: the text color becomes the background and
   the background color becomes the text. The other shades follow, as in light mode. */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        color-scheme: dark;
        --paper: var(--custom-ink, #14130f);
        --ink: var(--custom-paper, #fafaf7);
        --band: var(--paper-3);
        --band-ink: var(--ink);
        --ticker: #0a0908;
        --accent-text: color-mix(in oklab, var(--accent) 55%, #fff);
    }
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --paper: var(--custom-ink, #14130f);
    --ink: var(--custom-paper, #fafaf7);
    --band: var(--paper-3);
    --band-ink: var(--ink);
    --ticker: #0a0908;
    --accent-text: color-mix(in oklab, var(--accent) 55%, #fff);
}


/* 3. Base */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

html.drawer-open {
    overflow: hidden;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--body);
    font-size: 1rem;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img,
svg,
video,
iframe {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
}

:focus-visible {
    outline: 2px solid var(--accent-text);
    outline-offset: 2px;
}

h1,
h2,
h3,
p,
figure,
ul,
ol {
    margin: 0;
}

.news-container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 200;
    padding: 10px 14px;
    background: var(--ink);
    color: var(--paper);
    font-family: var(--sans);
    font-size: .8125rem;
    transform: translateY(-200%);
}

.skip-link:focus {
    transform: none;
}


/* 4. Shared pieces */

.label {
    font-family: var(--sans);
    font-size: .6875rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ink-mute);
}

.eyebrow {
    display: flex;
    flex-wrap: wrap;
    gap: 0 8px;
    font-family: var(--sans);
    font-size: .6875rem;
    font-weight: 600;
    letter-spacing: .12em;
    line-height: 1.4;
    text-transform: uppercase;
    color: var(--accent-text);
}

.eyebrow a:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.eyebrow__access {
    color: var(--ink-mute);
}

.eyebrow__access::before {
    content: "·";
    margin-right: 8px;
}

.eyebrow > .eyebrow__access:first-child::before {
    content: none;
}

.byline {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 8px;
    font-family: var(--sans);
    font-size: .6875rem;
    letter-spacing: .04em;
    color: var(--ink-mute);
}


.byline__sep {
    color: var(--rule-2);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border: 1px solid transparent;
    font-family: var(--sans);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .12em;
    line-height: 1.2;
    text-transform: uppercase;
    white-space: nowrap;
    transition: filter .15s, background-color .15s;
}

.button--accent {
    background: var(--accent);
    color: var(--on-accent);
}

.button--accent:hover {
    filter: brightness(1.12);
}

.button--ink {
    border-color: var(--ink);
    background: var(--ink);
    color: var(--paper);
}

.button--ink:hover {
    background: transparent;
    color: var(--ink);
}

.button--outline {
    border-color: var(--rule-2);
    background: transparent;
    color: var(--ink);
}

.button--outline:hover {
    border-color: var(--ink);
}

.button--small {
    padding: 7px 12px;
    font-size: .6875rem;
}

.button--large {
    padding: 15px 28px;
    font-size: .8125rem;
}

.button--block {
    width: 100%;
}

.text-link {
    font-family: var(--sans);
    font-size: .8125rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--accent-text);
}

.icon-button {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--ink-3);
    transition: color .15s;
}

.icon-button:hover {
    color: var(--accent-text);
}

.rule {
    height: 1px;
    margin: 0;
    border: 0;
    background: var(--rule);
}

.double-rule {
    height: 4px;
    margin: 0;
    border: 0;
    border-top: 1px solid #008c45;
    border-bottom: 1px solid #cd212a;
}

.heavy-rule {
    height: 3px;
    margin: 32px 0 24px;
    border: 0;
    background: var(--ink);
}

/* Small uppercase heading with a heavy underline, used in rails and under posts. */
.rail-heading {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--ink);
}

.rail-heading h2 {
    font-family: var(--sans);
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}

/* Large serif heading over a homepage row. */
.row-heading {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 8px 24px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--rule);
}

.row-heading h2 {
    font-family: var(--heading);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 900;
    letter-spacing: -.01em;
    line-height: 1.1;
}

.row-heading h2 a:hover {
    color: var(--accent-text);
}

.row-heading__sub {
    flex-basis: 100%;
    order: 3;
    margin-top: -4px;
    font-style: italic;
    color: var(--ink-mute);
}

.row-heading__more {
    font-family: var(--sans);
    font-size: .6875rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ink-mute);
}

.row-heading__more:hover {
    color: var(--accent-text);
}


/* 5. Ticker */

.ticker {
    display: flex;
    align-items: stretch;
    height: 32px;
    background: var(--ticker);
    color: #fff;
    font-family: var(--sans);
    font-size: .78125rem;
    white-space: nowrap;
}

.ticker__label {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    padding-inline: 14px;
    background: var(--accent);
    color: var(--on-accent);
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.ticker__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    animation: ticker-pulse 1.6s ease-in-out infinite;
}

.ticker__viewport {
    position: relative;
    flex: 1;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, #000 24px, #000 calc(100% - 48px), transparent);
}

.ticker__track {
    display: flex;
    width: max-content;
    height: 100%;
    animation: ticker-scroll 50s linear infinite;
}

.ticker:hover .ticker__track,
.ticker:focus-within .ticker__track,
.ticker.is-paused .ticker__track {
    animation-play-state: paused;
}

.ticker__list {
    display: flex;
    align-items: center;
    padding: 0;
    list-style: none;
}

.ticker__list li {
    display: flex;
    align-items: center;
}

.ticker__list li::after {
    content: "●";
    margin-inline: 24px;
    font-size: .5rem;
    color: rgb(255 255 255 / .4);
}

.ticker__list a:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ticker__toggle {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 36px;
    padding: 0;
    border: 0;
    border-left: 1px solid rgb(255 255 255 / .15);
    background: none;
    color: rgb(255 255 255 / .7);
}

.ticker__toggle:hover {
    color: #fff;
}

.ticker__play-icon,
.ticker.is-paused .ticker__pause-icon {
    display: none;
}

.ticker.is-paused .ticker__play-icon {
    display: block;
}

@keyframes ticker-scroll {
    to { transform: translateX(-50%); }
}

@keyframes ticker-pulse {
    50% { opacity: .35; }
}

@media (prefers-reduced-motion: reduce) {
    .ticker__track,
    .ticker__dot {
        animation: none;
    }

    .ticker__viewport {
        overflow-x: auto;
        scrollbar-width: none;
    }

    .ticker__list[aria-hidden],
    .ticker__toggle {
        display: none;
    }
}


/* 6. Header and drawer */

.utility-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-block: 8px;
    font-family: var(--sans);
    font-size: .6875rem;
    color: var(--ink-mute);
}

.utility-bar__date {
    letter-spacing: .04em;
}

.utility-bar__tools {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.utility-bar__account {
    display: flex;
    align-items: center;
    gap: 18px;
}

.scheme-toggle__sun {
    display: none;
}

:root[data-theme="dark"] .scheme-toggle__sun {
    display: block;
}

:root[data-theme="dark"] .scheme-toggle__moon {
    display: none;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .scheme-toggle__sun {
        display: block;
    }

    :root:not([data-theme="light"]) .scheme-toggle__moon {
        display: none;
    }
}

/* Notifications bell (header) and button (drawer): outline bell when off, filled when on. */
.push-toggle[hidden] {
    display: none;
}

.push-toggle__on,
.push-toggle[aria-pressed="true"] .push-toggle__off {
    display: none;
}

.push-toggle[aria-pressed="true"] .push-toggle__on {
    display: block;
}

.push-toggle[aria-pressed="true"]:not(.push-toggle--block) {
    color: var(--accent-text);
}

.push-toggle[data-state="blocked"] {
    opacity: .55;
}

.push-toggle:disabled {
    cursor: progress;
}

.drawer__hint {
    margin: 0;
    font-family: var(--sans);
    font-size: .75rem;
    line-height: 1.45;
    color: var(--ink-mute);
}

.drawer__hint[hidden] {
    display: none;
}

.site-header > .rule:first-of-type {
    margin: 0;
}

.utility-bar + .masthead {
    border-top: 1px solid var(--rule);
}

.masthead {
    padding-block: 22px 14px;
    text-align: center;
}

.masthead__title {
    font: inherit;
}

.wordmark {
    display: inline-block;
    font-family: var(--heading);
    font-size: clamp(1.75rem, 8vw, 4rem);
    font-weight: 900;
    letter-spacing: .01em;
    line-height: .95;
    text-transform: uppercase;
    color: var(--ink);
}

.wordmark img {
    max-height: 72px;
    width: auto;
    margin-inline: auto;
}

.masthead__tagline {
    margin-top: 8px;
    font-size: .875rem;
    font-style: italic;
    color: var(--ink-mute);
}

.section-nav {
    padding-block: 12px;
}

.section-nav .nav {
    display: flex;
    justify-content: safe center;
    gap: 28px;
    overflow-x: auto;
    padding: 0;
    list-style: none;
    scrollbar-width: none;
    white-space: nowrap;
}

.section-nav .nav::-webkit-scrollbar {
    display: none;
}

.section-nav a {
    font-family: var(--sans);
    font-size: .8125rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.section-nav a:hover,
.section-nav .nav-current a {
    color: var(--accent-text);
}

.drawer {
    position: fixed;
    inset: 0;
    z-index: 100;
}

.drawer[hidden] {
    display: none;
}

.drawer__overlay {
    position: absolute;
    inset: 0;
    background: rgb(20 19 15 / .45);
}

.drawer__panel {
    position: absolute;
    inset: 0 auto 0 0;
    display: flex;
    flex-direction: column;
    width: min(420px, 100%);
    border-right: 1px solid var(--rule);
    background: var(--paper);
    animation: drawer-in .2s ease-out;
}

@keyframes drawer-in {
    from { transform: translateX(-100%); }
}

@media (prefers-reduced-motion: reduce) {
    .drawer__panel {
        animation: none;
    }
}

.drawer__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 18px 24px;
    border-bottom: 1px solid var(--ink);
}

.drawer__title {
    overflow: hidden;
    font-family: var(--heading);
    font-size: 1.375rem;
    font-weight: 900;
    line-height: 1;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.drawer__search {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 24px 8px;
    padding: 12px 16px;
    border: 1px solid var(--rule);
    background: var(--paper-2);
    color: var(--ink-3);
    font-family: var(--sans);
    font-size: .8125rem;
    text-align: left;
}

.drawer__nav {
    flex: 1;
    overflow-y: auto;
    padding: 8px 24px 24px;
}

.drawer__nav .label {
    margin-top: 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--ink);
}

.drawer__nav .nav {
    padding: 0;
    list-style: none;
}

.drawer__nav .nav a {
    display: block;
    padding-block: 10px;
    border-bottom: 1px solid var(--rule);
    font-family: var(--heading);
    font-size: 1.0625rem;
    font-weight: 700;
}

.drawer__nav .nav a:hover {
    color: var(--accent-text);
}

.drawer__footer {
    display: grid;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid var(--rule);
    background: var(--paper-2);
    text-align: center;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.drawer__footer .social-links {
    justify-content: center;
}

.social-links a {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    color: var(--ink-mute);
}

.social-links a:hover {
    color: var(--accent-text);
}


/* 7. Cards — one partial, styled by where it sits (card--side, --pair, --pick, --grid,
   --section). By default a card is image, label, headline and byline. */

.card {
    display: grid;
    align-content: start;
    gap: 12px;
    min-width: 0;
}

.card__image {
    display: block;
    align-self: start;
    overflow: hidden;
    border: 1px solid var(--rule);
    background: var(--paper-2);
}

.card__image img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: opacity .2s;
}

.card:hover .card__image img {
    opacity: .9;
}

.card__body {
    display: grid;
    align-content: start;
    gap: 6px;
    min-width: 0;
}

.card__title {
    font-family: var(--heading);
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.2;
    overflow-wrap: break-word;
}

.card__title a {
    text-decoration-color: color-mix(in srgb, var(--accent-text) 30%, transparent);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.card__title a:hover {
    color: var(--accent-text);
    text-decoration-line: underline;
}

.card__excerpt {
    display: none;
    font-size: .9375rem;
    line-height: 1.45;
    color: var(--ink-3);
}

.card .byline {
    margin-top: 2px;
}

.card--pair .card__title,
.card--grid .card__title {
    font-size: 1.25rem;
    letter-spacing: -.005em;
}

.card--pair .card__excerpt,
.card--grid .card__excerpt {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.card--pick .card__title {
    font-size: 1.1875rem;
}


/* 8. Front page — three columns on wide screens: side stories, the lead, a rail.
   Two columns on laptops (side stories move under), one column on phones. */

.front-page {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2.1fr) minmax(0, 1fr);
    gap: 36px;
    padding-top: 28px;
}

.front-page__left {
    padding-right: 32px;
    border-right: 1px solid var(--rule);
}

.front-page__lead {
    grid-column: 2;
    grid-row: 1;
    padding-right: 32px;
    border-right: 1px solid var(--rule);
}

.front-page__left .card {
    padding-block: 20px;
    border-bottom: 1px solid var(--rule);
}

.front-page__left .card:first-child {
    padding-top: 0;
}

.lead-story {
    display: grid;
    gap: 6px;
}

.lead-story__title {
    margin-top: 4px;
    font-family: var(--heading);
    font-size: clamp(2rem, 3.4vw, 2.5rem);
    font-weight: 900;
    letter-spacing: -.02em;
    line-height: 1.02;
    overflow-wrap: break-word;
}

.lead-story__title a:hover {
    color: var(--accent-text);
}

.lead-story__deck {
    margin-top: 10px;
    font-size: clamp(1.0625rem, 1.8vw, 1.375rem);
    font-style: italic;
    line-height: 1.45;
    color: var(--ink-3);
}

.lead-story__image {
    display: block;
    margin-top: 14px;
    overflow: hidden;
    border: 1px solid var(--rule);
}

.lead-story__image img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.lead-story .byline {
    margin-top: 10px;
}

.lead-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
}

.editors-note {
    margin-top: 24px;
    padding: 18px;
    border: 1px solid var(--rule);
    background: var(--paper-2);
}

/* With fewer than four posts there are no side stories, so the box starts the column. */
.editors-note:first-child {
    margin-top: 0;
}

.editors-note__text {
    margin-block: 8px 12px;
    font-size: .9375rem;
    font-style: italic;
    line-height: 1.5;
    color: var(--ink-2);
}

.editors-note__by {
    font-family: var(--sans);
    font-size: .6875rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ink-mute);
}

.editors-note__by + .official-sources {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--rule);
}

.official-sources > .label {
    text-align: center;
}

.official-sources__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 12px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.official-sources__list a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-family: var(--sans);
    font-size: .6875rem;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    color: var(--ink);
    text-decoration: none;
    transition: color .15s;
}

.official-sources__mark {
    width: 40px;
    height: 40px;
    background-color: currentColor;
    -webkit-mask: var(--mark) center / contain no-repeat;
    mask: var(--mark) center / contain no-repeat;
}

.official-sources__list a:hover {
    color: var(--accent-text);
}

.official-sources__note {
    margin: 16px 0 0;
    font-size: .9375rem;
    font-style: italic;
    text-align: center;
    color: var(--ink-2);
}

.rail-block {
    margin-bottom: 36px;
}

.rank-list {
    display: grid;
    gap: 14px;
    padding: 0;
    list-style: none;
    counter-reset: rank 5;
}

.rank-list li {
    display: grid;
    grid-template-columns: 32px 1fr;
    column-gap: 8px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--rule);
    counter-increment: rank;
}

.rank-list li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.rank-list li::before {
    content: counter(rank, decimal-leading-zero);
    grid-row: 1 / span 2;
    font-family: var(--sans);
    font-size: 1.5rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums lining-nums;
    line-height: .9;
}

.rank-list .eyebrow {
    grid-column: 2;
}

.rank-list__title {
    grid-column: 2;
    margin-top: 4px;
    font-family: var(--heading);
    font-size: .9375rem;
    font-weight: 700;
    line-height: 1.25;
}

.rank-list__title:hover {
    color: var(--accent-text);
}

.newsletter-box--rail {
    margin-bottom: 36px;
}

.picks {
    margin-top: 56px;
}

.picks__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px 28px;
}


/* 9. Homepage sections — eight posts with one tag. The layout setting picks the class:
   Spotlight: big photo story with the headline on the image, three headlines beside
              it and four smaller stories underneath.
   Grid:      four columns of stories with photos and summaries.
   Briefing:  a big story, two medium ones and a list of five headlines with dates.
   Strip:     two rows of compact stories with small photos. */

.home-section {
    margin-top: 56px;
}

.home-section__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
}

/* Grid */
.home-section--Grid .card__title {
    font-size: 1.25rem;
}

.home-section--Grid .card__excerpt {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

/* Spotlight */
.home-section--Spotlight .card:first-child {
    position: relative;
    grid-column: 1 / 4;
    grid-row: 1 / 4;
    overflow: hidden;
    background: var(--ticker);
}

.home-section--Spotlight .card:first-child .card__image {
    height: 100%;
    border: 0;
}

.home-section--Spotlight .card:first-child .card__image img {
    height: 100%;
    min-height: 420px;
    aspect-ratio: auto;
}

.home-section--Spotlight .card:first-child .card__body {
    position: absolute;
    inset: auto 0 0;
    padding: 96px 32px 28px;
    background: linear-gradient(to top, rgb(0 0 0 / .85), rgb(0 0 0 / .55) 60%, transparent);
    color: #fff;
}

.home-section--Spotlight .card:first-child .eyebrow,
.home-section--Spotlight .card:first-child .byline,
.home-section--Spotlight .card:first-child .eyebrow__access {
    color: rgb(255 255 255 / .85);
}

/* Without a photo the headline sits on the dark panel instead. */
.home-section--Spotlight .card:first-child:not(:has(.card__image)) .card__body {
    position: static;
    padding-top: 48px;
}

.home-section--Spotlight .card:first-child .card__title {
    max-width: 22ch;
    font-size: clamp(1.75rem, 3.4vw, 2.75rem);
    font-weight: 900;
    letter-spacing: -.03em;
    line-height: 1.05;
}

.home-section--Spotlight .card:first-child .card__title a:hover {
    color: #fff;
}

.home-section--Spotlight .card:first-child .card__excerpt {
    display: block;
    max-width: 60ch;
    color: rgb(255 255 255 / .82);
}

.home-section--Spotlight .card:nth-child(n+2):nth-child(-n+4) {
    grid-column: 4;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--rule);
}

.home-section--Spotlight .card:nth-child(4) {
    padding-bottom: 0;
    border-bottom: 0;
}

.home-section--Spotlight .card:nth-child(n+2):nth-child(-n+4) .card__image {
    display: none;
}

.home-section--Spotlight .card:nth-child(n+2):nth-child(-n+4) .card__title {
    font-size: 1.125rem;
}

.home-section--Spotlight .card:nth-child(n+2):nth-child(-n+4) .card__excerpt {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: .875rem;
}

/* Briefing */
.home-section--Briefing .home-section__grid {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: repeat(5, auto);
    column-gap: 32px;
    row-gap: 0;
}

.home-section--Briefing .card:first-child {
    grid-column: 1;
    grid-row: 1 / 6;
    padding-right: 32px;
    border-right: 1px solid var(--rule);
}

.home-section--Briefing .card:first-child .card__title {
    font-size: clamp(1.625rem, 2.6vw, 2.125rem);
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.08;
}

.home-section--Briefing .card:first-child .card__excerpt {
    display: block;
    font-size: 1.0625rem;
}

.home-section--Briefing .card:nth-child(2) {
    grid-column: 2;
    grid-row: 1 / 3;
    padding-bottom: 24px;
}

.home-section--Briefing .card:nth-child(3) {
    grid-column: 2;
    grid-row: 3 / 6;
    padding-top: 24px;
    border-top: 1px solid var(--rule);
}

.home-section--Briefing .card:nth-child(n+4) {
    grid-column: 3;
    padding-block: 14px;
    border-bottom: 1px solid var(--rule);
}

.home-section--Briefing .card:nth-child(4) {
    padding-top: 0;
}

.home-section--Briefing .card:last-child {
    border-bottom: 0;
}

.home-section--Briefing .card:nth-child(n+4) .card__image {
    display: none;
}

.home-section--Briefing .card:nth-child(n+4) .card__title {
    font-size: .9375rem;
}


/* Strip */
.home-section--Strip .home-section__grid {
    gap: 0 28px;
}

.home-section--Strip .card {
    grid-template-columns: 88px minmax(0, 1fr);
    align-items: start;
    gap: 14px;
    padding-block: 16px;
    border-bottom: 1px solid var(--rule);
}

.home-section--Strip .card:nth-child(-n+4) {
    padding-top: 0;
}

.home-section--Strip .card:not(:has(.card__image)) {
    grid-template-columns: minmax(0, 1fr);
}

.home-section--Strip .card__image img {
    aspect-ratio: 1;
}

.home-section--Strip .card__title {
    font-size: .9375rem;
}


/* 10. Newsletter box and membership band */

.newsletter-box {
    padding: 18px;
    border: 1px solid var(--rule);
    border-top: 3px solid var(--accent);
    background: var(--paper-2);
}

.newsletter-box__heading {
    margin-block: 8px;
    font-family: var(--heading);
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.25;
}

.newsletter-box__text {
    margin-bottom: 14px;
    font-size: .875rem;
    line-height: 1.5;
    color: var(--ink-3);
}

.newsletter-box__small {
    margin-top: 12px;
    font-family: var(--sans);
    font-size: .6875rem;
    color: var(--ink-mute);
}

.newsletter-box--wide {
    margin-block: 48px;
    padding: 28px 24px;
    border-width: 3px 0;
    border-color: var(--rule);
    text-align: center;
}

.newsletter-box--wide .eyebrow {
    justify-content: center;
}

.newsletter-box--wide .newsletter-box__heading {
    font-size: 1.625rem;
}

.newsletter-box--wide .newsletter-form {
    grid-template-columns: minmax(0, 1fr) auto;
    max-width: 460px;
    margin-inline: auto;
}

.newsletter-box--wide .newsletter-form > p {
    grid-column: 1 / -1;
}

.newsletter-form {
    display: grid;
    gap: 8px;
}

.newsletter-form input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--rule-2);
    border-radius: 0;
    background: var(--paper);
    font-family: var(--sans);
    font-size: .8125rem;
}

.newsletter-form input:focus {
    border-color: var(--ink);
    outline: none;
}

/* Ghost adds loading, success and error classes to the form while it submits. */
.newsletter-form__busy,
.newsletter-form__success,
.newsletter-form__error,
.newsletter-form.loading .newsletter-form__idle {
    display: none;
}

.newsletter-form.loading .newsletter-form__busy,
.newsletter-form.success .newsletter-form__success,
.newsletter-form.error .newsletter-form__error {
    display: block;
}

.newsletter-form.success :is(label, button) {
    display: none;
}

.newsletter-form__success,
.newsletter-form__error {
    font-family: var(--sans);
    font-size: .8125rem;
}

.newsletter-form__error {
    color: var(--accent-text);
}

.membership-band {
    background: var(--band);
    color: var(--band-ink);
}

.membership-band__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    align-items: center;
    gap: 64px;
    padding-block: 64px;
}

.membership-band .label {
    margin-bottom: 24px;
    letter-spacing: .18em;
    color: color-mix(in srgb, var(--band-ink) 70%, transparent);
}

.membership-band h2 {
    max-width: 18ch;
    font-family: var(--heading);
    font-size: clamp(2rem, 4.2vw, 3.25rem);
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.05;
}

.membership-band__text {
    max-width: 52ch;
    margin-top: 20px;
    font-size: 1.125rem;
    line-height: 1.5;
    color: color-mix(in srgb, var(--band-ink) 80%, transparent);
}

.membership-band__actions {
    display: grid;
    align-self: stretch;
    align-content: center;
    gap: 16px;
    padding-left: 48px;
    border-left: 1px solid color-mix(in srgb, var(--band-ink) 22%, transparent);
    font-family: var(--sans);
    font-size: .8125rem;
    color: color-mix(in srgb, var(--band-ink) 75%, transparent);
}


/* The band's Subscribe button: inverted against the band, filling its column, accent on hover */
.membership-band__button {
    justify-content: space-between;
    max-width: 380px;
    padding: 22px 28px;
    border-color: var(--band-ink);
    background: var(--band-ink);
    color: var(--band);
    font-size: .875rem;
    letter-spacing: .16em;
}

.membership-band__button span {
    font-size: 1.25rem;
    letter-spacing: 0;
    transition: transform .15s;
}

.membership-band__button:hover {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--on-accent);
}

.membership-band__button:hover span {
    transform: translateX(4px);
}

/* 11. Article and page */

.reading-progress {
    position: fixed;
    inset: 0 0 auto;
    z-index: 90;
    height: 3px;
    pointer-events: none;
}

.reading-progress span {
    display: block;
    height: 100%;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
}

.article-header {
    max-width: calc(860px + 2 * var(--gutter));
    padding-top: 40px;
}

.article-header__title {
    margin-top: 12px;
    font-family: var(--heading);
    font-size: clamp(2rem, 4.6vw, 2.75rem);
    font-weight: 900;
    letter-spacing: -.02em;
    line-height: 1.04;
    overflow-wrap: break-word;
}

.article-header__deck {
    margin-top: 18px;
    font-size: clamp(1.0625rem, 2vw, 1.375rem);
    line-height: 1.4;
    color: var(--ink-3);
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px 24px;
    margin-top: 24px;
    padding-block: 14px;
    border-block: 1px solid var(--rule);
}


.article-meta__date {
    margin-top: 2px;
    font-family: var(--sans);
    font-size: .6875rem;
    letter-spacing: .04em;
    color: var(--ink-mute);
}

.article-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
}

/* Share button and its menu */

.share {
    position: relative;
}

.share__toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 32px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--ink-3);
    font-family: var(--sans);
    font-size: .6875rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    cursor: pointer;
}

.share__toggle:hover,
.share__toggle[aria-expanded="true"] {
    color: var(--accent-text);
}

.share__menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 50;
    width: 13rem;
    border: 1px solid var(--rule);
    background: var(--paper);
    box-shadow: 0 10px 30px color-mix(in oklab, var(--ink) 14%, transparent);
    animation: share-menu-in .15s ease-out;
}

@keyframes share-menu-in {
    from {
        opacity: 0;
        transform: translateY(4px) scale(.97);
    }
}

.share__title {
    padding: 12px 16px 8px;
    border-bottom: 1px solid var(--rule);
    font-family: var(--sans);
    font-size: .5625rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ink-mute);
}

.share__menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.share__menu a,
.share__copy {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 16px;
    border: 0;
    background: none;
    color: var(--ink-3);
    font-family: var(--sans);
    font-size: .75rem;
    letter-spacing: .02em;
    text-align: left;
    cursor: pointer;
}

.share__menu a:hover,
.share__copy:hover {
    background: var(--paper-2);
    color: var(--ink);
}

.share__menu svg {
    flex-shrink: 0;
}

.share__copy {
    border-top: 1px solid var(--rule);
}

.share__copy-done,
.share__check,
.share__copy.is-copied .share__copy-idle {
    display: none;
}

.share__copy.is-copied .share__copy-done {
    display: inline;
}

.share__copy.is-copied .share__check {
    display: block;
    margin-left: auto;
    color: var(--accent-text);
}

@media (prefers-reduced-motion: reduce) {
    .share__menu {
        animation: none;
    }
}

/* "Add as a preferred source on Google": in the toolbar and at the end of a post */

.preferred-source {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 32px;
    padding-left: 12px;
    border-left: 1px solid var(--rule);
    color: var(--ink-3);
    font-family: var(--sans);
    font-size: .6875rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.preferred-source:hover {
    color: var(--accent-text);
}

.preferred-source svg,
.preferred-source-cta__button svg {
    flex-shrink: 0;
}

.preferred-source-cta {
    margin-block: 48px;
    text-align: center;
}

.preferred-source-cta .eyebrow {
    justify-content: center;
}

.preferred-source-cta__heading {
    margin-block: 8px;
    font-family: var(--heading);
    font-size: 1.625rem;
    font-weight: 700;
    line-height: 1.25;
}

.preferred-source-cta__text {
    max-width: 460px;
    margin-inline: auto;
    font-size: .9375rem;
    line-height: 1.5;
    color: var(--ink-3);
}

.preferred-source-cta__button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 12px 18px;
    border: 1px solid var(--rule-2);
    border-radius: 8px;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: .875rem;
    font-weight: 600;
    line-height: 1.25;
    text-align: left;
}

.preferred-source-cta__button:hover {
    border-color: var(--ink);
}

.article-hero {
    margin-top: 28px;
}

/* width/height in post.hbs (1200x630, the social-card size every feature image uses) reserve
   the space before the image loads; height: auto lets an image of another shape keep its own. */
.article-hero img {
    width: 100%;
    height: auto;
}

.article-hero figcaption {
    margin-top: 10px;
    font-family: var(--sans);
    font-size: .75rem;
    color: var(--ink-mute);
}

.article-body,
.article-footer,
.article-comments {
    width: min(var(--article), 100% - 2 * var(--gutter));
    margin-inline: auto;
}

.article-body {
    margin-top: 40px;
}

.article-header--page + .article-body {
    margin-top: 32px;
}

.article-footer {
    margin-top: 48px;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-family: var(--sans);
    font-size: .75rem;
}

.article-tags a {
    padding: 5px 10px;
    border: 1px solid var(--rule-2);
    color: var(--ink-2);
}

.article-tags a:hover {
    border-color: var(--ink);
}


.post-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px;
    margin-top: 48px;
    padding-top: 28px;
    border-top: 3px solid var(--ink);
}

.post-nav__link {
    display: grid;
    gap: 8px;
}

.post-nav__link--next {
    grid-column: 2;
    text-align: right;
}

.post-nav__title {
    font-family: var(--heading);
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.25;
}

.post-nav__link:hover .post-nav__title {
    color: var(--accent-text);
}

.article-comments {
    margin-top: 56px;
}

.related {
    margin-top: 72px;
}


/* 12. Content */

.gh-content {
    font-family: var(--body);
    font-size: var(--article-text);
    line-height: 1.62;
    color: var(--ink-2);
    overflow-wrap: break-word;
}

.gh-content > * + * {
    margin-top: 1.3em;
}

.post-template .gh-content > p:first-child::first-letter {
    float: left;
    margin: .06em .1em 0 0;
    font-family: var(--heading);
    font-size: 4.2em;
    font-weight: 900;
    line-height: .8;
    color: var(--ink);
}

.gh-content a {
    color: var(--accent-text);
    text-decoration: underline;
    text-decoration-color: color-mix(in srgb, var(--accent-text) 35%, transparent);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.gh-content a:hover {
    text-decoration-color: currentColor;
}

.gh-content :is(h2, h3, h4) {
    font-family: var(--heading);
    font-weight: 800;
    letter-spacing: -.015em;
    line-height: 1.15;
    color: var(--ink);
}

.gh-content > :is(h2, h3, h4) {
    margin-top: 1.8em;
}

.gh-content :is(h2, h3, h4) + * {
    margin-top: .6em;
}

.gh-content h2 {
    font-size: 1.6em;
}

.gh-content h3 {
    font-size: 1.3em;
}

.gh-content h4 {
    font-family: var(--sans);
    font-size: .75em;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.gh-content strong {
    color: var(--ink);
}

.gh-content blockquote:not([class]) {
    margin-inline: 0;
    padding-left: 24px;
    border-left: 3px solid var(--accent);
    font-style: italic;
}

.gh-content blockquote.kg-blockquote-alt {
    margin-inline: 0;
    padding-block: 24px;
    border-block: 1px solid var(--ink);
    font-family: var(--heading);
    font-size: 1.5em;
    font-style: italic;
    line-height: 1.25;
    text-align: center;
    color: var(--ink);
}

.gh-content :is(ul, ol) {
    padding-left: 1.3em;
}

.gh-content li + li {
    margin-top: .4em;
}

.gh-content hr {
    width: 80px;
    height: 0;
    margin-block: 2.4em;
    margin-inline: auto;
    border: 0;
    border-top: 3px solid var(--ink);
}

.gh-content :is(pre, code) {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: .8em;
}

.gh-content :not(pre) > code {
    padding: .1em .35em;
    background: var(--paper-3);
}

.gh-content pre {
    overflow-x: auto;
    padding: 20px;
    background: var(--ticker);
    color: #f1efe6;
    line-height: 1.5;
}

.gh-content table:not(.gist table) {
    display: block;
    overflow-x: auto;
    width: 100%;
    border-collapse: collapse;
    font-family: var(--sans);
    font-size: .8em;
}

.gh-content :is(th, td) {
    padding: 10px 12px;
    border-bottom: 1px solid var(--rule);
    text-align: left;
}

.gh-content figure {
    margin-inline: 0;
}

.gh-content figcaption {
    margin-top: 10px;
    font-family: var(--sans);
    font-size: .75rem;
    line-height: 1.5;
    color: var(--ink-mute);
}

.gh-content img {
    margin-inline: auto;
}

/* Editor card widths. Wide and full cards break out of the article column. */
.kg-width-wide {
    width: min(1040px, 100vw - 2 * var(--gutter));
    margin-inline: calc(50% - min(520px, 50vw - var(--gutter)));
}

.kg-width-full {
    width: 100vw;
    margin-inline: calc(50% - 50vw);
}

.kg-width-full figcaption {
    padding-inline: var(--gutter);
}

.kg-width-wide img,
.kg-width-full img {
    width: 100%;
}

.gh-content .kg-card + :not(.kg-card),
.gh-content :not(.kg-card):not([id]) + .kg-card {
    margin-top: 2em;
}

.kg-callout-card {
    font-family: var(--sans);
    font-size: .9em;
}


/* 13. Archives, pagination, error */

.archive-header {
    padding-block: 40px 24px;
}

.archive-header h1 {
    margin-top: 8px;
    font-family: var(--heading);
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 900;
    letter-spacing: -.02em;
    line-height: 1.02;
}

.archive-header::after {
    content: "";
    display: block;
    height: 4px;
    margin-top: 24px;
    border-block: 1px solid var(--ink);
}

.archive-header__text {
    max-width: 60ch;
    margin-top: 12px;
    font-size: 1.125rem;
    font-style: italic;
    color: var(--ink-3);
}

.archive-header__meta {
    margin-top: 8px;
    font-family: var(--sans);
    font-size: .6875rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ink-mute);
}

.archive-header--author {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 24px;
}

.archive-header--author:not(:has(img)) {
    grid-template-columns: minmax(0, 1fr);
}

.archive-header--author::after {
    grid-column: 1 / -1;
    margin-top: 0;
}

.archive-header__image {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
}

.archive-header--error {
    padding-block: 80px;
    text-align: center;
}

.archive-header--error .eyebrow {
    justify-content: center;
}

.archive-header--error p:last-child {
    margin-top: 24px;
}

.archive-header--error::after {
    content: none;
}

.archive-list {
    padding-top: 8px;
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 40px 28px;
}

.archive-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pagination {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    margin-top: 56px;
    padding-top: 20px;
    border-top: 3px solid var(--ink);
    font-family: var(--sans);
    font-size: .75rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.pagination > div:last-child {
    text-align: right;
}

.pagination__link {
    font-weight: 700;
}

.pagination__link:hover {
    color: var(--accent-text);
}

.pagination__count {
    color: var(--ink-mute);
}


/* 14. Footer */

.site-footer {
    margin-top: 80px;
    background: var(--paper-2);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 40px;
    padding-block: 48px;
}

.footer-wordmark {
    font-family: var(--heading);
    font-size: 1.75rem;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

.footer-brand p {
    max-width: 40ch;
    margin-block: 12px 16px;
    font-style: italic;
    color: var(--ink-3);
}

.footer-brand .social-links {
    margin-left: -8px;
}

.footer-grid .label {
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--ink);
    color: var(--ink);
}

.footer-grid .nav {
    display: grid;
    gap: 8px;
    padding: 0;
    list-style: none;
    font-family: var(--sans);
    font-size: .8125rem;
    color: var(--ink-3);
}

.footer-sections .nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 24px;
}

.footer-grid .nav a:hover {
    color: var(--accent-text);
}

.footer-base {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 24px;
    padding-block: 18px 28px;
    font-family: var(--sans);
    font-size: .75rem;
    color: var(--ink-mute);
}

.footer-base a:hover {
    color: var(--accent-text);
}

.footer-base__links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
}

/* 15. Notification toast */

/* Short confirmation after turning notifications on or off. */
.toast {
    position: fixed;
    left: 50%;
    bottom: var(--gutter);
    z-index: 90;
    max-width: calc(100% - 2 * var(--gutter));
    margin: 0;
    padding: 10px 16px;
    background: var(--ink);
    color: var(--paper);
    font-family: var(--sans);
    font-size: .8125rem;
    line-height: 1.4;
    text-align: center;
    transform: translateX(-50%);
    box-shadow: 0 8px 24px color-mix(in oklab, var(--ink) 25%, transparent);
}

.toast:empty {
    display: none;
}


/* 16. Responsive */

@media (max-width: 1279px) {
    :root {
        --gutter: 24px;
    }

    .front-page {
        grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr);
        gap: 28px;
    }

    .front-page__lead {
        grid-column: 1;
        padding-right: 24px;
    }

    .front-page__rail {
        grid-column: 2;
        grid-row: 1;
    }

    .front-page__left {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 28px;
        padding: 28px 0 0;
        border-top: 1px solid var(--rule);
        border-right: 0;
    }

    .front-page__left .card {
        padding: 0;
        border-bottom: 0;
    }

    .editors-note {
        margin-top: 0;
    }

    .home-section--Spotlight .card:first-child {
        grid-column: 1 / 3;
    }

    .home-section--Spotlight .card:nth-child(n+2):nth-child(-n+4) {
        grid-column: 3 / 5;
    }
}

@media (max-width: 1023px) {
    .front-page {
        grid-template-columns: minmax(0, 1fr);
    }

    .front-page__lead {
        padding-right: 0;
        border-right: 0;
    }

    .front-page__rail {
        grid-column: 1;
        grid-row: auto;
    }

    .picks__grid,
    .archive-grid,
    .home-section__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-section--Spotlight .card:first-child {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    .home-section--Spotlight .card:nth-child(n+2):nth-child(-n+4) {
        grid-column: auto;
    }

    .home-section--Spotlight .card:nth-child(n+2):nth-child(-n+4) .card__image {
        display: block;
    }

    .home-section--Spotlight .card:nth-child(4) {
        padding-bottom: 20px;
        border-bottom: 1px solid var(--rule);
    }

    .home-section--Briefing .home-section__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: none;
        row-gap: 0;
    }

    .home-section--Briefing .card:first-child {
        grid-column: 1 / -1;
        grid-row: auto;
        padding: 0 0 24px;
        border-right: 0;
    }

    .home-section--Briefing .card:nth-child(2),
    .home-section--Briefing .card:nth-child(3) {
        grid-column: auto;
        grid-row: auto;
        padding: 24px 0;
        border-top: 1px solid var(--rule);
    }

    .home-section--Briefing .card:nth-child(n+4) {
        grid-column: 1 / -1;
    }

    .home-section--Briefing .card:nth-child(4) {
        padding-top: 14px;
        border-top: 1px solid var(--rule);
    }

    .home-section--Strip .card:nth-child(-n+4) {
        padding-top: 16px;
    }

    .home-section--Strip .card:nth-child(-n+2) {
        padding-top: 0;
    }

    .membership-band__inner,
    .footer-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 36px;
    }

    .membership-band__actions {
        padding: 32px 0 0;
        border-top: 1px solid color-mix(in srgb, var(--band-ink) 22%, transparent);
        border-left: 0;
    }

    .archive-grid--three {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 759px) {
    :root {
        --gutter: 20px;
    }

    .utility-bar {
        gap: 8px;
    }

    .utility-bar__date {
        display: none;
    }

    .utility-bar__account {
        gap: 12px;
    }

    .section-nav .nav {
        justify-content: flex-start;
        gap: 20px;
    }

    .front-page__left {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .front-page__left .card {
        padding-block: 20px;
        border-bottom: 1px solid var(--rule);
    }

    .front-page__left .card:first-child {
        padding-top: 0;
    }

    .editors-note {
        margin-top: 24px;
    }

    .lead-pair,
    .picks__grid,
    .archive-grid,
    .archive-grid--three,
    .home-section__grid,
    .home-section--Briefing .home-section__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    /* On phones most cards become a row: small photo on the left, text on the right. */
    .card--pair,
    .card--pick,
    .card--grid,
    .card--section {
        grid-template-columns: 112px minmax(0, 1fr);
        gap: 14px;
        padding-block: 18px;
        border-bottom: 1px solid var(--rule);
    }

    .card--pair:not(:has(.card__image)),
    .card--pick:not(:has(.card__image)),
    .card--grid:not(:has(.card__image)),
    .card--section:not(:has(.card__image)) {
        grid-template-columns: minmax(0, 1fr);
    }

    .card--pair:first-child,
    .card--pick:first-child,
    .card--grid:first-child,
    .card--section:first-child {
        padding-top: 0;
    }

    :is(.card--pair, .card--pick, .card--grid, .card--section) .card__title,
    .home-section--Grid .card__title {
        font-size: 1rem;
    }

    :is(.card--pair, .card--grid, .card--section) .card__excerpt {
        display: none;
    }

    .home-section--Spotlight .card:first-child,
    .home-section--Briefing .card:first-child {
        grid-template-columns: minmax(0, 1fr);
        padding-top: 0;
    }

    .home-section--Spotlight .card:first-child .card__image img {
        min-height: 340px;
    }

    .home-section--Spotlight .card:first-child .card__body {
        padding: 80px 20px 20px;
    }

    .home-section--Spotlight .card:first-child .card__title {
        font-size: 1.75rem;
    }

    .home-section--Spotlight .card:first-child .card__excerpt {
        display: none;
    }

    .home-section--Briefing .card:first-child .card__title {
        font-size: 1.5rem;
    }

    .home-section--Briefing .card:first-child .card__excerpt {
        display: block;
        font-size: 1rem;
    }

    .home-section--Briefing .card:nth-child(n+2) {
        padding-block: 16px;
        border-top: 0;
        border-bottom: 1px solid var(--rule);
    }

    /* The Briefing list has no photos, so no photo column either. */
    .home-section--Briefing .card:nth-child(n+4) {
        grid-template-columns: minmax(0, 1fr);
    }

    .home-section--Strip .card:nth-child(n) {
        grid-template-columns: 72px minmax(0, 1fr);
        padding-top: 16px;
    }

    .home-section--Strip .card:first-child {
        padding-top: 0;
    }

    .row-heading__more {
        display: none;
    }

    .article-meta {
        align-items: flex-start;
        flex-direction: column;
    }

    .share__menu {
        right: auto;
        left: 0;
    }

    .post-nav {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .post-nav__link--next {
        grid-column: auto;
        text-align: left;
    }

    .membership-band__inner {
        padding-block: 48px;
    }

    .pagination {
        grid-template-columns: 1fr 1fr;
    }

    .pagination__count {
        display: none;
    }
}

@media (max-width: 479px) {
    :root {
        --gutter: 16px;
    }

    .card--pair,
    .card--pick,
    .card--grid,
    .card--section {
        grid-template-columns: 96px minmax(0, 1fr);
    }
}
