@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,600;12..96,700;12..96,800&family=Instrument+Sans:wght@400;500;600;700&display=swap");

:root {
  color-scheme: dark;
  --bg: #090807;
  --surface: #14110f;
  --line: #2a2522;
  --text: #f4efe8;
  --muted: #a39d94;
  --accent: #ff4d1a;
  --accent2: #ffb347;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --head: "Bricolage Grotesque", "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent2); text-underline-offset: 3px; }
a:hover { color: var(--accent); }

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(9, 8, 7, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner, main, .footer-inner {
  max-width: 760px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-family: var(--head);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.02em;
}
.logo:hover { color: var(--text); }
.logo svg { width: 30px; height: 30px; flex: none; }
.logo b { color: var(--accent); font-weight: 800; }

.back {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}
.back:hover { color: var(--text); }

main { padding-top: 56px; padding-bottom: 72px; }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

h1, h2, h3 {
  font-family: var(--head);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}

h1 { font-size: clamp(34px, 7vw, 52px); font-weight: 800; margin: 0 0 12px; }
h2 { font-size: 23px; font-weight: 700; margin: 48px 0 12px; }
h3 { font-size: 18px; font-weight: 600; margin: 28px 0 8px; }

.updated { color: var(--muted); font-size: 15px; margin: 0 0 32px; }

.lead {
  font-size: 18px;
  color: var(--text);
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
}

p, li { color: #e4ddd3; }
p { margin: 0 0 16px; }
ul, ol { padding-left: 22px; margin: 0 0 18px; }
li { margin-bottom: 8px; }
li::marker { color: var(--accent); }
strong { color: var(--text); font-weight: 600; }

.box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 22px;
  margin: 18px 0 22px;
}
.box p:last-child { margin-bottom: 0; }

.table-wrap { overflow-x: auto; margin: 0 0 20px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; }

code, .kw {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
  background: #1d1916;
  color: var(--accent2);
  padding: 2px 7px;
  border-radius: 6px;
}

footer { border-top: 1px solid var(--line); padding: 32px 0 48px; }
.footer-inner { display: flex; flex-direction: column; gap: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 15px; }
.footer-links a:hover, .footer-links a[aria-current="page"] { color: var(--text); }
.copy { color: var(--muted); font-size: 14px; margin: 0; }

@media (max-width: 600px) {
  body { font-size: 16px; line-height: 1.7; }
  .topbar-inner, main, .footer-inner { padding-left: 16px; padding-right: 16px; }
  main { padding-top: 36px; padding-bottom: 56px; }
  h2 { font-size: 21px; margin-top: 40px; }
  .lead { font-size: 16.5px; padding: 16px 18px; }
  .back { display: none; }
}
