/*
 * Base layout/typography for the Django-rendered marketing site. Loaded
 * after theme/tokens.css (see templates/base.html) so the var(...)
 * references below resolve to the shared token values.
 */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-outfit);
  color: var(--color-gray-800);
  background: #ffffff;
  line-height: 1.5;
}

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

a:hover {
  text-decoration: underline;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.site-header {
  border-bottom: 1px solid var(--color-gray-200);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.site-header .brand {
  font-weight: 600;
  font-size: 18px;
  color: var(--color-gray-900);
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-header nav a:not(.btn) {
  color: var(--color-gray-600);
  font-size: 14px;
  font-weight: 500;
}

.site-header nav a:not(.btn):hover {
  color: var(--color-gray-900);
  text-decoration: none;
}

.site-footer {
  border-top: 1px solid var(--color-gray-200);
  margin-top: 80px;
  padding: 32px 0;
  color: var(--color-gray-500);
  font-size: 14px;
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer nav {
  display: flex;
  gap: 20px;
}

.hero {
  padding: 96px 0 72px;
  text-align: center;
}

.hero h1 {
  font-size: 44px;
  font-weight: 700;
  color: var(--color-gray-900);
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.hero p {
  font-size: 18px;
  color: var(--color-gray-600);
  max-width: 640px;
  margin: 0 auto 32px;
}

.hero .actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.section {
  padding: 56px 0;
}

.section h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-gray-900);
  margin: 0 0 12px;
}

.section .lede {
  color: var(--color-gray-600);
  font-size: 16px;
  max-width: 720px;
}

.prose h2 {
  font-size: 22px;
  margin-top: 40px;
}

.prose p,
.prose li {
  color: var(--color-gray-700);
  font-size: 15px;
}

.prose pre {
  background: var(--color-gray-900);
  color: var(--color-gray-50);
  padding: 16px;
  border-radius: var(--radius-lg);
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.6;
}

.prose pre code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.prose :not(pre) > code {
  background: var(--color-gray-100);
  color: var(--color-gray-800);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

/*
 * Pure-CSS tabs (checked-radio + label[for] + sibling selectors) for the
 * developers quickstart's multi-language code samples - no JavaScript
 * anywhere on this site (see docs/PLAN.md's "Rendering split" note), and
 * a language switcher doesn't need any. One rule pair per tab since CSS
 * has no way to match a panel's data-tab against whichever radio id is
 * currently checked - fine at this scale (3 languages).
 */
.code-tabs {
  position: relative;
  /* Clips everything inside to one clean rounded rectangle - the active
     tab and the panel below it are the same color and sit flush against
     each other, so the whole thing reads as one card, not a tab bar
     bolted onto a separate box. */
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-gray-200);
}

.code-tabs-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.code-tabs-nav {
  display: flex;
  gap: 4px;
  padding: 8px 8px 0;
  background: var(--color-gray-50);
}

.code-tabs-nav label {
  cursor: pointer;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-gray-500);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.code-tabs-panel {
  display: none;
  margin: 0;
  border: none;
  border-radius: 0;
}

#lang-curl:checked ~ .code-tabs-panels .code-tabs-panel[data-tab='lang-curl'],
#lang-python:checked ~ .code-tabs-panels .code-tabs-panel[data-tab='lang-python'],
#lang-node:checked ~ .code-tabs-panels .code-tabs-panel[data-tab='lang-node'] {
  display: block;
}

#lang-curl:checked ~ .code-tabs-nav label[for='lang-curl'],
#lang-python:checked ~ .code-tabs-nav label[for='lang-python'],
#lang-node:checked ~ .code-tabs-nav label[for='lang-node'] {
  color: var(--color-gray-50);
  background: var(--color-gray-900);
}

#lang-curl:focus-visible ~ .code-tabs-nav label[for='lang-curl'],
#lang-python:focus-visible ~ .code-tabs-nav label[for='lang-python'],
#lang-node:focus-visible ~ .code-tabs-nav label[for='lang-node'] {
  outline: 2px solid var(--color-brand-500);
  outline-offset: 2px;
}
