@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/geist-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/geist-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/geist-mono-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/geist-mono-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: dark;
  --bg: #0a0a0b;
  --bg-rgb: 10, 10, 11;
  --fg: #eeeeea;
  --fg-rgb: 238, 238, 234;
  --muted: #94948e;
  --faint: #6f6f69;
  --line: rgba(238, 238, 234, 0.13);
  --wash: rgba(238, 238, 234, 0.035);
  --accent: #ff5a36;
  --accent-rgb: 255, 90, 54;
  --on-accent: #0a0a0b;
  --field-ink: 0.3;
  --field-glow: 0.11;
  --field-x: 0.77;
  --field-y: 0.45;
  --field-fall: 0.5;
  --field-label: 1;
  --grain: 0.07;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --pad: clamp(1.5rem, 4.4vw, 3.5rem);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #f5f4ef;
    --bg-rgb: 245, 244, 239;
    --fg: #121211;
    --fg-rgb: 18, 18, 17;
    --muted: #62625d;
    --faint: #85857f;
    --line: rgba(18, 18, 17, 0.14);
    --wash: rgba(18, 18, 17, 0.035);
    --accent: #d8380f;
    --accent-rgb: 216, 56, 15;
    --on-accent: #f5f4ef;
    --field-ink: 0.34;
    --field-glow: 0.09;
    --grain: 0.09;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.5;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(var(--bg-rgb), 0.82) 0%, rgba(var(--bg-rgb), 0.55) 32%, rgba(var(--bg-rgb), 0) 62%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: url("/assets/grain.svg") 0 0 / 220px 220px;
  opacity: var(--grain);
}

::selection {
  background: var(--accent);
  color: var(--on-accent);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 3px;
}

p {
  margin: 0;
}

.field {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.8s ease 0.15s;
}

.is-ready .field {
  opacity: 1;
}

.shell {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  min-height: 100svh;
  max-width: 88rem;
  margin-inline: auto;
  padding: calc(var(--pad) + env(safe-area-inset-top, 0px)) calc(var(--pad) + env(safe-area-inset-right, 0px)) calc(var(--pad) * 0.8 + env(safe-area-inset-bottom, 0px)) calc(var(--pad) + env(safe-area-inset-left, 0px));
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mark {
  display: inline-flex;
  margin: -0.25rem;
  padding: 0.25rem;
  color: var(--fg);
  border-radius: 0.5rem;
}

.mark svg {
  display: block;
  width: 2rem;
  height: 2rem;
}

.mark-ink {
  fill: currentColor;
}

.mark-zero {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.2;
}

.hero {
  align-self: center;
  padding-block: clamp(2rem, 7vh, 6rem);
}

.trace {
  margin-bottom: clamp(0.9rem, 2.2vh, 1.4rem);
  font-family: var(--mono);
  font-size: clamp(0.75rem, 0.7rem + 0.22vw, 0.875rem);
  line-height: 1.75;
  color: var(--faint);
}

.trace p {
  white-space: pre;
}

.prompt {
  color: var(--accent);
}

.cmd {
  color: var(--fg);
}

.wordmark {
  margin: 0 0 0 -0.045em;
  font-size: clamp(3.25rem, min(7.2vw, 13.5vh), 6.5rem);
  font-weight: 560;
  line-height: 1;
  letter-spacing: -0.048em;
  white-space: nowrap;
  font-feature-settings: "ss01", "kern";
}

.message {
  margin-top: clamp(0.85rem, 2vh, 1.25rem);
  font-family: var(--mono);
  font-size: clamp(0.9375rem, 0.85rem + 0.5vw, 1.25rem);
  line-height: 1.4;
  color: var(--muted);
}

.caret {
  display: inline-block;
  width: 0.55em;
  height: 1.05em;
  margin-left: 0.3em;
  vertical-align: -0.16em;
  background: var(--accent);
}

.lede {
  margin-top: clamp(2.25rem, 6vh, 3.75rem);
  max-width: 30ch;
  font-size: clamp(1.0625rem, 0.98rem + 0.45vw, 1.3125rem);
  line-height: 1.45;
  letter-spacing: -0.011em;
  color: var(--muted);
  text-wrap: balance;
}

.name {
  color: var(--fg);
}

.links {
  margin-top: clamp(1.75rem, 4.5vh, 2.75rem);
  max-width: 33rem;
  border-top: 1px solid var(--line);
}

.link {
  position: relative;
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  column-gap: 0.95rem;
  padding: 1.15rem 0.4rem 1.15rem 0.2rem;
  border-bottom: 1px solid var(--line);
  color: var(--fg);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.35s var(--ease), padding 0.45s var(--ease);
}

.link::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.55s var(--ease);
}

.link-icon {
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
}

.link-name {
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.link-handle {
  justify-self: end;
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--muted);
  transition: color 0.25s ease;
}

.link-arrow {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.45s var(--ease), stroke 0.25s ease;
}

.link:focus-visible {
  outline-offset: 2px;
}

.link:focus-visible::after,
.link:active::after {
  transform: scaleX(1);
}

.link:focus-visible .link-handle,
.link:active .link-handle {
  color: var(--fg);
}

.link:focus-visible .link-arrow,
.link:active .link-arrow {
  stroke: var(--accent);
  transform: translate(3px, -3px);
}

@media (hover: hover) {
  .link:hover {
    background-color: var(--wash);
    padding-left: 0.7rem;
    padding-right: 0.7rem;
  }

  .link:hover::after {
    transform: scaleX(1);
  }

  .link:hover .link-handle {
    color: var(--fg);
  }

  .link:hover .link-arrow {
    stroke: var(--accent);
    transform: translate(3px, -3px);
  }
}

.bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 2rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

.exit {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--faint);
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: clamp(1.75rem, 4.5vh, 2.75rem);
  padding: 0.85rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--fg);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.back .link-arrow {
  transform: rotate(-135deg);
}

@media (hover: hover) {
  .back:hover {
    border-color: var(--accent);
    background-color: var(--wash);
  }

  .back:hover .link-arrow {
    stroke: var(--accent);
    transform: rotate(-135deg) translate(2px, -2px);
  }
}

@media (max-width: 47.99rem), (max-width: 64rem) and (orientation: portrait) {
  :root {
    --field-x: 0.84;
    --field-y: 0.2;
    --field-fall: 0.2;
  }

  .wordmark {
    font-size: clamp(2rem, 11.4vw, 6.5rem);
  }

  .wordmark-wide {
    font-size: clamp(1.875rem, 10.6vw, 6.5rem);
  }

  body::before {
    background: linear-gradient(180deg, rgba(var(--bg-rgb), 0) 18%, rgba(var(--bg-rgb), 0.6) 52%, rgba(var(--bg-rgb), 0.78) 100%);
  }

  .hero {
    align-self: end;
    padding-block: 3rem 2.75rem;
  }

  .bottom {
    flex-direction: column;
  }
}

@media (max-width: 47.99rem) and (max-height: 43rem) {
  :root {
    --field-x: 0.86;
    --field-y: 0.11;
    --field-fall: 0.14;
    --field-label: 0;
  }
}

@media (min-width: 48rem) and (max-height: 46rem) {
  .hero {
    padding-block: 1.5rem;
  }

  .lede {
    margin-top: 2rem;
  }

  .links {
    margin-top: 1.5rem;
  }

  .link {
    padding-block: 0.95rem;
  }
}

@media (max-width: 26rem) {
  .link {
    column-gap: 0.7rem;
  }

  .link-handle {
    font-size: 0.75rem;
  }
}

@media (max-width: 22.5rem) {
  .link-handle {
    display: none;
  }

  .link {
    grid-template-columns: auto 1fr auto;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    animation: rise 1s var(--ease) forwards;
  }

  .r1 { animation-delay: 0.15s; }
  .r2 { animation-delay: 0.3s; }
  .r3 { animation-delay: 0.4s; }
  .r4 { animation-delay: 0.6s; animation-name: resolve; animation-duration: 1.3s; }
  .r5 { animation-delay: 0.95s; }
  .r6 { animation-delay: 1.15s; }
  .r7 { animation-delay: 1.3s; }
  .r8 { animation-delay: 1.55s; }

  .caret {
    animation: blink 1.15s steps(1, end) 2.2s infinite;
  }
}

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

  .link,
  .link::after,
  .link-arrow,
  .link-handle,
  .back {
    transition: none;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translate3d(0, 0.7rem, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes resolve {
  from {
    opacity: 0;
    transform: translate3d(0, 1rem, 0);
    filter: blur(14px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}

@keyframes blink {
  0%, 55% {
    opacity: 1;
  }
  56%, 100% {
    opacity: 0;
  }
}

@media print {
  .field,
  body::before,
  body::after {
    display: none;
  }
}
