:root {
  color-scheme: light;
  --night: #131c24;
  --night-deep: #10171e;
  --paper: #f5f4ee;
  --ink: #18252e;
  --muted: #495860;
  --frost: #dae4e6;
  --chalk: #f8f5eb;
  --salmon: #f79272;
  --rust: #953c27;
  --rule: #c8ceca;
  --serif: Georgia, 'Times New Roman', serif;
  font-family: system-ui, -apple-system, sans-serif;
  line-height: 1.58;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
body { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .22em; }
a:hover { text-decoration-thickness: .14em; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }
[hidden] { display: none !important; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -.06em; }
h2 { font-size: clamp(2.65rem, 5vw, 4.25rem); line-height: 1.02; }
h3 { font-size: 1.25rem; line-height: 1.28; letter-spacing: -.02em; }
p + p { margin-top: .7rem; }
section[id] { scroll-margin-top: 1rem; }

.shell { width: min(100% - 5rem, 76rem); margin-inline: auto; }
.skip-link {
  position: absolute;
  z-index: 1;
  inset: .6rem auto auto .6rem;
  padding: .55rem .85rem;
  color: var(--night);
  background: var(--salmon);
  transform: translateY(-200%);
}
.skip-link:focus { transform: translateY(0); }

.masthead, .hero { color: var(--chalk); background: var(--night); }
.header-inner, .footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 2rem;
}
.header-inner { min-height: 5rem; border-bottom: 1px solid #45515a; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: 1.1rem;
  font-weight: 750;
  letter-spacing: -.03em;
  text-decoration: none;
}
.brand img { border-radius: 24%; }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem 1.6rem; }
nav a { display: inline-flex; align-items: center; min-height: 2.75rem; font-size: .91rem; text-decoration: none; }
nav a:hover, nav a[aria-current='page'] { text-decoration: underline; }
nav a[aria-current='page'] { text-decoration-color: var(--salmon); text-decoration-thickness: 2px; }
.nav-source { color: var(--salmon); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.29fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  padding-block: clamp(2.6rem, 5.8vw, 5.2rem) clamp(3.2rem, 7vw, 6rem);
}
.hero h1, .page-title { font-size: clamp(3.4rem, 6.75vw, 6.5rem); line-height: .98; }
.hero h1 { max-width: 9ch; }
.hero-copy > p { margin-top: 1.5rem; max-width: 31rem; color: var(--frost); font-size: clamp(1.06rem, 1.9vw, 1.24rem); }
.hero-copy .hero-note { margin-top: 1.23rem; color: #c2cfd2; font-size: .89rem; }
.hero-image {
  border: 1px solid #65727c;
  background: #232c34;
  border-radius: .32rem;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 54%; }
.actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.65rem; }
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 3.15rem;
  padding: .65rem 1.05rem;
  border: 1px solid transparent;
  border-radius: .28rem;
  font-size: .94rem;
  font-weight: 720;
  text-decoration: none;
}
.button.primary { color: var(--night-deep); background: var(--salmon); }
.button.primary:hover { background: #ffad93; }
.button.primary:focus-visible { outline-color: var(--chalk); }
.button.outline { color: var(--chalk); border-color: #89969d; }
.button.outline:hover { background: #293641; }

.section { padding-block: clamp(3.5rem, 7vw, 6.75rem); }
.features-grid, .setup-grid, .questions-grid {
  display: grid;
  grid-template-columns: minmax(0, .79fr) minmax(0, 1.19fr);
  gap: clamp(1.75rem, 6.5vw, 6.5rem);
}
.section-intro { margin-top: 1.05rem; max-width: 32rem; color: var(--muted); font-size: 1.1rem; }
.home-overview .section-intro { max-width: 38rem; }
.overview-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem 2rem; margin-top: 2rem; }
.overview-links p { margin: 0; padding-top: .85rem; border-top: 1px solid var(--rule); }
.overview-links a { display: inline-flex; align-items: center; min-height: 2.75rem; font-size: 1.15rem; }
.overview-links span { display: block; color: var(--muted); }
.feature-list { border-top: 1px solid var(--rule); }
.feature-list > div { padding: 1rem 0 1.2rem; border-bottom: 1px solid var(--rule); }
.feature-list dt { margin-bottom: .32rem; font-size: 1.17rem; font-weight: 720; letter-spacing: -.025em; }
.feature-list dd, .stack-list dd { color: var(--muted); }

.feature-intro { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.app-gallery { background: #e5eae6; padding-block: clamp(2.65rem, 5vw, 4.65rem); }
.app-gallery h2 { font-size: clamp(2.4rem, 4.5vw, 3.8rem); }
.app-screenshots {
  display: grid;
  grid-template-columns: minmax(12rem, .5fr) minmax(0, 1.36fr);
  align-items: start;
  gap: clamp(1.25rem, 3.5vw, 3.2rem);
  margin-top: 1.65rem;
}
.app-screenshot a { display: block; border: 1px solid #63747d; border-radius: .65rem; overflow: hidden; background: var(--night); }
.app-screenshot img { width: 100%; }
.phone-screenshot { width: min(100%, 18rem); justify-self: center; }
.app-screenshot figcaption { margin-top: .72rem; color: var(--muted); font-size: .94rem; }
.app-screenshot strong { display: block; color: var(--ink); font-size: 1rem; }

.stack { background: #e5eae6; }
.stack-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: .3rem 2rem; margin-bottom: 1.85rem; }
.stack-heading .section-intro { max-width: 26rem; }
.stack-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, .8fr); align-items: start; gap: clamp(1.2rem, 3vw, 2.5rem); }
.stack-grid figure { overflow: hidden; border: 1px solid #aebbb8; border-radius: .32rem; background: #fff; }
.stack-grid figure img { width: 100%; }
.stack-list { border-top: 1px solid #b3bfbb; }
.stack-list > div { padding: .75rem 0 .9rem; border-bottom: 1px solid #b3bfbb; }
.stack-list dt { margin-bottom: .22rem; font-weight: 750; }
.text-link { margin-top: 1rem; }
.text-link a, .guide-links a, .question-list a, .steps a, .section-intro a, .feature-list a, .overview-links a { color: var(--rust); font-weight: 700; }

.setup-grid { align-items: start; }
.guide-links { display: grid; gap: .6rem; margin-top: 1.5rem; }
.guide-links a { width: fit-content; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; padding: 1.15rem 0 1.25rem 3.6rem; border-top: 1px solid var(--rule); counter-increment: step; }
.steps li::before {
  content: counter(step);
  position: absolute;
  top: .85rem;
  left: 0;
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid #a65b45;
  border-radius: 50%;
  color: var(--rust);
  font-size: .98rem;
  font-weight: 750;
}
.steps li > p { margin-top: .58rem; color: var(--muted); }
.command { margin-top: .95rem; border: 1px solid #3b4b58; border-radius: .3rem; background: var(--night); color: var(--chalk); }
.command-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .3rem 1rem;
  padding: .23rem .7rem .23rem .85rem;
  min-height: 2.75rem;
  border-bottom: 1px solid #455460;
  color: var(--frost);
  font-size: .86rem;
}
.command-bar button {
  padding: .24rem .58rem;
  min-height: 2.15rem;
  border: 1px solid #7c8c95;
  border-radius: .23rem;
  color: inherit;
  background: transparent;
  font: inherit;
  cursor: pointer;
}
.command-bar button:hover { color: var(--chalk); background: #354651; }
.command pre { margin: 0; padding: .76rem .85rem .87rem; overflow-x: auto; font-size: .9rem; line-height: 1.75; }
code { font-family: ui-monospace, 'SFMono-Regular', Consolas, monospace; font-size: .92em; }

.questions { background: #eeeee5; }
.question-list { border-top: 1px solid var(--rule); }
details { border-bottom: 1px solid var(--rule); }
summary { position: relative; display: block; padding: .9rem 2rem .9rem 0; cursor: pointer; font-weight: 720; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ''; position: absolute; right: .25rem; top: 1.32rem; width: .5rem; height: .5rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
details[open] summary::after { transform: translateY(.21rem) rotate(225deg); }
details > p { padding: 0 1.1rem 1rem 0; color: var(--muted); }

footer { background: var(--night-deep); color: var(--chalk); }
.footer-inner { padding-block: 1.4rem; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 60rem) {
  .shell { width: min(100% - 3rem, 76rem); }
  .hero-grid { gap: 1.8rem; }
  .hero h1, .page-title { font-size: clamp(3rem, 7.1vw, 5.4rem); }
}

@media (max-width: 46rem) {
  .hero-grid, .features-grid, .setup-grid, .questions-grid, .stack-grid { grid-template-columns: minmax(0, 1fr); }
  .app-screenshots { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
  .hero h1, .page-title { font-size: clamp(3rem, 10.5vw, 5.2rem); }
  .hero-image { aspect-ratio: 4 / 3; }
  .hero-copy > p { margin-top: 1rem; }
  .section-intro { margin-top: .8rem; }
  .command-bar button { min-height: 2.5rem; }
}

@media (max-width: 32rem) {
  .shell { width: calc(100% - 2.25rem); }
  .header-inner { gap: .1rem .8rem; padding-top: .68rem; }
  .header-inner nav { flex-basis: 100%; gap: .25rem 1.3rem; }
  .hero h1, .page-title { font-size: clamp(2.55rem, 11vw, 3.45rem); }
  .overview-links { grid-template-columns: minmax(0, 1fr); gap: 1.05rem; }
  .steps li { padding-left: 2.8rem; }
  .steps li::before { width: 1.95rem; height: 1.95rem; top: 1rem; }
  .command pre { white-space: pre-wrap; overflow-wrap: anywhere; }
}
