:root {
  color-scheme: light;
  --surface: #fff;
  --page: #f5f2ec;
  --ink: #272323;
  --muted: #585252;
  --line: #dfdbd4;
  --mast: #fff;
  --mast-ink: #272323;
  --footer: #242027;
  --footer-ink: #f8f3e8;
  --button: #222022;
  --button-ink: #fff;
  --accent: #9b4040;
  --accent-ink: #28170b;
  --font: "Inter", system-ui, sans-serif;
  --display: "Instrument Serif", Georgia, serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--ink); font: 16px/1.65 var(--font); }
a { color: inherit; text-underline-offset: .23em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, summary:focus-visible { outline: 3px solid #4793ff; outline-offset: 4px; }
img { max-width: 100%; display: block; }
.wrap { width: min(1200px, calc(100% - 72px)); margin-inline: auto; }
.skip { position: absolute; left: 1rem; top: -5rem; z-index: 5; background: white; color: #141414; padding: .5rem 1rem; }
.skip:focus { top: 1rem; }
.mast { position: relative; z-index: 2; background: var(--mast); color: var(--mast-ink); border-bottom: 1px solid color-mix(in srgb, var(--mast-ink) 15%, var(--mast)); }
.mast-inner { min-height: 76px; display:flex; justify-content: space-between; gap: 20px; align-items: center; }
.brand-line,.identity { display:flex; gap: 12px; align-items: center; min-width:0; }
.identity { text-decoration: none; font-weight: 780; line-height: 1.1; letter-spacing: -.02em; overflow-wrap: anywhere; }
.identity img, .monogram { width: 40px; height: 40px; border-radius: 11px; flex: none; object-fit: cover; }
.monogram { display:grid; place-items:center; color: var(--button-ink); background:var(--button); font-weight: 850; }
.wide-menu ul,.compact-menu ul,.highlights { display:flex; flex-wrap:wrap; gap: 10px 22px; align-items:center; list-style:none; margin:0; padding:0; }
.wide-menu a,.compact-menu a { text-decoration:none; font-size: .87rem; font-weight: 660; }
.wide-menu a[aria-current], .compact-menu a[aria-current] { text-decoration: underline; text-underline-offset: .4em; }
.compact-menu { display:none; }
.action { display:inline-flex; align-items:center; gap:.6em; justify-content:center; border-radius: 6px; padding: .85rem 1.15rem; min-height: 44px; background:var(--button); color:var(--button-ink); font-size:.95rem; font-weight:770; line-height:1.2; text-align:center; text-decoration:none; width:fit-content; overflow-wrap:anywhere; }
.action:hover { filter:brightness(1.12); }
.action-small { padding:.58rem .72rem; font-size:.78rem; }
.hero-wrap { margin-top: 28px; }
.hero { position:relative; display:grid; overflow:hidden; isolation:isolate; min-width:0; border-radius: 18px; background: var(--surface); }
.hero-image { display:block; width:100%; height:100%; object-fit:cover; }
.hero-copy { position:relative; z-index:1; min-width:0; padding:clamp(28px,6vw,84px); }
.kicker { margin:0 0 1rem; text-transform:uppercase; font-size:.73rem; font-weight:800; letter-spacing:.17em; }
h1,h2,h3,p { overflow-wrap:anywhere; }
h1 { font: 600 clamp(2.2rem,6.1vw,5.2rem)/.99 var(--display); letter-spacing:-.035em; margin:0; }
.hero .lead { max-width: 52ch; font-size:clamp(1rem,2vw,1.21rem); line-height:1.6; margin:1.25rem 0 0; }
.hero-actions { margin-top:25px; }
.highlights { display:grid; grid-template-columns: repeat(auto-fit, minmax(min(135px,100%), 1fr)); gap:0; background:var(--surface); border:1px solid var(--line); border-radius:12px; margin:16px 0 0; padding:13px 8px; }
.highlights li { text-align:center; font-weight:760; padding:6px; font-size:.86rem; overflow-wrap:anywhere; }
.highlights li + li { border-left:1px solid var(--line); }
.topic-group { margin-block: 46px; }
.topic-group h2 { font: 600 clamp(2rem,4vw,3.2rem)/1 var(--display); margin:0 0 17px; }
.topic-cards { display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:13px; }
.topic-card { position:relative; display:flex; flex-direction:column; padding:15px 34px 18px 15px; background:var(--surface); border:1px solid var(--line); border-radius:10px; text-decoration:none; overflow-wrap:anywhere; font-weight:780; line-height:1.3; }
.topic-card:hover { border-color:var(--accent); }
.topic-card small { color:var(--muted); font-weight:450; margin-top:8px; line-height:1.5; }
.card-arrow { position:absolute; right:12px; top:14px; color:var(--muted); }
.intro { padding-block: 32px 0; }
.intro h1 { font-size:clamp(2.3rem,5.5vw,4.4rem); max-width: 22ch; }
.intro p { color:var(--muted); font-size:1.05rem; max-width:62ch; margin:16px 0 0; }
.breadcrumb { display:flex; flex-wrap:wrap; gap:7px; color:var(--muted); font-size:.85rem; margin-bottom:17px; }
.article-shell { display:grid; grid-template-columns:minmax(0, 1fr) minmax(180px, .32fr); gap:clamp(20px,4vw,48px); align-items:start; margin-block:38px 63px; scroll-margin-top:1rem; }
.article { min-width:0; background:var(--surface); border:1px solid var(--line); border-radius:12px; padding:clamp(19px,4vw,47px); }
.article-body { max-width:72ch; }
.article-body > :first-child { margin-top:0; }
.article-body > :last-child { margin-bottom:0; }
.article h2 { font: 600 clamp(1.8rem,3vw,2.55rem)/1.14 var(--display); margin:1.3em 0 .45em; }
.article h3 { font-size:1.2rem; margin:1.5em 0 .5em; }
.article li+li,.article-side li+li,.footer li+li { margin-top:6px; }
.article h2,.article h3 { scroll-margin-top:1rem; }
.table-wrap { overflow-x:auto; margin-block:22px; }
table { border-collapse:collapse; min-width:100%; font-size:.92rem; }
th,td { border-bottom:1px solid var(--line); padding:10px 13px; text-align:left; }
th { background:var(--page); }
.article-side nav { padding:17px; background:var(--surface); border:1px solid var(--line); border-radius:12px; font-size:.91rem; }
.article-side nav+nav { margin-top:12px; }
.article-side ol,.article-side ul { padding-left:18px; margin:.65rem 0 0; }
.sources { border-top:1px solid var(--line); margin-top:2rem; }
.sources h2 { font-size:1.6rem; }
.footer { color:var(--footer-ink); background:var(--footer); padding:37px 0 21px; }
.footer h2 { font-size:.86rem; margin:0 0 9px; }
.footer p,.footer li { font-size:.87rem; overflow-wrap:anywhere; }
.footer ul { list-style:none; padding:0; margin:0; }
.footer a:not(.action) { text-underline-offset:.25em; }
.foot-grid { display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:32px; }
.foot-identity .action { margin-top:.5rem; }
.foot-note { margin:26px 0 0; padding-top:10px; border-top:1px solid color-mix(in srgb,var(--footer-ink) 24%,var(--footer)); }
[data-theme=cinema] {
  --page:#111216; --surface:#1b1c23; --ink:#f8f4eb; --muted:#cdc6bb; --line:#38343a;
  --mast:#15151a; --mast-ink:#fff8eb; --footer:#0d0d11; --button:#ffc875; --button-ink:#261603;
  --display:"Playfair Display",Georgia,serif; color-scheme:dark;
}
[data-theme=cinema] .hero { min-height:460px; align-items:center; background:#321015; }
[data-theme=cinema] .hero.has-media::after { content:""; position:absolute; inset:0; background:linear-gradient(90deg,#200a14 1%,#200a14de 31%,#290c15a6 53%,#290c1508 100%); z-index:0; }
[data-theme=cinema] .hero-image { position:absolute; inset:0; object-position:73% center; }
[data-theme=cinema] .hero-copy { max-width: 720px; }
[data-theme=cinema] .kicker { color:var(--accent); }
[data-theme=cinema] .highlights { border-top:2px solid var(--accent); }
[data-theme=journal] { --mast:#f7f2e9; --page:#f7f2e9; --button:#782c22; --footer:#321f1a; --display:"Instrument Serif", Georgia, serif; }
[data-theme=journal] .mast-inner { flex-wrap:wrap; padding:14px 0; }
[data-theme=journal] .hero { grid-template-columns: .9fr 1.15fr; border-radius:0; background:#ede4d5; }
[data-theme=journal] .hero:not(.has-media) { grid-template-columns:1fr; }
[data-theme=journal] .hero-image { order:2; min-height:360px; object-position:72% center; }
[data-theme=journal] .hero-copy { padding:clamp(24px,3vw,42px); align-self:center; }
[data-theme=journal] .hero h1 { font-size:clamp(2.2rem,4vw,3.8rem); line-height:1.03; }
[data-theme=journal] .kicker { color:#702b23; }
[data-theme=journal] .article { border:0; border-radius:0; border-top:3px solid var(--accent); }
[data-theme=journal] .article-shell { grid-template-columns:minmax(170px,.3fr) minmax(0,1fr); }
[data-theme=journal] .article-side { grid-column:1; grid-row:1; }
[data-theme=journal] .article { grid-column:2; }
[data-theme=journal] .topic-card { border-radius:0; border-top:2px solid var(--accent); }
[data-theme=mobile] {
  --mast:#092c28; --mast-ink:#effcf6; --page:#e9f3ee; --surface:#fff;
  --ink:#152e25; --muted:#446056; --line:#cbdfd5; --footer:#092c28;
  --button:#103e33; --button-ink:#fff; --display:"Manrope",system-ui,sans-serif;
}
[data-theme=mobile] .hero { position:relative; min-height:390px; grid-template-columns:1.15fr 1fr; background:#0f3d33; color:#f7fff9; }
[data-theme=mobile] .hero:not(.has-media) { grid-template-columns:1fr; }
[data-theme=mobile] .hero-image { order:2; object-position:68% center; min-height:330px; }
[data-theme=mobile] .hero-copy { align-self:center; padding:clamp(27px,5vw,60px); }
[data-theme=mobile] .hero h1 { font-size:clamp(2.45rem,5.3vw,4.8rem); font-weight:800; }
[data-theme=mobile] .hero .action,[data-theme=mobile] .mast .action { background:#8cf4d3; color:#102f27; }
[data-theme=mobile] .kicker { color:#b4f8e1; }
[data-theme=mobile] .highlights { border-radius:40px; }
[data-theme=mobile] .topic-cards { grid-template-columns:repeat(2,minmax(0,1fr)); }
[data-theme=mobile] .topic-card { border-radius:19px; padding-block:20px; }
[data-theme=directory] {
  --mast:#f2f1fa; --page:#f2f1fa; --surface:#fff; --ink:#282550; --muted:#544e72; --line:#e0ddf1;
  --footer:#292451; --button:#493bad; --display:"Inter",system-ui,sans-serif;
}
[data-theme=directory] .hero { grid-template-columns:.78fr 1.3fr; border-radius:4px 35px 4px 35px; border:1px solid var(--line); }
[data-theme=directory] .hero:not(.has-media) { grid-template-columns:1fr; }
[data-theme=directory] .hero-image { min-height:330px; object-position:65% center; }
[data-theme=directory] .hero-copy { padding:clamp(24px,5vw,64px); align-self:center; }
[data-theme=directory] .hero h1 { font-size:clamp(2.1rem,5vw,4.7rem); font-weight:800; }
[data-theme=directory] .article-side { grid-column:1; grid-row:1; }
[data-theme=directory] .article { grid-column:2; }
[data-theme=directory] .article-shell { grid-template-columns:minmax(170px,.32fr) minmax(0,1fr); }
[data-theme=directory] .topic-card { border-left:4px solid var(--accent); }
[data-theme=sunset] {
  --page:#241416; --surface:#3a1d1f; --ink:#fff4e1; --muted:#e4c7b1; --line:#694348;
  --mast:#351719; --mast-ink:#fff4e1; --footer:#160c0e; --button:#ffb45e; --button-ink:#351719;
  --display:"Baskervville",Georgia,serif; color-scheme:dark;
}
[data-theme=sunset] .hero { min-height:440px; align-items:end; background:#572327; border-radius:5px 34px 5px 34px; }
[data-theme=sunset] .hero.has-media::after { content:""; position:absolute; inset:0; background:#2d1115b8; z-index:0; }
[data-theme=sunset] .hero-image { position:absolute; inset:0; object-position:70% center; }
[data-theme=sunset] .hero-copy { max-width:760px; }
[data-theme=sunset] .kicker { color:#ffd18d; }
[data-theme=sunset] .topic-card { background:#4a2327; border-color:#75494d; }
[data-theme=arcade] {
  --page:#090c18; --surface:#131a2b; --ink:#f4f7ff; --muted:#b8c1dd; --line:#2d3a5b;
  --mast:#0d1221; --mast-ink:#f4f7ff; --footer:#070912; --button:#ff6b9c; --button-ink:#230b1a;
  --display:"Barlow Semi Condensed",system-ui,sans-serif; color-scheme:dark;
}
[data-theme=arcade] .hero { min-height:430px; align-items:center; background:#18233d; border:1px solid #3a4d7a; box-shadow:9px 9px 0 #ff6b9c; }
[data-theme=arcade] .hero.has-media::after { content:""; position:absolute; inset:0; background:#0e1425a8; z-index:0; }
[data-theme=arcade] .hero-image { position:absolute; inset:0; object-position:72% center; }
[data-theme=arcade] .kicker { color:#6ee7ff; }
[data-theme=arcade] .topic-card { border-radius:3px; background:#151e35; }
[data-theme=arcade] .topic-cards { grid-template-columns:repeat(2,minmax(0,1fr)); }
[data-theme=arcade] .topic-card { min-height:100px; border-left:4px solid var(--accent); }
[data-theme=atlas] {
  --page:#eef5f5; --surface:#fff; --ink:#173943; --muted:#4e6b73; --line:#c9dfe3;
  --mast:#fff; --mast-ink:#173943; --footer:#173943; --footer-ink:#eef8f7; --button:#236c81; --button-ink:#fff;
  --display:"Source Serif 4",Georgia,serif;
}
[data-theme=atlas] .hero { grid-template-columns:1.2fr .8fr; border:1px solid var(--line); border-radius:6px; }
[data-theme=atlas] .hero-image { order:2; min-height:350px; object-position:70% center; }
[data-theme=atlas] .hero-copy { align-self:center; padding:clamp(25px,5vw,68px); }
[data-theme=atlas] .hero h1 { font-size:clamp(2.25rem,5.4vw,4.9rem); }
[data-theme=atlas] .topic-card { border-radius:5px; box-shadow:0 5px 0 #d7e8eb; }
[data-theme=atlas] .topic-index, [data-theme=directory] .topic-index { display:grid; grid-template-columns:minmax(150px,.3fr) minmax(0,1fr); gap:24px; align-items:start; }
[data-theme=atlas] .topic-index .topic-cards, [data-theme=directory] .topic-index .topic-cards { grid-template-columns:repeat(2,minmax(0,1fr)); }
[data-theme=lounge] {
  --page:#f3efe7; --surface:#fffdf8; --ink:#263b2d; --muted:#617064; --line:#d9e0d6;
  --mast:#fdfbf5; --mast-ink:#263b2d; --footer:#263b2d; --footer-ink:#f5f0e6; --button:#315c47; --button-ink:#fff;
  --display:"Cormorant Garamond",Georgia,serif;
}
[data-theme=lounge] .hero { grid-template-columns:.95fr 1.05fr; border-radius:20px; border:1px solid var(--line); }
[data-theme=lounge] .hero-image { order:2; min-height:350px; object-position:67% center; }
[data-theme=lounge] .hero-copy { align-self:center; padding:clamp(27px,5vw,68px); }
[data-theme=lounge] .hero h1 { font-size:clamp(2.55rem,5.7vw,5.1rem); }
[data-theme=lounge] .topic-card { border-radius:18px; }
[data-theme=signal] {
  --page:#eff4f7; --surface:#fff; --ink:#152f47; --muted:#587084; --line:#d2e0e8;
  --mast:#0f3658; --mast-ink:#fff; --footer:#0f3658; --footer-ink:#eef7ff; --button:#e88436; --button-ink:#fff;
  --display:"Barlow",system-ui,sans-serif;
}
[data-theme=signal] .hero { grid-template-columns:1fr 1fr; background:#dfeef6; border-radius:0 28px 0 28px; }
[data-theme=signal] .hero-image { order:2; min-height:340px; object-position:70% center; }
[data-theme=signal] .hero-copy { align-self:center; padding:clamp(25px,4vw,60px); }
[data-theme=signal] .hero h1 { font-weight:800; }
[data-theme=signal] .topic-card { border-top:4px solid var(--accent); }
[data-theme=ledger] {
  --page:#f1eadf; --surface:#fffaf1; --ink:#3b2d28; --muted:#735d53; --line:#ded0c0;
  --mast:#fffaf1; --mast-ink:#3b2d28; --footer:#3b2d28; --footer-ink:#fff8eb; --button:#8e5b47; --button-ink:#fff8eb;
  --display:"Newsreader",Georgia,serif;
}
[data-theme=ledger] .hero { grid-template-columns:1fr; border-top:5px solid var(--accent); border-radius:0; }
[data-theme=ledger] .hero-image { max-height:300px; object-position:center 45%; }
[data-theme=ledger] .hero-copy { max-width:820px; padding:clamp(26px,5vw,70px); }
[data-theme=ledger] .hero h1 { font-size:clamp(2.35rem,5.5vw,5rem); }
[data-theme=ledger] .article { border-radius:0; box-shadow:0 1px 0 var(--line); }
@media(max-width:980px) {
  .wide-menu { display:none; }
  .compact-menu { display:block; flex:none; }
  .compact-menu summary { cursor:pointer; list-style:none; border:1px solid currentColor; border-radius:6px; padding:7px 10px; font-size:.82rem; }
  .compact-menu summary::-webkit-details-marker { display:none; }
  .hamburger { display:inline-block; width:12px; height:8px; border-block:1px solid currentColor; margin-right:4px; }
  .compact-menu nav { position:absolute; top:100%; left:0; right:0; padding:14px 20px; background:var(--mast); border-bottom:1px solid var(--line); box-shadow:0 12px 20px #0002; }
  .compact-menu ul { display:grid; gap:3px; }
  .compact-menu a { display:block; padding:7px; }
  .topic-cards { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:640px) {
  .wrap { width:calc(100% - 32px); }
  .mast-inner { min-height:64px; gap:7px; }
  .brand-line,.identity { gap:7px; }
  .identity img,.monogram { width:34px; height:34px; border-radius:8px; }
  .mast .identity { font-size:.9rem; }
  .mast .action-small { font-size:.78rem; padding:7px; min-height:40px; }
  .hero-wrap { margin-top:16px; }
  .hero-copy { padding:25px 19px; }
  [data-theme=cinema] .hero { min-height:420px; align-items:end; }
  [data-theme=cinema] .hero.has-media::after { background:linear-gradient(0deg,#200a14 6%,#200a14f2 42%,#200a1448 93%); }
  [data-theme=cinema] .hero-image { object-position:73% top; }
  [data-theme=journal] .hero,[data-theme=mobile] .hero,[data-theme=directory] .hero,[data-theme=atlas] .hero,[data-theme=lounge] .hero,[data-theme=signal] .hero { grid-template-columns:minmax(0,1fr); }
  [data-theme=journal] .hero-image,[data-theme=mobile] .hero-image,[data-theme=directory] .hero-image,[data-theme=atlas] .hero-image,[data-theme=lounge] .hero-image,[data-theme=signal] .hero-image { order:0; height:180px; min-height:0; }
  [data-theme=arcade] .hero { box-shadow:5px 5px 0 #ff6b9c; }
  [data-theme=sunset] .hero { min-height:420px; }
  [data-theme=ledger] .hero { grid-template-columns:minmax(0,1fr); }
  [data-theme=ledger] .hero-image { height:180px; min-height:0; }
  [data-theme=directory] .hero-image { object-position:center 45%; }
  [data-theme=journal] .hero h1,[data-theme=mobile] .hero h1,[data-theme=directory] .hero h1 { font-size:clamp(2.15rem,10vw,3.1rem); }
  .topic-group { margin-block:31px; }
  .topic-card { padding:11px 24px 12px 10px; }
  .topic-card small { font-size:.75rem; }
  .card-arrow { right:7px; top:10px; }
  .article-shell,[data-theme=directory] .article-shell,[data-theme=journal] .article-shell { grid-template-columns:minmax(0,1fr); gap:13px; margin-block:24px 38px; }
  [data-theme=directory] .article-side,[data-theme=directory] .article,[data-theme=journal] .article-side,[data-theme=journal] .article { grid-column:auto; grid-row:auto; }
  [data-theme=atlas] .topic-index,[data-theme=directory] .topic-index { grid-template-columns:minmax(0,1fr); gap:0; }
  .foot-grid { grid-template-columns:1fr 1fr; gap:22px; }
  .foot-identity { grid-column:1 / -1; }
}
@media(prefers-reduced-motion:reduce) {
  *,*::after,*::before { scroll-behavior:auto!important; animation:none!important; transition:none!important; }
}

/* Optional site palette, applied independently of the layout. */
[data-palette=dark] { --page:#111216; --surface:#1d1e25; --ink:#f8f4eb; --muted:#d4cdc1; --line:#454149; color-scheme:dark; }
[data-palette=light] { --page:#fff; --surface:#f8f8f7; --ink:#202328; --muted:#545b62; --line:#dce0e2; color-scheme:light; }
[data-palette=cream] { --page:#f6f0e5; --surface:#fffaf1; --ink:#352d28; --muted:#6b5c50; --line:#e3d6c5; color-scheme:light; }
[data-palette=natural] { --page:#edf1e8; --surface:#fbfcf8; --ink:#273a2c; --muted:#536457; --line:#d4dfd0; color-scheme:light; }
[data-palette]:not([data-palette=""]) .topic-card { background:var(--surface); border-color:var(--line); }
[data-palette=dark] .hero:not(.has-media) { color:var(--ink); }
[data-theme=cinema] .hero, [data-theme=sunset] .hero, [data-theme=arcade] .hero, [data-theme=mobile] .hero { color:#fff8ef; }
[data-theme=journal] .hero { color:#272323; }
.byline { color:var(--muted); font-size:.88rem; margin:0 0 1.5rem; }
.article-image { margin:1.75rem 0 2rem; overflow:hidden; border-radius:12px; background:var(--page); }
.article-image img { width:100%; max-height:420px; object-fit:contain; }
.article-image.page-art { margin-block:2.4rem; border:1px solid var(--line); box-shadow:0 12px 30px #142d2414; }
.article-image.page-art img { width:100%; aspect-ratio:16 / 9; max-height:none; object-fit:cover; }
.fact-table { margin:1.8rem 0 2.2rem; }
.fact-table h2 { margin-bottom:.7rem; }

[data-theme] .hero:not(.has-media) { grid-template-columns:minmax(0, 1fr); }
[data-theme] .hero:not(.has-media) .hero-copy { max-width:900px; }

/* Keep the primary action aligned with the title on wide screens. */
.hero-copy {
  display:grid;
  grid-template-areas: "kicker" "title" "lead" "action";
  grid-template-columns:minmax(0, 1fr);
}
.hero-copy .kicker { grid-area:kicker; }
.hero-copy h1 { grid-area:title; min-width:0; }
.hero-copy .hero-actions { grid-area:action; justify-self:start; margin-top:22px; }
.hero-copy .lead { grid-area:lead; }

@media (min-width:981px) {
  [data-theme] .hero .hero-copy,
  [data-theme] .hero:not(.has-media) .hero-copy {
    grid-column:1 / -1;
    max-width:none;
    grid-template-areas: "kicker" "title" "lead" "action";
    grid-template-columns:minmax(0, 1fr);
    column-gap:0;
  }
  .hero-copy .hero-actions { justify-self:start; align-self:start; max-width:300px; margin:1.25rem 0 0; }
  .hero-copy .action { max-width:100%; min-height:62px; padding:1.08rem 1.7rem; font-size:1.08rem; }

  /* Split-image layouts keep the image at the right behind the action. */
  [data-theme=journal] .hero.has-media,
  [data-theme=mobile] .hero.has-media,
  [data-theme=directory] .hero.has-media,
  [data-theme=atlas] .hero.has-media,
  [data-theme=lounge] .hero.has-media,
  [data-theme=signal] .hero.has-media {
    grid-template-columns:minmax(0, 1fr);
    min-height:350px;
  }
  [data-theme=journal] .hero.has-media .hero-image,
  [data-theme=mobile] .hero.has-media .hero-image,
  [data-theme=directory] .hero.has-media .hero-image,
  [data-theme=atlas] .hero.has-media .hero-image,
  [data-theme=lounge] .hero.has-media .hero-image,
  [data-theme=signal] .hero.has-media .hero-image {
    position:absolute;
    inset:0 0 0 auto;
    width:50%;
    height:100%;
    min-height:0;
  }
  [data-theme=journal] .hero.has-media .hero-copy,
  [data-theme=mobile] .hero.has-media .hero-copy,
  [data-theme=directory] .hero.has-media .hero-copy,
  [data-theme=atlas] .hero.has-media .hero-copy,
  [data-theme=lounge] .hero.has-media .hero-copy,
  [data-theme=signal] .hero.has-media .hero-copy {
    align-self:stretch;
    align-content:center;
    background:linear-gradient(90deg, var(--hero-copy-surface, var(--surface)) 0%, var(--hero-copy-surface, var(--surface)) 60%, transparent 88%);
  }
  [data-theme=journal] .hero { --hero-copy-surface:#ede4d5; }
  [data-theme=mobile] .hero { --hero-copy-surface:#0f3d33; }
  [data-theme=signal] .hero { --hero-copy-surface:#dfeef6; }
}

/* Keep the hero action on the opposite side of the header action on desktop. */
@media (min-width:981px) {
  .hero-copy { grid-template-areas: "kicker kicker" "title action" "lead action"; grid-template-columns:minmax(0,1fr) auto; column-gap:28px; }
  .hero-copy .hero-actions { justify-self:end; align-self:center; margin:0; }
  .hero-copy .hero-actions .action { min-width:190px; }
}

@media (max-width:980px) {
  .hero-copy { grid-template-areas: "kicker" "title" "lead" "action"; grid-template-columns:minmax(0,1fr); }
  .hero-copy .hero-actions { justify-self:start; }
}

@media (min-width:641px) and (max-width:980px) {
  [data-theme=journal] .hero,
  [data-theme=mobile] .hero,
  [data-theme=directory] .hero,
  [data-theme=atlas] .hero,
  [data-theme=lounge] .hero,
  [data-theme=signal] .hero { grid-template-columns:minmax(0, 1fr); }
  [data-theme=journal] .hero-image,
  [data-theme=mobile] .hero-image,
  [data-theme=directory] .hero-image,
  [data-theme=atlas] .hero-image,
  [data-theme=lounge] .hero-image,
  [data-theme=signal] .hero-image { order:0; height:260px; min-height:0; }
}

@media (min-width:981px) {
  [data-theme=journal] .hero.has-media,
  [data-theme=mobile] .hero.has-media,
  [data-theme=directory] .hero.has-media,
  [data-theme=atlas] .hero.has-media,
  [data-theme=lounge] .hero.has-media,
  [data-theme=signal] .hero.has-media { grid-template-columns:minmax(0, 1fr) minmax(0, .9fr); }
  [data-theme=journal] .hero.has-media .hero-copy,
  [data-theme=mobile] .hero.has-media .hero-copy,
  [data-theme=directory] .hero.has-media .hero-copy,
  [data-theme=atlas] .hero.has-media .hero-copy,
  [data-theme=lounge] .hero.has-media .hero-copy,
  [data-theme=signal] .hero.has-media .hero-copy {
    grid-column:1;
    grid-template-areas:"kicker" "title" "lead" "action";
    grid-template-columns:minmax(0, 1fr);
    column-gap:0;
    background:var(--hero-copy-surface, var(--surface));
  }
  [data-theme=journal] .hero.has-media .hero-image,
  [data-theme=mobile] .hero.has-media .hero-image,
  [data-theme=directory] .hero.has-media .hero-image,
  [data-theme=atlas] .hero.has-media .hero-image,
  [data-theme=lounge] .hero.has-media .hero-image,
  [data-theme=signal] .hero.has-media .hero-image { width:47.4%; object-position:center; }
  [data-theme=sunset] .hero.has-media::after { background:linear-gradient(90deg,#2d1115 0%,#2d1115e8 35%,#2d111544 75%,transparent 100%); }
  [data-theme=arcade] .hero.has-media::after { background:linear-gradient(90deg,#0e1425 0%,#0e1425e8 35%,#0e142544 75%,transparent 100%); }
}

/* Keep the product name prominent without letting a long game title dominate the page. */
@media (min-width:981px) {
  [data-theme] .hero h1 { font-size:clamp(2.1rem, 3.8vw, 3.7rem); line-height:1.05; }
}

@media (max-width:980px) {
  [data-theme] .hero h1 { font-size:clamp(2rem, 8vw, 3rem); line-height:1.06; }
}

@media (min-width:981px) {
  [data-theme] .hero .hero-copy,
  [data-theme] .hero.has-media .hero-copy {
    grid-template-areas: "kicker kicker" "title action" "lead action";
    grid-template-columns:minmax(0,1fr) auto;
    column-gap:28px;
  }
  [data-theme] .hero .hero-copy .hero-actions,
  [data-theme] .hero.has-media .hero-copy .hero-actions {
    justify-self:end;
    align-self:center;
    margin:0;
  }
}
