@layer reset, base, layout, components, studio, utilities;

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body, h1, h2, h3, p, figure, blockquote { margin: 0; }
  img { display: block; max-width: 100%; }
  button, input, select, textarea { font: inherit; }
  a { color: inherit; }
  dialog { padding: 0; }
}

@layer base {
  :root {
    --ink: #12100d;
    --paper: #f4f0e7;
    --paper-2: #eae3d7;
    --copper: #a84525;
    --copper-light: #e68b67;
    --gold: #c9a96a;
    --forest: #24382f;
    --muted: #685f56;
    --line: #d5cec2;
    --white: #fffdf8;
    --error: #a63b32;
    --shell: min(1480px, calc(100% - 40px));
    --ease: cubic-bezier(.2, .7, .2, 1);
    --display: 'Cormorant Garamond', Georgia, serif;
    --body: Inter, Arial, sans-serif;
    --serif: 'Source Serif 4', Georgia, serif;
  }
  body {
    background: var(--paper);
    color: var(--ink);
    font: 400 1rem/1.55 var(--body);
    -webkit-font-smoothing: antialiased;
  }
  h1, h2, h3 {
    font-family: var(--display);
    font-weight: 600;
    letter-spacing: -.035em;
    text-wrap: balance;
  }
  p { max-width: 72ch; }
  a { text-decoration-thickness: 1px; text-underline-offset: .2em; }
  button { color: inherit; }
  :focus-visible { outline: 3px solid var(--copper); outline-offset: 4px; }
  .shell { width: var(--shell); margin-inline: auto; }
  .eyebrow {
    color: var(--copper);
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
  }
  .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 {
    position: fixed;
    z-index: 1000;
    top: 12px;
    left: 12px;
    padding: 10px 14px;
    background: var(--ink);
    color: var(--paper);
    transform: translateY(-150%);
  }
  .skip-link:focus { transform: none; }
  .button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    border: 0;
    background: var(--ink);
    color: var(--paper);
    cursor: pointer;
    font-size: .72rem;
    font-weight: 600;
  }
  .text-link {
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
  }
}

@layer layout {
  /* Header */
  .site-header {
    position: relative;
    z-index: 50;
    border-bottom: 1px solid color-mix(in srgb, var(--line), transparent 30%);
    background: color-mix(in srgb, var(--paper), transparent 4%);
    backdrop-filter: blur(12px);
    transition: transform .3s var(--ease);
  }
  .site-header.header-hidden { transform: translateY(-100%); }
  .header-bar {
    min-height: 88px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 32px;
  }
  .wordmark {
    display: inline-flex;
    align-items: center;
    width: clamp(190px, 17vw, 252px);
    text-decoration: none;
  }
  .wordmark img {
    width: 100%;
    height: auto;
  }
  .footer-mark { filter: invert(1); }
  .desktop-nav { display: flex; justify-content: center; gap: clamp(14px, 1.8vw, 30px); }
  .desktop-nav a, .header-subscribe { text-decoration: none; font-size: .77rem; font-weight: 600; }
  .desktop-nav a { position: relative; }
  .desktop-nav a::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: -8px;
    left: 0;
    height: 1px;
    background: var(--copper);
    transform: scaleX(0);
    transition: transform .25s var(--ease);
  }
  .desktop-nav a:hover::after { transform: scaleX(1); }
  .header-actions { display: flex; align-items: center; gap: 12px; }
  .icon-button, .menu-toggle {
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    display: grid;
    place-items: center;
    cursor: pointer;
  }
  .icon-button svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; }
  .header-subscribe { padding: 11px 17px; background: var(--ink); color: var(--paper); }
  .menu-toggle { display: none; align-content: center; gap: 6px; }
  .menu-toggle span { display: block; width: 24px; height: 1px; background: currentColor; }
  .primary-nav {
    display: none;
    position: absolute;
    inset: 100% 0 auto;
    padding: 28px 20px 40px;
    background: var(--ink);
    color: var(--paper);
    grid-template-columns: 1fr 1fr;
  }
  .primary-nav.is-open { display: grid; }
  .primary-nav a {
    padding: 18px 0;
    border-bottom: 1px solid #37332d;
    text-decoration: none;
    font: 500 1.55rem/1 var(--display);
  }

  /* Homepage hero */
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 2.1fr) minmax(270px, .9fr);
    gap: 18px;
    padding: 34px 0 88px;
  }
  .hero-story {
    position: relative;
    min-height: min(690px, 72vh);
    overflow: hidden;
    background: var(--ink);
    color: var(--paper);
  }
  .hero-media { position: absolute; inset: 0; }
  .hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: .78; }
  .hero-story::after {
    content: '';
    position: absolute;
    inset: 28% 0 0;
    background: linear-gradient(transparent, rgba(12, 10, 8, .9));
    pointer-events: none;
  }
  .hero-copy {
    position: absolute;
    z-index: 2;
    right: clamp(22px, 4vw, 58px);
    bottom: clamp(28px, 5vw, 58px);
    left: clamp(22px, 4vw, 58px);
  }
  .hero-copy .story-meta { color: var(--paper); }
  .hero-copy .story-meta a { color: var(--paper); }
  .hero-copy h1 {
    max-width: 980px;
    font-size: clamp(2.7rem, 5vw, 5.1rem);
    line-height: .92;
  }
  .hero-copy h1 a { text-decoration: none; }
  .hero-dek {
    max-width: 65ch;
    margin-top: 17px;
    font: 400 1.04rem/1.5 var(--serif);
  }
  .hero-side { display: grid; grid-template-rows: 1fr 1fr; gap: 18px; }
  .hero-side .story-card-compact {
    display: grid;
    grid-template-rows: minmax(180px, 1fr) auto;
    background: var(--paper-2);
  }
  .hero-side .story-image { aspect-ratio: auto; min-height: 180px; }
  .hero-side .story-card-copy { padding: 20px; }
  .hero-side .story-card h2 { font-size: clamp(1.65rem, 2.25vw, 2.35rem); }
  .hero-side .story-card-footer, .hero-side .story-meta span { display: none; }

  /* Editorial sections */
  .editorial-section { padding: 86px 0; border-top: 1px solid var(--line); }
  .section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 24px;
    margin-bottom: 34px;
  }
  .section-heading h2 {
    margin-top: 4px;
    font-size: clamp(2.4rem, 4.25vw, 4.4rem);
    line-height: .95;
  }
  .section-heading h2 br { display: none; }
  .section-heading h2 em { font-style: normal; }
  .section-heading > a {
    text-decoration: none;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
  }
  .section-note { display: none; }
  .story-grid, .listing-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 34px 20px;
  }
  .story-grid > .story-card, .listing-grid > .story-card { grid-column: span 4; }
  .story-grid > .story-card:first-child, .story-grid > .story-card:nth-child(2) { grid-column: span 6; }
  .story-image {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 2;
    background: var(--paper-2);
  }
  .story-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s var(--ease); }
  .story-card:hover .story-image img { transform: scale(1.022); }
  .image-wash, .story-index { display: none; }
  .story-card-copy { padding-top: 16px; }
  .story-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    align-items: center;
    margin-bottom: 12px;
    color: var(--muted);
    font-size: .68rem;
    letter-spacing: .07em;
    text-transform: uppercase;
  }
  .story-meta a { color: var(--copper); text-decoration: none; font-weight: 600; }
  .story-meta a i { display: none; }
  .story-card h2 { font-size: clamp(1.5rem, 2.1vw, 2.35rem); line-height: 1.02; }
  .story-card h2 a { text-decoration: none; }
  .story-excerpt { margin-top: 11px; color: var(--muted); font: 400 .98rem/1.5 var(--serif); }
  .story-card-footer { margin-top: 12px; }
  .story-byline { color: var(--muted); font-size: .68rem; }
  .story-byline a { text-decoration: none; }
  .story-arrow { display: none; }
  .dark-section { background: var(--ink); color: var(--paper); }
  .dark-section .story-excerpt, .dark-section .story-meta, .dark-section .story-byline { color: #bcb4a8; }
  .dark-section .story-image { background: #28241f; }
  .section-heading-light .eyebrow, .dark-section .story-meta a { color: var(--copper-light); }
  .culture-section { background: var(--forest); color: var(--paper); }
  .culture-section .story-excerpt, .culture-section .story-meta, .culture-section .story-byline { color: #c5cec8; }
  .culture-section .section-heading-light .eyebrow, .culture-section .story-meta a { color: var(--gold); }
  .culture-section .story-image { background: #182a23; }

  /* Newsletter */
  .newsletter-band { padding: 92px 0; background: var(--copper); color: #fff; }
  .newsletter-pattern { display: none; }
  .newsletter-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; }
  .newsletter-inner .eyebrow { color: #fff; }
  .newsletter-inner h2 {
    margin-top: 8px;
    font-size: clamp(2.8rem, 5vw, 5.2rem);
    line-height: .9;
  }
  .newsletter-inner h2 em { font-style: italic; font-weight: 500; }
  .newsletter-action > p { margin-bottom: 18px; font: 400 1.08rem/1.5 var(--serif); }
  .newsletter-form { display: flex; border-bottom: 2px solid currentColor; }
  .newsletter-form input {
    min-width: 0;
    flex: 1;
    padding: 17px 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: inherit;
    font-size: 1rem;
  }
  .newsletter-form input::placeholder { color: #f1c7b7; }
  .newsletter-form button {
    border: 0;
    background: var(--ink);
    color: var(--paper);
    padding: 0 22px;
    cursor: pointer;
    font-size: .72rem;
    font-weight: 600;
  }
  .form-status { grid-column: 1 / -1; min-height: 1.2em; margin-top: 8px; font-size: .75rem; }

  /* Listings */
  .listing-header { padding: 76px 0 48px; }
  .listing-header h1 {
    margin-top: 8px;
    font-size: clamp(3.4rem, 7vw, 6.6rem);
    line-height: .88;
  }
  .listing-header > p:last-child { margin-top: 20px; font: 400 1.1rem/1.5 var(--serif); color: var(--muted); }
  .archive-filters {
    display: grid;
    grid-template-columns: 1fr 1fr auto auto;
    gap: 10px;
    margin-bottom: 18px;
    padding: 18px;
    background: var(--ink);
    color: var(--paper);
  }
  .archive-filters label { display: grid; gap: 6px; color: #aaa298; font-size: .68rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
  .archive-filters input, .archive-filters select { width: 100%; min-height: 46px; padding: 0 12px; border: 1px solid #554f47; background: #1e1b17; color: var(--paper); }
  .archive-filters button, .archive-filters > a { min-height: 46px; align-self: end; display: grid; place-items: center; padding: 0 20px; border: 0; background: var(--copper); color: #fff; cursor: pointer; text-decoration: none; }
  .archive-filters > a { background: #302c27; }
  .listing-grid { padding: 34px 0 80px; }
  .pagination { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 24px 0 70px; border-top: 1px solid var(--line); }
  .pagination a { text-decoration: none; font-size: .72rem; font-weight: 600; }
  .pagination a:last-child { text-align: right; }
  .pagination p { text-align: center; font-family: var(--serif); }
  .pagination p small { display: block; color: var(--muted); font: 500 .58rem/1.2 var(--body); letter-spacing: .08em; text-transform: uppercase; }
  .empty-state { min-height: 55vh; padding: 90px 0; }
  .empty-state h1, .empty-state h2 { font-size: clamp(3rem, 7vw, 6rem); line-height: .9; }

  /* Articles */
  .article-header { padding: 70px 0 38px; }
  .article-kicker { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-bottom: 24px; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
  .article-header h1 {
    max-width: 1180px;
    font-size: clamp(2.9rem, 6vw, 6.5rem);
    line-height: .96;
  }
  .article-header .dek { max-width: 850px; margin-top: 22px; color: var(--muted); font: 400 clamp(1.15rem, 1.9vw, 1.5rem)/1.5 var(--serif); }
  .article-byline { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 24px; font-size: .72rem; }
  .article-feature { width: min(1480px, 100%); margin: 0 auto; }
  .article-feature img { width: 100%; max-height: 82vh; object-fit: cover; }
  .article-feature figcaption { width: var(--shell); margin: 8px auto 0; color: var(--muted); font-size: .75rem; }
  .article-layout { width: min(1120px, calc(100% - 40px)); margin: 62px auto 95px; display: grid; grid-template-columns: 150px minmax(0, 740px); gap: 52px; justify-content: center; }
  .share-rail { position: sticky; top: 118px; align-self: start; }
  .share-rail span { display: block; margin-bottom: 8px; color: var(--muted); font-size: .68rem; text-transform: uppercase; }
  .share-rail a, .share-rail button { display: block; padding: 8px 0; border: 0; background: transparent; cursor: pointer; font-size: .78rem; }
  .article-body { min-width: 0; font: 400 clamp(1.08rem, 1.3vw, 1.24rem)/1.75 var(--serif); }
  .article-body > * + * { margin-top: 1.4em; }
  .article-body h2, .article-body h3 { margin-top: 1.5em; line-height: 1; }
  .article-body h2 { font-size: clamp(2rem, 3vw, 2.7rem); }
  .article-body h3 { font-size: 1.85rem; }
  .article-body a { color: #934224; }
  .article-body img, .article-body figure, .article-body video, .article-body iframe { max-width: 100%; height: auto; }
  .article-body iframe { width: 100%; min-height: 300px; }
  .article-body figcaption, .article-body .wp-caption-text { margin-top: 8px; color: var(--muted); font: 400 .78rem/1.5 var(--body); }
  .missing-media {
    min-height: 150px;
    display: grid;
    place-items: center;
    padding: 28px;
    border: 1px solid var(--line);
    background: var(--paper-2);
    color: var(--muted);
    text-align: center;
    font: 600 .7rem/1.5 var(--body);
    letter-spacing: .08em;
    text-transform: uppercase;
  }
  .article-feature .missing-media { min-height: clamp(220px, 36vw, 520px); }
  .article-body figure.media-unavailable { margin-block: 1.4em; }
  .article-body blockquote { margin-left: clamp(-70px, -6vw, -25px); color: var(--copper); font: 500 clamp(1.9rem, 3.5vw, 3.4rem)/1 var(--display); }
  .tag-list { display: flex; flex-wrap: wrap; gap: 8px; max-width: 740px; margin: 0 auto 52px; }
  .tag-list a { padding: 7px 11px; border: 1px solid var(--line); text-decoration: none; font-size: .72rem; }
  .author-box { padding: 50px 0 75px; border-top: 1px solid var(--line); }
  .author-box > section { max-width: 740px; margin: auto; }
  .author-box img { width: 70px; height: 70px; margin-bottom: 14px; border-radius: 50%; object-fit: cover; }
  .author-box h2 { margin-top: 5px; font-size: 2.4rem; }
  .author-box p:last-child { margin-top: 8px; color: var(--muted); font-family: var(--serif); }
  .reading-progress { position: fixed; z-index: 80; inset: 0 0 auto; height: 3px; pointer-events: none; }
  .reading-progress span { display: block; width: 100%; height: 100%; background: var(--copper); transform: scaleX(0); transform-origin: left; }
  .page-content { padding: 76px 0 100px; }
  .page-content > header { margin-bottom: 42px; }
  .page-content h1 { margin-top: 8px; font-size: clamp(3.2rem, 7vw, 6.5rem); line-height: .9; }

  /* Search and footer */
  .search-dialog { width: 100%; height: 100%; max-width: none; max-height: none; border: 0; background: var(--ink); color: var(--paper); }
  .search-dialog::backdrop { background: var(--ink); }
  .dialog-close { position: absolute; right: 24px; top: 24px; border: 0; background: transparent; color: inherit; padding: 12px; cursor: pointer; }
  .search-dialog > section { width: var(--shell); margin: 18vh auto 0; }
  .search-dialog h2 { max-width: 950px; margin-top: 6px; font-size: clamp(2.8rem, 6vw, 5.8rem); line-height: .92; }
  .search-dialog form[action] { display: flex; margin-top: 48px; border-bottom: 2px solid #7e766c; }
  .search-dialog input { min-width: 0; flex: 1; padding: 17px 0; border: 0; outline: 0; background: transparent; color: inherit; font-size: clamp(1.1rem, 2vw, 1.7rem); }
  .search-dialog form[action] button { border: 0; background: var(--paper); color: var(--ink); padding: 0 24px; cursor: pointer; }
  #search-suggestions { margin-top: 18px; border-top: 1px solid #3d3832; }
  #search-suggestions a { display: grid; gap: 3px; padding: 12px 0; border-bottom: 1px solid #3d3832; text-decoration: none; }
  #search-suggestions a span { color: #aaa298; font-size: .68rem; text-transform: uppercase; }
  #search-suggestions a strong { font: 500 1.15rem/1.05 var(--display); }
  .site-footer { padding: 62px 0 28px; background: var(--ink); color: var(--paper); }
  .footer-grid { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 32px; align-items: start; }
  .footer-grid > p { color: #aaa298; }
  .footer-grid nav { display: flex; flex-direction: column; gap: 9px; }
  .footer-grid a { text-decoration: none; }
  .footer-meta { grid-column: 1 / -1; max-width: none; padding-top: 34px; border-top: 1px solid #39342e; font-size: .75rem; }
  .error-page { min-height: 68vh; padding: 100px 0; }
  .error-page h1 { margin-top: 8px; font-size: clamp(3.8rem, 8vw, 7rem); line-height: .86; }
  .error-page > p:not(.eyebrow) { margin-top: 18px; font-family: var(--serif); }
  .error-page nav { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; margin-top: 24px; }
}

@layer studio {
  .studio-page { background: #ece8df; }
  .studio-shell { width: min(1220px, calc(100vw - 24px)); margin: 0 auto; padding: 46px 0 90px; }
  .studio-shell > header { margin-bottom: 38px; padding-bottom: 28px; border-bottom: 1px solid var(--ink); }
  .studio-shell > header h1 { margin: 8px 0; font-size: clamp(3.4rem, 8vw, 6.5rem); line-height: .9; }
  .studio-shell > header > p:last-child { color: var(--muted); font-family: var(--serif); }
  .studio-login, .editor-main, .editor-settings, .studio-list { padding: 24px; background: var(--white); }
  .studio-login { max-width: 520px; }
  .studio-login h2, .studio-list h2, .editor-seo h2, .editor-settings h2 { font-size: 2rem; }
  .studio-login label, .editor-form label, .studio-list label, .editor-settings label { display: grid; gap: 6px; margin-top: 15px; color: var(--muted); font-size: .64rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
  .studio-login input, .editor-form input, .editor-form textarea, .editor-form select, .studio-list input { width: 100%; padding: 12px; border: 1px solid #cec7bb; border-radius: 0; background: #fff; color: var(--ink); font: 400 .9rem/1.4 var(--body); text-transform: none; }
  .studio-login .button { margin-top: 18px; }
  .story-editor-field { margin-top: 18px; }
  .story-editor-field > header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px; margin-bottom: 7px; color: var(--muted); font-size: .64rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
  .story-editor-field > header small { font-weight: 400; letter-spacing: 0; text-transform: none; }
  .editor-toolbar { display: flex; flex-wrap: wrap; gap: 5px; padding: 8px; border: 1px solid #cec7bb; border-bottom: 0; background: var(--paper-2); }
  .editor-toolbar button, .editor-toolbar select, .image-control-actions button { min-height: 36px; width: auto; padding: 0 10px; border: 1px solid #bdb4a7; background: var(--white); color: var(--ink); cursor: pointer; font: 600 .7rem/1 var(--body); text-transform: none; }
  .editor-toolbar select { min-width: 118px; }
  .visual-story-editor { min-height: 480px; padding: clamp(18px, 3vw, 36px); border: 1px solid #cec7bb; background: #fff; color: var(--ink); font: 400 1.02rem/1.75 var(--serif); outline: none; overflow-wrap: anywhere; }
  .visual-story-editor:focus { border-color: var(--copper); box-shadow: inset 0 0 0 1px var(--copper); }
  .visual-story-editor:empty::before { content: attr(data-placeholder); color: #968d82; pointer-events: none; }
  .visual-story-editor h2, .visual-story-editor h3 { margin: 1.4em 0 .5em; line-height: 1.08; }
  .visual-story-editor h2 { font-size: 2.1rem; }
  .visual-story-editor h3 { font-size: 1.6rem; }
  .visual-story-editor p, .visual-story-editor ul, .visual-story-editor ol, .visual-story-editor blockquote { margin: 0 0 1.15em; }
  .visual-story-editor blockquote { padding: 8px 0 8px 20px; border-left: 3px solid var(--copper); color: var(--muted); font-size: 1.15rem; }
  .visual-story-editor img { max-width: 100%; height: auto; margin: 22px auto; }
  .editor-upload-status, .featured-upload-status { min-height: 1.35em; margin-top: 7px; color: var(--muted); font-size: .72rem; }
  .featured-image-control { margin-top: 18px; }
  .featured-image-control > span { display: block; margin-bottom: 7px; color: var(--muted); font-size: .64rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
  .featured-image-preview { aspect-ratio: 16 / 10; margin-bottom: 8px; overflow: hidden; background: var(--paper-2); }
  .featured-image-preview img { width: 100%; height: 100%; object-fit: cover; }
  .image-control-actions { display: flex; gap: 6px; }
  .image-control-actions button { flex: 1; }
  .image-control-actions [data-action="remove-featured"] { color: var(--error); border-color: var(--error); }
  .studio-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 22px; padding: 14px; background: var(--ink); color: var(--paper); }
  .studio-nav strong { margin-right: auto; }
  .studio-nav span { color: var(--gold); font-size: .62rem; text-transform: uppercase; }
  .studio-nav button { min-height: 38px; padding: 0 12px; border: 1px solid #4d4740; background: transparent; color: inherit; cursor: pointer; font-size: .62rem; font-weight: 600; text-transform: uppercase; }
  .studio-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 22px; }
  .studio-stats article { min-height: 105px; display: flex; flex-direction: column; justify-content: space-between; padding: 16px; background: var(--white); border-top: 3px solid var(--copper); }
  .studio-stats strong { font-family: var(--display); font-size: 2.4rem; line-height: 1; }
  .studio-stats span { color: var(--muted); font-size: .58rem; font-weight: 600; text-transform: uppercase; }
  .studio-list > header { display: grid; grid-template-columns: 1fr minmax(240px, .5fr); gap: 16px; align-items: end; margin-bottom: 20px; }
  .studio-row { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 20px 0; border-top: 1px solid var(--line); }
  .studio-row h3 { margin: 8px 0 4px; font: 500 1.2rem/1.2 var(--serif); }
  .studio-row p, .studio-row small { color: var(--muted); font-size: .68rem; }
  .studio-row nav { display: flex; gap: 8px; }
  .studio-row nav a, .studio-row nav button { min-height: 38px; display: grid; place-items: center; padding: 0 13px; border: 1px solid var(--ink); background: transparent; cursor: pointer; text-decoration: none; font-size: .62rem; font-weight: 600; text-transform: uppercase; }
  .status { display: inline-flex; padding: 4px 7px; background: var(--paper-2); font-size: .52rem; font-weight: 600; text-transform: uppercase; }
  .status-published { background: #cde8cf; color: #175a20; }
  .status-review { background: #f6d99a; color: #654400; }
  .status-scheduled { background: #d7ddf2; color: #22274d; }
  .status-archived { background: #e3c5bd; color: #702719; }
  .editor-form { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; }
  .editor-main > label:first-child input { font-family: var(--display); font-size: 1.5rem; }
  .editor-seo { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
  .editor-settings { position: sticky; top: 20px; align-self: start; }
  .editor-settings .button, .danger-button { width: 100%; margin-top: 18px; }
  .danger-button { min-height: 46px; border: 1px solid var(--error); background: transparent; color: var(--error); cursor: pointer; font-size: .65rem; font-weight: 600; text-transform: uppercase; }
}

@layer utilities {
  [hidden] { display: none !important; }
}

@media (max-width: 1050px) {
  .desktop-nav, .header-subscribe { display: none; }
  .menu-toggle { display: grid; }
  .header-bar { grid-template-columns: 1fr auto; }
  .hero { grid-template-columns: 1fr; }
  .hero-side { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .story-grid > .story-card, .story-grid > .story-card:first-child, .story-grid > .story-card:nth-child(2), .listing-grid > .story-card { grid-column: span 6; }
  .article-layout { grid-template-columns: 1fr; }
  .share-rail { position: static; display: flex; gap: 16px; overflow: auto; }
  .share-rail span { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid nav { grid-column: 2; }
  .studio-stats { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 680px) {
  :root { --shell: calc(100% - 36px); }
  .header-bar { min-height: 74px; }
  .wordmark { width: min(188px, 54vw); }
  .primary-nav { grid-template-columns: 1fr; }
  .primary-nav a { padding: 15px 0; font-size: 1.4rem; }
  .site-header.header-hidden { transform: none; }
  .hero { padding: 18px 0 60px; }
  .hero-story { min-height: 68vh; }
  .hero-copy { right: 20px; bottom: 24px; left: 20px; }
  .hero-copy h1 { font-size: clamp(2.45rem, 11vw, 3.45rem); line-height: .94; }
  .hero-dek { display: none; }
  .hero-side { grid-template-columns: 1fr; }
  .hero-side .story-card-compact { grid-template-columns: 42% 1fr; grid-template-rows: auto; min-height: 150px; }
  .hero-side .story-image { min-height: 150px; }
  .hero-side .story-card-copy { padding: 15px; }
  .hero-side .story-card h2 { font-size: 1.45rem; }
  .editorial-section { padding: 62px 0; }
  .section-heading { align-items: start; margin-bottom: 28px; }
  .section-heading h2 { font-size: 2.75rem; }
  .section-heading > a { padding-top: 10px; font-size: .68rem; }
  .story-grid { gap: 30px 16px; }
  .story-grid > .story-card, .story-grid > .story-card:first-child, .story-grid > .story-card:nth-child(2), .listing-grid > .story-card { grid-column: 1 / -1; }
  .story-grid > .story-card:not(:first-child), .listing-grid > .story-card:not(:first-child) { display: grid; grid-template-columns: 40% 1fr; gap: 15px; }
  .story-grid > .story-card:not(:first-child) .story-image, .listing-grid > .story-card:not(:first-child) .story-image { aspect-ratio: 1; }
  .story-grid > .story-card:not(:first-child) .story-card-copy, .listing-grid > .story-card:not(:first-child) .story-card-copy { padding-top: 0; }
  .story-grid > .story-card:not(:first-child) .story-excerpt, .story-grid > .story-card:not(:first-child) .story-card-footer, .listing-grid > .story-card:not(:first-child) .story-excerpt, .listing-grid > .story-card:not(:first-child) .story-card-footer { display: none; }
  .story-grid > .story-card:not(:first-child) h2, .listing-grid > .story-card:not(:first-child) h2 { font-size: 1.45rem; }
  .newsletter-band { padding: 70px 0; }
  .newsletter-inner { grid-template-columns: 1fr; gap: 28px; }
  .newsletter-inner h2 { font-size: 3.2rem; }
  .newsletter-form button { padding: 0 15px; }
  .listing-header { padding: 54px 0 36px; }
  .listing-header h1 { font-size: clamp(3rem, 14vw, 4.4rem); }
  .archive-filters { grid-template-columns: 1fr; padding: 14px; }
  .listing-grid { padding-top: 24px; }
  .article-header { padding-top: 46px; }
  .article-header h1 { font-size: clamp(2.7rem, 12vw, 4rem); }
  .article-header .dek { font-size: 1.12rem; }
  .article-layout { width: calc(100% - 36px); margin-top: 40px; }
  .article-body blockquote { margin-left: 0; }
  .article-body h2 { font-size: 2.1rem; }
  .tag-list { width: calc(100% - 36px); }
  .author-box > section { width: calc(100% - 36px); }
  .search-dialog > section { margin-top: 22vh; }
  .search-dialog h2 { font-size: 3rem; }
  .search-dialog form[action] button { padding: 0 14px; }
  .site-footer { padding-top: 46px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid nav { grid-column: auto; }
  .studio-stats { grid-template-columns: repeat(2, 1fr); }
  .studio-list > header, .studio-row, .editor-form { grid-template-columns: 1fr; }
  .editor-settings { position: static; }
}

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