@font-face {
  font-family: Urbanist;
  src: url('/fonts/urbanist.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --color-surface: #f0f6f3;
  --color-ink: #153f3a;
  --color-muted: #486a61;
  --color-selection: #d2e4d9;
  --color-gold: #94703b;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  font-family: Urbanist, sans-serif;
  color: var(--color-ink);
  background: var(--color-surface);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  position: relative;
  margin: 0;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
}

::selection { color: var(--color-ink); background: var(--color-selection); }

main {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  padding: max(48px, env(safe-area-inset-top)) 24px 24px;
}

.introduction { width: 100%; text-align: center; }

.brand { display: grid; justify-items: center; }

.brand-mark { width: 174px; height: 174px; margin-bottom: 18px; overflow: visible; }
.flight-route { stroke: var(--color-ink); stroke-width: 1; stroke-dasharray: 1 7; stroke-linecap: round; opacity: .2; }
.plane-orbit { transform-origin: 100px 100px; transform: rotate(45deg); }
.flight-trail { stroke: var(--color-gold); stroke-width: 2; stroke-linecap: round; opacity: .45; }
.airplane { fill: var(--color-ink); stroke: var(--color-surface); stroke-width: 2; stroke-linejoin: round; }

.wordmark {
  display: block;
  padding-left: .2em;
  font-size: clamp(3.25rem, 9vw, 5rem);
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: .2em;
}

h1 {
  width: fit-content;
  margin: 52px auto 20px;
  font-size: clamp(1.65rem, 4.5vw, 2.25rem);
  line-height: 1.3;
  font-weight: 450;
  letter-spacing: -.02em;
  text-wrap: balance;
}

.notice {
  width: fit-content;
  margin: 0;
  margin-inline: auto;
  font-size: 15px;
  line-height: 1.8;
  font-weight: 500;
  color: var(--color-muted);
}

.notice > span:first-child { margin-inline: 6px; }
.notice > span:last-child { white-space: nowrap; }

footer {
  position: relative;
  z-index: 1;
  padding: 20px 24px max(32px, env(safe-area-inset-bottom));
  color: var(--color-muted);
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .08em;
}

.ambient-sky {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  color: var(--color-ink);
}
.ambient-plane {
  position: absolute;
  top: 0;
  left: 0;
  width: 42px;
  height: 42px;
  opacity: 0;
}

@keyframes flight-orbit {
  from { transform: rotate(45deg); }
  to { transform: rotate(405deg); }
}
@keyframes logo-reveal {
  from { clip-path: inset(0 0 100% 0); opacity: .3; }
  to { clip-path: inset(0 0 0 0); opacity: 1; }
}
@keyframes logo-fade {
  from { opacity: .5; }
  to { opacity: 1; }
}
@media (prefers-reduced-motion: no-preference) {
  .plane-orbit { animation: flight-orbit 6s linear infinite; }
  .monogram { animation: logo-reveal 1100ms var(--ease-out); }
}
@media (prefers-reduced-motion: reduce) {
  .ambient-sky { display: none; }
  .brand-mark { animation: logo-fade 200ms ease; }
  .flight-trail { opacity: 0; }
}

@media (max-width: 420px) {
  .ambient-plane { width: 30px; height: 30px; }
  .brand-mark { width: 150px; height: 150px; margin-bottom: 14px; }
  h1 { margin-top: 40px; }
  .notice { max-width: 260px; margin-inline: auto; font-size: 14px; }
  .notice > span:first-child { display: none; }
  .notice > span:last-child { display: block; }
}
