/* The 25 — v3 site system */
:root {
  --ink: #12202c;
  --ink-soft: #2a3d4d;
  --paper: #eef1f4;
  --paper-2: #e2e8ee;
  --card: #f7f9fb;
  --line: #c5d0da;
  --accent: #2a6f7a;
  --accent-2: #1d535c;
  --warn: #8a6420;
  --bad: #8b2e2e;
  --good: #1f5c45;
  --local: #5c3d1f;
  --display: "Fraunces", "Source Serif 4", Georgia, serif;
  --body: "Figtree", "DM Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--body);
  background:
    radial-gradient(ellipse 90% 55% at 0% -10%, #c9d8de 0%, transparent 55%),
    radial-gradient(ellipse 70% 45% at 100% 0%, #d5dde4 0%, transparent 50%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
}

a { color: var(--accent-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }

.site-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 22px;
  padding: 18px 22px 12px;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 249, 251, 0.72);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.55rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
}
.brand span { color: var(--accent); font-weight: 500; }
.brand-sub { color: var(--ink-soft); font-size: 0.82rem; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-family: var(--mono);
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #fff;
  color: var(--ink-soft);
}
.chip.local { border-color: #d4b896; background: #f7f0e6; color: var(--local); }
.chip.ok { border-color: #a8cbbb; background: #e8f4ee; color: var(--good); }
.chip.warn { border-color: #e0c98a; background: #faf4e4; color: var(--warn); }
.chip.bad { border-color: #e0b4b4; background: #f8e8e8; color: var(--bad); }

main.wrap { max-width: 1120px; margin: 0 auto; padding: 28px 20px 96px; }

.hero {
  padding: 18px 0 28px;
  animation: rise 0.55s ease both;
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 0 0 10px;
}
.hero p {
  margin: 0;
  max-width: 38rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.5;
}

.domains {
  display: grid;
  gap: 22px;
}
.domain {
  animation: rise 0.55s ease both;
}
.domain:nth-child(2) { animation-delay: 0.05s; }
.domain:nth-child(3) { animation-delay: 0.1s; }
.domain:nth-child(4) { animation-delay: 0.15s; }
.domain:nth-child(5) { animation-delay: 0.2s; }
.domain:nth-child(6) { animation-delay: 0.25s; }

.domain-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--ink);
}
.domain-head h2 {
  font-family: var(--display);
  font-size: 1.35rem;
  margin: 0;
  letter-spacing: -0.02em;
}
.domain-head .blurb { color: var(--ink-soft); font-size: 0.88rem; }

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
}
.tool-door {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  padding: 14px 14px 12px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.tool-door:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 10px 24px rgba(18, 32, 44, 0.08);
  text-decoration: none;
  color: inherit;
}
.tool-door.stub { border-left-color: var(--line); opacity: 0.88; }
.tool-door.link-only { border-left-color: var(--ink-soft); }
.tool-door .num {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.tool-door h3 {
  font-family: var(--display);
  font-size: 1.12rem;
  margin: 4px 0 6px;
  letter-spacing: -0.02em;
}
.tool-door .q {
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.4;
  margin: 0 0 10px;
  min-height: 2.6em;
}
.tool-meta { display: flex; flex-wrap: wrap; gap: 6px; }

.banner {
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: #f7f0e6;
  color: var(--local);
  font-size: 0.9rem;
  line-height: 1.45;
  animation: rise 0.4s ease both;
}
.banner.bad {
  background: #f8e8e8;
  border-color: #e0b4b4;
  color: var(--bad);
}
.banner.ok {
  background: #e8f4ee;
  border-color: #a8cbbb;
  color: var(--good);
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 16px 18px;
  margin-bottom: 14px;
  animation: rise 0.45s ease both;
}
.panel h2 {
  font-family: var(--display);
  font-size: 1.2rem;
  margin: 0 0 8px;
}
.muted { color: var(--ink-soft); font-size: 0.9rem; line-height: 1.45; }
.mono { font-family: var(--mono); }
.row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin: 12px 0;
}
label {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin-bottom: 5px;
}
input, select, textarea {
  font: inherit;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}
button.act, .btn {
  font: inherit;
  padding: 8px 14px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  cursor: pointer;
}
button.ghost, .btn.ghost {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}
button.act:hover, button.ghost:hover, .btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
table.facts { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
table.facts th, table.facts td {
  text-align: left;
  padding: 8px 6px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.facts th {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  font-weight: 500;
}
.prov {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--ink-soft);
  margin-top: 2px;
}
.fact-blank {
  font-style: italic;
  color: var(--warn);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 640px) {
  .hero h1 { font-size: 2rem; }
  .tool-door .q { min-height: 0; }
}
