/*
 * Portfolio theme for the geocrawl explorer.
 * The explorer release loads this file after its own styles.css, so every other
 * file stays identical to the geocrawl release. Values repeat the portfolio
 * tokens in src/styles/global.css; tests/test_geocrawl_theme.py keeps them in step.
 */

@font-face {
  font-family: "Recursive";
  src: url("/fonts/recursive-variable-latin.woff2") format("woff2");
  font-weight: 300 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;

  --bg-paper: #eef1f0;
  --bg-card: #fbfcfc;
  --bg-subtle: #f6f8f7;
  --ink: #11132b;
  --ink-muted: #3c405c;
  --border: #d3d9d7;
  --border-strong: #55597a;
  --accent: #23278a;
  --accent-hover: #2f35a6;
  --accent-soft: rgba(47, 53, 166, 0.1);
  --amber: #8a6400;
  --amber-soft: #f6f8f7;
  --danger: #ad1449;
  --danger-soft: #f6f8f7;
  --font-serif: "Recursive", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "Recursive", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Recursive", ui-monospace, monospace;
  --radius: 16px;

  --theme-ground: #0b3329;
  --theme-ground-text: #f6f6ff;
  --theme-ground-muted: #c4c7ef;
  --theme-on-accent: #ffffff;
  --theme-focus-ground: #f6d35b;
  --theme-link: #2b2f9e;
  --theme-shadow-near: rgba(17, 19, 43, 0.08);
  --theme-shadow-far: rgba(17, 19, 43, 0.18);
}

html,
body {
  font-variation-settings: "MONO" 0, "CASL" 0;
  font-weight: 420;
  -webkit-font-smoothing: antialiased;
}

body {
  font-size: 1.0625rem;
  line-height: 1.6;
}

a {
  color: var(--theme-link);
}

:focus-visible {
  outline: 3px solid var(--accent-hover);
  outline-offset: 3px;
}

.mono,
.back-link,
.eyebrow,
.sample-pill,
.command-code,
.page-row-url,
.detail-url {
  font-variation-settings: "MONO" 1, "CASL" 0;
}

/* Header on the reagent green ground of the geocrawl run. */
.site-header {
  background-color: var(--theme-ground);
  border-bottom: 0;
  color: var(--theme-ground-text);
  padding-block: 2.5rem 2.25rem;
}

.back-link {
  color: var(--theme-ground-text);
}

.back-link:hover {
  color: var(--theme-focus-ground);
}

.site-header :focus-visible {
  outline-color: var(--theme-focus-ground);
}

.eyebrow {
  color: var(--theme-ground-muted);
}

.sample-pill {
  background-color: transparent;
  border-color: var(--theme-ground-muted);
  color: var(--theme-ground-muted);
}

.site-header h1 {
  font-size: clamp(2rem, 5.2vw, 3.25rem);
  font-weight: 860;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.site-header .lead,
.site-header .status-line {
  color: var(--theme-ground-muted);
}

.site-header .lead {
  font-size: 1.125rem;
}

/* Headings and figures in the portfolio's heavy sans voice. */
.section-heading,
.detail-heading,
.footer-heading,
.error-title {
  font-weight: 760;
  letter-spacing: -0.01em;
}

.kpi-value,
.detail-word-count {
  font-weight: 860;
  font-variant-numeric: tabular-nums;
}

/* Cards are plates: rounded, soft shadow against the bench. */
.kpi-card,
.reproduce-details,
.controls-bar,
.page-list-card,
.detail-panel,
.error-banner {
  border-color: var(--border);
  box-shadow: 0 1px 2px var(--theme-shadow-near), 0 28px 56px -32px var(--theme-shadow-far);
}

.kpi-card-primary {
  background: var(--bg-card);
  border-color: var(--accent);
  box-shadow: 0 1px 2px var(--theme-shadow-near), 0 28px 56px -32px var(--theme-shadow-far);
}

.page-list-card {
  overflow: hidden;
}

.capture-slot,
.detail-url,
.command-code {
  border-radius: 8px;
}

/* Actions are pills at least 44px high. */
.reproduce-link,
.segmented-btn {
  min-height: 44px;
  border-radius: 999px;
  padding-inline: 1.15rem;
}

.reproduce-link,
.segmented-btn[aria-pressed="true"] {
  color: var(--theme-on-accent);
}

.reproduce-details summary {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
}

.search-input,
.sort-select {
  min-height: 44px;
  border-radius: 12px;
  background-color: var(--bg-card);
}

.badge-compared {
  border-color: var(--border);
  color: var(--accent);
}

.badge-incomplete {
  border-color: var(--border);
}

.page-row {
  min-height: 44px;
}

.site-footer {
  background-color: var(--bg-card);
}
