/* ============================================================
   Browser extension policies — technical / utilitarian.
   Cool slate, blue accent, monospace meta, squared edges.
   Deliberately distinct from the warm editorial style used by
   the language-learning extensions.
   ============================================================ */

:root {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --ink: #1b1f24;
  --ink-soft: #5a626d;
  --ink-faint: #8c95a1;
  --line: #dde1e6;
  --line-strong: #c4cad2;
  --accent: #2f6feb;
  --accent-soft: #eaf1fe;
  --accent-text: #ffffff;
  --font-ui:
    ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-mono:
    ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono",
    monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1116;
    --surface: #161b22;
    --ink: #e6edf3;
    --ink-soft: #9ba6b2;
    --ink-faint: #6e7a87;
    --line: #262c34;
    --line-strong: #333b45;
    --accent: #5b9bff;
    --accent-soft: #16243d;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.7;
  padding: 0 20px 90px;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
}

/* ---------- Header bar ---------- */

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: inherit;
  padding: 18px 0;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--line);
}

.mark {
  background: var(--accent);
  color: var(--accent-text);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  flex-shrink: 0;
}

.brand-name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  color: var(--ink-faint);
}

/* ---------- Headings ---------- */

h1 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 10px;
}

.updated {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-faint);
  margin-bottom: 40px;
}

h2 {
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin: 40px 0 14px;
  padding-left: 13px;
  border-left: 3px solid var(--accent);
  line-height: 1.35;
}

/* ---------- Body ---------- */

p {
  margin-bottom: 15px;
  color: var(--ink-soft);
}

strong {
  font-weight: 620;
  color: var(--ink);
}

ul {
  margin: 0 0 15px;
  padding-left: 0;
  list-style: none;
}

li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 9px;
  color: var(--ink-soft);
}

li::before {
  content: "—";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 600;
}

li strong {
  color: var(--ink);
}

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

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

code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 1px 5px;
  color: var(--ink);
}

/* ---------- Callout ---------- */

.callout {
  background: var(--accent-soft);
  border: 1px solid transparent;
  border-left: 3px solid var(--accent);
  border-radius: 0 4px 4px 0;
  padding: 16px 18px;
  margin-bottom: 8px;
}

.callout p {
  margin-bottom: 0;
  color: var(--ink);
}

/* ---------- Index cards ---------- */

.card-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--surface);
}

.card-link {
  display: block;
  padding: 16px 18px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--line);
  transition: background 0.12s ease;
}

.card-link:last-child {
  border-bottom: none;
}

.card-link:hover {
  background: var(--accent-soft);
}

.card-title {
  display: block;
  font-size: 14.5px;
  font-weight: 620;
  color: var(--ink);
  margin-bottom: 1px;
}

.card-desc {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-faint);
}

/* ---------- Footer ---------- */

footer {
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-faint);
  line-height: 1.6;
}

@media (max-width: 560px) {
  h1 {
    font-size: 26px;
  }
  body {
    font-size: 14.5px;
  }
}
