:root {
  --night: #123a3d;
  --ink: #173436;
  --link: #175e64;
  --muted: #456461;
  --cloud: #edf7f1;
  --paper: #fffdf7;
  --white: #fff;
  --feather: #ffdb77;
  --line: #cce0d8;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "IBM Plex Sans", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.62 var(--body); }
h1, h2, h3 { margin: 0; font-family: var(--display); line-height: 1.12; letter-spacing: -.027em; text-wrap: balance; }
h2 { font-size: clamp(1.48rem, 2.7vw, 2.25rem); }
h3 { font-size: 1.2rem; }
p, figure { margin: 0; }
a { color: var(--link); text-underline-offset: .2em; }
a:hover { color: var(--night); }
:focus-visible { outline: 2px solid var(--link); outline-offset: 4px; }
::selection { background: var(--feather); color: var(--night); }
img { display: block; max-width: 100%; }
.wrap { width: min(100% - 3rem, 74rem); margin-inline: auto; }
.skip { position: absolute; inset: .65rem auto auto .65rem; z-index: 5; padding: .6rem 1rem; background: var(--white); border-radius: .45rem; transform: translateY(-180%); }
.skip:focus { transform: none; }
.site-head { background: var(--white); border-bottom: 1px solid var(--line); }
.head-row, .brand, .nav { display: flex; align-items: center; }
.head-row { justify-content: space-between; gap: 1rem; min-height: 4.4rem; }
.brand { gap: .62rem; color: var(--ink); font: 800 1.22rem/1.12 var(--display); text-decoration: none; }
.brand img { flex: none; }
.nav { gap: clamp(.3rem, 1.5vw, 1.15rem); }
.nav a, .play-link { display: grid; align-items: center; min-height: 44px; padding-inline: .55rem; font-size: .94rem; font-weight: 600; text-decoration: none; border-radius: .45rem; }
.nav a { color: var(--muted); }
.nav a:hover, .nav a[aria-current] { color: var(--night); background: var(--cloud); }
.play-link { color: var(--night); border: 1px solid var(--line); padding-inline: .85rem; }
.play-link:hover { border-color: var(--link); background: var(--cloud); }

.flight-hero { position: relative; isolation: isolate; overflow: hidden; border-radius: 1rem; color: var(--white); background: var(--night); margin-top: 1.45rem; }
.flight-art { position: absolute; inset: 0 0 0 33%; z-index: -1; background: var(--link); }
.flight-art img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.flight-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--night) 0%, color-mix(in srgb, var(--night) 69%, transparent) 16%, transparent 46%), linear-gradient(0deg, color-mix(in srgb, var(--night) 90%, transparent), transparent 22%); }
.flight-inner { display: grid; align-content: center; width: 52%; min-height: clamp(23rem, 36vw, 32rem); padding: 2.25rem clamp(1.3rem,4vw,3.25rem) 3rem; }
.flight-inner h1 { max-width: 14ch; font-size: clamp(2.9rem, 5.3vw, 4.8rem); font-weight: 800; letter-spacing: -.035em; }
.flight-inner p { max-width: 36ch; margin-top: 1rem; color: var(--cloud); font-size: clamp(1rem,1.5vw,1.15rem); }
.flight-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.35rem; }
.flight-actions a { display: inline-flex; align-items: center; min-height: 46px; padding: .55rem .95rem; border-radius: .48rem; font-size: .96rem; font-weight: 600; text-decoration: none; }
.flight-button { color: var(--night); background: var(--feather); }
.flight-button:hover { color: var(--night); background: var(--paper); }
.flight-secondary { color: var(--white); border: 1px solid var(--line); }
.flight-secondary:hover { color: var(--white); background: var(--link); }
.flight-actions a:focus-visible, .flight-credit:focus-visible, .site-foot a:focus-visible { outline-color: var(--feather); }
.flight-credit { position: absolute; inset: auto 1.1rem .7rem auto; color: var(--white); background: var(--night); padding: .12rem .4rem; border-radius: .25rem; font-size: .78rem; }
.flight-credit:hover { color: var(--white); }
.home-content { padding-block: 2.3rem 4rem; }
.guide-index { margin-bottom: 2.8rem; }
.guide-index-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 1.2rem; margin-top: 1rem; }
.guide-index-grid a { position: relative; min-height: 5.25rem; padding: .7rem 1.4rem .65rem 0; border-block-start: 1px solid var(--line); text-decoration: none; }
.guide-index-grid a::after { content: ""; position: absolute; inset: 1rem .22rem auto auto; width: .5rem; height: .5rem; border-top: 2px solid; border-right: 2px solid; transform: rotate(45deg); }
.guide-index-grid a:hover { border-color: var(--link); }

.guide-index-grid strong, .guide-index-grid span { display: block; }
.guide-index-grid strong { font: 800 1.2rem/1.4 var(--display); color: var(--ink); }
.guide-index-grid span { margin-top: .1rem; font-size: .95rem; color: var(--muted); line-height: 1.4; }
.home-reading, .guide-reading { display: grid; grid-template-columns: minmax(0, 45rem) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); }
.home-reading { padding-top: 2.5rem; border-top: 1px solid var(--line); }
.home-faq .faq { margin-top: 0; }
.guide-band { background: var(--cloud); border-bottom: 1px solid var(--line); color: var(--ink); }
.guide-header { padding-block: clamp(1.5rem, 4vw, 3.4rem); }
.guide-header-media { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 1.5rem; align-items: center; }
.crumb { display: flex; flex-wrap: wrap; gap: .55rem; color: var(--muted); font-size: .92rem; margin-bottom: .85rem; }
.guide-band h1 { max-width: 23ch; font-size: clamp(2.55rem, 5vw, 4.2rem); }
.guide-band p { max-width: 61ch; margin-top: .65rem; color: var(--muted); }
.guide-frame { padding-block: 1.5rem 4.5rem; }
.guide-jumps { display: flex; flex-wrap: wrap; gap: .35rem 1.35rem; border-bottom: 1px solid var(--line); margin-bottom: 2rem; padding-bottom: .45rem; }
.guide-jumps a { display: inline-flex; align-items: center; min-height: 43px; font-size: .92rem; font-weight: 600; text-decoration: none; }
.guide-jumps a:hover { text-decoration: underline; }
.guide-reading:not(:first-child) { padding-top: 1rem; }
.legal-main .guide-reading { grid-template-columns: minmax(0, 48rem); }
.guide-aside nav { position: sticky; top: 1.25rem; display: grid; align-content: start; }
.guide-aside h2 { margin-bottom: .55rem; font-size: 1.2rem; }
.guide-aside a { display: flex; align-items: center; min-height: 42px; padding-inline: .65rem; text-decoration: none; border-bottom: 1px solid var(--line); }
.guide-aside a:hover, .guide-aside a[aria-current] { background: var(--cloud); }
.prose, .page-body { overflow-wrap: anywhere; }
.page-body { padding-block: 2rem 4rem; }
.prose > * + *, .page-body > * + * { margin-top: 1em; }
.prose > h2, .page-body > h2 { margin-top: 2rem; }
.prose > h2:first-child { margin-top: 0; }
.prose > h3 { margin-top: 1.45rem; }
.prose :is(ol, ul) { padding-left: 1.55rem; }
.prose li + li { margin-top: .45rem; }
.prose img { height: auto; border-radius: .6rem; }

.reference-section { margin-bottom: 2.4rem; scroll-margin-top: 1rem; }
.reference-intro { margin-bottom: .85rem; }
.reference-intro p { max-width: 67ch; margin-top: .45rem; color: var(--muted); }
.reference-cards, .reference-gallery { display: grid; gap: .9rem; }
.reference-cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); padding: 0; margin: 0; list-style: none; }
.reference-route { grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); }
.reference-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: .78rem; background: var(--white); }
.reference-route .reference-card { border-top-color: var(--link); }
.reference-card-body { padding: 1rem; }
.reference-card-body p { margin-top: .45rem; }
.reference-card-body p, .reference-facts { color: var(--muted); }
.reference-meta, .reference-facts, .reference-source, .reference-figure figcaption { font-size: .9rem; }
.reference-facts { margin: .7rem 0 0; }
.reference-facts div { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: .55rem; padding-block: .28rem; border-top: 1px solid var(--line); }
.reference-facts dt { font-weight: 600; }
.reference-facts dd { margin: 0; overflow-wrap: anywhere; }
.reference-source { display: inline-block; margin-top: .55rem; }
.reference-figure img { width: 100%; height: auto; border-radius: .65rem; }
.reference-card .reference-figure img { border-radius: 0; }
.reference-figure figcaption { padding: .4rem .15rem; color: var(--muted); line-height: 1.4; }
.reference-card figcaption { padding: .4rem 1rem 0; }
.reference-gallery { grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr)); margin-top: .8rem; }
.reference-table { overflow-x: auto; max-width: 100%; border: 1px solid var(--line); border-radius: .65rem; }
.reference-table table, .prose table { border-collapse: collapse; background: var(--white); font-size: .94rem; }
.reference-table table { width: 100%; min-width: 28rem; }
.prose table { display: block; overflow-x: auto; max-width: 100%; }
:is(.reference-table, .prose) :is(th,td) { padding: .65rem .82rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
:is(.reference-table, .prose) thead th { background: var(--cloud); }
.reference-table tr:last-child :is(th,td) { border-bottom: 0; }
.reference-table thead tr:last-child th { border-bottom: 1px solid var(--line); }
.faq { margin-top: 2.15rem; }
.faq h2 { margin-bottom: .72rem; }
.faq details { border-bottom: 1px solid var(--line); padding: .7rem .2rem; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: .45rem 0 .18rem 1.1rem; color: var(--muted); }

.site-foot { background: var(--night); color: var(--cloud); padding: 2.4rem 0 1.4rem; }
.site-foot a { color: var(--white); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 1.5rem; }
.foot-brand { color: var(--white); font: 800 1.3rem var(--display); }
.foot-note { max-width: 40ch; margin-top: .55rem; }
.foot-grid nav { display: grid; justify-items: start; align-content: start; gap: .3rem; }
.foot-h { color: var(--white); font-weight: 600; }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .7rem; padding-top: 1rem; margin-top: 1.55rem; border-top: 1px solid var(--link); font-size: .9rem; }
@media (max-width: 850px) {
  .guide-reading, .home-reading { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .guide-aside nav { position: static; }
}
@media (max-width: 700px) {
  .wrap { width: calc(100% - 2rem); }
  .head-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 0 .5rem; padding-block: .45rem .25rem; }
  .brand { min-height: 44px; font-size: 1.08rem; }
  .play-link { grid-column: 2; grid-row: 1; padding-inline: .5rem; font-size: .84rem; }
  .nav { grid-column: 1 / -1; justify-content: space-between; gap: 0; }
  .nav a { padding-inline: .2rem; font-size: .89rem; }
  .flight-hero { margin-top: .9rem; }
  .flight-art { position: relative; inset: auto; aspect-ratio: 17 / 9; max-height: 17rem; }
  .flight-art::after { background: linear-gradient(0deg, var(--night), transparent 38%); }
  .flight-inner { position: relative; width: auto; min-height: 0; margin-top: -1rem; padding: 0 1rem .5rem; }
  .flight-inner h1 { max-width: 15ch; font-size: clamp(2.2rem, 8.5vw, 3.65rem); }
  .flight-inner p { margin-top: .55rem; }
  .flight-actions { margin-top: .85rem; }
  .flight-credit { position: static; display: block; padding: .1rem 1rem .7rem; text-align: end; }
  .home-content { padding-block-start: 1.55rem; }
  .guide-index-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0 .9rem; }
  .guide-header-media { grid-template-columns: minmax(0,1fr); }
  .guide-jumps { gap: 0 1rem; margin-bottom: 1.35rem; }
  .foot-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-grid > :first-child { grid-column: 1 / -1; }
}
