@font-face {
  font-family: "Runpeek Lato";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/runpeek-lato-400.ttf") format("truetype");
}
@font-face {
  font-family: "Runpeek Lato";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/runpeek-lato-700.ttf") format("truetype");
}
@font-face {
  font-family: "Runpeek Lato";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("/fonts/runpeek-lato-900.ttf") format("truetype");
}
@font-face {
  font-family: "Runpeek Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/runpeek-roboto-mono-400.ttf") format("truetype");
}

:root {
  color-scheme: light;
  --font-sans: "Runpeek Lato", Arial, sans-serif;
  --font-mono: "Runpeek Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --page: #fbfdfd;
  --band: #f3f8f8;
  --card: #ffffff;
  --ink: #0a343c;
  --body: #345969;
  --quiet: #557886;
  --line: #dfe9eb;
  --line-soft: #edf2f4;
  --soft: #effaf8;
  --inline-code: #edf3f4;
  --brand: #147964;
  --brand-ink: #0b5148;
  --button: #0b5148;
  --button-hover: #116657;
  --button-ink: #ffffff;
  --accent: #72dfb2;
  --accent-hover: #96ecc8;
  --on-accent: #10251c;
  --code-bg: #102725;
  --code-bar: #18312e;
  --code-line: #2b423f;
  --code-ink: #e2eee9;
  --code-quiet: #93aba4;
  --code-label: #abc0b9;
  --code-button: #526963;
  --code-button-hover: #2b4942;
  --tok-keyword: #8ae1c5;
  --tok-string: #e6d19a;
  --tok-function: #a9d5f2;
  --tok-number: #f2b8a0;
  --box-bg: #0a343c;
  --box-title: #ffffff;
  --box-body: #cfe3df;
  --box-line: #24525a;
  --box-well: #082a30;
  --shadow: 0 1px 2px rgb(10 52 60 / 4%), 0 10px 28px rgb(10 52 60 / 6%);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #111214;
  --band: #16181b;
  --card: #1b1d20;
  --ink: #f3f4f5;
  --body: #c4c7cc;
  --quiet: #a1a7b0;
  --line: #33383e;
  --line-soft: #26292e;
  --soft: #1d2724;
  --inline-code: #262a2f;
  --brand: #72dfb2;
  --brand-ink: #96ecc8;
  --button: #72dfb2;
  --button-hover: #96ecc8;
  --button-ink: #10251c;
  --code-bg: #121416;
  --code-bar: #202328;
  --code-line: #3d434a;
  --code-ink: #f3f4f5;
  --code-quiet: #a1a7b0;
  --code-label: #a1a7b0;
  --code-button: #4a5159;
  --code-button-hover: #2c3035;
  --box-bg: #18221f;
  --box-body: #c4cfcb;
  --box-line: #2f4a43;
  --box-well: #111916;
  --shadow: none;
}

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

[hidden] {
  display: none !important;
}

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

body {
  margin: 0;
  background: var(--page);
  color: var(--body);
  font: 17px/1.7 var(--font-sans);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 760px) {
  body {
    font-size: 18px;
  }
}

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

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

:focus-visible {
  outline: 3px solid #43ba99;
  outline-offset: 2px;
  border-radius: 4px;
}

::selection {
  background: #b6ecdc;
  color: #0a343c;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

code {
  padding: 0.12em 0.38em;
  border-radius: 6px;
  background: var(--inline-code);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.86em;
}

p code,
li code {
  overflow-wrap: anywhere;
}

.icon {
  width: 20px;
  height: 20px;
  flex: none;
}

.shell {
  width: min(100% - 40px, 1180px);
  margin-inline: auto;
}

@media (min-width: 760px) {
  .shell {
    width: min(100% - 64px, 1180px);
  }
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--line-soft);
  background: var(--page);
}

.site-header .shell {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.5px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.brand .logo {
  width: 32px;
  height: 27px;
  color: #147964;
}

:root[data-theme="dark"] .brand .logo {
  color: var(--accent);
}

.site-nav {
  display: none;
  gap: 24px;
}

.site-nav a {
  color: var(--body);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--brand);
}

@media (min-width: 560px) {
  .site-nav {
    display: flex;
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--body);
  cursor: pointer;
}

.theme-toggle:hover {
  background: var(--soft);
  color: var(--ink);
}

.theme-toggle .icon {
  width: 21px;
  height: 21px;
}

.theme-toggle .icon-sun,
:root[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

:root[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--button);
  color: var(--button-ink);
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background 150ms,
    transform 150ms,
    box-shadow 150ms;
}

.button:hover {
  background: var(--button-hover);
  box-shadow: 0 6px 18px rgb(7 83 69 / 14%);
  transform: translateY(-1px);
}

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

.button-small {
  min-height: 40px;
  padding: 0 18px;
  font-size: 15px;
}

.button-accent {
  background: var(--accent);
  color: var(--on-accent);
}

.button-accent:hover {
  background: var(--accent-hover);
}

/* Guide header and layout */

.guide-layout {
  padding-top: 40px;
}

@media (min-width: 1080px) {
  .guide-layout {
    display: grid;
    grid-template-columns: minmax(0, 720px) 248px;
    justify-content: space-between;
    column-gap: 56px;
    padding-top: 60px;
  }

  .guide-head,
  .guide-body {
    grid-column: 1;
  }

  .toc {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
}

.eyebrow {
  display: inline-block;
  margin: 0 0 16px;
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--brand-ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.eyebrow-brand {
  font-weight: 900;
}

.eyebrow-sep {
  margin: 0 1px;
  opacity: 0.45;
}

.guide-head h1,
.hub-head h1 {
  font-size: clamp(31px, 5.4vw, 46px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.intro {
  margin: 20px 0 0;
  color: var(--body);
  font-size: 18.5px;
  line-height: 1.62;
}

@media (min-width: 760px) {
  .intro {
    font-size: 20px;
  }
}

.guide-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin: 20px 0 0;
  color: var(--quiet);
  font-size: 14.5px;
}

.guide-meta a {
  color: var(--quiet);
}

.meta-sep {
  margin-right: 10px;
}

.guide-meta a:hover {
  color: var(--brand);
}

/* Table of contents */

.toc {
  display: none;
}

@media (min-width: 1080px) {
  .toc {
    display: block;
    position: sticky;
    top: 28px;
    align-self: start;
    padding-top: 4px;
  }
}

.toc-title {
  margin: 0 0 8px;
  color: var(--quiet);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc ol a {
  display: block;
  padding: 6px 0;
  color: var(--body);
  font-size: 15px;
  line-height: 1.4;
  text-decoration: none;
}

.toc ol a:hover,
.toc ol a[aria-current="true"] {
  color: var(--brand);
}

.toc ol a[aria-current="true"] {
  font-weight: 700;
}

.toc-cta {
  margin-top: 24px;
  padding: 18px;
  border-radius: 14px;
  background: var(--soft);
}

.toc-cta p {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
}

/* Article body */

.guide-body {
  padding-bottom: 8px;
}

.guide-body > section {
  margin-top: 56px;
}

.guide-body h2 {
  margin: 0 0 16px;
  font-size: clamp(24px, 3.2vw, 30px);
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.guide-body h3 {
  margin: 32px 0 10px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

.guide-body p,
.guide-body ul,
.guide-body ol {
  margin: 0 0 18px;
}

.guide-body ul,
.guide-body ol {
  padding-left: 1.3em;
}

.guide-body li {
  margin: 7px 0;
  padding-left: 4px;
}

.guide-body li::marker {
  color: var(--brand);
  font-weight: 700;
}

.guide-body strong {
  color: var(--ink);
  font-weight: 700;
}

/* At a glance */

.glance {
  margin-top: 36px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.guide-body .glance h2 {
  margin: 0 0 14px;
  color: var(--brand-ink);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.guide-body .glance ul,
.guide-body .rp-points {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.guide-body .glance li,
.guide-body .rp-points li {
  position: relative;
  margin: 0;
  padding-left: 32px;
  line-height: 1.55;
}

.guide-body .glance li::before,
.guide-body .rp-points li::before {
  content: "";
  position: absolute;
  top: 0.12em;
  left: 0;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--soft);
}

.guide-body .glance li::after,
.guide-body .rp-points li::after {
  content: "";
  position: absolute;
  top: 0.12em;
  left: 0;
  width: 22px;
  height: 22px;
  background: var(--brand);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
    center / 12px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
    center / 12px no-repeat;
}

/* Code */

.code {
  margin: 22px 0;
  overflow: hidden;
  border: 1px solid var(--code-line);
  border-radius: 12px;
  background: var(--code-bg);
}

.code-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  padding: 5px 8px 5px 16px;
  border-bottom: 1px solid var(--code-line);
  background: var(--code-bar);
}

.code-lang {
  color: var(--code-label);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.code-copy {
  min-height: 30px;
  padding: 4px 12px;
  border: 1px solid var(--code-button);
  border-radius: 7px;
  background: transparent;
  color: var(--code-ink);
  font: 700 13px/1 var(--font-sans);
  cursor: pointer;
}

.code-copy:hover {
  background: var(--code-button-hover);
}

.code pre {
  margin: 0;
  padding: 16px 18px;
  overflow-x: auto;
  color: var(--code-ink);
  font: 14.5px/1.7 var(--font-mono);
  tab-size: 4;
}

@media (min-width: 760px) {
  .code pre {
    padding: 18px 22px;
    font-size: 15px;
  }
}

.code code {
  padding: 0;
  border-radius: 0;
  background: none;
  color: inherit;
  font: inherit;
}

.tok-comment,
.tok-output,
.tok-prompt {
  color: var(--code-quiet);
}

.tok-prompt {
  user-select: none;
}

.tok-keyword {
  color: var(--tok-keyword);
}

.tok-string {
  color: var(--tok-string);
}

.tok-function {
  color: var(--tok-function);
}

.tok-number,
.tok-variable {
  color: var(--tok-number);
}

/* Tables */

.table-scroll {
  margin: 24px 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15.5px;
  line-height: 1.5;
}

th,
td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: top;
}

thead th {
  background: var(--soft);
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

tbody th {
  color: var(--ink);
  font-weight: 700;
}

tbody tr:last-child > * {
  border-bottom: 0;
}

td code,
th code {
  overflow-wrap: break-word;
}

@media (max-width: 759px) {
  th,
  td {
    min-width: 8.5em;
    padding: 11px 14px;
  }
}

/* Notes */

.note {
  display: flex;
  gap: 12px;
  margin: 22px 0;
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--soft);
  color: var(--ink);
}

.note .icon {
  margin-top: 0.22em;
  color: var(--brand);
}

.guide-body .note p {
  margin: 0;
}

/* Runpeek box */

.rp-box {
  margin: 32px 0;
  padding: 26px 22px;
  border: 1px solid var(--box-line);
  border-radius: 18px;
  background: var(--box-bg);
  color: var(--box-body);
}

@media (min-width: 760px) {
  .rp-box {
    padding: 32px;
  }
}

.rp-box-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.rp-box-brand .logo {
  width: 26px;
  height: 22px;
}

.guide-body .rp-box-title {
  margin: 12px 0 8px;
  color: var(--box-title);
  font-size: 24px;
  font-weight: 900;
  line-height: 1.25;
}

.guide-body .rp-box-hook {
  margin: 0 0 20px;
  color: var(--box-body);
}

.rp-box a:not(.button) {
  color: var(--accent);
}

.rp-box strong {
  color: var(--box-title);
}

.rp-box p code {
  background: rgb(255 255 255 / 10%);
  color: var(--box-title);
}

.rp-install {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 8px 8px 16px;
  border: 1px solid var(--box-line);
  border-radius: 10px;
  background: var(--box-well);
  color: var(--code-ink);
  font-family: var(--font-mono);
  font-size: 15px;
}

.rp-install code {
  padding: 0;
  background: none;
  color: inherit;
  font-size: inherit;
  overflow-wrap: anywhere;
}

.rp-box .code {
  margin: 12px 0 0;
  border-color: var(--box-line);
}

.guide-body .rp-points {
  margin-top: 22px;
}

.guide-body .rp-points li {
  color: var(--box-body);
  font-size: 16px;
}

.guide-body .rp-points li::before {
  background: rgb(114 223 178 / 14%);
}

.guide-body .rp-points li::after {
  background: var(--accent);
}

.rp-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
  margin-top: 26px;
}

.rp-actions .rp-more {
  font-size: 16px;
  font-weight: 700;
}

/* FAQ */

.faq-item {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.faq-item:last-child {
  border-bottom: 1px solid var(--line);
}

.guide-body .faq-item h3 {
  margin: 0 0 6px;
  font-size: 19px;
}

.guide-body .faq-item p {
  margin: 0;
}

/* Closing call to action */

.cta-band {
  display: grid;
  gap: 22px;
  margin-top: 64px;
  padding: 28px 24px;
  border-radius: 20px;
  background: var(--soft);
}

@media (min-width: 760px) {
  .cta-band {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 32px;
    padding: 36px 40px;
  }
}

.guide-body .cta-band h2,
.hub .cta-band h2 {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 900;
}

.cta-band p {
  margin: 0;
}

.cta-actions {
  display: grid;
  justify-items: start;
  gap: 10px;
}

@media (min-width: 760px) {
  .cta-actions {
    justify-items: center;
  }
}

.cta-install {
  padding: 0;
  background: none;
  color: var(--quiet);
  font-size: 14px;
}

/* Sources */

.sources ul {
  display: grid;
  gap: 10px;
  padding: 0;
  list-style: none;
  font-size: 15.5px;
  line-height: 1.5;
}

.guide-body .sources li {
  margin: 0;
  padding: 0;
}

.source-note,
.source-host {
  color: var(--quiet);
}

.source-host {
  font-size: 14px;
}

/* Cards (related guides and the hub) */

.related {
  margin-top: 72px;
  padding: 56px 0 72px;
  border-top: 1px solid var(--line-soft);
  background: var(--band);
}

.related h2 {
  margin: 0 0 20px;
  font-size: 26px;
  font-weight: 900;
}

.cards {
  display: grid;
  gap: 16px;
}

@media (min-width: 700px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1080px) {
  .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  color: var(--body);
  text-decoration: none;
  transition:
    border-color 150ms,
    box-shadow 150ms,
    transform 150ms;
}

.card:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.card-eyebrow {
  color: var(--brand-ink);
  font-size: 13.5px;
  font-weight: 700;
}

.card-title {
  color: var(--ink);
  font-size: 18.5px;
  font-weight: 900;
  line-height: 1.3;
}

.card-text {
  font-size: 15px;
  line-height: 1.55;
}

/* Hub */

.hub-head {
  max-width: 780px;
  padding-top: 56px;
}

.hub-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.hub-topics a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.hub-topics a:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.hub-cluster {
  margin-top: 64px;
  scroll-margin-top: 24px;
}

.hub-cluster h2 {
  font-size: clamp(24px, 3.2vw, 30px);
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.hub-cluster > p {
  max-width: 64ch;
  margin: 8px 0 22px;
}

.hub .cta-band {
  margin-bottom: 72px;
}

/* Footer */

.site-footer {
  padding: 48px 0 56px;
  border-top: 1px solid var(--line-soft);
  font-size: 15px;
}

.footer-grid {
  display: grid;
  gap: 32px;
}

@media (min-width: 760px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.footer-brand p {
  max-width: 34ch;
  margin: 14px 0 0;
}

.footer-title {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 900;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.site-footer ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer ul a {
  color: var(--body);
  text-decoration: none;
}

.site-footer ul a:hover {
  color: var(--brand);
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
