/* RCG Tools — shared tokens (sibling of shop./ops.rockcreek.build) */
:root {
  --bg: #FAF9F7;
  --surface: #FFFFFF;
  --surface-2: #F2EDDF;
  --ink: #1C1917;
  --ink-2: #6B6560;
  --line: #E4DED1;
  --line-strong: #CFC7B6;
  --accent: #F5C400;
  --accent-ink: #1C1917;
  --ok: #1D6A40;
  --err: #B83232;
  --focus: #1C1917;

  --font-display: 'Bitter', Georgia, serif;
  --font-body: 'Golos Text', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --radius: 4px;
  --wrap: 1040px;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1C1917; --surface: #24201D; --surface-2: #2E2925;
    --ink: #F2EDDF; --ink-2: #A59E94; --line: #3A342F; --line-strong: #4D463F;
    --ok: #5CB885; --err: #E07070; --focus: #F5C400;
  }
}
:root[data-theme="dark"] {
  --bg: #1C1917; --surface: #24201D; --surface-2: #2E2925;
  --ink: #F2EDDF; --ink-2: #A59E94; --line: #3A342F; --line-strong: #4D463F;
  --ok: #5CB885; --err: #E07070; --focus: #F5C400;
}

*, *::before, *::after { box-sizing: inherit; margin: 0; padding: 0; }
html { scroll-padding-top: env(safe-area-inset-top, 0px); -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg); color: var(--ink);
  font: 400 16px/1.55 var(--font-body);
  min-height: 100vh;
}
a { color: inherit; }
img, svg { max-width: 100%; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

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

/* Header */
.site-head { border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 14px; height: 68px; }
.logo { display: block; width: 118px; color: var(--ink); line-height: 0; }
.logo svg { width: 100%; height: auto; }
.site-name { font-family: var(--font-display); font-size: 17px; font-weight: 500;
             padding-left: 14px; border-left: 1px solid var(--line-strong); }
.site-name a { text-decoration: none; }
.head-spacer { flex: 1; }
.head-note { font-family: var(--font-mono); font-size: 12px; color: var(--ink-2); }

/* Type */
h1 { font-family: var(--font-display); font-weight: 500; font-size: clamp(30px, 4.4vw, 42px);
     line-height: 1.15; letter-spacing: -0.01em; }
h2 { font-family: var(--font-display); font-weight: 500; font-size: 22px; line-height: 1.25; }
.lede { color: var(--ink-2); font-size: 17px; max-width: 60ch; margin-top: 12px; }
.mono { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.01em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 15px/1 var(--font-body); text-decoration: none; cursor: pointer;
  padding: 13px 20px; border-radius: var(--radius); border: 1px solid var(--line-strong);
  background: transparent; color: var(--ink);
}
.btn:hover { border-color: var(--ink); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { border-color: var(--accent-ink); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

.site-foot { border-top: 1px solid var(--line); margin-top: 72px; }
.site-foot .wrap { padding-top: 22px; padding-bottom: 28px; color: var(--ink-2); font-size: 13px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Cross-tool nav */
.tool-nav { display: flex; gap: 22px; }
.tool-nav a { font-size: 14px; font-weight: 500; text-decoration: none; color: var(--ink-2); padding: 6px 0;
              border-bottom: 2px solid transparent; }
.tool-nav a:hover { color: var(--ink); }
.tool-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
@media (max-width: 560px) { .site-name { display: none; } .tool-nav { gap: 16px; } }
