@font-face {
  font-family: DM Sans;
  src: url(/fonts/dm-sans-latin-wght-normal.woff2) format("woff2");
  font-weight: 100 1000;
  font-display: swap;
}
@font-face {
  font-family: Barlow Semi Condensed;
  src: url(/fonts/barlow-semi-condensed-latin-600-normal.woff2) format("woff2");
  font-weight: 600;
  font-display: swap;
}
:root {
  --ink: #142c39;
  --muted: #4a6370;
  --blue: #1558a4;
  --paper: #f7f9fa;
  --rule: #c7d4dc;
  font-family: "DM Sans", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  scroll-behavior: smooth;
}
* {
  box-sizing: border-box;
}
body,
figure,
h1,
h2,
h3,
p,
pre {
  margin: 0;
}
body {
  min-width: 280px;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  text-underline-offset: 0.22em;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
a:focus-visible,
button:focus-visible {
  outline: 3px solid #e48726;
  outline-offset: 4px;
}
.wrap {
  width: min(1240px, calc(100% - clamp(40px, 10vw, 168px)));
  margin-inline: auto;
}
.skip {
  position: absolute;
  top: -5rem;
  left: 1rem;
  z-index: 4;
  background: white;
  padding: 0.8rem;
}
.skip:focus {
  top: 1rem;
}
header {
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--rule);
}
.wordmark,
nav,
.actions {
  display: flex;
  align-items: center;
}
.wordmark {
  gap: 0.65rem;
  font-weight: 750;
  letter-spacing: -0.055em;
  font-size: 1.35rem;
}
.wordmark:hover {
  text-decoration: none;
}
nav {
  gap: clamp(1rem, 3vw, 2.7rem);
  font-size: 0.95rem;
  font-weight: 550;
}
.external span,
footer span {
  color: var(--blue);
}
.hero {
  display: grid;
  grid-template-columns: 1.03fr 1fr;
  gap: clamp(24px, 6vw, 104px);
  align-items: center;
  padding-block: clamp(32px, 4.2vw, 70px) clamp(40px, 5.4vw, 80px);
}
h1,
h2,
h3 {
  font-family: "Barlow Semi Condensed", Arial, sans-serif;
  font-weight: 600;
}
h1 {
  font-size: clamp(65px, 8.45vw, 126px);
  line-height: 0.91;
  letter-spacing: -0.046em;
}
.intro > p {
  max-width: 31rem;
  margin: 1.75rem 0 2.25rem;
  font-size: clamp(1rem, 1.48vw, 1.32rem);
  line-height: 1.55;
  color: var(--muted);
}
.actions {
  gap: 1.6rem;
  flex-wrap: wrap;
}
.actions a {
  font-weight: 650;
  font-size: 0.96rem;
}
.primary {
  display: inline-flex;
  align-items: center;
  gap: 1.35rem;
  background: var(--blue);
  color: white;
  border-radius: 5px;
  padding: 0.86rem 1.2rem;
}
.primary:hover {
  background: #104a8b;
  text-decoration: none;
}
.text-link {
  text-decoration: underline;
  text-underline-offset: 0.3rem;
}
.product {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 7px;
  background: #bfd5e4;
  width: min(100%, 450px);
  justify-self: end;
  aspect-ratio: 0.94;
}
.product img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 47%;
}
.product figcaption {
  position: absolute;
  bottom: 0.85rem;
  left: 1rem;
  border-radius: 3px;
  padding: 0.28rem 0.48rem;
  background: #f7f9faed;
  color: #203f4e;
  font-size: 0.73rem;
  font-weight: 600;
}
h2 {
  font-size: clamp(2.8rem, 4.4vw, 4.3rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}
h3 {
  font-size: 1.95rem;
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.readings {
  background: #e7eff3;
  padding: clamp(42px, 5vw, 76px) 0;
}
.readings-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(26px, 6vw, 95px);
  align-items: center;
}
.readings-grid p,
.setup p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted);
}
.readings-grid p,
.setup > p {
  margin-top: 1rem;
  max-width: 38rem;
}
.fields {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.55rem;
  max-width: 26rem;
}
.fields button {
  border: 1px solid #a4b8c3;
  background: transparent;
  padding: 0.48rem 0.85rem;
  border-radius: 30px;
  font-size: 0.88rem;
  font-weight: 600;
}
.fields button:hover {
  border-color: var(--blue);
}
.fields button[aria-pressed="true"] {
  background: #254c61;
  color: white;
  border-color: #254c61;
}
.readings-grid .explanation {
  margin-top: 1.25rem;
  min-height: 3em;
  color: #294e62;
}
.terminal {
  background: #172f40;
  color: #edf5f7;
  border-radius: 7px;
  overflow: hidden;
}
.terminal-head {
  display: flex;
  justify-content: space-between;
  padding: 0.8rem 1.4rem;
  border-bottom: 1px solid #395062;
  font:
    500 0.78rem "DM Sans",
    sans-serif;
  color: #c8dbe5;
}
.terminal pre {
  padding: 1.1rem 1.4rem 1.4rem;
  line-height: 1.5;
  overflow: auto;
}
.terminal code,
.snippet code,
code {
  font-family: ui-monospace, Menlo, Consolas, monospace;
}
.terminal code {
  font-size: clamp(0.74rem, 1.05vw, 0.95rem);
}
.terminal .prompt {
  color: #8ec6ea;
}
.terminal [data-line].chosen {
  background: #34546b;
  color: #fff;
  outline: 3px solid #34546b;
  border-radius: 1px;
}
.setup {
  padding-block: clamp(44px, 6vw, 90px);
}
.guide {
  margin-top: 2.2rem;
}
.guide section {
  display: grid;
  grid-template-columns: minmax(140px, 0.55fr) minmax(200px, 1fr) minmax(
      0,
      1.65fr
    );
  gap: clamp(16px, 3vw, 44px);
  border-top: 1px solid var(--rule);
  padding-block: 1.6rem;
}
.guide section > p {
  font-size: 0.93rem;
}
.snippet {
  position: relative;
  align-self: start;
  background: #e9eff2;
  border-radius: 5px;
  min-width: 0;
}
.snippet pre {
  padding: 1.05rem 4.3rem 1.05rem 1.05rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 0.8rem;
  line-height: 1.6;
}
.copy {
  position: absolute;
  top: 0.75rem;
  right: 0.7rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 0.25rem 0.42rem;
  font-size: 0.72rem;
  font-weight: 600;
}
.copy:hover {
  border-color: var(--blue);
}
footer {
  border-top: 1px solid var(--rule);
}
footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.35rem;
}
footer .wordmark {
  font-size: 1rem;
}
footer a {
  font-size: 0.85rem;
}
@media (max-width: 820px) {
  .guide section {
    grid-template-columns: 1fr 1.35fr;
  }
  .guide h3 {
    grid-column: 1;
  }
  .guide p {
    grid-column: 1;
  }
  .guide .snippet {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
  .intro > p {
    margin: 1.2rem 0 1.6rem;
  }
  .hero {
    gap: 1.3rem;
  }
  .readings-grid {
    gap: 1.7rem;
  }
}
@media (max-width: 650px) {
  header {
    height: 64px;
  }
  .wordmark {
    font-size: 1.14rem;
    gap: 0.4rem;
  }
  .wordmark img {
    width: 26px;
    height: 26px;
  }
  nav {
    font-size: 0.8rem;
    gap: 0.8rem;
  }
  .hero,
  .readings-grid,
  .guide section {
    grid-template-columns: 1fr;
  }
  .hero {
    gap: 1.65rem;
  }
  .product {
    width: 100%;
    max-width: 410px;
    justify-self: center;
    aspect-ratio: 0.94;
  }
  .intro > p {
    max-width: 30rem;
  }
  .readings-grid {
    gap: 1.5rem;
  }
  .readings-grid .explanation {
    min-height: 0;
  }
  .guide h3,
  .guide p,
  .guide .snippet {
    grid-column: auto;
    grid-row: auto;
  }
  .guide section {
    gap: 0.7rem;
  }
  .guide {
    margin-top: 1.4rem;
  }
  .actions {
    gap: 1.3rem;
  }
  .terminal pre {
    font-size: 0.85rem;
  }
  .terminal code {
    font-size: 0.82rem;
  }
}
@media (max-width: 360px) {
  nav a:first-child {
    display: none;
  }
  .wrap {
    width: calc(100% - 32px);
  }
}
@media (prefers-reduced-motion: reduce) {
  :root {
    scroll-behavior: auto;
  }
}
