@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/instrument-serif-400.woff2) format('woff2');
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/instrument-serif-400-italic.woff2) format('woff2');
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/inter-400.woff2) format('woff2');
}
@font-face {
  font-family: Inter;
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/inter-400-italic.woff2) format('woff2');
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/inter-500.woff2) format('woff2');
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/inter-600.woff2) format('woff2');
}

/* Tokens: the app's own palette. Dark uses the app's green-black grounds. */
:root {
  --surface: #f8f9fa;
  --surface-low: #f3f4f5;
  --surface-sunk: #edeef0;
  --card: #ffffff;
  --ink: #162925;
  --text: #2c3c38;
  --muted: #5b6763;
  --green: #34955f;
  --green-deep: #236b45;
  --rule: rgba(22, 41, 37, 0.1);
  --rule-strong: rgba(22, 41, 37, 0.18);
  --on-ink: #ffffff;
  --shadow-window: 0 1px 2px rgba(22, 41, 37, 0.06), 0 30px 80px -20px rgba(22, 41, 37, 0.28);
  --shadow-card: 0 12px 32px rgba(25, 28, 29, 0.06);

  --reading: #3f7fae;
  --writing: #7d64a8;
  --running: #34955f;
  --talking: #b9822f;
  --waiting: #c0504a;
  --finished: #97a29f;

  --orrery-orbit: #34955f;
  --orrery-label: #5b6763;
  --orrery-core-light: #46675e;
  --orrery-core: #162925;
  --orrery-core-dark: #0b1613;
  --orrery-ground: #f8f9fa;

  --serif: 'Instrument Serif', 'Times New Roman', Times, serif;
  --sans: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(16px, 5vw, 64px);
  --measure: 1180px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --surface: #0f1715;
    --surface-low: #131d1b;
    --surface-sunk: #1b2724;
    --card: #18221f;
    --ink: #e4ebe8;
    --text: #c9d4d0;
    --muted: #9aaaa5;
    --green: #4caf78;
    --green-deep: #7cc79c;
    --rule: rgba(228, 235, 232, 0.1);
    --rule-strong: rgba(228, 235, 232, 0.18);
    --on-ink: #0f1715;
    --shadow-window: 0 1px 2px rgba(0, 0, 0, 0.4), 0 30px 80px -20px rgba(0, 0, 0, 0.7);
    --shadow-card: 0 12px 32px rgba(0, 0, 0, 0.35);
    --waiting: #e0766e;
    --talking: #d6a04f;
    --orrery-orbit: #4caf78;
    --orrery-label: #9aaaa5;
    --orrery-core-light: #f4f8f6;
    --orrery-core: #cfdbd6;
    --orrery-core-dark: #8fa39c;
    --orrery-ground: #0f1715;
    color-scheme: dark;
  }
}

/* Base */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p {
  margin: 0;
}

a {
  color: var(--green-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
}

code,
kbd,
pre {
  font-family: var(--mono);
  font-size: 0.88em;
}

:not(pre) > code {
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: var(--surface-sunk);
  color: var(--ink);
  overflow-wrap: anywhere;
}

kbd {
  display: inline-block;
  min-width: 1.7em;
  padding: 0.05em 0.4em;
  border: 1px solid var(--rule-strong);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: var(--card);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.82em;
  text-align: center;
}

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

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 10;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--on-ink);
}

.skip:focus {
  top: 16px;
}

/* Masthead */

.masthead {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 22px var(--gutter);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.wordmark svg {
  width: 28px;
  height: 28px;
}

.wordmark__name {
  font: 400 25px/1 var(--serif);
  letter-spacing: -0.02em;
}

.wordmark__by,
.hero__by,
.footer__brand i {
  color: var(--muted);
  font-family: var(--sans);
  font-style: italic;
  letter-spacing: 0;
}

.wordmark__by {
  align-self: flex-end;
  margin-bottom: 2px;
  font-size: 13px;
}

.mark__orbits {
  stroke: var(--green);
}

.mark__core {
  fill: var(--ink);
}

.mark__moon {
  fill: var(--green);
}

.masthead nav {
  display: flex;
  gap: 4px;
  font-size: 15px;
}

.masthead nav a {
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s, background-color 0.15s;
}

.masthead nav a:hover {
  background: var(--surface-sunk);
  color: var(--ink);
}

.masthead nav .masthead__github {
  color: var(--ink);
  font-weight: 500;
}

/* Hero: the orrery turns behind the name. */

.hero {
  position: relative;
  overflow-x: clip;
  padding: clamp(40px, 7vw, 96px) var(--gutter) 0;
}

.hero__orrery {
  position: absolute;
  z-index: 0;
  top: -70px;
  left: max(calc(50% - 60px), calc(100% - 900px));
  width: 960px;
  height: 960px;
  pointer-events: none;
  /* Fades out before the recording so the window sits on a clean ground. */
  mask-image: linear-gradient(to bottom, #000 58%, transparent 82%);
}

.hero__copy {
  position: relative;
  z-index: 1;
  max-width: var(--measure);
  margin: 0 auto;
}

.hero__copy > * {
  max-width: 620px;
}

.hero__name {
  font-size: clamp(64px, 10.5vw, 136px);
  line-height: 0.9;
  letter-spacing: -0.035em;
}

.hero__by {
  display: inline-block;
  margin-left: 0.1em;
  font-size: clamp(16px, 1.6vw, 21px);
  vertical-align: 0.1em;
  white-space: nowrap;
}

.hero__pitch {
  max-width: 21em;
  margin-top: 28px;
  color: var(--ink);
  font-size: clamp(22px, 2.3vw, 28px);
  line-height: 1.3;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

.hero__detail {
  max-width: 34em;
  margin-top: 14px;
  color: var(--muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--ink);
  border-radius: 10px;
  background: var(--ink);
  color: var(--on-ink);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.2s var(--ease), background-color 0.15s;
}

.button svg {
  width: 18px;
  height: 18px;
}

.button:hover {
  text-decoration: none;
}

.button:active {
  transform: scale(0.97);
}

.button--quiet {
  border-color: var(--rule-strong);
  background: transparent;
  color: var(--ink);
}

.button--quiet:hover {
  background: var(--surface-sunk);
}

.prompt {
  max-width: 560px;
  margin-top: 28px;
}

.prompt__label {
  color: var(--muted);
  font-size: 14px;
}

.prompt__box,
.code {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 8px;
  padding: 14px 14px 14px 18px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--card);
  box-shadow: var(--shadow-card);
}

.prompt__text {
  flex: 1;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.copy {
  flex: none;
  min-width: 68px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--rule-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font: 500 14px/1 var(--sans);
  cursor: pointer;
  transition: transform 0.2s var(--ease), background-color 0.15s, color 0.15s;
}

.copy:hover {
  background: var(--surface-sunk);
}

.copy:active {
  transform: scale(0.96);
}

.copy[data-copied] {
  border-color: var(--green);
  background: var(--green);
  color: var(--on-ink);
}

/* The recording: the demo is the star, so it gets the full width. */

.demo {
  position: relative;
  z-index: 1;
  max-width: calc(1240px + 2 * var(--gutter));
  margin: clamp(48px, 7vw, 88px) auto 0;
  padding: 0 var(--gutter);
}

.window {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--rule-strong);
  border-radius: 14px;
  background: var(--card);
  box-shadow: var(--shadow-window);
}

.window__bar {
  display: flex;
  justify-content: center;
  padding: 9px 12px;
  border-bottom: 1px solid var(--rule);
  background: var(--surface-low);
}

.window__address {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 14px;
  border-radius: 7px;
  background: var(--surface-sunk);
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.window__live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

.window__shot {
  display: block;
  width: 100%;
  height: auto;
}

.demo__caption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

/* Sections */

.section {
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin: 0 auto;
  padding: clamp(80px, 11vw, 144px) var(--gutter) 0;
}

.section h2 {
  max-width: 15em;
  font-size: clamp(40px, 5.4vw, 66px);
  line-height: 1.02;
}

.section__head {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 24px 64px;
  align-items: end;
}

.lead {
  max-width: 34em;
  color: var(--muted);
}

/* Features */

.feature-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px 48px;
  margin-top: 64px;
}

.feature {
  padding-top: 18px;
  border-top: 1px solid var(--rule-strong);
}

.feature h3 {
  font-size: 28px;
  line-height: 1.1;
}

.feature p {
  margin-top: 10px;
  font-size: 16px;
}

/* The key: the app's orb colours, read like the legend on an orrery's base plate. */

.key {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 32px 64px;
  margin-top: 88px;
  padding: clamp(28px, 4vw, 48px);
  border-radius: 20px;
  background: var(--surface-low);
}

.key h3 {
  font-size: clamp(30px, 3.2vw, 40px);
  line-height: 1.08;
}

.key__intro p {
  margin-top: 14px;
  color: var(--muted);
}

.key__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.key__list li {
  display: grid;
  grid-template-columns: 30px 1fr;
  column-gap: 12px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.key__list b {
  color: var(--ink);
  font-weight: 500;
}

.orb {
  grid-row: span 2;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 32%, rgba(255, 255, 255, 0.75), var(--orb) 38%, color-mix(in srgb, var(--orb) 82%, #000));
}

.orb--waiting {
  box-shadow: 0 0 0 4px var(--surface-low), 0 0 0 5.5px color-mix(in srgb, var(--orb) 55%, transparent);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 32px;
  margin-top: 88px;
}

.gallery figure {
  margin: 0;
}

.gallery img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
}

.gallery figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 15px;
}

/* How it works: four stops on one orbit. */

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px;
  margin: 64px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps::before {
  content: '';
  position: absolute;
  top: 17px;
  left: 18px;
  right: 18px;
  border-top: 1.5px dashed color-mix(in srgb, var(--green) 55%, transparent);
}

.steps li {
  position: relative;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 22px;
  border: 1.5px solid var(--green);
  border-radius: 50%;
  background: var(--surface);
  color: var(--green-deep);
  font: 400 20px/1 var(--serif);
}

.steps li:last-child::before {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--on-ink);
}

.steps h3 {
  font-size: 25px;
  line-height: 1.12;
}

.steps p {
  margin-top: 10px;
  font-size: 16px;
}

/* Privacy */

.ledger {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  margin-top: 64px;
  border: 1px solid var(--rule-strong);
  border-radius: 20px;
  overflow: hidden;
}

.ledger__col {
  padding: clamp(24px, 3.5vw, 40px);
  background: var(--card);
}

.ledger__col--never {
  border-left: 1px solid var(--rule-strong);
  background: var(--surface-low);
}

.ledger h3 {
  font-size: 28px;
}

.ledger ul {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.ledger li {
  padding: 10px 0;
  border-top: 1px solid var(--rule);
  color: var(--ink);
}

.ledger li::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 14px;
  border-radius: 50%;
  background: var(--green);
  vertical-align: 2px;
}

.ledger__col--never li {
  color: var(--muted);
}

.ledger__col--never li::before {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--muted);
}

.guarantees {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px 48px;
  margin: 56px 0 0;
}

.guarantees dt {
  color: var(--ink);
  font-weight: 600;
}

.guarantees dd {
  margin: 6px 0 0;
  font-size: 16px;
}

/* Install */

.tabs {
  margin-top: 56px;
}

.tabs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  width: fit-content;
  max-width: 100%;
  padding: 4px;
  border-radius: 12px;
  background: var(--surface-sunk);
}

.tabs__list button {
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font: 500 15px/1 var(--sans);
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}

.tabs__list button:hover {
  color: var(--ink);
}

.tabs__list button[aria-selected='true'] {
  background: var(--ink);
  color: var(--on-ink);
}

.tabs__panel {
  max-width: 820px;
  margin-top: 28px;
}

.tabs__panel[hidden] {
  display: none;
}

/* Without JavaScript every panel shows, one after another. */
.no-js .tabs__list {
  display: none;
}

.tabs__panel > p:first-child {
  color: var(--muted);
}

.code {
  margin-top: 14px;
  padding: 18px 14px 18px 20px;
}

.code pre {
  flex: 1;
  margin: 0;
  overflow-x: auto;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.7;
  white-space: pre;
}

.code pre.wrap {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.note {
  max-width: 44em;
  margin-top: 16px;
  color: var(--muted);
  font-size: 15px;
}

.note b {
  color: var(--ink);
  font-weight: 500;
}

/* Questions */

.faq {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 24px 64px;
}

.faq__list {
  border-top: 1px solid var(--rule-strong);
}

.faq details {
  border-bottom: 1px solid var(--rule-strong);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  color: var(--ink);
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '';
  flex: none;
  width: 9px;
  height: 9px;
  margin: 7px 4px 0 0;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.25s var(--ease);
}

.faq details[open] summary::after {
  transform: translateY(4px) rotate(225deg);
}

.faq details p {
  max-width: 38em;
  padding-bottom: 20px;
  font-size: 16px;
}

/* Footer */

.footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px 32px;
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin: clamp(96px, 12vw, 160px) auto 0;
  padding: 28px var(--gutter) 40px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 14px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer__brand svg {
  width: 24px;
  height: 24px;
}

.footer__name {
  color: var(--ink);
  font: 400 21px/1 var(--serif);
  letter-spacing: -0.02em;
}

.footer__brand i {
  margin-left: 4px;
  font-size: 13px;
}

.footer__links {
  display: flex;
  gap: 18px;
}

/* Responsive */

@media (max-width: 1080px) {
  .feature-list,
  .guarantees {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .key,
  .faq {
    grid-template-columns: 1fr;
  }

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

  .steps::before {
    display: none;
  }
}

@media (max-width: 820px) {
  .masthead nav a:not(.masthead__github) {
    display: none;
  }

  .hero__orrery {
    top: -60px;
    left: auto;
    right: -300px;
    width: 640px;
    height: 640px;
    opacity: 0.55;
  }

  .section__head,
  .ledger,
  .gallery {
    grid-template-columns: 1fr;
  }

  .ledger__col--never {
    border-left: 0;
    border-top: 1px solid var(--rule-strong);
  }

  .footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .feature-list,
  .guarantees,
  .key__list,
  .steps {
    grid-template-columns: 1fr;
  }

  /* Only the outer orbits show, arcing behind the masthead, so the copy stays clear. */
  .hero__orrery {
    top: -420px;
    right: -380px;
    width: 600px;
    height: 600px;
    opacity: 0.5;
    mask-image: none;
  }

  .prompt__box {
    flex-direction: column;
  }

  .prompt__box .copy {
    align-self: flex-end;
  }

  .window {
    border-radius: 10px;
  }

  .window__bar {
    padding: 7px 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
