:root {
  --ink: #112b42;
  --paper: #f8f5ec;
  --muted: #516570;
  --teal: #006c62;
  --mint: #82e9c7;
  --rule: #cdd8d1;
  color: var(--ink);
  background: var(--paper);
  font: 100%/1.7 'DM Sans', system-ui, 'PingFang SC', 'Microsoft YaHei', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; overflow-wrap: break-word; }
a { color: var(--teal); text-underline-offset: .23em; }
:focus-visible { outline: 3px solid #ce7622; outline-offset: 3px; }
img, svg { max-width: 100%; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.035em; text-wrap: balance; }
h1 { font-size: clamp(2.35rem, 5vw, 5rem); margin: .25em 0; }
h2 { font-size: clamp(1.6rem, 3vw, 2.75rem); }
.wrap { width: min(74rem, calc(100% - clamp(2rem, 8vw, 7rem))); margin-inline: auto; }
body > header { border-bottom: 1px solid var(--rule); }
header .wrap, nav, .actions, .foot { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem 1.4rem; }
header .wrap { justify-content: space-between; padding-block: 1rem; }
.brand { display: inline-flex; gap: .65rem; align-items: center; color: inherit; font-weight: 800; font-size: 1.15rem; text-decoration: none; }
.brand::before { content: ''; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: radial-gradient(circle, var(--teal) 24%, transparent 26% 49%, var(--teal) 51% 61%, transparent 63%); }
nav a { color: inherit; text-decoration: none; padding-block: .45rem; }
nav a:hover, nav [aria-current='page'] { text-decoration: underline .15em; text-decoration-color: var(--teal); }
.hero { padding-block: clamp(3rem, 7vw, 7rem); }
.hero:has(> .visual), .hero > .wrap:has(> .visual) { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: clamp(2rem, 5vw, 5rem); }
.eyebrow { display: flex; gap: .65rem; align-items: center; color: var(--teal); font: 700 .8rem/1.5 'IBM Plex Mono', monospace; letter-spacing: .12em; }
.eyebrow::before { content: ''; width: 2rem; border-top: 3px solid currentColor; }
.actions { margin-top: 1.6rem; }
.btn, .popup-shop-btn { display: inline-flex; justify-content: center; align-items: center; min-height: 2.85rem; padding: .55rem 1.35rem; border: 1px solid transparent; border-radius: .55rem; color: white; background: var(--teal); font-weight: 700; text-decoration: none; }
.actions .btn + .btn { color: var(--ink); border-color: var(--rule); background: transparent; }
.btn:hover, .popup-shop-btn:hover { text-decoration: underline; }
.visual { position: relative; isolation: isolate; overflow: hidden; min-height: clamp(15rem, 31vw, 27rem); color: var(--mint); border: 1px solid #284956; border-radius: 1.5rem; box-shadow: 0 1rem 2rem #112b4217; background-color: var(--ink); background-image: radial-gradient(ellipse at top right, #25797066, transparent 64%), radial-gradient(#90dfce48 1px, transparent 1px); background-size: auto, 18px 18px; }
.route-map { position: absolute; inset: 12% 8%; width: 84%; height: 76%; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 200' preserveAspectRatio='none'%3E%3Cg fill='none' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M0 150H90L170 70H305L360 15H400' stroke='%2382e9c7' stroke-width='4'/%3E%3Cpath d='M0 40H65L150 125H270L320 75H400' stroke='%235a98af' stroke-width='3'/%3E%3C/g%3E%3Cg fill='%23112b42' stroke='%23dcf9df' stroke-width='3'%3E%3Ccircle cx='90' cy='150' r='6'/%3E%3Ccircle cx='170' cy='70' r='6'/%3E%3Ccircle cx='305' cy='70' r='6'/%3E%3Ccircle cx='270' cy='125' r='5'/%3E%3C/g%3E%3C/svg%3E") center/100% 100% no-repeat; }
.station { position: relative; display: inline-block; margin: .65rem; padding: .25rem .65rem; border: 1px solid #82e9c759; border-radius: 2rem; color: #d9fff1; background: #102d40; font: 600 .8rem/1.5 'IBM Plex Mono', monospace; }
.station::before { content: ''; display: inline-block; margin-right: .4em; width: .5em; height: .5em; border-radius: 50%; background: var(--mint); }
.section { padding-block: clamp(2.5rem, 6vw, 5.5rem); border-top: 1px solid var(--rule); }
.cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.card { min-width: 0; position: relative; padding: clamp(1.3rem, 3vw, 2rem); border: 1px solid var(--rule); border-radius: 1rem; background: #fffcf6; }
.card::before { content: ''; display: block; width: 2.5rem; height: .25rem; border-radius: 2px; background: linear-gradient(to right, var(--teal) 60%, transparent 60% 70%, #96cabc 70%); }
.card h3 { font-size: 1.32rem; }
.article { max-width: 49rem; margin-inline: auto; padding-block: clamp(2rem, 5vw, 5rem); line-height: 1.9; }
.article h2 { margin-top: 1.75em; }
.article blockquote { margin-inline: 0; padding: .5rem 1.3rem; border-left: 3px solid var(--teal); background: #e9efe6; }
.muted { color: var(--muted); }
footer, .foot { background-color: var(--ink); color: #e7f1ec; }
.foot { justify-content: space-between; padding-block: 2rem; }
footer a, .foot a { color: #a0edd7; }
footer .muted, .foot .muted { color: #bfcec9; }

.popup { padding: 0; width: min(26rem, calc(100% - 2rem)); max-height: calc(100vh - 2rem); max-height: calc(100dvh - 2rem); overflow: auto; overscroll-behavior: contain; border: 1px solid var(--rule); border-radius: 1rem; color: var(--ink); background: var(--paper); box-shadow: 0 2rem 6rem #06162866; }
.popup::backdrop { background: #091c2bbd; }
html:has(.popup[open]) { overflow: hidden; }
.popup-content { position: relative; padding: clamp(1rem, 4vw, 1.6rem); }
.popup-close { position: absolute; top: .45rem; right: .45rem; display: grid; place-content: center; width: 2.75rem; height: 2.75rem; border: 1px solid var(--rule); border-radius: 50%; color: var(--ink); background: white; font-size: 1.5rem; cursor: pointer; }
.popup-ad-label { color: var(--teal); font-weight: 700; font-size: .8rem; }
.popup-stack { display: grid; gap: .85rem; }
.popup-link { color: inherit; text-decoration: none; }
.popup-title { font-size: 1.6rem; margin: .8rem 0; }
.popup-image { display: block; width: 100%; height: min(32vh, 14rem); object-fit: contain; border-radius: .5rem; background: #e9eee8; }
.popup-fallback { display: block; padding: 1rem; border: 1px dashed var(--rule); border-radius: .5rem; text-align: center; }
.popup-foot { margin: 0; color: var(--muted); font-size: .9rem; }
.popup-shop-btn { width: 100%; }
@media (max-width: 46rem) {
  .hero:has(> .visual), .hero > .wrap:has(> .visual) { grid-template-columns: minmax(0, 1fr); }
  nav { gap: .25rem 1rem; }
  .article:not(.wrap) { padding-inline: 1rem; }
}
@media print {
  .popup, .popup::backdrop { display: none; }
  html:has(.popup[open]) { overflow: visible; }
}
