:root {
  color-scheme: light;
  --paper: #f3f0e8;
  --paper-deep: #e8e3d8;
  --ink: #171815;
  --muted: #64655f;
  --line: #c9c5ba;
  --blue: #174ea6;
  --blue-dark: #103973;
  --green: #34705c;
  --code: #20231f;
  --focus: #005fcc;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background: var(--paper);
  color: var(--ink);
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
}
::selection {
  background: #b9d2f4;
  color: var(--ink);
}
a {
  color: inherit;
  text-underline-offset: 0.22em;
}
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.site-header,
.site-footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-header {
  min-height: 76px;
  border-bottom: 1px solid var(--line);
}
.wordmark {
  font-size: 1.2rem;
  font-weight: 760;
  text-decoration: none;
  letter-spacing: -0.02em;
}
.wordmark span {
  color: var(--blue);
}
nav,
.site-footer div {
  display: flex;
  gap: 28px;
}
nav a,
.site-footer a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 620;
  text-decoration: none;
}
nav a:hover,
.site-footer a:hover {
  color: var(--ink);
  text-decoration: underline;
}

main {
  overflow: hidden;
}
.hero,
.problem,
.examples,
.quick-start,
.depth,
.closing {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}
.hero {
  min-height: 760px;
  position: relative;
  padding: 100px 0 88px;
}
.hero-copy {
  width: min(620px, 58%);
  position: relative;
  z-index: 2;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4.4rem, 8.3vw, 7.2rem);
  line-height: 0.85;
  letter-spacing: -0.04em;
  font-weight: 500;
  margin-bottom: 34px;
}
.hero-copy > p {
  max-width: 620px;
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  line-height: 1.55;
  color: #373934;
}
.actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 34px;
  flex-wrap: wrap;
}
.primary-action {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 20px;
  background: var(--blue);
  color: white;
  font-weight: 700;
  text-decoration: none;
  border-radius: 12px;
}
.primary-action:hover {
  background: var(--blue-dark);
}
.text-action {
  color: var(--blue-dark);
  font-weight: 700;
}

.terminal {
  position: absolute;
  right: 0;
  top: 108px;
  width: 440px;
  background: var(--code);
  color: #f5f3ec;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(28, 31, 27, 0.18);
  overflow: hidden;
  transform: rotate(1.5deg);
}
.terminal-bar {
  display: flex;
  justify-content: space-between;
  padding: 11px 16px;
  border-bottom: 1px solid #3e433b;
  color: #aeb4a8;
  font-size: 0.75rem;
}
.terminal pre {
  margin: 0;
  padding: 24px;
  font-size: 0.9rem;
  line-height: 1.75;
  overflow: auto;
}
.syntax-prompt {
  color: #8ed0ad;
}
.syntax-shell-package {
  color: #b9d8ff;
}
.syntax-output {
  color: #aeb4a8;
}
.explorer-sample {
  position: relative;
  z-index: 3;
  width: 84%;
  margin: 92px 0 0 auto;
  background: #fbfaf6;
  border: 1px solid #bbb8af;
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(46, 46, 40, 0.14);
  overflow: hidden;
}
.sample-caption {
  min-height: 50px;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #d8d4ca;
  color: var(--muted);
  font-size: 0.76rem;
}
.sample-caption a {
  color: var(--blue);
  font-weight: 680;
  white-space: nowrap;
}
.explorer-sample iframe {
  display: block;
  width: 100%;
  height: 470px;
  border: 0;
  background: #fff;
}

.problem {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 90px;
  padding: 120px 0;
  border-top: 1px solid var(--line);
}
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 5vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 500;
}
.problem p,
.section-heading p,
.depth-intro p,
.closing p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
  max-width: 64ch;
}
.problem dl {
  margin: 0;
  border-top: 1px solid var(--ink);
}
.problem dl div {
  display: grid;
  grid-template-columns: 110px 1fr;
  padding: 19px 0;
  border-bottom: 1px solid var(--line);
}
.problem dt {
  font-weight: 750;
}
.problem dd {
  margin: 0;
  color: var(--muted);
}

.examples {
  padding: 120px 0;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 54px;
}
.section-heading h2 {
  max-width: 760px;
  margin-bottom: 0;
}
.section-heading p {
  max-width: 390px;
  margin-bottom: 3px;
}
.example-list {
  border-top: 1px solid var(--ink);
}
.example-list article {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}
.example-list h3 {
  font-size: 1.45rem;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.example-list p {
  max-width: 600px;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 10px;
}
.example-detail {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 730;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.example-actions {
  display: flex;
  gap: 20px;
}
.example-actions a {
  color: var(--blue-dark);
  font-weight: 700;
  white-space: nowrap;
}

.quick-start {
  padding: 120px 0;
  border-top: 1px solid var(--line);
}
.command-pair {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: #4a4d46;
  border: 1px solid #4a4d46;
  margin-bottom: 28px;
}
.command-pair div {
  background: var(--code);
  color: white;
  padding: 25px;
}
.command-pair span {
  display: block;
  margin-bottom: 16px;
  color: #acb2a7;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.command-pair code,
.code-panel code {
  font-size: clamp(0.86rem, 1.5vw, 1rem);
}

.depth {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 90px;
  padding: 120px 0;
  border-top: 1px solid var(--line);
}
.depth-intro h2 {
  font-size: clamp(2.5rem, 4.4vw, 4rem);
}
.code-panel {
  align-self: start;
  background: #fbfaf6;
  border: 1px solid #bbb8af;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 54px rgba(46, 46, 40, 0.1);
}
.code-tabs {
  display: flex;
  border-bottom: 1px solid #d8d4ca;
}
.code-tabs button {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 15px 18px;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.code-tabs button[aria-selected="true"] {
  color: var(--blue-dark);
  box-shadow: inset 0 -2px var(--blue);
}
.code-panel pre {
  min-height: 210px;
  margin: 0;
  padding: 28px;
  line-height: 1.75;
  overflow: auto;
}
.code-panel pre[hidden] {
  display: none;
}
.code-panel .syntax-call,
.code-panel .syntax-key {
  color: #174ea6;
}
.code-panel .syntax-string {
  color: #22624d;
}
.code-panel .syntax-keyword {
  color: #804b2f;
}
.depth-links {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 20px 28px;
}
.depth-links a {
  color: var(--blue-dark);
  font-weight: 700;
}

.closing {
  padding: 145px 0;
  text-align: center;
  border-top: 1px solid var(--line);
}
.closing h2 {
  max-width: 850px;
  margin: 0 auto 22px;
}
.closing p {
  margin: 0 auto 30px;
}
.site-footer {
  min-height: 94px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
}

@media (max-width: 850px) {
  .site-header {
    min-height: 66px;
  }
  .site-header nav a:first-child {
    display: none;
  }
  nav {
    gap: 18px;
  }
  .hero {
    padding-top: 64px;
    min-height: auto;
  }
  .hero-copy {
    width: 100%;
  }
  .terminal {
    position: relative;
    top: auto;
    right: auto;
    width: min(100%, 440px);
    margin: 48px 0 0 auto;
    transform: rotate(0.8deg);
  }
  .explorer-sample {
    width: 100%;
    margin-top: 28px;
  }
  .problem,
  .depth {
    grid-template-columns: 1fr;
    gap: 52px;
  }
  .depth-links {
    grid-column: 1;
  }
  .section-heading {
    display: block;
  }
  .section-heading h2 {
    margin-bottom: 24px;
  }
  .example-list article {
    grid-template-columns: 1fr auto;
  }
}

@media (max-width: 560px) {
  .site-header,
  .site-footer,
  .hero,
  .problem,
  .examples,
  .quick-start,
  .depth,
  .closing {
    width: min(calc(100% - 28px), 1180px);
  }
  body {
    overflow-x: hidden;
  }
  .site-header nav a:not(:nth-child(2)) {
    display: none;
  }
  h1 {
    font-size: clamp(3.65rem, 20vw, 5rem);
  }
  .hero {
    padding-top: 52px;
  }
  .hero-copy > p {
    font-size: 1rem;
  }
  .terminal {
    width: 100%;
    margin-top: 42px;
  }
  .actions {
    align-items: flex-start;
    flex-direction: column;
  }
  .explorer-sample {
    overflow: hidden;
  }
  .sample-caption {
    align-items: flex-start;
    flex-direction: column;
  }
  .explorer-sample iframe {
    height: 500px;
  }
  .problem,
  .examples,
  .quick-start,
  .depth,
  .closing {
    padding-top: 88px;
    padding-bottom: 88px;
  }
  .command-pair {
    grid-template-columns: 1fr;
  }
  .example-list article {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .example-actions {
    grid-column: 1;
    flex-direction: column;
    gap: 10px;
  }
  .site-footer {
    align-items: flex-start;
    padding: 28px 0;
  }
  .site-footer div {
    gap: 16px;
  }
}

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