/* Hallmark · editorial article layer (every /blog/ and /trip/ article; scripts/normalize-site-seo.mjs adds body[data-hallmark-article] and this link; layout changes only at >=1280px, phones untouched) */
:root{--ha-ink:#343b32;--ha-green:#365949;--ha-line:#dddcd0;--ha-press:#2a4a3c;--ha-ground:#f3efe4;--ha-hero-top:200px;--ha-head:52px;--ha-gap:128px;--ha-gap-l:176px}

/* Only overflow clipping applies at every width (it never changes how a page looks); everything visible waits for >=1280px. */
html,body{overflow-x:clip}

@media(min-width:1280px){
  /* States and the journal byline. Bylines are scoped to journal hero/opening blocks so travel pages keep their own colour. */
  [data-hallmark-article] .hero-head .byline,[data-hallmark-article] header.hero .byline,[data-hallmark-article] .opening .byline{color:var(--ha-ink)}
  [data-hallmark-article] a:focus-visible,[data-hallmark-article] button:focus-visible,[data-hallmark-article] summary:focus-visible{outline:3px solid var(--ha-green);outline-offset:3px}
  [data-hallmark-article] a:active,[data-hallmark-article] button:active{color:var(--ha-press)}
  [data-hallmark-article] button:disabled{opacity:.5;cursor:not-allowed}

  /* Hero: headline, byline and the cover fill exactly one screen; the cover takes whatever height is left. */
  [data-hallmark-article] .hero-head,[data-hallmark-article] header.hero:has(>.cover){display:flex;flex-direction:column;min-height:calc(100svh - var(--ha-hero-top));box-sizing:border-box}
  [data-hallmark-article] .hero-head>h1,[data-hallmark-article] .hero-head>.byline,[data-hallmark-article] header.hero>h1,[data-hallmark-article] header.hero>.byline{flex:none}
  [data-hallmark-article] .hero-head>.byline,[data-hallmark-article] header.hero>.byline{margin-bottom:24px}
  [data-hallmark-article] .hero-head>.article-cover{flex:1 1 0;min-height:280px;width:min(1120px,170%);max-width:none;height:auto;margin:0;object-fit:contain;position:relative;left:50%;transform:translateX(-50%)}
  [data-hallmark-article] header.hero>.cover{flex:1 1 0;min-height:280px;margin:0 auto;width:100%;max-width:900px}
  [data-hallmark-article] header.hero>.cover img{width:100%;height:100%;max-height:none;object-fit:contain;background:transparent}

  /* Opening copy sits on its own ground so the first section after the hero has weight. */
  [data-hallmark-article] .lede-card{padding:32px 40px;background:var(--ha-ground);border-radius:4px}
  [data-hallmark-article] .lede-card>p:last-child{margin-bottom:0}

  /* Section heads read as statements; sections breathe on a varied rhythm. */
  [data-hallmark-article] .article-body h2{font-size:var(--ha-head);line-height:1.3;padding-bottom:56px;margin-bottom:12px;border-bottom:1px solid var(--ha-line)}
  [data-hallmark-article] .article-body>section:not(.opening){padding-top:var(--ha-gap)}
  [data-hallmark-article] .article-body>section:not(.opening):nth-of-type(3n){padding-top:var(--ha-gap-l)}

  /* Related reading: shelves sit side by side instead of stacking. */
  [data-hallmark-article] .related-reading{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:32px;align-items:start}
  [data-hallmark-article] .related-reading>h2,[data-hallmark-article] .related-reading>.rr-sub,[data-hallmark-article] .related-reading>.rr-foot{grid-column:1/-1}
  [data-hallmark-article] .related-reading>.rr-shelf{margin-top:0}
}
