:root {
  font:
    16px/1.55 'DM Sans',
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  color: #172f3b;
  background: #f5f4ef;
  color-scheme: light;
  --rule: #cbcfc7;
  --teal: #126959;
}
* {
  box-sizing: border-box;
}
body,
figure,
h1,
h2,
h3,
p,
ul {
  margin: 0;
}
button,
select,
input {
  font: inherit;
  color: inherit;
}
button,
select,
summary,
input[type='range'] {
  cursor: pointer;
}
button {
  border: 1px solid var(--rule);
  background: #fff;
  border-radius: 7px;
  padding: 0.55rem 0.85rem;
  font-weight: 600;
}
button:hover,
select:hover {
  border-color: var(--teal);
}
a {
  color: var(--teal);
  text-underline-offset: 3px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #dc9827;
  outline-offset: 3px;
}
.wrap {
  max-width: 880px;
  margin: auto;
  padding: 0 28px;
}
.hero {
  color: #fff;
  background:
    linear-gradient(90deg, #112d3ff5, #102e42ac 49%, #162b411a),
    url(./cover.webp) center 37% / cover;
}
.hero nav,
.flight-head,
.section-top,
.console,
.limits,
.slider-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.hero nav {
  padding-top: 20px;
}
.hero nav a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.045em;
}
.hero nav button {
  background: #193243a6;
  border-color: #c1d2d77a;
  color: #fff;
  padding: 0.3em 0.8em;
}
.hero h1 {
  font-family: 'DM Serif Text', Georgia, 'Songti SC', serif;
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 1.18;
  margin: 40px 0 12px;
  letter-spacing: -0.045em;
}
.hero p {
  padding-bottom: 35px;
  color: #e5f1f4;
}
.flight-head {
  padding: 24px 0 15px;
}
.caption,
.console,
figcaption,
.limits,
.slider-head output {
  font:
    600 0.77rem/1.5 'IBM Plex Mono',
    ui-monospace,
    monospace;
  letter-spacing: 0.09em;
}
.caption {
  color: #526459;
}
.flight-head h2 {
  font:
    600 clamp(1.9rem, 6vw, 3rem)/1.12 'IBM Plex Mono',
    ui-monospace,
    monospace;
  letter-spacing: -0.04em;
}
.flight-head p {
  margin-top: 5px;
  color: #4d625e;
}
.preset {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  font-weight: 650;
}
.preset select {
  min-width: 0;
  flex: 1;
  padding: 8px;
  background: white;
  border: 1px solid var(--rule);
  border-radius: 6px;
}
.search,
.sources {
  margin: 12px 0 18px;
  font-size: 0.9rem;
}
.search summary,
.sources summary {
  color: var(--teal);
  width: fit-content;
  font-weight: 650;
}
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 15px 0;
}
.fields label {
  display: block;
  margin-bottom: 4px;
}
.fields input {
  width: 100%;
  padding: 9px;
  border: 1px solid var(--rule);
  border-radius: 5px;
}
.options:not(:empty) {
  border: 1px solid var(--rule);
  max-height: 160px;
  overflow: auto;
  background: #fff;
}
.options button {
  width: 100%;
  border: 0;
  border-radius: 0;
  text-align: left;
  font-size: 0.83rem;
}
.options button:hover {
  background: #e0efe8;
}
.solid {
  background: var(--teal);
  color: white;
}
.search p,
.fine,
.sources p {
  font-size: 0.86rem;
  line-height: 1.6;
  color: #51635f;
  margin-top: 8px;
}
.cabin {
  border-radius: 16px;
  padding: 15px 28px 19px;
  color: #f2f6f3;
  background: linear-gradient(140deg, #263d48, #142b38 75%);
  box-shadow: 0 4px 14px #19303a18;
}
.console {
  color: #cbddd9;
  border-bottom: 1px solid #527079;
  padding-bottom: 9px;
}
.console span:last-child {
  font-size: 1.1rem;
}
.windows {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(12px, 4vw, 40px);
  margin: 15px auto 17px;
  max-width: 660px;
}
figcaption {
  text-align: center;
  color: #cfddd9;
  margin-bottom: 8px;
}
.pane {
  aspect-ratio: 1.85;
  position: relative;
  overflow: hidden;
  border: 6px solid #506774;
  border-radius: 36% / 45%;
  box-shadow:
    inset 0 0 0 1px #acc3c4,
    0 0 0 2px #0d232f,
    0 3px 2px #ffffff24;
  background: linear-gradient(#63919e, #c9dde0 65%, #e1ece7);
}
canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.label {
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: 16%;
  text-align: center;
  font-size: clamp(0.7rem, 2vw, 1rem);
  font-weight: 700;
  color: #173644;
  text-shadow:
    0 0 6px white,
    0 0 4px white;
}
.pane.active {
  border-color: #a8c9ba;
}
.slider-head label {
  font-weight: 650;
  font-size: 0.87rem;
}
.slider-head output {
  color: #b8e2ce;
}
#progress {
  width: 100%;
  margin: 2px 0;
  height: 32px;
  accent-color: #abe1c8;
}
.limits {
  color: #c8dcdd;
}
.brief {
  padding: 24px 0 12px;
}
.section-top h3 {
  font-size: 1.4rem;
}
.section-top button {
  font-size: 0.88rem;
  color: var(--teal);
}
#guide-hint {
  margin: 14px 0;
  font-weight: 600;
}
ul {
  list-style: none;
  padding: 0;
}
li {
  display: grid;
  grid-template-columns: minmax(95px, 0.8fr) 2fr;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--rule);
}
li button {
  background: transparent;
  border: 0;
  text-align: left;
  padding: 1px 4px;
  color: var(--teal);
}
li button small {
  display: block;
  font:
    normal 0.78rem/1.8 ui-monospace,
    monospace;
  color: #53655d;
}
li a {
  font-size: 0.8rem;
}
li p {
  font-size: 0.9rem;
}
li.current {
  border-top-color: #43866a;
  background: #e8efe650;
}
.sources {
  border-top: 1px solid var(--rule);
  padding: 16px 0 30px;
}
#loading {
  padding: 20px 0;
}
[hidden] {
  display: none !important;
}
@media (max-width: 580px) {
  .wrap {
    padding: 0 16px;
  }
  .hero h1 {
    margin-top: 28px;
  }
  .hero p {
    padding-bottom: 25px;
  }
  .fields {
    grid-template-columns: 1fr;
  }
  .cabin {
    padding: 12px 15px;
  }
  .pane {
    aspect-ratio: 1.22;
    border-width: 5px;
  }
  .flight-head {
    padding-top: 18px;
  }
  .windows {
    gap: 17px;
  }
  .section-top button {
    padding: 0.45rem;
  }
  .brief {
    padding-top: 18px;
  }
  li {
    grid-template-columns: 100px 1fr;
    gap: 9px;
  }
  .hero {
    background-position:
      center,
      center 30%;
  }
  .preset {
    gap: 7px;
  }
}
