@import url('https://fonts.bunny.net/css?family=inter:400,500,600,700|source-serif-4:400,400i,600');

:root {
  --editorial-sans: Inter, system-ui, sans-serif;
  --editorial-serif: var(--font-body);
  --editorial-heading: var(--font-heading);
}
body {
  font-family: var(--editorial-sans);
}
.display, .post-card-title { font-family:var(--editorial-heading); }
.display { font-weight: 700; letter-spacing: -.045em; }
.post-card-title { font-weight: 700; letter-spacing: -.035em; }
.post-body.prose {
  
  font: 400 var(--editorial-body-size, 17px)/1.65 var(--editorial-serif);
}
.post-body :is(h1,h2,h3,h4,h5,h6) { font-family:var(--editorial-heading); font-weight:700; }

.post-card:not(.post-card-media) {
  background: linear-gradient(140deg,#e5d7c0,#cdb29a);
  color: #241f1a;
}
.post-card:not(.post-card-media)[data-editorial-gradient="2"] { background: linear-gradient(140deg,#e4ceca,#c9a29b); }
.post-card:not(.post-card-media)[data-editorial-gradient="3"] { background: linear-gradient(140deg,#d6ddcb,#abb798); }
.post-card:not(.post-card-media)[data-editorial-gradient="4"] { background: linear-gradient(140deg,#d5dfe1,#aab9bf); }
.post-card:not(.post-card-media) :is(.post-card-title,.post-card-meta,.post-card-excerpt) { color: #241f1a; }
@media (min-width: 600px) {
  .post-card-plate { min-height: 12rem; background: transparent; }
  .post-card-plate .post-card-title { font-size: clamp(1.3rem,2.2vw,1.85rem); }
}

.post--video .video-container .kg-embed-card { width: 100%; margin: 0; }
.post--video .video-container iframe[src*="youtube"] {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: var(--video-ratio, 16 / 9);
  border: 0;
}

:root { --site-sidebar-width: 4rem; }
.post-card .post-card-tag {
  display: inline-flex;
  align-items: center;
  height: 1.75rem;
  padding: 0 .75rem;
  font-size: .75rem;
  line-height: 1;
}
@media (min-width: 600px) {
  .post-card .post-card-tag { position: absolute; inset: 1rem 1rem auto auto; }
  .post-card-plate { padding-top: 3.5rem; }
}
.editorial-series { margin-block: 3rem; padding-block: 1.25rem; border-block: 1px solid var(--color-stroke); }
.editorial-series h2 { margin-bottom: .5rem; font-size: 1.5rem; }
.editorial-series a { text-decoration: underline; text-underline-offset: .2em; }

.editorial-filters { display:flex; flex-wrap:wrap; gap:.65rem; margin-block:1.25rem; }
.editorial-filters a, .editorial-filters button { padding:.45rem .85rem; border:1px solid currentColor; border-radius:2rem; font-size:.875rem; cursor:pointer; }
.editorial-filters [aria-current=page], .editorial-filters [aria-pressed=true] { background:#292520; color:#fff; }
[hidden] { display:none !important; }
.editorial-series-index { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr)); gap:2rem; margin-block:3rem; }
.editorial-series-index img { width:100%; aspect-ratio:3/2; object-fit:cover; border-radius:1rem; }
.editorial-series-index h2 { font-size:1.5rem; margin-block:.8rem; }
.post--video .video-container video { object-fit:contain; }
/* A filterable grid reflows hidden cards without gaps in masonry columns. */
.editorial-filter-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 2rem;
}

@media (max-width: 1099px) {
  .editorial-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 599px) {
  .editorial-filter-grid { grid-template-columns: minmax(0, 1fr); }
}

.editorial-series-section { margin-block:3rem; }
.editorial-series-section h2 { font-size:clamp(1.5rem,3vw,2rem); margin-bottom:.75rem; }
.editorial-series-section > p { max-width:60ch; margin-bottom:1.5rem; }
.post--video .video-container { width:100%; }
.post--video .video-container > * { display:none; }
.post--video .video-container > .editorial-lead-media { display:block; overflow:hidden; border-radius:24px; }
.post--video .video-container .kg-embed-card,
.post--video .video-container .kg-embed-card > div { width:100%; max-width:none; margin:0; padding:0 !important; height:auto; min-height:0; }
.post--video .video-container iframe { display:block; position:static !important; width:100% !important; height:auto !important; aspect-ratio:var(--video-ratio,16 / 9); border:0; }
.post--video .post-body { max-width:696px; }
.editorial-video-portrait { --video-ratio:9 / 16; }
.editorial-video-classic { --video-ratio:4 / 3; }
.editorial-video-portrait .video-container { max-width:min(100%,45svh); }
.editorial-video-classic .video-container { max-width:800px; }
.editorial-video-classic .post-body { max-width:60ch; }
.editorial-video-intro { margin-top:1.75rem; }


/* Approved 64px icon rail. Labels remain available to assistive technology. */
.editorial-icon-navigation { display:flex; flex:1; min-height:0; flex-direction:column; justify-content:center; align-items:center; gap:.375rem; }
.editorial-rail-link { position:relative; display:grid; place-items:center; width:40px; height:40px; border-radius:12px; color:var(--color-content-alt); }
.editorial-rail-link svg { width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.65; stroke-linecap:round; stroke-linejoin:round; }
.editorial-rail-link:hover, .editorial-rail-link[aria-current="page"] { background:var(--color-page-alt); }
.editorial-rail-link:focus-visible { outline:2px solid var(--color-content-alt); outline-offset:2px; }
.editorial-rail-label { position:absolute; left:calc(100% + 9px); top:50%; transform:translateY(-50%); padding:8px 12px; border-radius:7px; background:var(--color-content-alt); color:var(--color-page); font:500 12px/1.3 var(--editorial-sans); white-space:nowrap; pointer-events:none; visibility:hidden; opacity:0; }
.editorial-rail-label::before { content:''; position:absolute; left:-4px; top:calc(50% - 4px); width:8px; height:8px; background:inherit; transform:rotate(45deg); }
.editorial-rail-link:hover .editorial-rail-label, .editorial-rail-link:focus-visible .editorial-rail-label { visibility:visible; opacity:1; }
.editorial-series-cards > .post-card { margin-bottom:0; }

/* Welcome photo: wide desktop composition; separate image and text on phones. */
.welcome-hero { position:relative; isolation:isolate; display:grid; align-items:end; min-height:clamp(24rem,43vw,34rem); margin:1.5rem calc(-1 * var(--content-gutter)) 2rem; padding:clamp(1.5rem,5vw,5rem); background:#e7ded1; color:#211d18; }
.welcome-hero-picture { position:absolute; inset:0; z-index:-2; }
.welcome-hero-picture img { width:100%; height:100%; object-fit:cover; object-position:75% 40%; }
.welcome-hero:has(picture) { color:white; }
.welcome-hero:has(picture)::before { content:''; position:absolute; inset:0; z-index:-1; background:linear-gradient(90deg,rgba(22,18,13,.72),rgba(22,18,13,.15) 70%,transparent); }
.welcome-hero-copy { max-width:46rem; }
.welcome-hero h1 { max-width:20ch; color:inherit; }
.welcome-hero-description { margin-top:1.5rem; max-width:56ch; line-height:1.65; }
.welcome-hero-description p+p { margin-top:.75rem; }
@media(max-width:739px) {
  .welcome-hero { display:block; padding:0; min-height:0; background:var(--color-page); color:var(--color-content-alt); }
  .welcome-hero:has(picture) { color:var(--color-content-alt); }
  .welcome-hero:has(picture)::before { display:none; }
  .welcome-hero-picture { display:block; position:static; }
  .welcome-hero-picture img { display:block; width:100%; height:auto; aspect-ratio:4/5; object-fit:cover; object-position:75% 35%; }
  .welcome-hero-copy { padding:1.75rem var(--content-gutter) .75rem; }
  .welcome-hero-description { margin-top:1rem; }
}
/* Ordered grid supports an intentional two-column spotlight. */
.editorial-home-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); align-items:start; gap:2rem; }
.editorial-home-grid > .post-card { margin-bottom:0; }
.editorial-spotlight { grid-column:span 2; position:relative; isolation:isolate; overflow:hidden; border-radius:1.5rem; min-height:0; aspect-ratio:16/9; display:flex; align-items:end; padding:clamp(1.5rem,3vw,2.5rem); background:linear-gradient(140deg,#e5d7c0,#cdb29a); color:#241f1a; }
.editorial-spotlight > img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:-2; }
.editorial-spotlight-photo { color:white; }
.editorial-spotlight-photo::before { content:''; position:absolute; inset:0; z-index:-1; background:linear-gradient(transparent,rgba(20,17,13,.85)); }
.editorial-spotlight-cover { position:absolute; inset:0; z-index:1; border-radius:inherit; }
.editorial-spotlight-cover:focus-visible { outline:3px solid currentColor; outline-offset:-6px; }
.editorial-spotlight-tag { position:absolute; top:1rem; right:1rem; z-index:2; display:inline-flex; align-items:center; height:1.75rem; padding:0 .75rem; border-radius:2rem; font-size:.75rem; background:rgba(255,255,255,.85); color:#241f1a; }
.editorial-spotlight-photo .editorial-spotlight-tag { background:rgba(0,0,0,.55); color:white; }
.editorial-spotlight-copy { padding-top:2.5rem; }
.editorial-spotlight h2 { font-size:clamp(1.75rem,3vw,3.25rem); line-height:1.08; color:inherit; max-width:24ch; overflow-wrap:anywhere; }
.editorial-spotlight-copy p { margin-top:1rem; max-width:54ch; line-height:1.5; }
.editorial-spotlight time { display:block; margin-top:1rem; font-size:.8125rem; }
@media(max-width:1099px) { .editorial-home-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:599px) { .editorial-home-grid { grid-template-columns:minmax(0,1fr); } .editorial-spotlight { grid-column:auto; aspect-ratio:auto; min-height:25rem; } }
.editorial-footer { margin-top:4rem; border-top:1px solid var(--color-stroke); padding:2.5rem 0 3rem; }
.editorial-footer-grid { display:grid; grid-template-columns:minmax(0,1.5fr) 1fr 1fr; gap:3rem; }
.editorial-footer-brand { display:inline-flex; align-items:center; height:36px; }
.editorial-footer-brand img { height:28px; width:auto; max-width:200px; object-fit:contain; }
.editorial-footer-brand .display { font-size:24px; }
.editorial-footer-identity p { max-width:32ch; margin-top:1rem; color:var(--color-content-muted); font-size:.875rem; line-height:1.6; }
.editorial-footer h2 { font:600 .8125rem var(--editorial-sans); margin-bottom:1rem; }
.editorial-footer-grid > nav > a, .editorial-footer-links > a { display:block; width:fit-content; margin-block:.6rem; font-size:.875rem; color:var(--color-content-muted); }
.editorial-footer a:hover { text-decoration:underline; text-underline-offset:3px; }
.editorial-footer-bottom { display:flex; flex-wrap:wrap; gap:1rem 2rem; margin-top:2.5rem; padding-top:1.25rem; border-top:1px solid var(--color-stroke); font-size:.75rem; color:var(--color-content-muted); }
.editorial-footer-links { display:flex; flex-wrap:wrap; gap:1rem; }
@media(max-width:739px) { .editorial-footer-grid { grid-template-columns:1fr 1fr; gap:2rem; } .editorial-footer-identity { grid-column:1/-1; } }

.editorial-spotlight[data-editorial-gradient="2"] { background:linear-gradient(140deg,#e4ceca,#c9a29b); }
.editorial-spotlight[data-editorial-gradient="3"] { background:linear-gradient(140deg,#d6ddcb,#abb798); }
.editorial-spotlight[data-editorial-gradient="4"] { background:linear-gradient(140deg,#d5dfe1,#aab9bf); }

/* Consistent card dimensions and Reru's original gutters, including spans. */
:is(.editorial-home-grid,.editorial-filter-grid) { min-width:0; width:100%; gap:32px; }
:is(.editorial-home-grid,.editorial-filter-grid) > * { min-width:0; max-width:100%; box-sizing:border-box; margin:0; }
.editorial-packed { display:block !important; position:relative; }
.editorial-packed > :is(.post-card,.editorial-spotlight) { position:absolute; margin:0; }
.post-card { min-width:0; }
.post-card-title, .editorial-video-intro h1 { overflow-wrap:anywhere; }
.editorial-gradient-thumb { display:none; }
.post-card:not(.post-card-media) { --card-gradient:linear-gradient(140deg,#e5d7c0,#cdb29a); background:var(--card-gradient); }
.post-card[data-editorial-gradient="2"] { --card-gradient:linear-gradient(140deg,#e4ceca,#c9a29b); }
.post-card[data-editorial-gradient="3"] { --card-gradient:linear-gradient(140deg,#d6ddcb,#abb798); }
.post-card[data-editorial-gradient="4"] { --card-gradient:linear-gradient(140deg,#d5dfe1,#aab9bf); }
@media(min-width:600px) {
  .post-card-media > .post-card-image { display:block; width:100%; height:auto; aspect-ratio:3/2; object-fit:cover; }
  .post-card-media[data-image-orientation="portrait"] > .post-card-image { aspect-ratio:4/5; }
  .post-card-plate { min-height:12rem; }
}
.editorial-spotlight { min-width:0; max-width:100%; width:100%; container-type:inline-size; }
.editorial-spotlight-copy { min-width:0; max-width:100%; }
.editorial-spotlight h2 { font-size:clamp(1.75rem,5cqi,3.25rem); max-width:18ch; text-wrap:balance; }
.editorial-spotlight-copy p { overflow-wrap:anywhere; }
/* Wide search control; subdued pills; active selection reads at a glance. */
.editorial-filters { gap:12px; min-width:0; }
.editorial-filters a, .editorial-filters button { border:0; background:var(--color-page-alt); color:var(--color-content-alt); padding:10px 16px; line-height:1.25; flex-shrink:0; }
.editorial-filters [aria-current="page"], .editorial-filters [aria-pressed="true"] { background:var(--color-content-alt); color:var(--color-page); }
.editorial-primary-filters { flex-wrap:nowrap; align-items:center; }
.editorial-filter-options { display:flex; gap:12px; overflow-x:auto; min-width:0; padding:3px; }
.editorial-filters .editorial-search { display:flex; align-items:center; gap:10px; flex:0 0 220px; text-align:left; border:1px solid var(--color-stroke); background:var(--color-page); color:var(--color-content-muted); }
.editorial-search svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.7; }
.editorial-filters :is(a,button):focus-visible { outline:2px solid var(--color-content-alt); outline-offset:2px; }
@media(max-width:599px) {
  .editorial-primary-filters { flex-direction:column; align-items:stretch; }
  .editorial-filters .editorial-search { flex:0 0 auto; width:100%; min-height:44px; }
  .editorial-filter-options { width:100%; }
  :is(.editorial-home-grid,.editorial-filter-grid) { gap:24px; }
  .post-card, .post-card:not(.post-card-media), .post-card:not(.post-card-media)[data-editorial-gradient] { display:block; overflow:hidden; border-radius:22px; background:var(--card-gradient, var(--color-page-alt)); }
  .post-card-media > .post-card-image { display:block; width:100%; height:auto; block-size:auto; aspect-ratio:3/2; border-radius:0; object-fit:cover; }
  .post-card-media[data-image-orientation="portrait"] > .post-card-image { aspect-ratio:4/5; }
  .editorial-gradient-thumb { display:none; }
  .post-card-band, .post-card-scrim { display:block; }
  .post-card-body { position:absolute; inset:auto 0 0; padding:22px; background:none; }
  .post-card-media:has(.post-card-tag) .post-card-body { padding-top:22px; }
  .post-card .post-card-tag { display:inline-flex; position:absolute; inset:16px 16px auto auto; height:28px; min-height:0; max-width:calc(100% - 32px); padding:0 12px; font-size:11px; line-height:1; margin:0; background:rgba(0,0,0,.55); color:white; }
  .post-card .post-card-title { font:600 24px/1.12 var(--editorial-heading); letter-spacing:-.035em; }
  .post-card-media .post-card-title { color:white; }
  .post-card-plate { display:block; position:static; min-height:0; padding:70px 24px 26px; background:none; }
  .post-card-plate .post-card-tag { background:rgba(255,255,255,.8); color:#292520; }
  .post-card-plate .post-card-title { font-size:27px; color:#292520; }
  .post-card-plate .post-card-excerpt { display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; font-size:15px; line-height:1.55; margin-top:14px; color:#423b33; }
  .post-card-meta, .editorial-spotlight time { display:none; }
  .editorial-spotlight { min-height:0; aspect-ratio:4/4.4; padding:24px; }
  .editorial-spotlight h2 { font-size:34px; font-weight:600; line-height:1.08; letter-spacing:-.035em; }
  .editorial-spotlight p { font-size:14px; line-height:1.5; }

}
/* Restore the centered, inset compositions rather than stretch every post. */
.editorial-landscape-shell { display:grid; grid-template-columns:minmax(0,1fr); gap:24px 32px; max-width:1200px; margin:32px auto 0; align-items:start; }
.editorial-portrait-opening { display:flex; flex-direction:column; gap:32px; max-width:696px; margin:48px auto 0; padding-bottom:48px; border-bottom:1px solid var(--color-stroke); }
.editorial-portrait-opening .editorial-video-intro { margin-top:0; min-width:0; }
.editorial-reading-shell { display:grid; grid-template-columns:minmax(0,1fr); max-width:696px; margin:0 auto; gap:24px 48px; align-items:start; }
.editorial-landscape-shell > *, .editorial-reading-shell > * { min-width:0; }
.editorial-video-intro > .flex { flex-wrap:wrap; }
@media(min-width:1100px) {
  .editorial-landscape-shell { grid-template-columns:minmax(0,1fr) 320px; }
  .editorial-portrait-opening { max-width:1064px; flex-direction:row; gap:64px; align-items:center; }
  .editorial-portrait-opening .video-container { width:min(44%,45svh); flex-shrink:0; }
  .editorial-portrait-opening .editorial-video-intro { flex:1; }
  .editorial-reading-shell { max-width:1064px; grid-template-columns:minmax(0,696px) minmax(0,320px); }
}

/* Static pages keep a reading column; full-width editor cards reach the rail and viewport edges. */
#site-main:has(.editorial-page) { container-type:inline-size; }
.editorial-page > h1, .editorial-page > p { text-align:left; }
.editorial-page :is(h1,h2,h3,h4,h5,h6) { font-family:var(--editorial-heading); font-weight:700; letter-spacing:-.035em; }
.editorial-page .post-body > .kg-width-full {
  position:relative; inset-inline-start:auto; left:50%; transform:translateX(-50%);
  width:calc(100cqw + 2 * var(--content-gutter)); max-width:none;
  margin-inline:0; box-sizing:border-box;
}
.editorial-page .post-body > .kg-width-wide {
  position:relative; inset-inline-start:auto; left:50%; transform:translateX(-50%);
  width:min(820px,100cqw); max-width:none; margin-inline:0; box-sizing:border-box;
}

/* Desktop card heights share a landscape-row unit, including each intervening gutter. */
@media(min-width:600px) {
  .editorial-packed .post-card-media[data-image-orientation="portrait"] > .post-card-image {
    height:var(--editorial-portrait-height); aspect-ratio:auto;
  }
  .editorial-packed .editorial-spotlight { aspect-ratio:auto; }
}
@media(max-width:599px) {
  .editorial-spotlight[data-spotlight-shape="tall"] { aspect-ratio:4/5; }
}

/* Settings-driven navigation retains the original compact Reru rail. */
.site-sidebar > menu-nav { display:flex; flex:1; align-items:center; justify-content:center; width:100%; }
.editorial-primary-nav { display:flex; flex-direction:column; gap:6px; }
.editorial-primary-link { display:flex; width:40px; height:40px; align-items:center; justify-content:center; border-radius:12px; color:var(--color-content-alt); }
.editorial-primary-link:hover, .editorial-primary-link[aria-current="page"] { background:var(--color-page-alt); }
.editorial-primary-link:focus-visible { outline:2px solid currentColor; outline-offset:2px; }
.editorial-footer-links { flex-direction:column; align-items:flex-start; gap:0; }
.editorial-footer-link { display:flex; align-items:center; gap:.5rem; }

/* v18: image-first cards with a small format cue, using the existing Inter pills. */
.post-card-tag, .editorial-spotlight-tag { display:inline-flex; align-items:center; gap:6px; }
.editorial-video-indicator { display:inline-flex; align-items:center; justify-content:center; width:10px; height:10px; flex:0 0 10px; }
.editorial-video-indicator svg { display:block; width:10px; height:10px; fill:currentColor; stroke:none; }
.post-card { container-type:inline-size; }
.post-card .post-card-title { font-size:var(--editorial-photo-title-size, clamp(21px,8cqi,29px)); font-weight:650; line-height:1.12; letter-spacing:-.04em; }
.post-card-plate .post-card-title { font-size:var(--editorial-text-title-size, clamp(24px,9cqi,32px)); }
.post-card-plate .post-card-excerpt { font-family:var(--editorial-serif); font-size:16px; line-height:1.5; }
.post-card-meta { display:flex; }
.editorial-spotlight time { display:block; }
.editorial-spotlight h2 { font-size:clamp(30px,7cqi,48px); font-weight:650; line-height:1.08; letter-spacing:-.045em; }
.editorial-spotlight:not(.editorial-spotlight-photo) .editorial-spotlight-copy p { font-family:var(--editorial-serif); font-size:18px; }
.editorial-spotlight[data-editorial-gradient="2"] { background:linear-gradient(140deg,#e4ceca,#c9a29b); }
.editorial-spotlight[data-editorial-gradient="3"] { background:linear-gradient(140deg,#d6ddcb,#abb798); }
.editorial-spotlight[data-editorial-gradient="4"] { background:linear-gradient(140deg,#d5dfe1,#aab9bf); }
/* Five recommendations plus signup must remain reachable on short desktops. */
@media(min-width:1024px) { aside[aria-label="Keep reading"].editorial-aside-tall { position:static; } }
@media(min-width:1280px) { aside[aria-label="Featured and site info"].editorial-aside-tall { position:static; } }
@media(max-width:599px) {
  .post-card .post-card-title { font-size:26px; font-weight:650; }
  .post-card-plate .post-card-title { font-size:29px; }
  .post-card-plate .post-card-excerpt { font-size:16px; }
  .post-card .post-card-meta { display:flex; font-size:12px; margin-top:12px; }
  .editorial-spotlight h2 { font-size:36px; }
  .editorial-spotlight time { font-size:12px; margin-top:12px; }
}
/* Reserve tag and date space when a photograph carries a long headline. */
.post-card-media .post-card-title { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:3; overflow:hidden; }
@container (max-width:300px) {
  .post-card-media .post-card-title { -webkit-line-clamp:2; }
}

/* Category links share the Navigation group, including future tags. */
[data-category-footer] { display:contents; }
.editorial-footer [data-category-footer] > a { display:block; width:fit-content; margin-block:.6rem; font-size:.875rem; color:var(--color-content-muted); }
/* Mobile photo cards retain the readable light date used by the spotlight. */
@media(max-width:599px) {
  .post-card-media .post-card-meta,
  .post-card-media .post-card-meta time { color:rgba(255,255,255,.85); }
}
/* Advertise the active native scheme to browsers and automatic darkening tools. */
:root { color-scheme:light; }
:root[data-color-scheme="dark"] { color-scheme:dark; }

/* System mode advertises both schemes; manual choices advertise their chosen scheme. */
:root[data-color-scheme-preference="system"] { color-scheme:light dark; }
