:root {
  font-synthesis: none;
}

* { box-sizing: border-box; }

html, body { min-width: 320px; min-height: 100%; }

body {
  margin: 0;
  font-family: "Atkinson Hyperlegible Next", Verdana, sans-serif;
  font-size: 16px;
  font-variant-numeric: tabular-nums lining-nums;
}

.theme-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page {
  --canvas: #EEF8FD;
  --deep-2: #082B4C;
  --deep: #0B3A63;
  --dawn: #11528A;
  --allay-blue: #1565A8;
  --sky: #6CCFF6;
  --glow: #B4E9FC;
  --on-deep: #FFFFFF;
  --on-deep-muted: #BBD7EE;
  --building: #082B4C;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--canvas);
  color: var(--on-deep);
  color-scheme: light;
}

.theme-input:checked + .page {
  --canvas: #151B20;
  --deep-2: #0A1828;
  --deep: #0E2236;
  --dawn: #10304F;
  --allay-blue: #123F68;
  --on-deep: #E4ECF0;
  --on-deep-muted: #A9C6DC;
  --building: #0A1828;
  color-scheme: dark;
}

.masthead {
  position: relative;
  z-index: 2;
  flex: none;
  height: 72px;
  background: var(--deep-2);
}

.masthead-inner {
  width: min(100%, 1280px);
  height: 100%;
  margin: auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.allay-mark {
  display: block;
  width: 16px;
  height: 16px;
  background: var(--sky);
}

.theme-switch {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--on-deep-muted);
  border-radius: 2px;
  color: var(--on-deep);
  cursor: pointer;
}

.theme-switch:hover { background: rgba(255,255,255,.09); }
.theme-input:focus-visible + .page .theme-switch {
  outline: 2px solid var(--glow);
  outline-offset: 3px;
}

.theme-switch svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.sun-icon, .theme-input:checked + .page .moon-icon { display: none; }
.theme-input:checked + .page .sun-icon { display: block; }

.hero {
  position: relative;
  isolation: isolate;
  flex: 1;
  min-height: 640px;
  overflow: hidden;
  background: linear-gradient(to bottom,
    var(--deep-2) 0%,
    var(--deep) 64%,
    var(--dawn) 86%,
    var(--allay-blue) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(100%, 1280px);
  min-height: 100%;
  margin: auto;
  padding: clamp(96px, 14vh, 160px) 40px 300px;
}

.message { max-width: 650px; }

h1 {
  margin: 0;
  font-family: "Big Shoulders Display", Impact, "Arial Narrow", sans-serif;
  font-size: clamp(64px, 9vw, 96px);
  font-weight: 800;
  line-height: .95;
}

p {
  max-width: 33rem;
  margin: 24px 0 32px;
  color: var(--on-deep-muted);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.5;
}

.exchange-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 10px 17px;
  border: 2px solid var(--sky);
  border-radius: 2px;
  background: var(--sky);
  color: #0F171C;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.4;
}

.exchange-link:hover { background: var(--glow); border-color: var(--glow); }
.exchange-link:focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; }
.exchange-link svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.flight-trail {
  position: absolute;
  z-index: 0;
  right: 12%;
  bottom: 210px;
  width: min(24vw, 270px);
  height: auto;
  fill: var(--glow);
  opacity: .6;
}

.skyline {
  position: absolute;
  z-index: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: clamp(170px, 25vw, 300px);
}

.buildings { fill: var(--building); }
.windows { fill: var(--glow); }
.windows rect:nth-child(3n) { fill: var(--sky); }
.sky-ribbon { height: 16px; flex: none; background: var(--sky); }

@media (max-width: 767px) {
  .masthead { height: 64px; }
  .masthead-inner { padding: 0 16px; }
  .hero { min-height: 650px; }
  .hero-inner { padding: 100px 16px 270px; }
  h1 { font-size: clamp(60px, 17vw, 76px); }
  p { max-width: 27rem; margin: 20px 0 28px; }
  .flight-trail { right: 12%; bottom: 165px; width: 145px; opacity: .35; }
  .skyline { height: 190px; }
}

@media (min-width: 768px) and (max-width: 1279px) {
  .masthead-inner, .hero-inner { padding-left: 24px; padding-right: 24px; }
}

@media (prefers-reduced-motion: no-preference) {
  .exchange-link, .theme-switch { transition: background-color 150ms ease-out, border-color 150ms ease-out; }
}
