:root {
  color-scheme: dark;
  --paper: #101929;
  --ink: #f4f6fb;
  --muted: #b4c2d8;
  --rule: #334257;
  --link: #adcaff;
  --accent: #f3c486;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 22px; }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.62; }
a { color: var(--link); text-underline-offset: .21em; text-decoration-thickness: 1px; }
a:hover { color: #fff; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
.wrap { width: min(1140px, calc(100% - 64px)); margin: auto; }
.skip { position: absolute; top: -6em; left: 1em; padding: .5em; background: #142744; z-index: 1; }
.skip:focus { top: .5em; }
.topbar, .topbar nav, .trail, .foot nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.topbar { justify-content: space-between; border-bottom: 1px solid var(--rule); padding-block: 18px; }
.topbar nav { font-size: .91rem; }
.topbar a, .foot a { text-decoration: none; }
.brand { color: var(--ink); font-size: 1.35rem; font-weight: 750; letter-spacing: -.03em; }
.brand span { color: #87aaf1; margin-right: .2em; }
.trail { gap: .6em; margin: 26px 0; color: var(--muted); font-size: .84rem; }
.trail a { color: inherit; }
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px,4vw,58px); align-items: center; padding: 8px 0 40px; }
h1, h2, h3 { color: var(--ink); line-height: 1.16; text-wrap: balance; }
h1 { font-size: clamp(2.1rem,4.05vw,3.72rem); letter-spacing: -.043em; margin: 0 0 .36em; }
.lead { color: #d9e4f3; font-size: clamp(1.04rem,1.4vw,1.22rem); line-height: 1.5; margin: 0; }
.byline { color: var(--muted); font-size: .85rem; margin: 18px 0 0; }
.cover { margin: 0; }
.cover img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; display: block; border-radius: 10px; }
.layout { display: grid; grid-template-columns: minmax(195px, .78fr) minmax(0, 2.3fr); gap: clamp(30px,6vw,90px); align-items: start; border-top: 1px solid var(--rule); padding: 42px 0 65px; }
.contents { position: sticky; top: 24px; padding-bottom: 18px; }
.contents p { font-size: .96rem; font-weight: 700; margin: 0 0 11px; }
.contents a { display: block; width: fit-content; font-size: .92rem; line-height: 1.4; color: var(--muted); margin: 0 0 11px; }
.story { max-width: 730px; }
.story section + section { margin-top: 2.8rem; }
h2 { font-size: clamp(1.55rem,2.7vw,2.15rem); letter-spacing: -.028em; margin: 0 0 .65em; }
.story p, .story li, .story dd { font-size: 1.05rem; color: #d6dfed; }
.story p { margin: .75em 0; }
dl { margin: 1.2rem 0 0; }
dt { font-weight: 700; margin: .9em 0 .12em; }
dd { margin: 0; }
ol, ul { padding-left: 1.35em; }
li { margin: .55em 0; padding-left: .22em; }
li::marker { color: var(--accent); }
blockquote { margin: 1.2rem 0; background: #19263a; border-left: 3px solid var(--accent); padding: .65rem 1.15rem; }
.related { border-top: 1px solid var(--rule); padding-top: 1.4rem; }
.foot { border-top: 1px solid var(--rule); display: flex; align-items: center; justify-content: space-between; padding-block: 25px; color: var(--muted); gap: 20px; flex-wrap: wrap; font-size: .87rem; }
@media (max-width: 810px) {
  .wrap { width: min(690px, calc(100% - 36px)); }
  .hero, .layout { grid-template-columns: 1fr; gap: 20px; }
  .hero { padding-bottom: 25px; }
  .layout { padding-top: 22px; }
  .contents { position: static; border-bottom: 1px solid var(--rule); }
  .contents a { margin-bottom: 8px; }
  .story section + section { margin-top: 2.2rem; }
}
@media (max-width: 440px) {
  .topbar, .topbar nav, .foot nav { gap: 12px; }
  .topbar nav { font-size: .82rem; }
  .trail { font-size: .78rem; margin-block: 18px; }
}
