:root {
  --paper: #f3ecdf;
  --paper-2: #e7dfd0;
  --ink: #17211e;
  --muted: #5e584e;
  --line: #d5ccbe;
  --sea: #143f48;
  --sea-2: #1f6270;
  --night: #1b2433;
  --clay: #b84332;
  --kite: #c9853a;
  --kite-ink: #1c140c;
  --dusk: #3a2340;
  --compass: #214237;
  --wing: #e07a32;
  --card: #fffaf3;
  --shadow: 0 18px 40px rgba(23, 33, 30, 0.08);
  --serif: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Sora", "Avenir Next", "Segoe UI", sans-serif;
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -40px;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 12px;
  z-index: 5;
}

.skip:focus { top: 12px; }

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.bar {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
}

.bar.is-stuck,
body:has(.bar) .bar {
  border-bottom-color: var(--line);
}

.mark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.mark span { color: var(--sea-2); }

nav {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  min-width: 0;
  gap: 8px 16px;
  justify-content: flex-end;
}

nav a {
  text-decoration: none;
  font-size: 0.84rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

nav a[aria-current="page"],
nav a:hover {
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(240px, 0.7fr);
  gap: 48px;
  align-items: end;
  padding: 54px 0 36px;
}

.hero > * { min-width: 0; }

.kicker {
  margin: 0 0 12px;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sea-2);
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 560;
  letter-spacing: -0.035em;
  line-height: 0.96;
  margin: 0;
}

.hero h1 {
  font-size: clamp(4.2rem, 10vw, 7.4rem);
  max-width: min(100%, 11ch);
}

.lede {
  max-width: min(38rem, 100%);
  margin: 22px 0 0;
  font-size: 1.18rem;
  color: var(--muted);
}

.index {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.index a {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 14px 0;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.index em {
  font-style: normal;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  font-size: 0.84rem;
}

.index strong {
  font-weight: 520;
}

.atlas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding-bottom: 28px;
}

.plate {
  display: flex;
  flex-direction: column;
  min-height: 280px;
  padding: 22px;
  text-decoration: none;
  border-radius: 22px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.plate svg {
  width: 92px;
  height: 92px;
  margin-bottom: auto;
}

.plate h2 {
  font-size: clamp(2rem, 3vw, 2.7rem);
  margin-top: 28px;
}

.plate p {
  margin: 10px 0 0;
  max-width: 34ch;
}

.plate .go {
  margin-top: 18px;
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.plate-nav { background: var(--sea); color: #f6f1e7; }
.plate-sec { background: var(--night); color: #f6f1e7; }
.plate-kite { background: var(--kite); color: var(--kite-ink); }
.plate-para { background: var(--dusk); color: #f7efe8; }
.plate-compass { background: var(--compass); color: #f6f1e7; }

.plate-nav .kicker,
.plate-sec .kicker,
.plate-para .kicker,
.plate-compass .kicker { color: #f0c9a2; }

.plate-kite .kicker { color: #4a2d10; }

.thread {
  display: grid;
  grid-template-columns: 0.8fr 1fr 1fr 1fr;
  gap: 22px;
  padding: 28px 0 64px;
  border-top: 1px solid var(--line);
}

.thread h2 {
  font-size: 2.2rem;
  max-width: 8ch;
}

.thread article h3 {
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.thread p { margin: 0; color: var(--muted); }

.app-hero {
  margin: 28px 0 0;
  padding: 36px 32px 32px;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.app-hero h1 {
  font-size: clamp(3.4rem, 8vw, 6.2rem);
  max-width: 12ch;
}

.app-hero .lede {
  color: inherit;
  opacity: 0.86;
}

.app-hero.has-shot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 28px 40px;
  align-items: center;
}

.phone {
  margin: 0;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(246, 241, 231, 0.16);
}

.phone img {
  width: 100%;
  height: auto;
}

.platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.platforms li {
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.split,
.thread,
.atlas {
  min-width: 0;
}

.split > *,
.thread > *,
.atlas > * { min-width: 0; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
  padding: 42px 0 18px;
}

.split h2 { font-size: 2rem; margin-bottom: 12px; }

.features {
  margin: 0;
  padding: 0;
  list-style: none;
}

.features li {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.features li:last-child { border-bottom: 1px solid var(--line); }

.features strong { display: block; font-weight: 520; }

.features span { color: var(--muted); }

.note {
  margin: 8px 0 56px;
  padding: 18px 20px;
  background: var(--card);
  border-left: 4px solid var(--clay);
  border-radius: 0 16px 16px 0;
}

.note p { margin: 0; }

.siblings {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding-bottom: 28px;
}

.siblings a {
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.foot {
  border-top: 1px solid var(--line);
  padding: 22px 0 36px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.92rem;
}

.foot a { color: var(--ink); }

@media (min-width: 861px) {
  .atlas {
    grid-template-columns: repeat(6, 1fr);
  }

  .atlas .plate { grid-column: span 3; }

  .atlas .plate:last-child:nth-child(odd) {
    grid-column: 2 / span 3;
  }
}

@media (max-width: 860px) {
  .hero,
  .atlas,
  .split,
  .thread {
    grid-template-columns: 1fr;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero h1,
  .app-hero h1 {
    font-size: clamp(2rem, 8.4vw, 3rem);
    max-width: 100%;
  }

  .thread h2 { max-width: none; }

  .bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .app-hero { padding: 28px 20px; }

  .app-hero.has-shot {
    grid-template-columns: minmax(0, 1fr);
  }

  .phone {
    width: min(260px, 100%);
    justify-self: center;
  }

  .wrap { width: min(var(--max), calc(100% - 28px)); }
}

.navigation-gallery { padding: 24px 0 42px; }
.navigation-gallery h2 { font-size: clamp(2rem, 4vw, 3rem); }
.gallery-intro { max-width: 65ch; color: var(--muted); margin: 18px 0 28px; }
.navigation-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.navigation-feature { min-width: 0; background: var(--card); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.navigation-capture { display: block; background: #0b1929; padding: 20px; }
.navigation-capture img { width: auto; height: auto; max-height: 560px; margin: auto; border-radius: 12px; }
.navigation-feature > div { padding: 24px; }
.navigation-feature h3 { font-size: 1.7rem; line-height: 1.1; }
.navigation-feature p { margin: 14px 0 0; color: var(--muted); }
.navigation-wide { grid-column: 1 / -1; }
.navigation-wide .navigation-capture img { width: 100%; max-height: none; }
@media (max-width: 650px) {
 .navigation-grid { grid-template-columns: minmax(0, 1fr); }
 .navigation-capture { padding: 12px; }
 .navigation-feature > div { padding: 20px; }
}
