@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/site-assets/fonts/archivo-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/site-assets/fonts/archivo-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --surface: #f6f7fb;
  --text: #0e1a4a;
  --muted: #56608a;
  --line: #e1e5f0;
  --link: #1640b0;
  --primary: #1640b0;
  --on-primary: #ffffff;
  --violet: #7b2bd6;
  --violet-text: #7b2bd6;
  --red-text: #b8153e;
  --pain-bg: #fdf1f4;
  --pain-line: #f4c9d4;
  --does-bg: #eef2fe;
  --does-line: #c9d4f5;
  --cta-bg: #0e1a4a;
  --cta-text: #ffffff;
  --cta-muted: #c9d1f0;
  --focus: #1640b0;
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1030;
    --surface: #111a46;
    --text: #e9edfb;
    --muted: #a8b2db;
    --line: #26316b;
    --link: #9bb2ff;
    --primary: #3a5fdc;
    --violet-text: #c9a6f7;
    --red-text: #ff8aa3;
    --pain-bg: #2b1228;
    --pain-line: #6a2a47;
    --does-bg: #101c4d;
    --does-line: #2d3f8a;
    --cta-bg: #111a46;
    --cta-text: #ffffff;
    --cta-muted: #c3cbee;
    --focus: #9bb2ff;
  }
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--font);
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
::selection { background: var(--primary); color: var(--on-primary); }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.01em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 1.2rem + 4.4vw, 3.9rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.04; }
h2 { font-size: clamp(1.55rem, 1.1rem + 1.7vw, 2.4rem); font-weight: 700; letter-spacing: -0.025em; }
h3 { font-size: 1.15rem; font-weight: 700; line-height: 1.3; }
p { margin: 0; }

.wrap { width: min(100% - 2.5rem, 70rem); margin-inline: auto; }

.skip {
  position: absolute; left: 0.75rem; top: -4rem; z-index: 10;
  background: var(--primary); color: var(--on-primary); padding: 0.6rem 1rem; border-radius: 6px;
}
.skip:focus { top: 0.75rem; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.5rem; padding-block: 0.85rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--text); font-weight: 800; font-size: 1.25rem; text-decoration: none; letter-spacing: -0.02em; }
.main-nav { order: 3; flex: 1 1 100%; }
.main-nav ul { display: flex; flex-wrap: wrap; gap: 0.1rem 1.25rem; margin: 0; padding: 0; list-style: none; }
.main-nav a { display: inline-block; padding: 0.35rem 0; color: var(--text); text-decoration: none; font-weight: 500; font-size: 0.97rem; border-bottom: 2px solid transparent; }
.main-nav a:hover { border-bottom-color: var(--line); }
.main-nav a[aria-current="page"] { border-bottom-color: var(--primary); font-weight: 700; }
.actions { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; }
.langs { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.lang { color: var(--text); font-weight: 600; font-size: 0.85rem; padding: 0.3rem 0.5rem; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; }
a.lang:hover { border-color: var(--muted); }
.lang[aria-current] { background: var(--surface); border-color: var(--muted); font-weight: 700; }
@media (min-width: 62rem) {
  .main-nav { order: 0; flex: 1 1 auto; }
  .actions { margin-left: 0; }
}

.btn {
  display: inline-block; background: var(--primary); color: var(--on-primary); text-decoration: none;
  font-weight: 700; padding: 0.8rem 1.4rem; border-radius: 8px; border: 2px solid var(--primary);
  min-height: 44px; line-height: 1.3;
}
.btn {
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
  box-shadow: 0 1px 2px rgba(14, 26, 74, 0.14), 0 6px 16px rgba(14, 26, 74, 0.12);
}
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 2px 4px rgba(14, 26, 74, 0.16), 0 10px 22px rgba(14, 26, 74, 0.18); }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover { transform: none; } }
.btn-sm { padding: 0.45rem 0.9rem; font-size: 0.92rem; min-height: 40px; }

/* Breadcrumbs */
.crumbs { font-size: 0.9rem; color: var(--muted); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; list-style: none; margin: 0; padding: 0.75rem 0 0; }
.crumbs li + li::before { content: "/"; margin-right: 0.5rem; color: var(--muted); }
.crumbs a { color: var(--muted); }

/* Page head */
.page-head { padding-block: clamp(2rem, 5vw, 4rem) 1rem; }
.eyebrow { display: inline-flex; align-items: center; gap: 0.7rem; color: var(--violet-text); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 1.1rem; }
.eyebrow::before { content: ""; width: 2.25rem; height: 1px; background: currentColor; }
.lead { font-size: clamp(1.15rem, 1rem + 0.7vw, 1.4rem); line-height: 1.5; color: var(--muted); max-width: 46rem; margin-top: 1.1rem; }
.hero-shot { margin: 2.25rem 0 0; }
.hero-shot img { width: 100%; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 1px 2px rgba(14, 26, 74, 0.06), 0 24px 56px -12px rgba(14, 26, 74, 0.22); }
.hero-shot figcaption { margin-top: 0.75rem; }
.badge { display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--violet-text); border: 1px solid var(--violet-text); border-radius: 999px; padding: 0.15rem 0.7rem; }

/* Content */
.content { padding-bottom: 3rem; }
.block { margin-top: clamp(2.5rem, 6vw, 4.5rem); }
.block > h2 { margin-bottom: 1rem; }
.block-lead { color: var(--muted); max-width: 46rem; margin-bottom: 1.5rem; }
.prose { margin-top: 2.5rem; max-width: 46rem; }
.prose > * + * { margin-top: 1rem; }
.prose h2 { margin-top: 2.5rem; }
.prose h3 { margin-top: 1.75rem; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li + li { margin-top: 0.35rem; }
.prose li > ul { margin-top: 0.35rem; }
.prose code { overflow-wrap: anywhere; }
.prose code { font-size: 0.92em; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 0.05em 0.35em; }
.prose pre { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 1rem; }
.prose pre code { border: 0; padding: 0; background: none; }
.prose blockquote { margin-left: 0; padding-left: 1.25rem; border-left: 2px solid var(--primary); color: var(--muted); font-size: 1.1rem; }
.updated { margin-top: 3rem; color: var(--muted); font-size: 0.92rem; }

/* Quotes ("Sound familiar?") */
.quotes ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.quotes blockquote { position: relative; margin: 0; height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 3.2rem 1.4rem 1.4rem; }
.quotes blockquote::before { content: "\201C"; position: absolute; left: 1.2rem; top: 0.4rem; font-size: 4rem; line-height: 1; font-weight: 800; color: var(--red-text); }
.quotes p { font-size: 1.15rem; font-weight: 600; line-height: 1.4; }

/* Pain and does */
.pair-cols { display: grid; gap: 1rem; }
@media (min-width: 52rem) { .pair-cols { grid-template-columns: 1fr 1fr; } }
.pain, .does { border-radius: 12px; padding: 1.5rem; border: 1px solid; }
.pain { background: var(--pain-bg); border-color: var(--pain-line); }
.does { background: var(--does-bg); border-color: var(--does-line); }
.label { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 0.9rem; }
.pain .label { color: var(--red-text); }
.does .label { color: var(--link); }
.pain-text { font-size: 1.2rem; line-height: 1.45; font-weight: 500; }
.does ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.does li p { margin-top: 0.25rem; color: var(--muted); }

/* Steps */
.steps ol { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.75rem 1fr; gap: 0 1rem; }
.steps li::before { content: counter(step); grid-row: 1 / span 2; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--primary); color: var(--on-primary); font-weight: 800; font-size: 1.15rem; display: flex; align-items: center; justify-content: center; }
.steps li p { color: var(--muted); margin-top: 0.2rem; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.table-wrap:focus-visible { outline-offset: 0; }
table { border-collapse: collapse; width: 100%; font-size: 0.98rem; }
th, td { text-align: left; vertical-align: top; padding: 0.8rem 1rem; border-bottom: 1px solid var(--line); min-width: 9rem; }
thead th { background: var(--cta-bg); color: var(--cta-text); font-weight: 700; border-bottom: 0; }
tbody th { font-weight: 600; }
tbody tr:nth-child(even) td, tbody tr:nth-child(even) th { background: var(--surface); }
tbody tr:last-child td { border-bottom: 0; }
.prose .table-wrap { margin-block: 1.25rem; }

/* Cards */
.grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.cards li { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1.4rem 1.5rem; box-shadow: 0 1px 2px rgba(14, 26, 74, 0.04); }
@media (prefers-reduced-motion: no-preference) {
  .cards li { transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease; }
  .cards li:hover { transform: translateY(-2px); border-color: var(--does-line); box-shadow: 0 12px 28px -12px rgba(14, 26, 74, 0.22); }
}
.cards li p { margin-top: 0.5rem; color: var(--muted); }
.cards h3 a { color: var(--text); text-decoration-color: var(--violet); }

/* Screenshots and FAQ */
.shot { margin-inline: 0; }
.shot img { border: 1px solid var(--line); border-radius: 10px; width: 100%; }
.shot figcaption { margin-top: 0.6rem; color: var(--muted); font-size: 0.92rem; }
.faq h3 { margin-top: 1.75rem; }
.faq p { margin-top: 0.4rem; max-width: 46rem; }

/* Call to action */
.cta {
  background:
    radial-gradient(60rem 28rem at 88% -20%, rgba(155, 178, 255, 0.16), transparent 70%),
    var(--cta-bg);
  color: var(--cta-text);
  padding-block: clamp(3rem, 7vw, 5rem);
  border-block: 1px solid var(--line);
}
.cta h2 { color: var(--cta-text); }
.cta p { color: var(--cta-muted); margin: 0.75rem 0 1.5rem; max-width: 40rem; }
.cta .btn { background: #ffffff; color: #0e1a4a; border-color: #ffffff; }
.cta a:focus-visible { outline-color: #ffffff; }

.chooser { list-style: none; display: flex; flex-wrap: wrap; gap: 1rem; padding: 0; margin: 1.5rem 0 0; }

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding-block: 2.5rem; font-size: 0.95rem; }
.foot-grid { display: grid; gap: 1.75rem; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); padding-bottom: 2rem; }
.foot-col h2 { font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.7rem; }
.foot-col ul, .quick { list-style: none; margin: 0; padding: 0; }
.foot-col li + li { margin-top: 0.4rem; }
.foot-meta { border-top: 1px solid var(--line); padding-top: 1.5rem; display: grid; gap: 0.75rem; }
.foot-meta:first-child { border-top: 0; padding-top: 0; }
.disclaimer { color: var(--muted); }
.quick { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; }
