:root {
  color-scheme: light;
  --paper: #f7f8f5;
  --bg: #f7f5f0;
  --ink: #161716;
  --muted: #686a62;
  --line: #d9ded6;
  --panel: #fffdf8;
  --accent: #1f6b57;
  --max: 1120px;
  --font-sans:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 10;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 14px;
  font-size: 0.875rem;
  font-weight: 600;
}

.skip-link:focus {
  top: 16px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-weight: 850;
  line-height: 0.92;
  text-wrap: balance;
}

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
  padding: 0 32px;
  border-bottom: 1px solid rgba(223, 217, 206, 0.72);
  background: rgba(247, 245, 240, 0.88);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: 0;
}

.brand img {
  width: 104px;
  height: auto;
}

.nav-tabs {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.72);
}

.nav-tab {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.nav-tab:hover,
.nav-tab:focus-visible,
.nav-tab.is-active {
  background: var(--ink);
  color: var(--panel);
  outline: none;
}

.home-page {
  background:
    radial-gradient(circle at 50% 18%, rgba(31, 107, 87, 0.12), transparent 32rem),
    linear-gradient(180deg, #fbfaf6 0%, var(--bg) 58%);
}

.home-hero {
  display: grid;
  width: 100%;
  min-height: 100vh;
  align-items: center;
  padding: 116px 24px 48px;
}

.home-hero-copy {
  width: min(100%, 920px);
  min-width: 0;
  margin: 0 auto;
}

.logo-heading img {
  width: min(100%, 680px);
  height: auto;
}

.hero-lede {
  max-width: none;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.28rem;
  line-height: 1.45;
  white-space: nowrap;
}

.hero-artifact {
  display: flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  gap: 14px;
  margin-top: 42px;
  padding: 18px 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 24px 70px rgba(23, 23, 23, 0.08);
  color: var(--ink);
}

.hero-artifact code {
  min-width: 0;
  font-size: clamp(0.72rem, 1.12vw, 0.98rem);
  white-space: nowrap;
}

.content-section {
  display: grid;
  width: min(100% - 64px, var(--max));
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.08fr);
  gap: 56px;
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
  padding: 88px 0;
}

.content-section h2 {
  margin: 0;
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.06;
  text-wrap: balance;
}

.content-section p {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.72;
}

.research-list {
  grid-column: 1 / -1;
  display: grid;
  margin: 22px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.research-row {
  display: grid;
  grid-template-columns: 72px minmax(210px, 0.44fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.research-row span {
  display: inline-flex;
  width: 42px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(217, 222, 214, 0.85);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.6);
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.78rem;
  line-height: 1;
}

.research-row h3 {
  margin-bottom: 0;
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.25;
}

.research-row p {
  max-width: 760px;
  font-size: 0.98rem;
  line-height: 1.62;
  white-space: nowrap;
}

.contact-section {
  padding-bottom: 128px;
}

.text-link {
  display: inline-block;
  margin-top: 28px;
  border-bottom: 1px solid currentColor;
  color: var(--ink);
  font-weight: 800;
}

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

.tempo-page {
  background:
    radial-gradient(circle at 50% 18%, rgba(31, 107, 87, 0.12), transparent 32rem),
    linear-gradient(180deg, #fbfaf6 0%, var(--bg) 58%);
}

.tempo-shell {
  display: grid;
  width: 100%;
  min-height: 100vh;
  align-items: center;
  padding: 116px 24px 48px;
}

.tempo-hero {
  width: min(100%, 920px);
  min-width: 0;
  margin: 0 auto;
}

.tempo-page h1 {
  font-size: 6.5rem;
}

.lede {
  max-width: 42rem;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.35rem;
  line-height: 1.45;
}

.install-card {
  display: flex;
  width: min(100%, 680px);
  align-items: center;
  gap: 14px;
  margin-top: 42px;
  padding: 20px 22px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 24px 70px rgba(23, 23, 23, 0.08);
  color: var(--ink);
}

.prompt {
  flex: 0 0 auto;
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 700;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.98rem;
  white-space: nowrap;
}

@media (max-width: 960px) {
  .content-section {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 76px 0;
  }

  .content-section h2 {
    font-size: 2.45rem;
  }

  .research-row {
    grid-template-columns: 56px minmax(160px, 220px) minmax(0, 1fr);
    gap: 18px;
  }
}

@media (max-width: 720px) {
  html {
    scroll-padding-top: 80px;
  }

  .site-header {
    height: 60px;
    padding: 0 18px;
  }

  .home-hero {
    padding: 96px 20px 40px;
  }

  .hero-lede {
    font-size: 1.1rem;
    white-space: normal;
  }

  .hero-artifact {
    margin-top: 32px;
    padding: 16px;
  }

  .hero-artifact code {
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.45;
  }

  .content-section {
    width: min(100% - 40px, var(--max));
    padding: 62px 0;
  }

  .content-section h2 {
    font-size: 2rem;
  }

  .research-row {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 24px 0;
  }

  .research-row p {
    white-space: normal;
  }

  .tempo-shell {
    padding: 96px 20px 40px;
  }

  .tempo-page h1 {
    font-size: 4.6rem;
  }

  .lede {
    font-size: 1.1rem;
  }

  .install-card {
    margin-top: 32px;
    padding: 16px;
  }

  code {
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.45;
  }
}

@media (max-width: 380px) {
  .content-section h2 {
    font-size: 2rem;
  }

  .tempo-page h1 {
    font-size: 3.75rem;
  }
}
