:root {
  color-scheme: light;

  --color-bg: #fbfaf8;
  --color-surface: #ffffff;
  --color-sunken: #f5f4f1;
  --color-border: #edebe7;
  --color-border-strong: #d9d6cf;
  --color-text: #18181b;
  --color-text-muted: #52525b;
  --color-text-subtle: #9c9a93;
  --color-accent: #3b5bdb;
  --color-accent-hover: #2f49b0;
  --color-accent-soft: #eef2ff;
  --color-accent-text: #ffffff;

  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --font-size-base: 14px;
  --type-ratio: 1.2;
  --text-xs: calc(var(--font-size-base) / var(--type-ratio));
  --text-sm: var(--font-size-base);
  --text-md: calc(var(--font-size-base) * var(--type-ratio));
  --text-lg: calc(var(--font-size-base) * var(--type-ratio) * var(--type-ratio));
  --text-xl: calc(var(--font-size-base) * var(--type-ratio) * var(--type-ratio) * var(--type-ratio));
  --text-2xl: calc(
    var(--font-size-base) * var(--type-ratio) * var(--type-ratio) * var(--type-ratio) *
      var(--type-ratio)
  );
  --text-3xl: calc(
    var(--font-size-base) * var(--type-ratio) * var(--type-ratio) * var(--type-ratio) *
      var(--type-ratio) * var(--type-ratio)
  );
  --leading-tight: 1.2;
  --leading-normal: 1.5;
  --leading-relaxed: 1.7;

  --space-base: 4px;
  --space-0: 0;
  --space-1: calc(var(--space-base) * 1);
  --space-2: calc(var(--space-base) * 2);
  --space-3: calc(var(--space-base) * 3);
  --space-4: calc(var(--space-base) * 4);
  --space-5: calc(var(--space-base) * 6);
  --space-6: calc(var(--space-base) * 8);
  --space-7: calc(var(--space-base) * 12);
  --space-8: calc(var(--space-base) * 16);
  --space-9: calc(var(--space-base) * 24);

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-pill: 999px;
  --border-width: 1px;
  --border: var(--border-width) solid var(--color-border);
  --shadow-xs: 0 1px 2px rgb(0 0 0 / 4%);
  --shadow-sm: 0 1px 3px rgb(0 0 0 / 6%), 0 1px 2px rgb(0 0 0 / 4%);
  --motion-fast: 120ms ease;
  --motion-base: 200ms ease;
}

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

html,
body {
  min-height: 100%;
  margin: var(--space-0);
}

body {
  min-height: 100svh;
  overflow-x: hidden;
  color: var(--color-text);
  background:
    radial-gradient(circle at 84% 16%, var(--color-accent-soft), transparent 28%),
    var(--color-bg);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  letter-spacing: -0.003em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-shell {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100svh;
  padding: var(--space-6) var(--space-7);
}

.site-header,
.site-footer {
  width: min(100%, calc(var(--space-9) * 12));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  border-radius: var(--radius-md);
  font-size: var(--text-md);
  font-weight: 600;
  letter-spacing: -0.02em;
  transition: color var(--motion-fast);
}

.brand:hover {
  color: var(--color-accent);
}

.brand:focus-visible {
  outline: var(--border-width) solid var(--color-accent);
  outline-offset: var(--space-2);
  box-shadow: 0 0 0 var(--space-1) var(--color-accent-soft);
}

.brand__mark {
  fill: var(--color-accent-soft);
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  align-items: center;
  gap: var(--space-8);
  width: min(100%, calc(var(--space-9) * 12));
  margin-inline: auto;
  padding-block: var(--space-8);
}

.hero__copy {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin: var(--space-0) var(--space-0) var(--space-5);
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow__dot {
  width: var(--space-2);
  height: var(--space-2);
  border: var(--border-width) solid var(--color-accent);
  border-radius: var(--radius-pill);
  background: var(--color-accent-soft);
  box-shadow: 0 0 0 var(--space-1) var(--color-accent-soft);
  animation: pulse 2.4s ease-in-out infinite;
}

h1 {
  margin: var(--space-0);
  font-size: clamp(var(--text-3xl), 5.2vw, calc(var(--space-9) * 0.72));
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.055em;
}

.hero__lede {
  max-width: 36ch;
  margin: var(--space-6) var(--space-0) var(--space-0);
  color: var(--color-text-muted);
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
}

.hero__lede span {
  display: block;
}

.journey {
  position: relative;
  min-width: 0;
}

.journey::before {
  position: absolute;
  inset: 15% 8% 6%;
  z-index: -1;
  border: var(--border);
  border-radius: 50%;
  background: color-mix(in srgb, var(--color-surface) 76%, transparent);
  box-shadow: var(--shadow-sm);
  content: "";
  transform: rotate(-4deg);
}

.journey__art {
  display: block;
  width: 100%;
  max-width: calc(var(--space-9) * 6);
  margin-inline: auto;
  overflow: visible;
}

.journey__route {
  fill: none;
  stroke: var(--color-border-strong);
  stroke-width: 2;
  stroke-dasharray: 0.018 0.028;
  stroke-linecap: round;
  animation: route-drift 3.2s linear infinite;
}

.journey__origin circle:first-child {
  fill: var(--color-accent);
}

.journey__origin circle:nth-child(2) {
  fill: none;
  stroke: var(--color-accent-soft);
  stroke-width: 5;
}

.journey__origin text,
.journey__world text {
  fill: var(--color-text-subtle);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
}

.journey__world circle {
  fill: var(--color-surface);
  stroke: var(--color-text);
  stroke-width: 1.5;
}

.journey__world path {
  fill: none;
  stroke: var(--color-text-muted);
  stroke-width: 1.1;
  stroke-linecap: round;
}

.journey__parcel {
  animation: parcel-travel 6s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

.journey__shadow {
  flood-color: var(--color-text);
}

.journey__parcel path {
  stroke: var(--color-text);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.journey__parcel-fill {
  fill: var(--color-accent-soft);
}

.journey__waves {
  fill: none;
  stroke: var(--color-border-strong);
  stroke-width: 1.2;
  stroke-linecap: round;
}

.journey__waves path:last-child {
  stroke: var(--color-border);
}

.site-footer {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
}

.site-footer__line {
  width: var(--space-5);
  height: var(--border-width);
  background: var(--color-border-strong);
}

@keyframes parcel-travel {
  0%,
  8% {
    opacity: 1;
    transform: translate(0, 0) rotate(-4deg);
  }

  30% {
    transform: translate(100px, -68px) rotate(3deg);
  }

  50% {
    transform: translate(200px, -94px) rotate(-2deg);
  }

  70% {
    transform: translate(300px, -68px) rotate(3deg);
  }

  86% {
    opacity: 1;
  }

  92%,
  100% {
    opacity: 0;
    transform: translate(400px, 0) rotate(-4deg);
  }
}

@keyframes route-drift {
  to {
    stroke-dashoffset: -0.184;
  }
}

@keyframes pulse {
  50% {
    box-shadow: 0 0 0 var(--space-2) transparent;
  }
}

@media (max-width: 760px) {
  .site-shell {
    padding: var(--space-5);
  }

  .hero {
    grid-template-columns: 1fr;
    align-content: center;
    gap: var(--space-5);
    padding-block: var(--space-7);
  }

  h1 {
    font-size: clamp(var(--text-3xl), 13vw, calc(var(--space-9) * 0.58));
  }

  .hero__lede {
    margin-top: var(--space-5);
  }

  .journey__art {
    max-width: calc(var(--space-9) * 4.8);
  }

  .site-footer {
    padding-top: var(--space-4);
  }
}

@media (max-width: 390px) {
  .eyebrow {
    letter-spacing: 0.05em;
  }

  .hero__lede span {
    display: inline;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .journey__parcel {
    opacity: 1;
    transform: translate(200px, -94px);
  }
}
