/* Highness - screen styles. Fonts are declared in partials/fonts.hbs (inline in <head>). */

:root {
    --color-ink: #120f10;
    --color-ink-soft: #403737;
    --color-paper: #fffaf5;
    --color-paper-elevated: #fffdf9;
    --color-line: rgba(18, 15, 16, 0.16);
    --color-muted: #7d6f6c;
    --color-accent: #a40d2d;
    --color-accent-2: #f1dfd0;
    --color-accent-ink: #fff7ef;
    --shadow-soft: 0 22px 70px rgba(18, 15, 16, 0.08);
    /*
     * Type scale. Display sizes are fluid; the pixel values are what each step is at a 1440px viewport.
     * Everything small is either a label (12px, uppercase, tracked) or meta (14px, sentence case).
     */
    --fs-label: 1.2rem;
    --fs-meta: 1.4rem;
    --fs-display-xs: clamp(2rem, 0.9vw + 1.4rem, 2.7rem);    /* ~27px  compact cards, h4 */
    --fs-display-s: clamp(2.4rem, 1.6vw + 1.4rem, 3.6rem);   /* ~37px  cards, h3 */
    --fs-display-m: clamp(3rem, 2.4vw + 1.4rem, 4.8rem);     /* ~49px  h2, signup blocks */
    --fs-display-l: clamp(3.6rem, 3.6vw + 1.2rem, 6.4rem);   /* ~64px  section titles, hero */
    --fs-display-xl: clamp(4.4rem, 5.2vw + 1.2rem, 8.6rem);  /* ~87px  page titles */
    --radius: 0;
    --wrap: min(1520px, calc(100vw - 36px));
    /* Article text column: ~70 characters per line at the body size */
    --content: min(700px, calc(100vw - 36px));
    --space-section: clamp(3rem, 6vw, 7rem);
    --home-gap: clamp(1rem, 2.2vw, 2rem);
    /* Height of the sticky navigation bar plus breathing room; sticky rails sit below it */
    --sticky-offset: 12rem;
}

/*
 * Accent tokens
 *   --color-accent          fills and large graphics (buttons, badges, rules)
 *   --color-accent-text     accent used as TEXT or focus rings on light surfaces (WCAG AA)
 *   --color-accent-on-dark  accent used as text on the ink-black header
 * The derived tokens are declared on body (not :root) so they follow the palette classes below.
 * Editorial-mode rules come first so an explicit accent palette always wins over Luxury's default crimson.
 */
body {
    --color-accent-text: var(--color-accent);
    --color-accent-on-dark: #ff8fa3;

    /*
     * Font roles (declared on body so the typography presets below can swap them):
     *   display  headlines and masthead      text  article body, decks, excerpts      ui  labels, navigation, buttons
     * A font picked in Ghost Admin (Design -> Typography) overrides the display / text role of the preset.
     */
    --font-display-preset: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, "Times New Roman", serif;
    --font-text-preset: "Newsreader", Charter, "Iowan Old Style", Georgia, serif;
    --font-ui: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-display: var(--gh-font-heading, var(--font-display-preset));
    --font-text: var(--gh-font-body, var(--font-text-preset));

    /* Headline settings that belong to the display face */
    --display-weight: 500;
    --display-tracking: -0.025em;
    --display-leading: 1.02;
    --mast-weight: 600;
    --mast-tracking: -0.025em;

    /* Labels: small, uppercase, tracked */
    --label-weight: 600;
    --label-tracking: 0.1em;
}

.mode-luxury {
    --color-paper: #fbf7ef;
    --color-accent: #6d1d1f;
    --home-gap: clamp(1.4rem, 2.8vw, 3rem);
}

.mode-pop {
    --color-paper: #fff7fb;
    --color-accent-2: #ffe4ef;
}

.accent-chartreuse {
    --color-accent: #b7ff28;
    --color-accent-2: #f3f8dc;
    --color-accent-ink: #151515;
    --color-accent-text: #476300;
    --color-accent-on-dark: #b7ff28;
}

.accent-blue {
    --color-accent: #2358ff;
    --color-accent-2: #dce6ff;
    --color-accent-ink: #ffffff;
    --color-accent-text: #1d4ae0;
    --color-accent-on-dark: #8aa8ff;
}

.accent-mono {
    --color-accent: #111111;
    --color-accent-2: #eeeeea;
    --color-accent-ink: #ffffff;
    --color-accent-on-dark: #ffffff;
}

/* Palette fills win over editorial-mode tints when both are chosen */
.mode-pop.accent-chartreuse { --color-accent-2: #f3f8dc; }
.mode-pop.accent-blue { --color-accent-2: #dce6ff; }
.mode-pop.accent-mono { --color-accent-2: #eeeeea; }

/* Typography presets ("Typography style" theme setting). Editorial Serif is the default (no class). */
.type-modern {
    --font-display-preset: "Instrument Serif", "Didot", Georgia, serif;
    --display-weight: 400;
    --display-tracking: -0.01em;
    --display-leading: 1;
    --mast-weight: 400;
    --mast-tracking: -0.01em;
}

.type-newsroom {
    --font-display-preset: "Newsreader", Charter, "Iowan Old Style", Georgia, serif;
    --display-weight: 600;
    --display-tracking: -0.025em;
    --display-leading: 1.05;
    --mast-weight: 600;
    --mast-tracking: -0.03em;
}

.density-compact {
    --space-section: clamp(2rem, 4vw, 4.5rem);
    --home-gap: clamp(0.75rem, 1.5vw, 1.25rem);
}

.density-spacious {
    --space-section: clamp(4rem, 8vw, 9rem);
    --home-gap: clamp(1.5rem, 3vw, 3.25rem);
}

.soft-images {
    --radius: 18px;
}

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

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--color-paper);
    color: var(--color-ink);
    font-family: var(--font-ui);
    font-size: 1.6rem;
    line-height: 1.55;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    /* Full-bleed editor cards use 100vw, which includes the scrollbar width; clip avoids a horizontal scrollbar
       without creating a scroll container (sticky positioning keeps working). */
    overflow-x: clip;
}

body.menu-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration-thickness: 0.06em;
    text-underline-offset: 0.18em;
}

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

img {
    display: block;
    max-width: 100%;
    height: auto;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.dark-header .site-header :focus-visible,
.dark-header .nav-shell :focus-visible {
    outline-color: var(--color-accent-on-dark);
}

.skip-link,
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link:focus {
    position: fixed;
    z-index: 1000;
    top: 1rem;
    left: 1rem;
    width: auto;
    height: auto;
    padding: 0.8rem 1rem;
    clip: auto;
    background: var(--color-ink);
    color: var(--color-paper);
}

/*
 * Header layout
 *   Desktop: .site-header (masthead) scrolls away; .nav-shell (navigation bar) sticks to the top.
 *   Mobile (<= 940px): .site-header is the sticky bar and .nav-shell becomes the slide-down menu (see media query).
 */
.site-header {
    position: relative;
    z-index: 101;
    background: var(--color-paper);
}

.nav-shell {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 250, 245, 0.94);
    background: color-mix(in srgb, var(--color-paper) 94%, transparent);
    border-top: 1px solid var(--color-line);
    border-bottom: 1px solid var(--color-line);
    backdrop-filter: blur(18px);
}

.dark-header .site-header,
.dark-header .nav-shell {
    background: rgba(18, 15, 16, 0.96);
    color: var(--color-paper);
    border-top-color: rgba(255, 255, 255, 0.16);
    border-bottom-color: rgba(255, 255, 255, 0.16);
}

.masthead-bar {
    width: var(--wrap);
    margin: 0 auto;
    min-height: clamp(8rem, 9vw, 12rem);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1.5rem;
    align-items: center;
}

.dark-header .site-header a:hover,
.dark-header .nav-shell a:hover {
    color: var(--color-accent-on-dark);
}

.dark-header .section-nav a,
.dark-header .primary-nav a {
    border-color: rgba(255, 255, 255, 0.32);
}

.brand-mark {
    font-family: var(--font-display);
    font-weight: var(--mast-weight);
    /* --brand-scale is set by assets/js/highness.js to fit long publication names between the header controls */
    font-size: calc(clamp(4.6rem, 8.6vw, 11.5rem) * var(--brand-scale, 1));
    line-height: 0.95;
    letter-spacing: var(--mast-tracking);
    text-decoration: none;
    text-transform: uppercase;
    text-wrap: balance;
}

.mode-luxury .brand-mark {
    font-weight: 400;
}

.brand-mark img {
    max-height: 10rem;
    margin: 0 auto;
}

.utility-link,
.account-links a,
.pill-link {
    font-family: var(--font-ui);
    font-size: var(--fs-label);
    font-weight: var(--label-weight);
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    white-space: nowrap;
}

.utility-link {
    justify-self: start;
    border: 0;
    background: transparent;
    color: currentColor;
}

.account-links,
.account-links nav {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.account-links {
    justify-self: end;
}

.pill-link {
    display: inline-flex;
    padding: 0.8rem 1rem;
    border: 1px solid currentColor;
    border-radius: 999px;
}

.menu-toggle {
    display: none;
    width: 4rem;
    height: 4rem;
    border: 1px solid currentColor;
    border-radius: 999px;
    background: transparent;
    color: currentColor;
}

.menu-toggle span:not(.sr-only) {
    display: block;
    width: 1.7rem;
    height: 1px;
    margin: 0.45rem auto;
    background: currentColor;
}

.nav-inner {
    width: var(--wrap);
    margin: 0 auto;
    display: grid;
    gap: 0.4rem;
}

.primary-nav ul,
.section-nav,
.footer-grid nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1.6rem;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 0;
    list-style: none;
}

.primary-nav {
    padding-top: 1rem;
}

.section-nav {
    padding: 0.6rem 0 1rem;
    overflow-x: auto;
    /* Centred like the primary links above it (the row wraps rather than scrolls on desktop) */
    justify-content: center;
    scrollbar-width: none;
}

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

.primary-nav a,
.section-nav a,
.footer-grid nav a {
    font-family: var(--font-ui);
    font-size: var(--fs-label);
    font-weight: var(--label-weight);
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
}

.primary-nav a {
    font-size: 1.3rem;
    letter-spacing: 0.1em;
}

.section-nav a {
    padding: 0.45rem 0.75rem;
    border: 1px solid var(--color-line);
    border-radius: 999px;
}

/* Current section (on a tag page) and current primary link */
.section-nav a[aria-current="page"] {
    background: var(--color-ink);
    border-color: var(--color-ink);
    color: var(--color-paper);
}

.dark-header .section-nav a[aria-current="page"] {
    background: var(--color-paper);
    border-color: var(--color-paper);
    color: var(--color-ink);
}

.primary-nav .nav-current a {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.5em;
}

/* Search button inside the menu: only for small screens (the masthead has its own Search on desktop) */
.menu-search {
    display: none;
}

.site-main {
    min-height: 50vh;
}

.home-wrap,
.archive-header,
.archive-grid,
.article-shell,
.static-page-shell,
.author-header,
.error-page {
    width: var(--wrap);
    margin: 0 auto;
}

.home-wrap {
    padding: clamp(2.5rem, 4vw, 5rem) 0 var(--space-section);
}

/*
 * Section headings: eyebrow and title are always left-aligned together; the optional "All ..." link sits on the
 * right, aligned to the title's baseline. (Previously the title floated to the centre or right depending on how
 * many children the heading had.)
 */
.section-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 2rem;
    align-items: end;
    padding-bottom: 1.1rem;
    border-bottom: 1px solid var(--color-ink);
}

.section-heading > .eyebrow,
.section-heading > h1,
.section-heading > h2 {
    grid-column: 1;
}

.section-heading > .section-link {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: end;
}

.section-heading--mast {
    border-bottom-width: 2px;
}

/* Labels: category names and calls to action. Small caps-style, tracked, never below 12px. */
.eyebrow,
.card-meta,
.article-kicker,
.gallery-chip,
.section-link,
.text-link {
    font-family: var(--font-ui);
    font-size: var(--fs-label);
    font-weight: var(--label-weight);
    letter-spacing: var(--label-tracking);
    line-height: 1.2;
    text-transform: uppercase;
}

/* Meta: bylines and dates in sentence case. Easier to read at 14px and quieter than the labels above. */
.byline,
.article-meta,
.latest-list time {
    font-family: var(--font-ui);
    font-size: var(--fs-meta);
    font-weight: 500;
    letter-spacing: 0.005em;
    line-height: 1.35;
}

.eyebrow {
    margin: 0 0 0.6rem;
    color: var(--color-accent-text);
}

.section-heading h1,
.section-heading h2,
.archive-header h1,
.article-header h1,
.issue-module h2,
.power-strip h2,
.home-newsletter h2,
.footer-newsletter h2,
.error-page h1 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: var(--display-weight);
    letter-spacing: var(--display-tracking);
    line-height: var(--display-leading);
    text-wrap: balance;
}

.section-heading h1 {
    font-size: var(--fs-display-xl);
}

/* The largest headlines can take slightly tighter spacing than the running display size */
.section-heading h1,
.archive-header h1,
.article-header h1,
.error-page h1 {
    letter-spacing: calc(var(--display-tracking) - 0.005em);
}

.section-heading h2 {
    font-size: var(--fs-display-l);
}

.power-strip h2,
.home-newsletter h2,
.footer-newsletter h2 {
    font-size: var(--fs-display-m);
}

.section-heading a,
.text-link,
.section-link {
    text-decoration: none;
}

.top-stories {
    margin-bottom: var(--space-section);
}

/*
 * Top Stories is a flex row on wide screens so that only the columns that exist take space: lead, then the
 * supporting stories, then the Latest rail. If the site has no supporting stories or no Latest, the others grow
 * instead of leaving an empty column. (Below 1181px it becomes a grid, see the media queries.)
 */
.top-stories__grid {
    --lead-fr: 1.35;
    --support-fr: 0.66;
    --rail-fr: 0.38;
    display: flex;
    gap: var(--home-gap);
    align-items: flex-start;
    padding-top: var(--home-gap);
}

.home-wrap--text-led .top-stories__grid {
    --lead-fr: 1;
    --support-fr: 0.8;
    --rail-fr: 0.42;
}

.top-stories__lead {
    flex: var(--lead-fr) 1 0;
    min-width: 0;
}

.top-stories__support {
    flex: var(--support-fr) 1 0;
    min-width: 26rem;
}

.top-stories__grid > .latest-rail {
    flex: var(--rail-fr) 1 0;
    min-width: 24rem;
}

/* A single story: split hero (image | text) rather than one enormous full-width image */
.top-stories__grid--solo .story-card--hero {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(2rem, 3vw, 4rem);
}

.top-stories__grid--solo .story-card--hero .story-card__media {
    aspect-ratio: 4 / 3;
}

.top-stories__grid--solo .story-card--hero h3 {
    font-size: var(--fs-display-l);
}

.home-wrap--text-led .top-stories__grid--solo .story-card--hero .story-card__media {
    order: 0;
}

.home-wrap--text-led .story-card--hero .story-card__media {
    order: 2;
}

.home-wrap--split .story-card--hero {
    grid-template-columns: 0.95fr 1fr;
}

.top-stories__support {
    display: grid;
    gap: 1rem;
}

.latest-rail {
    padding: 1.2rem;
    border: 1px solid var(--color-ink);
    background: var(--color-paper-elevated);
}

.latest-rail--sticky {
    position: sticky;
    top: var(--sticky-offset);
}

.latest-rail h2 {
    margin: 0 0 1rem;
    font-family: var(--font-ui);
    font-size: var(--fs-label);
    font-weight: var(--label-weight);
    text-transform: uppercase;
    letter-spacing: var(--label-tracking);
}

.latest-list,
.sidebar-list {
    padding: 0;
    margin: 0;
    list-style: none;
}

.latest-list li,
.sidebar-list li {
    padding: 1rem 0;
    border-top: 1px solid var(--color-line);
}

.latest-list li:first-child,
.sidebar-list li:first-child {
    border-top: 0;
    padding-top: 0;
}

.latest-list a,
.sidebar-list a {
    display: grid;
    gap: 0.25rem;
    font-family: var(--font-display);
    font-weight: var(--display-weight);
    font-size: 2rem;
    line-height: 1.12;
    letter-spacing: var(--display-tracking);
    text-decoration: none;
}

.latest-list a span {
    color: var(--color-accent-text);
    font-family: var(--font-ui);
    font-size: var(--fs-label);
    font-weight: var(--label-weight);
    letter-spacing: var(--label-tracking);
    text-transform: uppercase;
}

.story-card {
    position: relative;
    display: grid;
    /* start: when a card is stretched to its row height (neighbour has a longer title) the extra space goes to the
       bottom, instead of being added to the image row and pushing this card's text down */
    align-content: start;
    gap: 1rem;
    min-width: 0;
}

.story-card__media {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background: var(--color-accent-2);
    border-radius: var(--radius);
    text-decoration: none;
}

.story-card__media-link {
    display: block;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.story-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease, filter 0.45s ease;
}

.story-card:hover .story-card__media img {
    transform: scale(1.035);
    filter: saturate(1.05) contrast(1.02);
}

.story-card__content {
    display: grid;
    gap: 0.55rem;
}

.story-card h3 {
    margin: 0;
    font-family: var(--font-display);
    font-size: var(--fs-display-s);
    font-weight: var(--display-weight);
    line-height: 1.06;
    letter-spacing: var(--display-tracking);
    text-wrap: balance;
}

.story-card h3 a {
    text-decoration: none;
}

.story-card p {
    margin: 0;
}

.story-card__content > p:not(.byline) {
    color: var(--color-ink-soft);
    font-family: var(--font-text);
    font-size: 1.7rem;
    line-height: 1.5;
}

.story-card--hero .story-card__content > p:not(.byline) {
    font-size: 1.9rem;
}

.card-meta,
.article-kicker {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-items: center;
    color: var(--color-accent-text);
}

.card-meta span,
.card-meta a,
.article-kicker span,
.article-kicker a {
    text-decoration: none;
}

.byline,
.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem 0.4rem;
    color: var(--color-muted);
}

.byline a,
.article-meta a {
    color: var(--color-ink);
    text-decoration: none;
}

.byline a:hover,
.article-meta a:hover {
    color: var(--color-accent-text);
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

/* Middle dot between byline parts */
.byline a + time::before,
.article-meta > * + *::before {
    content: "\00b7";
    margin-right: 0.4rem;
}

.gallery-chip {
    position: absolute;
    left: 0.8rem;
    bottom: 0.8rem;
    z-index: 1;
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
    padding: 0.52rem 0.7rem;
    background: var(--color-ink);
    color: var(--color-paper);
}

.gallery-chip::before {
    content: "";
    width: 1rem;
    height: 1rem;
    border: 1px solid currentColor;
    box-shadow: 0.28rem -0.28rem 0 -1px var(--color-ink), 0.28rem -0.28rem 0 0 currentColor;
}

.gallery-chip em {
    font-style: normal;
    opacity: 0.78;
}

.image-fallback {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    padding: 1rem;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.34), rgba(255,255,255,0) 45%),
        var(--color-accent-2);
    color: var(--color-ink);
}

.image-fallback span {
    font-family: var(--font-ui);
    font-size: var(--fs-label);
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.story-card--hero {
    gap: 1.4rem;
}

.story-card--hero .story-card__media {
    aspect-ratio: 16 / 11;
}

.story-card--hero h3 {
    font-size: var(--fs-display-l);
    line-height: var(--display-leading);
}

.story-card--compact {
    grid-template-columns: 11rem minmax(0, 1fr);
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-line);
}

.story-card--compact .story-card__media {
    aspect-ratio: 1;
}

.story-card--compact h3,
.story-card--stack h3,
.story-card--text h3,
.story-card--related h3 {
    font-size: var(--fs-display-xs);
    line-height: 1.1;
}

.story-card--stack {
    grid-template-columns: 40% minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
    padding-top: 1rem;
    border-top: 1px solid var(--color-line);
}

.story-card--stack .story-card__media {
    aspect-ratio: 4 / 3;
}

.story-card--section-lead .story-card__media {
    aspect-ratio: 5 / 4;
}

.story-card--archive .story-card__media {
    aspect-ratio: 4 / 5;
}

.story-card--runway .story-card__media,
.story-card--lookbook .story-card__media {
    aspect-ratio: 3 / 4.5;
}

.story-card--text {
    padding-top: 1rem;
    border-top: 1px solid var(--color-line);
}

.issue-module,
.power-strip,
.home-newsletter,
.footer-newsletter,
.author-box {
    border: 1px solid var(--color-ink);
    background: var(--color-paper-elevated);
}

.issue-module {
    display: grid;
    grid-template-columns: minmax(220px, 0.55fr) minmax(0, 1fr);
    gap: clamp(1.5rem, 4vw, 5rem);
    align-items: center;
    padding: clamp(1rem, 2vw, 2rem);
    margin-bottom: var(--space-section);
    box-shadow: var(--shadow-soft);
}

.issue-module__cover {
    display: block;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--color-accent-2);
    color: var(--color-ink);
    text-decoration: none;
}

.issue-module h2 a {
    text-decoration: none;
}

.issue-module .byline {
    margin: 0 0 1.4rem;
}

.home-more {
    display: flex;
    justify-content: center;
    margin-top: var(--space-section);
}

.issue-module__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.issue-placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    padding: 1rem;
    font-family: var(--font-display);
    font-weight: var(--mast-weight);
    font-size: clamp(3rem, 5vw, 7rem);
    line-height: 0.9;
    letter-spacing: var(--mast-tracking);
    text-transform: uppercase;
    text-align: center;
}

.issue-module__copy {
    max-width: 82rem;
}

.issue-module h2 {
    margin-bottom: 1.5rem;
    font-size: var(--fs-display-l);
}

.issue-module p {
    color: var(--color-ink-soft);
}

.pillar-grid {
    display: grid;
    gap: var(--space-section);
}

.section-block {
    min-width: 0;
}

.section-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.55fr);
    gap: var(--home-gap);
    padding-top: var(--home-gap);
}

/* Only one post in the section: let the lead use the full width */
.section-grid > .story-card--section-lead:only-child {
    grid-column: 1 / -1;
}

/* The stack fills the lead's height: cards share it equally instead of floating apart */
.section-stack {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
}

.section-stack .story-card--stack {
    flex: 1 1 0;
    align-content: stretch;
    padding: 1.2rem 0;
}

.section-stack .story-card--stack:first-child {
    padding-top: 0;
    border-top: 0;
}

.section-stack .story-card--stack:last-child {
    padding-bottom: 0;
}

.section-stack .story-card__content {
    align-self: center;
}

@media (min-width: 941px) {
    /* Thumbnails grow to fill the stretched card rather than keeping a fixed ratio */
    .section-stack .story-card--stack {
        align-items: stretch;
    }

    .section-stack .story-card--stack .story-card__media {
        aspect-ratio: auto;
        min-height: 12rem;
    }
}

.section-block--shopping {
    padding: clamp(1rem, 2vw, 2rem);
    background:
        linear-gradient(90deg, var(--color-accent-2), transparent 58%),
        var(--color-paper-elevated);
    border: 1px solid var(--color-ink);
}

.section-block--shopping .story-card__media::after {
    content: "Service";
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    padding: 0.45rem 0.62rem;
    background: var(--color-accent);
    color: var(--color-accent-ink);
    font-family: var(--font-ui);
    font-size: var(--fs-label);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.runway-module,
.power-strip,
.home-newsletter {
    margin-top: var(--space-section);
}

.runway-grid,
.lookbook-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1rem;
    padding-top: var(--home-gap);
}

.lookbook-grid {
    width: var(--wrap);
    margin: 0 auto var(--space-section);
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.runway-grid .story-card:nth-child(1),
.runway-grid .story-card:nth-child(4) {
    grid-column: span 2;
}

.runway-grid .story-card:nth-child(2),
.runway-grid .story-card:nth-child(3),
.runway-grid .story-card:nth-child(5),
.runway-grid .story-card:nth-child(6) {
    grid-column: span 1;
}

.power-strip {
    display: grid;
    grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
    gap: var(--home-gap);
    padding: clamp(1.4rem, 2.4vw, 2.6rem);
}

.power-strip__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--home-gap);
}

.home-newsletter,
.footer-newsletter {
    display: grid;
    place-items: center;
    padding: clamp(3rem, 6vw, 7rem);
    text-align: center;
}

.home-newsletter {
    background:
        radial-gradient(circle at top left, var(--color-accent-2), transparent 34%),
        var(--color-paper-elevated);
}

.home-newsletter p,
.footer-newsletter p {
    max-width: 66rem;
}

.subscribe-form {
    display: flex;
    width: min(56rem, 100%);
    gap: 0.65rem;
    margin-top: 1.2rem;
}

.subscribe-form input {
    min-width: 0;
    flex: 1;
    padding: 1.25rem 1.35rem;
    border: 1px solid var(--color-ink);
    border-radius: 999px;
    background: var(--color-paper);
    color: var(--color-ink);
}

.subscribe-form button,
.button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 1.6rem;
    border: 1px solid var(--color-ink);
    border-radius: 999px;
    background: var(--color-ink);
    color: var(--color-paper);
    font-family: var(--font-ui);
    font-size: var(--fs-label);
    font-weight: 700;
    letter-spacing: 0.1em;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
}

.subscribe-form .form-success,
.subscribe-form .form-error {
    display: none;
    flex-basis: 100%;
    width: 100%;
    margin: 0.2rem 0 0;
    font-size: 1.3rem;
}

.subscribe-form.success .form-success,
.subscribe-form.error .form-error {
    display: block;
}

.archive-header,
.author-header,
.error-page {
    padding: clamp(4rem, 8vw, 9rem) 0 clamp(2rem, 4vw, 4rem);
}

.archive-header h1,
.error-page h1 {
    max-width: 110rem;
    font-size: var(--fs-display-xl);
}

.archive-header p:not(.eyebrow),
.author-header p,
.error-page p {
    max-width: 72rem;
    color: var(--color-ink-soft);
    font-family: var(--font-text);
    font-size: clamp(1.8rem, 0.6vw + 1.6rem, 2.2rem);
    line-height: 1.45;
}

.error-page__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

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

.error-latest {
    width: var(--wrap);
    margin: clamp(3rem, 6vw, 7rem) auto var(--space-section);
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(1.2rem, 2vw, 2.4rem);
    margin-bottom: var(--space-section);
}

.author-header {
    display: grid;
    grid-template-columns: auto minmax(0, 78rem);
    gap: 2rem;
    align-items: center;
}

.author-header img {
    width: 11rem;
    height: 11rem;
    object-fit: cover;
    border-radius: 999px;
}

.author-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.article-shell,
.static-page-shell {
    padding-bottom: var(--space-section);
}

.article-header {
    width: min(112rem, 100%);
    margin: 0 auto;
    padding: clamp(3rem, 5vw, 6rem) 0 clamp(2rem, 3.5vw, 4rem);
    text-align: center;
}

/* Sized so a long headline stays within ~3 lines and the feature image appears on the first screen */
.article-header h1 {
    font-size: var(--fs-display-xl);
}

.article-deck {
    max-width: 82rem;
    margin: 1.5rem auto 0;
    color: var(--color-ink-soft);
    font-family: var(--font-text);
    font-size: clamp(2.1rem, 1.2vw + 1.6rem, 2.9rem);
    line-height: 1.3;
    text-wrap: balance;
}

.article-kicker,
.article-meta {
    justify-content: center;
}

/* Space the kicker, headline and byline apart so descenders never touch the line below */
.article-header .article-kicker {
    margin-bottom: 1.6rem;
}

.article-header .article-meta {
    margin-top: 2.2rem;
}

.article-header .article-deck + .article-meta {
    margin-top: 2.4rem;
}

.article-feature {
    width: min(118rem, 100%);
    margin: 0 auto clamp(2rem, 4vw, 4.5rem);
}

.article-feature img {
    width: 100%;
    max-height: 82vh;
    object-fit: cover;
    border-radius: var(--radius);
}

.article-feature figcaption {
    margin-top: 0.7rem;
    color: var(--color-muted);
    font-size: 1.3rem;
}

.article-feature--wide {
    width: min(148rem, 100%);
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 30rem;
    gap: clamp(2rem, 5vw, 7rem);
    align-items: start;
    width: min(118rem, 100%);
    margin: 0 auto;
}

.article-layout--single {
    display: block;
}

.gh-content {
    width: var(--content);
    max-width: 100%;
    margin: 0 auto;
    font-family: var(--font-text);
}

.gh-content > * {
    margin-top: 0;
    margin-bottom: 2.4rem;
}

.gh-content p,
.gh-content li {
    font-size: clamp(1.9rem, 0.4vw + 1.7rem, 2.1rem);
    line-height: 1.62;
}

.gh-content h2,
.gh-content h3,
.gh-content h4 {
    margin-top: 4rem;
    font-family: var(--font-display);
    font-weight: var(--display-weight);
    letter-spacing: var(--display-tracking);
    line-height: 1.08;
    text-wrap: balance;
}

.gh-content h2 {
    font-size: var(--fs-display-m);
}

.gh-content h3 {
    font-size: var(--fs-display-s);
}

.gh-content h4 {
    font-size: var(--fs-display-xs);
}

.gh-content blockquote {
    margin: clamp(3rem, 5vw, 6rem) 0;
    padding: 0 0 0 2.4rem;
    border-left: 2px solid var(--color-accent);
    font-family: var(--font-text);
    font-style: italic;
    font-size: clamp(2.5rem, 1.6vw + 1.8rem, 3.4rem);
    line-height: 1.22;
    letter-spacing: -0.01em;
}

.gh-content figcaption,
.kg-card figcaption {
    color: var(--color-muted);
    font-family: var(--font-ui);
    font-size: 1.3rem;
    line-height: 1.4;
    text-align: left;
}

.gh-content a {
    color: var(--color-accent-text);
}

/*
 * Ghost's own paywall ("This post is for subscribers only" / "Become a paid member"). Ghost paints it with the site's
 * accent colour using inline styles, so the overrides need !important and a .gh-content prefix (Ghost's own <style> comes later in the page). Restyled to match the theme's other boxes.
 */
.gh-content .gh-post-upgrade-cta,
.gh-content .gh-post-upgrade-cta h2,
.gh-content .gh-post-upgrade-cta p,
.gh-content .gh-post-upgrade-cta small,
.gh-content .gh-post-upgrade-cta a {
    color: var(--color-ink);
    font-family: var(--font-ui);
}

.gh-content .gh-post-upgrade-cta-content {
    padding: clamp(3rem, 5vw, 5rem) 4vw;
    border: 1px solid var(--color-ink);
    border-radius: var(--radius);
    background: var(--color-paper-elevated) !important;
}

.gh-content .gh-post-upgrade-cta h2 {
    font-family: var(--font-display);
    font-size: var(--fs-display-s);
    font-weight: var(--display-weight);
    line-height: 1.08;
    letter-spacing: var(--display-tracking);
}

.gh-content .gh-post-upgrade-cta a.gh-btn {
    margin-top: 2.4rem;
    padding: 1.25rem 2rem;
    border-radius: 999px;
    background: var(--color-ink);
    color: var(--color-paper) !important;
    font-size: var(--fs-label);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-decoration: none;
    text-transform: uppercase;
}

.gh-content .gh-post-upgrade-cta a.gh-btn:hover {
    background: var(--color-accent);
    color: var(--color-accent-ink) !important;
    opacity: 1;
}

.gh-content .gh-post-upgrade-cta small,
.gh-content .gh-post-upgrade-cta small a {
    font-size: var(--fs-meta);
    letter-spacing: 0;
}

.gh-content .gh-post-upgrade-cta small a {
    color: var(--color-accent-text);
}

/* Divider: a short, centred rule rather than the browser's grey inset line */
.gh-content hr {
    width: 8rem;
    margin: 4.8rem auto;
    border: 0;
    border-top: 2px solid var(--color-ink);
}

/* Tables (inserted with the HTML card): quiet, ruled, with the header set like the theme's labels */
.gh-content table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-ui);
    font-size: 1.5rem;
    line-height: 1.4;
}

.gh-content th,
.gh-content td {
    padding: 1.2rem 1.6rem 1.2rem 0;
    border-bottom: 1px solid var(--color-line);
    text-align: left;
    vertical-align: top;
}

.gh-content th {
    padding-top: 0;
    border-bottom: 2px solid var(--color-ink);
    font-size: var(--fs-label);
    font-weight: var(--label-weight);
    letter-spacing: var(--label-tracking);
    text-transform: uppercase;
}

.gh-content tbody tr:last-child td {
    border-bottom: 0;
}

/* Code */
.gh-content code {
    padding: 0.15em 0.4em;
    background: var(--color-accent-2);
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: 0.85em;
}

.gh-content pre {
    padding: 2rem 2.4rem;
    overflow-x: auto;
    border: 1px solid var(--color-line);
    background: var(--color-paper-elevated);
    font-size: 1.4rem;
    line-height: 1.6;
}

.gh-content pre code {
    padding: 0;
    background: none;
    font-size: inherit;
}

@media (max-width: 640px) {
    /* Wide tables scroll sideways instead of squeezing their columns */
    .gh-content table {
        display: block;
        overflow-x: auto;
    }

    .gh-content th,
    .gh-content td {
        min-width: 11rem;
    }
}

.kg-width-wide {
    width: min(104rem, calc(100vw - 36px));
    margin-left: 50%;
    transform: translateX(-50%);
}

.kg-width-full {
    width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
}

/*
 * The breakout above centres a card on its container, which only matches the page centre when the text column
 * is centred. With the article sidebar showing (wide screens) the column sits off-centre, so wide and full-width
 * cards stay inside the column instead of overlapping the sidebar or shifting off-screen.
 */
@media (min-width: 1181px) {
    .article-layout:not(.article-layout--single) .kg-width-wide,
    .article-layout:not(.article-layout--single) .kg-width-full {
        width: 100%;
        margin-left: 0;
        transform: none;
    }
}

.kg-image,
.kg-gallery-image img,
.kg-bookmark-card,
.kg-product-card-container,
.kg-callout-card,
.kg-toggle-card,
.kg-header-card,
.kg-signup-card {
    border-radius: var(--radius);
}

.kg-gallery-container {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.kg-gallery-row {
    display: flex;
    gap: 0.8rem;
}

.kg-gallery-image {
    overflow: hidden;
}

.kg-bookmark-card,
.kg-product-card-container,
.kg-callout-card,
.kg-toggle-card {
    border: 1px solid var(--color-line);
    box-shadow: none;
}

.kg-product-card-container {
    background: var(--color-paper-elevated);
}

.kg-product-card-title,
.kg-bookmark-title {
    font-family: var(--font-display);
    letter-spacing: var(--display-tracking);
}

.kg-product-card-button,
.kg-button-card a,
.kg-signup-card-button {
    border-radius: 999px !important;
    background: var(--color-ink) !important;
    color: var(--color-paper) !important;
}

.kg-header-card {
    background: var(--color-accent-2) !important;
    color: var(--color-ink) !important;
}

.kg-callout-card {
    background: var(--color-paper-elevated);
}

.article-shell--lookbook .gh-content {
    width: min(110rem, calc(100vw - 36px));
}

/* The lookbook column is wide for its pictures; running text still keeps a readable line length */
.gh-content--lookbook > p,
.gh-content--lookbook > h2,
.gh-content--lookbook > h3,
.gh-content--lookbook > h4,
.gh-content--lookbook > ul,
.gh-content--lookbook > ol,
.gh-content--lookbook > blockquote {
    max-width: var(--content);
    margin-right: auto;
    margin-left: auto;
}

.article-shell--lookbook .kg-gallery-card,
.gh-content--lookbook .kg-image-card {
    width: min(138rem, calc(100vw - 36px));
    margin-left: 50%;
    transform: translateX(-50%);
}

.article-sidebar {
    position: sticky;
    top: var(--sticky-offset);
    display: grid;
    gap: 1rem;
}

.sidebar-card {
    padding: 1.2rem;
    border: 1px solid var(--color-line);
    background: var(--color-paper-elevated);
}

.share-links,
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.share-links a,
.tag-cloud a {
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--color-line);
    border-radius: 999px;
    font-family: var(--font-ui);
    font-size: var(--fs-label);
    font-weight: var(--label-weight);
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
}

.author-box,
.related-posts {
    width: min(104rem, calc(100vw - 36px));
    margin: clamp(3rem, 6vw, 7rem) auto 0;
}

.author-box {
    padding: clamp(1.5rem, 3vw, 3rem);
}

.author-box h2 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: var(--display-weight);
    font-size: var(--fs-display-m);
    line-height: 1.08;
    letter-spacing: var(--display-tracking);
}

.author-box h2 {
    font-size: var(--fs-display-xs);
}

.author-box {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1.4rem;
    align-items: center;
}

.author-box img {
    width: 8.4rem;
    height: 8.4rem;
    border-radius: 999px;
    object-fit: cover;
}

.comments-wrap {
    width: var(--content);
    margin: 4rem auto 0;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--home-gap);
    padding-top: var(--home-gap);
}

.related-posts--list .related-grid {
    display: grid;
    grid-template-columns: 1fr;
}

.related-posts--list .story-card--related {
    grid-template-columns: 12rem minmax(0, 1fr);
    padding-top: 1rem;
    border-top: 1px solid var(--color-line);
}

.pagination {
    width: var(--wrap);
    margin: 0 auto var(--space-section);
    display: flex;
    justify-content: center;
    gap: 1rem;
    align-items: center;
    font-family: var(--font-ui);
    font-size: var(--fs-label);
    font-weight: var(--label-weight);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.pagination a {
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-ink);
    border-radius: 999px;
    text-decoration: none;
}

.empty-state {
    padding: 2rem;
    border: 1px dashed var(--color-line);
    color: var(--color-muted);
}

.site-footer {
    width: var(--wrap);
    margin: 0 auto;
    padding: var(--space-section) 0 2rem;
}

.footer-newsletter {
    margin-bottom: clamp(2rem, 4vw, 5rem);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    align-items: start;
    /* One rule above the footer content (the footer itself has none), so rules never stack up */
    padding-top: clamp(2rem, 3vw, 3.5rem);
    border-top: 1px solid var(--color-ink);
}


.footer-brand {
    font-family: var(--font-display);
    font-weight: var(--mast-weight);
    font-size: clamp(3.5rem, 5.4vw, 7.2rem);
    line-height: 0.95;
    letter-spacing: var(--mast-tracking);
    text-decoration: none;
    text-transform: uppercase;
    text-wrap: balance;
}

.footer-meta {
    display: grid;
    justify-items: end;
    gap: 0.5rem;
    font-family: var(--font-ui);
    font-size: var(--fs-label);
    font-weight: var(--label-weight);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

@media (max-width: 1180px) {
    .top-stories__grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(260px, 0.48fr);
    }

    .top-stories__grid--solo {
        grid-template-columns: minmax(0, 1fr);
    }

    .home-wrap--split .story-card--hero {
        grid-template-columns: minmax(0, 1fr) minmax(260px, 0.48fr);
    }

    .top-stories__support {
        min-width: 0;
    }

    /* Tighter pills so the 11 section links stay on one row at tablet widths instead of orphaning the last one */
    .section-nav {
        gap: 0.35rem 0.8rem;
    }

    .section-nav a {
        padding: 0.45rem 0.6rem;
    }

    .top-stories__grid > .latest-rail {
        grid-column: 1 / -1;
        min-width: 0;
    }

    .latest-rail--sticky,
    .article-sidebar {
        position: static;
    }

    .latest-list {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1rem;
    }

    .article-layout {
        grid-template-columns: 1fr;
    }

    .article-sidebar {
        width: var(--content);
        max-width: 100%;
        margin: 0 auto;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 940px) {
    .masthead-bar {
        grid-template-columns: auto 1fr auto;
        min-height: 7rem;
    }

    .menu-toggle {
        display: block;
        justify-self: start;
    }

    .utility-link--search {
        display: none;
    }

    .brand-mark {
        justify-self: center;
        font-size: calc(clamp(3rem, 9vw, 7rem) * var(--brand-scale, 1));
    }

    .account-links a:not(.pill-link) {
        display: none;
    }

    .home-wrap--split .story-card--hero,
    .top-stories__grid--solo .story-card--hero {
        grid-template-columns: minmax(0, 1fr);
        align-items: start;
    }

    .site-header {
        position: sticky;
        top: 0;
        background: rgba(255, 250, 245, 0.94);
        background: color-mix(in srgb, var(--color-paper) 94%, transparent);
        border-bottom: 1px solid var(--color-line);
        backdrop-filter: blur(18px);
    }

    .dark-header .site-header {
        border-bottom-color: rgba(255, 255, 255, 0.16);
    }

    .masthead-bar {
        border-bottom: 0;
    }

    /* Slide-down menu. visibility keeps the closed menu's links out of the tab order and the accessibility tree. */
    .nav-shell {
        position: fixed;
        inset: 7rem 0 auto;
        width: 100%;
        max-height: calc(100vh - 7rem);
        padding: 1.5rem 1.8rem 2rem;
        overflow: auto;
        background: var(--color-paper);
        border-top: 0;
        border-bottom: 1px solid var(--color-line);
        backdrop-filter: none;
        transform: translateY(-120%);
        visibility: hidden;
        transition: transform 0.25s ease, visibility 0s linear 0.25s;
    }

    .dark-header .nav-shell {
        background: var(--color-ink);
    }

    .menu-open .nav-shell {
        transform: translateY(0);
        visibility: visible;
        transition: transform 0.25s ease, visibility 0s;
    }

    .nav-inner {
        width: 100%;
    }

    /* In the stacked menu the current section is shown by colour rather than a filled pill */
    .section-nav a[aria-current="page"],
    .dark-header .section-nav a[aria-current="page"] {
        background: none;
        border-color: transparent;
        border-bottom-color: var(--color-line);
        color: var(--color-accent-text);
    }

    .dark-header .section-nav a[aria-current="page"] {
        border-bottom-color: rgba(255, 255, 255, 0.32);
        color: var(--color-accent-on-dark);
    }

    .menu-search {
        display: block;
        width: 100%;
        margin-top: 0.4rem;
        padding: 1.1rem 0 0.4rem;
        border: 0;
        background: none;
        color: currentColor;
        font-family: var(--font-ui);
        font-size: 1.3rem;
        font-weight: var(--label-weight);
        letter-spacing: 0.1em;
        text-align: left;
        text-transform: uppercase;
    }

    .primary-nav ul,
    .section-nav {
        display: grid;
        justify-content: stretch;
        gap: 0.7rem;
    }

    .primary-nav a,
    .section-nav a {
        display: block;
        padding: 0.9rem 0;
        border: 0;
        border-bottom: 1px solid var(--color-line);
        border-radius: 0;
        font-size: 1.3rem;
    }

    .top-stories__grid,
    .section-grid,
    .issue-module,
    .power-strip,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .top-stories__support,
    .power-strip__grid,
    .archive-grid,
    .related-grid,
    .lookbook-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .runway-grid .story-card:nth-child(n) {
        grid-column: auto;
    }

    .article-sidebar {
        grid-template-columns: 1fr;
    }

    .footer-meta {
        justify-items: start;
    }
}

@media (max-width: 640px) {
    :root {
        --wrap: min(100vw - 28px, 1520px);
        --content: min(100vw - 28px, 760px);
    }

    body {
        font-size: 1.6rem;
    }

    .section-heading > .section-link {
        grid-row: auto;
    }

    .section-heading h1,
    .archive-header h1,
    .article-header h1 {
        font-size: clamp(3.8rem, 14vw, 6.4rem);
    }

    .story-card--hero h3 {
        font-size: clamp(3.2rem, 10.5vw, 5.2rem);
    }

    .story-card--compact,
    .story-card--stack,
    .related-posts--list .story-card--related {
        grid-template-columns: 9rem minmax(0, 1fr);
    }

    .story-card--compact .story-card__content > p:not(.byline),
    .story-card--stack .story-card__content > p:not(.byline) {
        display: none;
    }

    .latest-list,
    .top-stories__support,
    .power-strip__grid,
    .archive-grid,
    .related-grid,
    .lookbook-grid {
        grid-template-columns: 1fr;
    }

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

    .issue-module,
    .section-block--shopping,
    .power-strip,
    .home-newsletter,
    .footer-newsletter {
        margin-left: -0.2rem;
        margin-right: -0.2rem;
    }

    .subscribe-form {
        display: grid;
    }

    .author-header,
    .author-box {
        grid-template-columns: 1fr;
    }

    .article-feature {
        width: 100vw;
        margin-left: 50%;
        transform: translateX(-50%);
    }

    .article-feature figcaption {
        padding-inline: 1.4rem;
    }
}

/*
 * Interaction states
 *   - Hover effects are limited to devices that can hover, so they never stick after a tap on a touch screen.
 *   - Keyboard focus keeps using the global :focus-visible ring; nothing here removes it.
 *   - Transitions are short and are switched off by the reduced-motion rule at the end of this file.
 */
a,
button,
input {
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

/* Pressed */
.subscribe-form button:active,
.button-link:active,
.pill-link:active {
    transform: translateY(1px);
}

/* Email field */
.subscribe-form input::placeholder {
    color: var(--color-muted);
    opacity: 1;
}

.subscribe-form input:hover {
    border-color: var(--color-accent-text);
}

.subscribe-form input:focus {
    border-color: var(--color-accent-text);
}

/* Signup form states. Ghost adds .loading, .success or .error to the form. */
.subscribe-form button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.subscribe-form.loading button {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.subscribe-form.loading button::after {
    content: "";
    position: absolute;
    inset: 0;
    width: 1.4rem;
    height: 1.4rem;
    margin: auto;
    border: 2px solid var(--color-paper);
    border-right-color: transparent;
    border-radius: 50%;
    animation: highness-spin 0.7s linear infinite;
}

@keyframes highness-spin {
    to {
        transform: rotate(360deg);
    }
}

.subscribe-form.success input,
.subscribe-form.success button {
    display: none;
}

.subscribe-form .form-success,
.subscribe-form .form-error {
    margin: 0;
    font-size: var(--fs-meta);
    line-height: 1.4;
    text-align: center;
}

.subscribe-form .form-success {
    color: var(--color-accent-text);
    font-family: var(--font-text);
    font-size: 2rem;
}

.subscribe-form .form-error {
    color: #a8201a;
    font-weight: 600;
}

@media (hover: hover) and (pointer: fine) {
    /* Filled buttons take the accent colour */
    .subscribe-form:not(.loading) button:not(:disabled):hover,
    .button-link:not(.button-link--ghost):hover {
        background: var(--color-accent);
        border-color: var(--color-accent);
        color: var(--color-accent-ink);
    }

    .accent-mono .subscribe-form:not(.loading) button:not(:disabled):hover,
    .accent-mono .button-link:not(.button-link--ghost):hover {
        background: var(--color-ink-soft);
        border-color: var(--color-ink-soft);
        color: var(--color-paper);
    }

    .button-link--ghost:hover {
        background: var(--color-ink);
        color: var(--color-paper);
    }

    /* Masthead controls */
    .pill-link:hover {
        background: var(--color-ink);
        border-color: var(--color-ink);
        color: var(--color-paper);
    }

    .dark-header .site-header .pill-link:hover,
    .dark-header .menu-toggle:hover {
        background: var(--color-paper);
        border-color: var(--color-paper);
        color: var(--color-ink);
    }

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

    .dark-header .utility-link:hover {
        color: var(--color-accent-on-dark);
    }

    .menu-toggle:hover {
        background: var(--color-ink);
        color: var(--color-paper);
    }

    /* Navigation */
    .primary-nav a:hover,
    .footer-grid nav a:hover {
        text-decoration: underline;
        text-decoration-thickness: 1px;
        text-underline-offset: 0.5em;
    }

    .section-nav a:not([aria-current]):hover,
    .share-links a:hover,
    .tag-cloud a:hover,
    .pagination a:hover {
        background: var(--color-accent-2);
        border-color: var(--color-ink);
        color: var(--color-ink);
    }

    .dark-header .section-nav a:not([aria-current]):hover {
        background: rgba(255, 255, 255, 0.12);
        border-color: var(--color-paper);
        color: var(--color-paper);
    }

    /* Cards: the image zooms (above); the headline underlines so the whole card reads as one link */
    .story-card:hover h3 a {
        text-decoration: underline;
        text-decoration-thickness: 1px;
        text-underline-offset: 0.14em;
    }

    /* Article content and Ghost editor buttons */
    .gh-content a:hover {
        text-decoration-thickness: 0.12em;
    }

    .kg-product-card-button:hover,
    .kg-button-card a:hover,
    .kg-signup-card-button:hover {
        background: var(--color-accent) !important;
        color: var(--color-accent-ink) !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
