@import url("../fonts.css");

:root {
  color-scheme: only light;
  font-variant-numeric: tabular-nums;

  --bg-canvas: #f5f6f9;
  --paper: #ffffff;
  --ink-990: #202530;
  --ink-920: #242934;
  --ink-860: #1a3349;
  --slate-700: #31516a;
  --slate-560: #55738c;
  --slate-430: #7991a6;
  --line-soft: #e1e5ed;
  --line-strong: #cdd4e0;
  --text-main: #242934;
  --text-muted: #69717f;
  --text-soft: #6f879b;
  --text-inverse: #ffffff;
  --accent: #bb5435;
  --accent-dark: #99412a;
  --accent-soft: #f8e8e1;
  --success: #236f61;
  --focus: #1d61e1;

  --shadow-sm: 0 1px 2px rgba(9, 17, 26, 0.06);
  --shadow-md: 0 18px 42px rgba(9, 17, 26, 0.12);
  --shadow-lg: 0 34px 76px rgba(9, 17, 26, 0.2);

  --radius-10: 10px;
  --radius-14: 14px;
  --radius-18: 18px;
  --radius-24: 24px;
  --radius-pill: 999px;

  --space-6: 6px;
  --space-10: 10px;
  --space-14: 14px;
  --space-18: 18px;
  --space-24: 24px;
  --space-32: 32px;
  --space-42: 42px;
  --space-56: 56px;
  --space-72: 72px;
  --space-96: 96px;
  --space-120: 120px;

  --container: 1180px;
  --pad: 42px;
  --header-h: 76px;

  --t-fast: 140ms cubic-bezier(0.2, 0, 0, 1);
  --t-base: 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 14px);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-main);
  background-color: #f6f2ea;
  background-attachment: fixed, fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(
    rgba(11, 18, 27, 0.08) 0.45px,
    transparent 0.45px
  );
  background-size: 3px 3px;
  opacity: 0.1;
  z-index: -1;
}

a {
  color: var(--focus);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: #184fb7;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: var(--space-14);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-10);
  color: var(--text-main);
  padding: 8px 12px;
  z-index: 999;
}

.skip-link:focus {
  left: var(--space-14);
}

.container {
  width: min(100% - (var(--pad) * 2), var(--container));
  margin: 0 auto;
  min-width: 0;
}

.hero-inner,
.section-head,
.steps-grid,
.step-card,
.tab-bar,
.tab-group,
.tab-panel,
.instructions,
.instruction-step,
.instruction-step > div,
.code-block,
.code-header,
.code-block pre,
.footer-grid,
.footer-brand,
.footer-col {
  min-width: 0;
}
.site-header {
  position: sticky;
  z-index: 90;
  height: var(--header-h);
  border-bottom: 1px solid rgba(247, 242, 232, 0.16);
}

.header-row {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-24);
}

.brand {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: var(--space-10);
  font-weight: 700;
}

.brand-mark {
  border-radius: 10px;
  display: inline-grid;
  place-items: center;
  font-family: var(--font-display);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-18);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.nav-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: var(--radius-10);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 13px;
  font-weight: 600;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--text-inverse);
  background: rgba(247, 242, 232, 0.08);
}

.button {
  min-height: 44px;
  border: 1px solid transparent;
  padding: 0 20px;
  font: inherit;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform var(--t-fast),
    box-shadow var(--t-fast),
    background-color var(--t-fast),
    border-color var(--t-fast),
    color var(--t-fast);
  text-decoration: none;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.button:active {
  transform: translateY(1px) scale(0.995);
}

.button.primary {
  min-height: 54px;
  border-color: var(--accent);
}

.button.primary:hover {
  border-color: #c17648;
  color: #120e09;
}

.button.secondary {
  min-height: 54px;
  border-color: rgba(247, 242, 232, 0.4);
  color: var(--text-inverse);
  background: transparent;
}

.button.secondary:hover {
  border-color: rgba(247, 242, 232, 0.74);
  background: rgba(247, 242, 232, 0.08);
}

.button.secondary.light {
  border-color: var(--line-strong);
  color: var(--text-main);
}

.button.secondary.light:hover {
  border-color: var(--slate-700);
  background: rgba(49, 81, 106, 0.08);
}

.menu-toggle {
  width: 44px;
  height: 44px;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid rgba(247, 242, 232, 0.26);
  cursor: pointer;
}

.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(9, 17, 26, 0.44);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-base);
  z-index: 80;
}

.menu-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: min(88vw, 360px);
  height: 100vh;
  border-left: 1px solid rgba(247, 242, 232, 0.24);
  box-shadow: var(--shadow-lg);
  transform: translateX(104%);
  transition: transform var(--t-base);
  z-index: 95;
  padding: var(--space-24);
  display: flex;
  flex-direction: column;
  gap: var(--space-18);
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-links {
  display: grid;
  gap: 8px;
}

.mobile-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: 10px;
  padding: 8px 10px;
  font-weight: 600;
  font-size: 15px;
}

.mobile-links a.active {
  background: rgba(247, 242, 232, 0.1);
}
.hero {
  border-bottom: 1px solid rgba(247, 242, 232, 0.2);
  overflow: hidden;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(247, 242, 232, 0.04) 0%,
    rgba(247, 242, 232, 0) 30%
  );
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-title {
  margin: 0 0 var(--space-14);
  font-family: var(--font-display);
}

.hero-lead {
  margin: 0;
  max-width: 52ch;
  line-height: 1.55;
}
.prereq {
  padding: var(--space-72) 0;
  border-bottom: 1px solid var(--line-soft);
}

.section-head {
  margin-bottom: var(--space-32);
  max-width: 74ch;
}

.section-tag {
  margin: 0 0 8px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.035em;
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(30px, 3.5vw, 46px);
  color: var(--text-main);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-18);
}

.step-card {
  padding: var(--space-24);
  display: grid;
  align-content: start;
  gap: 10px;
}

.step-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(187, 84, 53, 0.4);
  background: var(--accent-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-dark);
}

.step-card h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.3;
  color: var(--ink-920);
}

.step-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
}

.step-card code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--accent-soft);
  color: var(--accent-dark);
  padding: 2px 7px;
  border-radius: 6px;
  word-break: break-all;
}
.examples {
  padding: var(--space-72) 0 var(--space-96);
}

.tab-bar {
  display: flex;
  align-items: center;
  gap: 0;
  border-bottom: 2px solid var(--line-soft);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.tab-bar::-webkit-scrollbar {
  display: none;
}

.tab-group {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 0 0 auto;
}

.tab-separator {
  width: 1px;
  height: 28px;
  background: var(--line-strong);
  margin: 0 var(--space-10);
  flex: 0 0 auto;
}

.tab-btn {
  padding: 10px 16px;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition:
    color var(--t-fast),
    border-color var(--t-fast);
}

.tab-btn:hover {
  color: var(--text-main);
}

.tab-btn[aria-selected="true"] {
  border-bottom-color: var(--accent);
}

.tab-btn:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: -2px;
  border-radius: 0;
}

.tab-panel {
  margin-top: var(--space-24);
}

.tab-panel[hidden] {
  display: none;
}
.code-block {
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--line-strong);
  overflow: hidden;
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-10);
  padding: 10px 16px;
  border-bottom: 1px solid rgba(247, 242, 232, 0.12);
}

.code-lang {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: rgba(247, 242, 232, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.copy-btn {
  min-height: 32px;
  padding: 4px 12px;
  border: 1px solid rgba(247, 242, 232, 0.2);
  border-radius: 8px;
  background: transparent;
  color: rgba(247, 242, 232, 0.7);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition:
    color var(--t-fast),
    border-color var(--t-fast);
}

.copy-btn:hover {
  color: #fff;
  border-color: rgba(247, 242, 232, 0.5);
}

.code-block pre {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  color: #dce7f5;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
}

.code-block code {
  font-family: inherit;
  font-size: inherit;
}
.tok-kw {
  color: #c792ea;
}
.tok-str {
  color: #c3e88d;
}
.tok-fn {
  color: #82aaff;
}
.tok-typ {
  color: #ffcb6b;
}
.tok-num {
  color: #f78c6c;
}
.instructions {
  display: grid;
  gap: var(--space-18);
}

.instruction-step {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: var(--space-14);
  align-items: start;
}

.instruction-step .step-num {
  margin-top: 2px;
}

.instruction-step h4 {
  margin: 0 0 6px;
  font-size: 17px;
  line-height: 1.3;
  color: var(--ink-920);
}

.instruction-step p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
}

.instruction-step code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--accent-soft);
  color: var(--accent-dark);
  padding: 2px 7px;
  border-radius: 6px;
}

.instruction-step .code-block {
  margin-top: 10px;
}

.instruction-step .code-block code {
  background: transparent;
  color: inherit;
  padding: 0;
  border-radius: 0;
}
.site-footer {
  border-top: 1px solid rgba(247, 242, 232, 0.2);
  padding-top: var(--space-56);
  padding-bottom: var(--space-24);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr repeat(3, 1fr);
  gap: var(--space-24);
  padding-bottom: var(--space-42);
  border-bottom: 1px solid rgba(247, 242, 232, 0.2);
}

.footer-brand p {
  margin: 12px 0 0;
  max-width: 38ch;
  color: rgba(247, 242, 232, 0.72);
  font-size: 15px;
  line-height: 1.6;
}

.footer-col h3 {
  margin: 0 0 10px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.045em;
  color: rgba(247, 242, 232, 0.78);
}

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

.footer-col a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  color: rgba(247, 242, 232, 0.7);
  font-size: 15px;
}

.footer-col a:hover,
.footer-col a:focus-visible {
  color: #fff7ea;
}

.footer-bottom {
  padding-top: var(--space-18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-14);
  flex-wrap: wrap;
  color: rgba(247, 242, 232, 0.72);
  font-size: 12px;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 420ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}
@media (max-width: 1160px) {
  :root {
    --pad: 28px;
  }

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

@media (max-width: 860px) {
  :root {
    --pad: 20px;
    --header-h: 68px;
  }

  body {
    font-size: 16px;
  }

  .nav-links,
  .nav .button {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .hero-inner {
    padding-top: 64px;
    padding-bottom: 56px;
  }

  .hero-title {
    font-size: clamp(32px, 10vw, 48px);
  }

  .hero-lead {
    font-size: 17px;
  }

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

  .tab-btn {
    padding: 10px 12px;
    font-size: 13px;
  }

  .site-footer {
    padding-top: var(--space-42);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    padding-bottom: var(--space-32);
  }
}

@media (max-width: 420px) {
  :root {
    --pad: 12px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 120ms !important;
    transition-delay: 0ms !important;
    animation: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

:root {
  --font-display: "Unbounded", sans-serif;
  --font-sans: "Onest", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, monospace;
  --bg-soft: #edf1f7;
}
body {
  background: #f5f6f9;
}
body::before {
  display: none;
}
.site-header {
  top: 16px;
  width: min(1120px, calc(100% - 40px));
  margin: 16px auto;
  border-radius: 22px;
  border: 1px solid white;
  background: #ffffffc9;
  backdrop-filter: blur(22px);
  box-shadow:
    inset 0 0 0 1px #e2e7f180,
    0 8px 30px #334c7110;
}
.header-row {
  width: calc(100% - 40px);
}
.brand {
  font-size: 22px;
  color: var(--text-main);
  letter-spacing: -1px;
}
.brand-mark {
  width: auto;
  height: auto;
  background: none;
  color: var(--text-main);
  box-shadow: none;
  font-weight: 500;
  font-size: 26px;
  letter-spacing: -2px;
}
.nav-link {
  color: var(--text-muted);
}
.nav-link:hover,
.nav-link:focus-visible,
.brand:hover {
  color: var(--accent);
}
.nav-link.active {
  color: var(--accent-dark);
  background: #f8e8e1;
}
.button {
  text-transform: none;
  letter-spacing: 0;
  border-radius: 13px;
  font-weight: 500;
}
.button.primary {
  background: var(--accent);
  color: white;
  box-shadow: inset 0 1px #ffffff30;
}
.button.primary:hover {
  background: var(--accent-dark);
}
.button.secondary,
.button.secondary.light {
  background: #ffffffa6;
  color: var(--text-main);
  border-color: var(--line-strong);
}
.menu-toggle {
  color: var(--text-main);
  background: #edf1f7;
  border-color: var(--line-soft);
}
.mobile-menu {
  background: #f5f7fb;
  color: var(--text-main);
}
.mobile-links a {
  color: var(--text-main);
  border-color: var(--line-soft);
}
.mobile-links a.active {
  color: var(--accent-dark);
}
.hero {
  margin: 20px;
  border: 1px solid white;
  border-radius: 32px;
  color: var(--text-main);
  background:
    radial-gradient(ellipse at 85% 10%, #d5e2fa, transparent 65%),
    linear-gradient(#f0f5ff, #fff);
}
.hero-title {
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.05em;
  font-size: clamp(30px, 4.5vw, 54px);
}
.hero-lead {
  color: var(--text-muted);
  font-size: 17px;
}
.hero-inner {
  max-width: 1000px;
  padding: 72px 0;
}
.section-title {
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.25;
}
.step-card {
  background: linear-gradient(145deg, #fff, #f3f6fc);
  border: 1px solid white;
  border-radius: 24px;
  box-shadow: inset 0 0 0 1px #e1e5ed80;
}
.step-card h3 {
  font-family: "Onest", sans-serif;
  font-weight: 500;
}
.tab-bar {
  border-radius: 18px;
  background: #e9eef7;
  border-color: var(--line-soft);
  padding: 8px;
}
.tab-btn {
  min-height: 44px;
  border-radius: 11px;
}
.tab-btn[aria-selected="true"] {
  background: white;
  color: var(--accent-dark);
  box-shadow: 0 3px 10px #334c710c;
}
.code-block {
  border-radius: 22px;
  background: #242934;
  border-color: #343c4c;
  box-shadow: 0 16px 36px #334c7110;
}
.code-header {
  background: #2e3542;
}
.tok-cm {
  color: #a2adc5;
}
.instructions {
  border-radius: 22px;
  background: #ffffffb3;
  border-color: var(--line-soft);
}
.site-footer {
  background: #e9edf5;
  color: var(--text-main);
  border-color: var(--line-soft);
}
.footer-brand p,
.footer-col h3,
.footer-col a,
.footer-bottom {
  color: var(--text-muted);
}
.footer-grid {
  border-color: var(--line-soft);
}
.footer-col a:hover,
.footer-col a:focus-visible {
  color: var(--accent);
}
@media (max-width: 860px) {
  .site-header {
    width: calc(100% - 24px);
    top: 12px;
    margin: 12px auto;
  }
  .hero {
    margin: 12px;
    border-radius: 24px;
  }
  .hero-inner {
    padding: 48px 0;
  }
  .section-title {
    font-size: 28px;
  }
}
