/* Second visual direction: fuller layouts and a brighter orange identity.
   The base stylesheet retains the reading typography and structural layouts. */
@media screen {
  :root {
    --paper: #fcfaf6;
    --ink: #262620;
    --orange: #ad3c16;
    --brand: #f47a3c;
    --peach: #fae9dd;
    --line: #ddd8cf;
  }

  .site-header { border-top: 5px solid var(--brand); background: #fffdf9; }
  .masthead { min-height: 132px; }
  .masthead-note { border-left: 3px solid var(--brand); padding-left: 13px; }
  .masthead-note span:first-child { font-weight: 600; }
  .wordmark > span, .wordmark i { color: var(--brand); }
  .header-tools .search-open { border-radius: 50%; background: var(--brand); color: var(--ink); }
  .header-tools .search-open:hover { background: var(--ink); color: white; }
  .nav-rule { background: var(--peach); border-color: #edd0bb; }
  .main-nav { gap: 14px; }
  .main-nav > a { position: relative; }
  .main-nav > a:not(.nav-archive):hover::after,
  .main-nav > a[aria-current]::after {
    content: ''; position: absolute; bottom: 9px; left: 0; right: 0;
    height: 3px; background: var(--brand);
  }
  .main-nav .nav-archive { background: var(--ink); color: white; padding: 10px 15px; border-radius: 4px; }
  .main-nav .nav-archive:hover { background: var(--orange); }
  .mobile-menu { padding-top: 8px; }
  .mobile-menu a { border-color: #edcbb5; }

  .image-link { border-radius: 7px; }
  .category-label {
    background: #fbe8db; padding: 5px 8px; border-radius: 3px;
    font-size: 9px; letter-spacing: .09em;
  }
  .story-card h3 { line-height: 1.13; }
  .card-text { padding-top: 14px; }
  .story-meta { margin-top: 13px; }
  .button { border-radius: 4px; }
  .button-dark { background: var(--brand); color: var(--ink); }
  .button-dark:hover { background: var(--ink); color: white; }
  .text-link { border-color: var(--brand); border-bottom-width: 2px; }
  .text-link svg { color: var(--orange); }
  .section-head > div > .eyebrow { display: flex; align-items: center; gap: 9px; }
  .section-head > div > .eyebrow::before { content: ''; width: 19px; height: 3px; background: var(--brand); }

  .edition-line { padding-top: 20px; }
  .edition-line > span:first-child { color: var(--orange); }
  .hero-grid { gap: 26px; grid-template-columns: minmax(0,2.1fr) minmax(0,1fr); }
  .lead-story { min-width: 0; }
  .lead-story > .image-link img { aspect-ratio: 1.68; object-position: 50% 42%; }
  .lead-copy {
    position: relative; margin: -48px 22px 0; padding: 26px 30px 24px;
    background: var(--brand); border-radius: 5px;
  }
  .lead-copy .category-label { color: var(--ink); background: #ffffff57; }
  .lead-copy :focus-visible, .newsletter :focus-visible { outline-color: var(--ink); }
  .lead-copy h1 { font-size: clamp(48px,4.7vw,68px); margin: 13px 0 14px; }
  .lead-copy h1 em { color: var(--ink); }
  .lead-copy h1 a:hover { color: #4a2615; }
  .lead-copy > p { font-size: 13px; line-height: 1.75; max-width: 530px; }
  .lead-bottom { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 19px; }
  .lead-bottom .story-meta { color: #482c1c; margin: 0; }
  .lead-read { display: inline-flex; align-items: center; gap: 11px; font-size: 10px; font-weight: 600; white-space: nowrap; }
  .lead-read svg { width: 32px; height: 32px; padding: 7px; border: 1px solid #26262060; border-radius: 50%; }
  .lead-read:hover { color: var(--ink); text-decoration: underline; }
  .hero-side { padding-left: 26px; gap: 23px; }
  .hero-side .story-card + .story-card { padding-top: 22px; }
  .hero-side .story-card h3 { font-size: 28px; }
  .hero-side .image-link img { aspect-ratio: 1.83; }

  .topic-strip { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding-block: 25px; margin-top: 25px; border-block: 1px solid var(--line); }
  .topic-strip > .eyebrow { margin-right: auto; color: var(--muted); font-size: 9px; }
  .topic-strip > a { display: inline-flex; align-items: center; gap: 19px; padding: 8px 12px; background: var(--peach); border: 1px solid #efd7c5; border-radius: 4px; font-size: 11px; font-weight: 600; }
  .topic-strip svg { width: 14px; height: 14px; }
  .topic-strip > a:hover { background: var(--brand); color: var(--ink); border-color: var(--brand); }
  .latest-section { border: 0; margin-top: 0; padding-top: 30px; margin-bottom: 48px; }
  .latest-grid { gap: 24px; }
  .latest-story { display: block; min-width: 0; border: 0; padding: 0; }
  .latest-image img { width: 100%; aspect-ratio: 1.65; object-fit: cover; }
  .latest-copy { display: flex; align-items: start; gap: 13px; padding-top: 16px; }
  .latest-copy > .story-number { font-size: 26px; color: var(--orange); padding-top: 4px; }
  .latest-story h3 { font-size: 25px; line-height: 1.12; }

  .spotlight { background: var(--peach); padding-block: 40px; border-block: 1px solid #eed8c8; }
  .spotlight-grid { gap: 6%; }
  .spotlight-image img { aspect-ratio: 1.14; }
  .spotlight-copy > .eyebrow { color: var(--orange); }
  .spotlight-copy h2 em { color: var(--orange); }
  .spotlight-copy > .spark { color: var(--brand); width: 60px; height: 60px; }
  .spotlight-copy > .text-link { padding: 12px 17px; background: var(--ink); color: white; border: 0; border-radius: 4px; }
  .spotlight-copy > .text-link svg { color: var(--brand); }
  .category-section { padding-block: 52px; }
  .crossing-section { padding-bottom: 52px; }
  .archive-selection { background: #f1ede5; border-top: 4px solid var(--brand); padding-block: 35px 40px; }
  .discover-section { padding-block: 55px; grid-template-columns: .85fr 1.4fr; gap: 6%; }
  .discover-section h2 { font-size: 47px; }
  .discover-section h2 em { color: var(--orange); }
  .discover-links { gap: 12px; }
  .discover-links a { align-items: start; gap: 18px; padding: 18px; border: 1px solid #ecd7c8; background: #fff3e9; border-radius: 5px; }
  .discover-links a:hover { background: var(--peach); border-color: var(--brand); }
  .discover-links a:nth-child(4n+2), .discover-links a:nth-child(4n+3) { background: #f2f0e9; }
  .discover-links a:nth-child(4n+2):hover, .discover-links a:nth-child(4n+3):hover { background: var(--peach); }
  .discover-links a span { display: block; font-size: 27px; line-height: 1.1; }
  .discover-links a small { display: block; margin-top: 9px; font: 10px/1.6 var(--sans); color: #655d52; }
  .discover-links svg { margin-top: 2px; width: 17px; height: 17px; }

  .newsletter {
    border: 0; background: var(--brand); border-radius: 7px;
    padding: 38px; margin-bottom: 48px; grid-template-columns: 50px 1fr auto; gap: 25px;
  }
  .newsletter-mark .spark { width: 48px; height: 48px; color: var(--ink); }
  .newsletter .eyebrow { color: #4a2818; }
  .newsletter h2 { font-size: 36px; }
  .newsletter-action p { color: #472c1d; }
  .newsletter .button-dark { background: var(--ink); color: white; }
  .newsletter .button-dark:hover { background: #fff5e9; color: var(--ink); }
  .site-footer { background: #282720; border-top: 5px solid var(--brand); }
  .site-footer .text-link svg { color: var(--brand); }
  .footer-brand .wordmark > span { color: var(--brand); }

  .article-header { padding-top: 26px; }
  .article-cover > img { border-radius: 7px; }
  .article-byline { border-top: 1px solid var(--line); padding-top: 20px; }
  .author-initial { background: var(--peach); color: var(--orange); }
  .reading-tools .icon-button:hover { background: var(--peach); border-color: var(--brand); }
  .category-title { border-bottom: 4px solid var(--brand); }
  .category-spark .spark { color: var(--brand); }
  .category-feature { padding-bottom: 42px; }
  .filter-form { border-top: 4px solid var(--brand); }
  .pagination button { border-radius: 4px; }
  .pagination button[aria-current=page] { background: var(--brand); color: var(--ink); border-color: var(--brand); }
  .search-dialog { border-top: 5px solid var(--brand); border-radius: 6px; }
  .about-header { border-bottom: 4px solid var(--brand); }

  @media (max-width: 1100px) {
    .masthead { min-height: 116px; }
    .main-nav { gap: 10px; }
    .main-nav .nav-archive { padding: 9px 11px; }
    .lead-copy { margin-inline: 16px; padding: 23px; }
    .lead-copy h1 { font-size: 54px; }
    .lead-bottom { align-items: start; flex-direction: column; gap: 13px; }
    .hero-side .story-card h3 { font-size: 25px; }
    .topic-strip { gap: 8px; }
    .topic-strip > .eyebrow { flex-basis: 100%; margin-bottom: 4px; }
    .latest-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 20px; }
    .latest-story h3 { font-size: 22px; }
    .latest-copy { gap: 9px; }
    .latest-copy > .story-number { font-size: 22px; }
    .newsletter { padding: 30px; gap: 20px; grid-template-columns: 36px 1fr auto; }
    .newsletter-mark .spark { width: 36px; height: 36px; }
    .newsletter h2 { font-size: 29px; }
    .discover-section h2 { font-size: 41px; }
    .discover-links a { padding: 15px; gap: 10px; }
    .discover-links a span { font-size: 25px; }
  }

  @media (max-width: 900px) {
    .hero-grid { gap: 22px; }
    .hero-side { padding-left: 22px; }
    .hero-side .story-card h3 { font-size: 23px; }
    .lead-copy { padding: 20px; margin-inline: 12px; }
    .lead-copy h1 { font-size: 47px; }
    .lead-copy > p { font-size: 12px; }
    .latest-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
    .latest-story h3 { font-size: 26px; }
    .spotlight-image img { aspect-ratio: .9; }
    .newsletter { grid-template-columns: 36px 1fr; }
    .newsletter-action { grid-column: 2; }
    .discover-section { gap: 30px; }
  }

  @media (max-width: 760px) {
    .masthead { min-height: 97px; }
    .hero-grid { grid-template-columns: 1fr; gap: 24px; }
    .lead-story > .image-link img { aspect-ratio: 1.43; }
    .lead-copy { padding: 23px; margin: -30px 12px 0; }
    .lead-copy h1 { font-size: clamp(44px,8.6vw,61px); }
    .lead-copy > p { font-size: 13px; }
    .lead-bottom { flex-direction: row; align-items: center; gap: 13px; }
    .hero-side { padding-left: 0; padding-top: 22px; gap: 22px; }
    .hero-side .story-card + .story-card { padding-top: 0; }
    .hero-side .story-card h3 { font-size: 25px; }
    .hero-side .image-link img { aspect-ratio: 1.45; }
    .topic-strip { padding-block: 18px; margin-top: 25px; gap: 8px; }
    .topic-strip > a { padding: 8px 10px; gap: 10px; font-size: 10px; }
    .latest-section { padding-top: 26px; margin-bottom: 35px; }
    .latest-grid { gap: 26px 20px; }
    .latest-copy { gap: 10px; }
    .latest-story h3 { font-size: 24px; }
    .spotlight { padding-block: 28px; }
    .spotlight-image img { aspect-ratio: 1.22; }
    .category-section { padding-block: 38px; }
    .crossing-section { padding-bottom: 38px; }
    .discover-section { grid-template-columns: 1fr; padding-block: 40px; gap: 25px; }
    .discover-section h2 { font-size: 42px; }
    .discover-links { gap: 12px; }
    .discover-links a { padding: 17px; }
    .newsletter { padding: 26px; margin-bottom: 35px; gap: 18px; grid-template-columns: 28px 1fr; }
    .newsletter-mark .spark { width: 28px; height: 28px; }
    .newsletter h2 { font-size: 31px; }
    .newsletter-action { grid-column: 2; }
    .category-feature { padding-bottom: 32px; }
  }

  @media (max-width: 480px) {
    .masthead { min-height: 85px; }
    .lead-copy { margin-inline: 8px; padding: 20px 17px; }
    .lead-copy h1 { font-size: clamp(34px,10vw,46px); }
    .lead-copy > p { font-size: 12px; }
    .lead-bottom { flex-direction: column; align-items: start; }
    .lead-read { justify-content: space-between; width: 100%; margin-top: 1px; padding-top: 10px; border-top: 1px solid #26262035; }
    .hero-side .story-card h3 { font-size: 23px; }
    .hero-side .story-card + .story-card { padding-top: 20px; }
    .hero-side .image-link img { aspect-ratio: 1; }
    .latest-grid { grid-template-columns: 1fr; gap: 19px; }
    .latest-story, .latest-story:nth-child(2), .latest-story:last-child { display: grid; grid-template-columns: 106px minmax(0,1fr); gap: 16px; padding-bottom: 19px; border-bottom: 1px solid var(--line); }
    .latest-story:last-child { border: 0; padding-bottom: 0; }
    .latest-image img { height: 100%; aspect-ratio: 1; min-height: 110px; max-height: 180px; }
    .latest-copy { padding: 0; }
    .latest-copy > .story-number { display: none; }
    .latest-story h3 { font-size: 24px; }
    .spotlight-image img { aspect-ratio: 1.06; }
    .discover-links { gap: 9px; }
    .discover-links a { padding: 13px; gap: 6px; }
    .discover-links a span { font-size: 23px; }
    .discover-links a small { font-size: 9px; }
    .discover-links svg { width: 13px; height: 13px; }
    .newsletter { grid-template-columns: 1fr; padding: 24px; gap: 17px; }
    .newsletter-mark { display: none; }
    .newsletter-action { grid-column: 1; }
    .newsletter h2 { font-size: 29px; }
  }
}

/* One compact navigation row after the original header leaves the viewport. */
@media screen {
  .header-shell { position: relative; }
  html { scroll-padding-top: 70px; }
  .site-header.is-compact {
    position: fixed; inset: 0 0 auto; z-index: 80;
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center; column-gap: 24px; min-height: 54px;
    padding-inline: max(48px, calc((100vw - 1280px) / 2));
    background: #fffdf9; border-top: 0; border-bottom: 1px solid #e3d5c8;
    box-shadow: 0 3px 12px #2626200a;
  }
  .site-header.is-compact .masthead { display: contents; }
  .site-header.is-compact .masthead-note { display: none; }
  .site-header.is-compact .masthead > .wordmark {
    grid-column: 1; grid-row: 1; font-size: 34px; justify-self: start;
  }
  .site-header.is-compact .wordmark i { margin-left: 7px; margin-top: 3px; }
  .site-header.is-compact .wordmark .spark { width: 17px; height: 17px; }
  .site-header.is-compact .header-tools { grid-column: 3; grid-row: 1; gap: 4px; }
  .site-header.is-compact .search-open { background: transparent; }
  .site-header.is-compact .search-open:hover { background: var(--peach); color: var(--ink); }
  .site-header.is-compact .nav-rule { grid-column: 2; grid-row: 1; border: 0; background: transparent; min-width: 0; }
  .site-header.is-compact .main-nav { width: 100%; min-height: 54px; gap: 12px; font-size: 10px; }
  .site-header.is-compact .main-nav > a { padding-block: 17px; }
  .site-header.is-compact .main-nav .nav-archive { padding: 7px 10px; }
  .site-header.is-compact .main-nav > a[aria-current]::after,
  .site-header.is-compact .main-nav > a:not(.nav-archive):hover::after { bottom: 8px; height: 2px; }
  .site-header.is-compact .mobile-menu {
    grid-column: 1 / -1; grid-row: 2; width: 100%; margin: 0;
    max-height: calc(100vh - 60px); max-height: calc(100dvh - 60px);
    overflow-y: auto; overscroll-behavior-y: contain; padding-bottom: 20px;
  }
  .has-compact-header .reading-tools { top: 78px; }
  @media (max-width: 1100px) {
    .site-header.is-compact { padding-inline: 32px; column-gap: 16px; }
    .site-header.is-compact .nav-rule { display: none; }
    .site-header.is-compact .menu-toggle { display: inline-flex; }
  }
  @media (max-width: 760px) {
    .site-header.is-compact { padding-inline: 20px; min-height: 52px; }
    .site-header.is-compact .masthead > .wordmark { font-size: 32px; }
    .site-header.is-compact .wordmark .spark { width: 15px; height: 15px; }
    .site-header.is-compact .header-tools .icon-button { min-width: 44px; min-height: 44px; }
  }
}
@media print { .header-shell { height: auto !important; } }
