:root {
  color-scheme: light;
  --ink: #042551;
  --ink-deep: #061a36;
  --muted: #48556a;
  --paper: #ece7d5;
  --rule: #a69f88;
  --rule-soft: rgba(4, 37, 81, .17);
  --green: #156248;
  --red: #8f2b25;
  --paper-texture: url("/assets/atlas-paper.webp");
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.75rem; }
body { margin: 0; background: var(--paper) var(--paper-texture); color: var(--ink); font: 1rem/1.6 var(--sans); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .23em; }
a:hover { color: #0b5382; }
button { font: inherit; }
:focus-visible { outline: 3px solid #176497; outline-offset: 4px; }
[hidden] { display: none !important; }

.shell { width: min(calc(100% - 2.75rem), 70rem); margin-inline: auto; }
.skip { position: absolute; left: 1rem; top: .5rem; z-index: 3; padding: .6rem 1rem; transform: translateY(-160%); }
.skip:focus { transform: none; }
.site-header { position: sticky; top: 0; z-index: 2; border-bottom: 1px solid var(--rule); background: var(--paper) var(--paper-texture); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; min-height: 4.6rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--ink-deep); font: 700 clamp(1rem, 2.8vw, 1.35rem)/1.1 var(--serif); }
.brand img { width: 2.8rem; flex: none; }
.nav-links { display: flex; align-items: center; justify-content: end; flex-wrap: wrap; gap: .25rem 1.5rem; }
.nav-links a { font-size: .9rem; font-weight: 650; text-decoration: none; }
.nav-links a:hover { text-decoration: underline; }

.intro { display: grid; grid-template-columns: minmax(0, 1.16fr) minmax(17rem, .84fr); gap: clamp(2.6rem, 7vw, 5.75rem); align-items: center; padding-block: clamp(3rem, 6vw, 5.1rem); }
.hero-text { min-width: 0; max-width: 38rem; container-type: inline-size; }
.hero-tag { display: block; margin: 0 0 1rem; color: var(--green); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { color: var(--ink-deep); font-family: var(--serif); line-height: 1.1; }
h1 { font-size: clamp(2.15rem, 6.15vw, 5.2rem); font-size: clamp(2rem, 13.5cqi, 5.25rem); font-weight: 700; letter-spacing: -.052em; }
h2 { font-size: clamp(2.05rem, 4.7vw, 3.35rem); letter-spacing: -.037em; }
h3 { font-size: 1.34rem; letter-spacing: -.02em; }
.hero-summary { max-width: 38rem; margin-top: 1.15rem; color: var(--ink); font-size: clamp(1.06rem, 2vw, 1.24rem); line-height: 1.68; text-wrap: pretty; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 1.25rem; margin-top: 1.65rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 2.85rem; padding: .58rem 1.04rem; background: var(--ink); color: #fff9ea; border: 1px solid var(--ink); border-radius: .42rem; text-decoration: none; font-weight: 700; font-size: .91rem; transition: background .18s ease, box-shadow .18s ease; }
.button:hover { background: #10416a; color: #fff9ea; box-shadow: 0 4px 10px #04255126; }
.preview { width: min(100%, 25.5rem); margin-inline: auto; }
.preview-frame { display: grid; place-items: center; padding: 1.35rem clamp(1.2rem, 3vw, 2rem); overflow: hidden; border: 1px solid var(--rule); border-radius: .65rem; background: linear-gradient(150deg, #fdf9ea93, #d9c9a43d), var(--paper-texture); box-shadow: 0 13px 38px #34260d13; }
.preview-frame img { width: min(100%, 16.75rem); border: 1px solid var(--ink); border-radius: .6rem; box-shadow: 0 10px 20px #061a3630; }
.preview figcaption { margin-top: .7rem; color: var(--muted); font-size: .74rem; line-height: 1.5; text-align: center; }
.preview figcaption strong { display: block; color: var(--ink); font-size: .83rem; }

.overview-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--rule); }
.overview-list article { padding: 1.35rem 1.5rem 1.45rem; }
.overview-list article:first-child { padding-left: 0; }
.overview-list article:last-child { padding-right: 0; }
.overview-list article + article { border-left: 1px solid var(--rule-soft); }
.overview-list h3 { margin-bottom: .48rem; }
.overview-list p { color: var(--muted); font-size: .93rem; }
.signals { display: inline-flex; align-items: center; gap: .35rem; margin-right: .35rem; }
.signals span { width: .55rem; height: .55rem; border-radius: 50%; background: var(--green); }
.signals span + span { background: var(--red); }

.regions { padding-block: clamp(3.25rem, 7vw, 5.4rem); }
.regions h2 { margin-bottom: 1.3rem; }
.region-tabs { display: grid; grid-template-columns: 1.55fr repeat(5, 1fr); gap: 1px; overflow: hidden; background: var(--rule); border: 1px solid var(--rule); border-radius: .65rem .65rem 0 0; }
.region-tabs button { display: grid; place-items: center; min-height: 3.2rem; padding: .55rem .65rem; border: 0; background: #f5efdf; color: var(--ink); font-size: .89rem; font-weight: 710; line-height: 1.22; cursor: pointer; transition: background .16s ease, color .16s ease; }
.region-tabs button:hover { background: #e2dcc7; }
.region-tabs button[aria-selected="true"] { background: var(--ink); color: #fff9ea; }
.region-tabs button:focus-visible { position: relative; outline: 2px solid #176497; outline-offset: -4px; z-index: 1; }
.region-tabs button[aria-selected="true"]:focus-visible { outline-color: #e9e1c9; }
.region-panel { display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1.45fr); gap: clamp(1.4rem, 4vw, 3.1rem); align-items: center; padding: clamp(1.2rem, 3.1vw, 2.35rem); border: 1px solid var(--rule); border-radius: 0 0 .65rem .65rem; background: #fcf9ed99; }
.region-tabs:not([hidden]) + .region-panels .region-panel { border-top: 0; }
.region-tabs[hidden] + .region-panels .region-panel { margin-block: .75rem; border-radius: .65rem; }
.region-summary h3 { font-size: clamp(1.8rem, 3.2vw, 2.48rem); }
.region-summary p { max-width: 30rem; margin-top: .63rem; color: var(--muted); text-wrap: pretty; }
.platforms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.platform { display: flex; align-items: center; min-height: 6.55rem; gap: .65rem; padding: .8rem; border: 1px solid var(--rule-soft); border-radius: .5rem; background: #f0e9d7; }
.platform img { width: clamp(2.45rem, 5vw, 3.6rem); flex: none; }
.platform h4 { margin: 0; font-size: .96rem; line-height: 1.2; }
.platform p { margin-top: .24rem; font-size: .79rem; line-height: 1.35; color: var(--muted); }

.site-footer { border-top: 1px solid var(--rule); padding-block: 1.25rem 1.5rem; color: var(--muted); font-size: .82rem; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: .6rem 2.1rem; }
.footer-row nav { display: flex; flex-wrap: wrap; gap: .42rem 1.05rem; }
.footer-row a { color: var(--ink); }
.notice { margin-top: .6rem; max-width: 51rem; }
@media (max-width: 61rem) {
  .region-panel { grid-template-columns: 1fr; gap: 1rem; }
}
@media (max-width: 46rem) {
  html { scroll-padding-top: 5.15rem; }
  .nav { min-height: 4.25rem; gap: .65rem; }
  .brand img { width: 2.3rem; }
  .nav-links { gap: .25rem .8rem; }
  .nav-links a { font-size: .84rem; }
  .intro { grid-template-columns: 1fr; gap: 2.1rem; padding-block: 2.65rem 2.45rem; }
  .hero-text { max-width: 34rem; }
  .preview { width: min(100%, 22rem); }
  .preview-frame img { width: min(100%, 14.5rem); }
  .overview-list { grid-template-columns: 1fr; }
  .overview-list article, .overview-list article:first-child, .overview-list article:last-child { padding: 1rem 0; }
  .overview-list article + article { border-left: 0; border-top: 1px solid var(--rule-soft); }
  .region-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 26rem) {
  .shell { width: calc(100% - 1.75rem); }
  .nav-links a[href="#overview"] { display: none; }
  .region-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .platform { flex-direction: column; align-items: flex-start; min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .region-tabs button, .button { transition: none; }
}
