/* Russell Unlimited LLC — shared styles. No external fonts, no trackers. */

:root {
  --bg: #faf8f4;
  --surface: #ffffff;
  --ink: #1d2327;
  --muted: #56616b;
  --accent: #2f5d7c;
  --accent-ink: #ffffff;
  --border: #e2ddd3;
  --warn-bg: #fff6e0;
  --warn-border: #c98a12;
  --fill-bg: #fff1a8;
  --fill-ink: #3d3200;
  --radius: 10px;
  --measure: 44rem;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14181b;
    --surface: #1c2226;
    --ink: #ebe7e0;
    --muted: #a7b0b8;
    --accent: #8fbad8;
    --accent-ink: #10202b;
    --border: #2e363c;
    --warn-bg: #2b2412;
    --warn-border: #d9a441;
    --fill-bg: #5a4d0c;
    --fill-ink: #fff4c2;
  }
}

:root[data-theme="dark"] {
  --bg: #14181b;
  --surface: #1c2226;
  --ink: #ebe7e0;
  --muted: #a7b0b8;
  --accent: #8fbad8;
  --accent-ink: #10202b;
  --border: #2e363c;
  --warn-bg: #2b2412;
  --warn-border: #d9a441;
  --fill-bg: #5a4d0c;
  --fill-ink: #fff4c2;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.125rem; /* 18px */
  line-height: 1.65;
}

a {
  color: var(--accent);
  text-underline-offset: 0.18em;
}

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

a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: 16px;
  top: 12px;
  background: var(--surface);
  padding: 0.5rem 0.75rem;
  z-index: 10;
}

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.25rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  font-size: 1rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  padding: 0.25rem 0;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
}

/* Main content */

main {
  padding: 2.5rem 0 3.5rem;
}

h1,
h2,
h3 {
  line-height: 1.25;
  margin: 2.2rem 0 0.75rem;
}

h1 {
  font-size: 2.1rem;
  margin-top: 0;
}

h2 {
  font-size: 1.45rem;
  padding-top: 0.5rem;
  scroll-margin-top: 1rem;
}

h3 {
  font-size: 1.15rem;
}

p,
ul,
ol {
  margin: 0 0 1rem;
}

li {
  margin-bottom: 0.4rem;
}

.lede {
  font-size: 1.25rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.dates {
  color: var(--muted);
  font-size: 1rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0.6rem 0;
  margin-bottom: 1.5rem;
}

.dates span + span::before {
  content: "·";
  margin: 0 0.5rem;
}

.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem 0.5rem;
  margin-bottom: 2rem;
}

.toc h2 {
  font-size: 1rem;
  margin: 0 0 0.5rem;
  padding: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.toc ol {
  padding-left: 1.4rem;
  font-size: 1rem;
}

.caps {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

/* Callouts */

.callout {
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  border-left-width: 6px;
  border-radius: var(--radius);
  padding: 1rem 1.25rem 0.25rem;
  margin: 1.5rem 0;
}

.callout h2,
.callout h3 {
  margin-top: 0;
  padding-top: 0;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 0.5rem;
  margin: 1rem 0;
}

.card h3 {
  margin-top: 0;
}

.badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.1rem 0.6rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

/* Fill-in markers: visible on purpose until the owner replaces them. */
mark.fill {
  background: var(--fill-bg);
  color: var(--fill-ink);
  padding: 0 0.2em;
  border-radius: 3px;
  font-weight: 600;
}

/* FAQ */

details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
}

summary {
  cursor: pointer;
  font-weight: 700;
}

details[open] summary {
  margin-bottom: 0.5rem;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 1rem;
}

.site-footer .wrap {
  padding-top: 1.5rem;
  padding-bottom: 2rem;
}

.site-footer p {
  margin: 0 0 0.5rem;
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.75rem;
  }

  .lede {
    font-size: 1.15rem;
  }
}

@media print {
  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
  }

  .site-header,
  .site-footer,
  .toc,
  .skip {
    display: none;
  }

  main {
    padding: 0;
  }

  a {
    color: #000;
  }

  .callout,
  .card {
    background: #fff;
  }
}
