:root {
  --sky: #0099FF;
  --cloud: #FDFDFE;
  --red: #E63E21;
  --pane: clamp(14px, 2.2vw, 32px);
  --gutter: calc(var(--pane) + clamp(20px, 2.8vw, 40px));
  color-scheme: light;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--sky);
  color: var(--cloud);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--red);
  color: var(--cloud);
}

.stage {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.stage.is-ready { opacity: 1; }
.stage.is-arrived { transition: none; }

.glass {
  position: fixed;
  inset: var(--pane);
  border: 1px solid rgb(253 253 254 / 0.45);
  border-radius: 28px;
  background: rgb(253 253 254 / 0.05);
  pointer-events: none;
}
/* The glass deepens behind the nav and headline, so nothing passing behind fights the type. */
.glass::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 30%;
  border-radius: inherit;
  background: linear-gradient(to top, var(--sky) 45%, transparent);
}
.glass::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 150px;
  border-radius: inherit;
  background: linear-gradient(to bottom, var(--sky) 58%, transparent);
}

.overlay {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--gutter);
  pointer-events: none;
}

.top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.label {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: clamp(11px, 0.8vw, 14px);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.title {
  margin: 0;
  font-family: "Jost", system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(30px, 3.75vw, 112px);
  line-height: 1.16;
  letter-spacing: 0.085em;
  text-transform: uppercase;
  white-space: nowrap;
}

.overlay a { pointer-events: auto; color: inherit; text-decoration: none; }

/* Pages crossfade, and the shader carries on underneath. */
@view-transition { navigation: auto; }

.nav-text {
  display: inline-flex;
  align-items: center;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: clamp(14px, 1.15vw, 18px);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.links { gap: clamp(20px, 2.4vw, 36px); }
.links a { padding: 0.3em 0; }
.links a:hover, .links a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.4em;
}

.overlay a:focus-visible { outline: 2px solid var(--cloud); outline-offset: 4px; border-radius: 4px; }

/* Typed tagline: unwritten characters hold their place, invisibly. */
.key { visibility: hidden; }
.key.is-typed { visibility: visible; }
.caret {
  display: inline-block;
  width: 0;
  height: 0.82em;
  margin-right: -0.075em;
  border-left: 0.075em solid var(--red);
  vertical-align: -0.06em;
  animation: blink 1.1s steps(1) infinite;
}
.is-typing .caret { animation: none; }
@keyframes blink { 50% { opacity: 0; } }

.kicker { margin: 0 0 clamp(10px, 1.2vw, 18px); }
.note { margin: clamp(12px, 1.4vw, 20px) 0 0; }

.email { text-transform: none; letter-spacing: 0.03em; font-size: clamp(30px, 6.4vw, 180px); }
.email a { text-decoration: underline; text-decoration-thickness: 0.05em; text-underline-offset: 0.14em; }

.narrow { display: none; }

@media (max-width: 720px) {
  .title { font-size: clamp(22px, 6.9vw, 44px); }
  .email { font-size: clamp(22px, 8.2vw, 56px); }
  .narrow { display: inline; }
}

/* Three links only just fit the smallest phones. */
@media (max-width: 360px) {
  .nav-text { font-size: 12px; }
  .links { gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .stage { transition: none; }
  .caret { animation: none; }
}
