/* Inter, self-hosted and pinned (web/vendor/SHA256SUMS). The latin subset
   carries every Portuguese diacritic; `swap` keeps text readable while it
   loads, and the fallback stack is a real one rather than a bare sans-serif. */
@font-face {
  font-family: "Inter Variable";
  src: url("/assets/inter-latin-variable.woff2?v=5.3.0") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ── Semantic tokens ──────────────────────────────────────────────────────
   Every colour in this file resolves through one of these. Nothing below
   references a literal, which is what makes a dark theme a later drop-in
   rather than a rewrite: redefine the same custom properties under a
   `[data-theme="dark"]` block and the cascade does the rest. */
:root {
  color-scheme: light;

  /* Surfaces */
  --surface-app: #f9fafb;
  --surface-card: #ffffff;
  --surface-raised: #f9fafb;
  --surface-hover: #f3f4f6;
  --surface-sunken: #eef2ff;

  /* Ink */
  --ink-primary: #111827;
  --ink-secondary: #374151;
  --ink-muted: #6b7280;
  --ink-subtle: #9ca3af;
  --ink-inverse: #ffffff;

  /* Rules */
  --rule: #e5e7eb;
  --rule-soft: #f3f4f6;
  --rule-strong: #d1d5db;

  /* Accent */
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-fg: #2563eb;
  --accent-fg-hover: #1e3a8a;
  --accent-ring: #3b82f6;
  --accent-soft: #eff6ff;

  /* Status */
  --success-bg: #dcfce7;
  --success-fg: #166534;
  --success-strong: #16a34a;
  --danger-bg: #fee2e2;
  --danger-fg: #991b1b;
  --danger-strong: #dc2626;
  --warning-bg: #fef3c7;
  --warning-fg: #92400e;
  --warning-strong: #d97706;
  --info-bg: #dbeafe;
  --info-fg: #1e40af;
  --neutral-bg: #f3f4f6;
  --neutral-fg: #374151;

  /* Spacing — every gap and pad is a multiple of this */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;

  /* Type scale */
  --text-xs: 0.75rem;
  --text-sm: 0.8125rem;
  --text-base: 0.9375rem;
  --text-lg: 1.0625rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;

  /* Shape */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-full: 999px;

  --shadow-sm: 0 1px 2px rgb(15 23 42 / 6%);
  --shadow-card: 0 1px 2px rgb(15 23 42 / 6%), 0 8px 24px rgb(15 23 42 / 4%);
  --shadow-raised: 0 10px 15px -3px rgb(15 23 42 / 10%), 0 4px 6px -4px rgb(15 23 42 / 10%);

  --content: 78rem;
  --sidebar: 15rem;

  font-family: "Inter Variable", Inter, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 20rem;
  background: var(--surface-app);
  color: var(--ink-primary);
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--surface-app);
  color: var(--ink-primary);
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button,
a,
input,
select,
textarea {
  outline: none;
}

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

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.75rem, 7vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

h2 {
  margin-bottom: 0.65rem;
  font-size: 1.2rem;
  line-height: 1.3;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.75rem 1rem;
  transform: translateY(-160%);
  border-radius: 0.5rem;
  background: var(--ink-primary);
  color: var(--ink-inverse);
}

.skip-link:focus {
  transform: translateY(0);
}

.public-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  min-height: 3.75rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem max(1rem, env(safe-area-inset-left));
  border-bottom: 1px solid var(--rule);
  background: rgb(255 255 255 / 96%);
  backdrop-filter: blur(12px);
}

.brand {
  color: var(--ink-primary);
  font-size: 1.05rem;
  font-weight: 750;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.nav-link {
  display: flex;
  min-height: 2.5rem;
  align-items: center;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  color: var(--ink-secondary);
  font-size: var(--text-sm);
  font-weight: 550;
  gap: var(--space-3);
  text-decoration: none;
  white-space: nowrap;
}

.nav-link:hover {
  background: var(--surface-hover);
  color: var(--ink-primary);
}

.nav-link.active {
  background: var(--accent-soft);
  color: var(--accent-fg);
  font-weight: 650;
}

.secure-label {
  color: var(--ink-muted);
  font-size: 0.78rem;
}

.admin-main,
.public-main {
  width: min(100%, var(--content));
  margin: 0 auto;
  padding: var(--space-5) max(var(--space-4), env(safe-area-inset-right))
    calc(var(--space-7) + env(safe-area-inset-bottom))
    max(var(--space-4), env(safe-area-inset-left));
}

.public-main {
  width: min(100%, 48rem);
}

.page-intro {
  margin-bottom: 1.5rem;
}

.eyebrow {
  margin-bottom: 0.4rem;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lede,
.supporting-copy {
  max-width: 44rem;
  margin-bottom: 0;
  color: var(--ink-secondary);
  font-size: 1rem;
}

.card,
.task-card,
.document-card {
  padding: var(--space-4);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  background: var(--surface-card);
  box-shadow: var(--shadow-card);
}

.card + .card,
.task-card + .task-card {
  margin-top: 0.9rem;
}

.card-row {
  display: grid;
  gap: 0.85rem;
}

.document-card {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 0.75rem;
}

.document-card h2,
.document-card p {
  margin-bottom: 0;
}

.meta-list {
  display: grid;
  grid-template-columns: minmax(6rem, auto) minmax(0, 1fr);
  gap: 0.45rem 0.75rem;
  margin: 1rem 0 0;
}

.meta-list dt {
  color: var(--ink-muted);
}

.meta-list dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 600;
}

.hash-value {
  overflow-wrap: anywhere;
}

.status-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 1.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 750;
}

.status-success { background: var(--success-bg); color: var(--success-fg); }
.status-danger { background: var(--danger-bg); color: var(--danger-fg); }
.status-warning { background: var(--warning-bg); color: var(--warning-fg); }
.status-info { background: var(--info-bg); color: var(--info-fg); }

.field {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.field label,
.field legend {
  color: var(--ink-primary);
  font-weight: 700;
}

.field-hint {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.875rem;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
select,
textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--rule-strong);
  border-radius: 0.6rem;
  background: var(--surface-card);
}

textarea {
  min-height: 7rem;
  resize: vertical;
}

.field-error,
.error-panel {
  color: var(--danger-fg);
}

.error-panel,
.info-panel,
.warning-panel,
.success-panel {
  padding: 0.9rem 1rem;
  border-radius: 0.7rem;
}

.error-panel { background: var(--danger-bg); }
.info-panel { background: var(--info-bg); color: var(--info-fg); }
.warning-panel { background: var(--warning-bg); color: var(--warning-fg); }
.success-panel { background: var(--success-bg); color: var(--success-fg); }

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  border: 1px solid transparent;
  border-radius: 0.65rem;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}

.button-primary {
  background: var(--accent);
  color: var(--ink-inverse);
}

.button-primary:hover { background: var(--accent-hover); }

.button-secondary {
  border-color: var(--rule-strong);
  background: var(--surface-card);
  color: var(--ink-primary);
}

.button-danger {
  border-color: var(--danger-fg);
  background: var(--surface-card);
  color: var(--danger-fg);
}

.danger-zone {
  border-color: color-mix(in srgb, var(--danger-fg) 35%, var(--rule));
}

.secondary-action {
  margin-top: 0.8rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--rule);
}

.secondary-action summary {
  min-height: 2.75rem;
  padding: 0.65rem 0;
  font-weight: 700;
  cursor: pointer;
}

.secondary-action form {
  display: grid;
  gap: 0.7rem;
}

.secondary-actions {
  margin: 1.25rem 0;
  text-align: center;
}

.secondary-actions a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  color: var(--ink-secondary);
}

.button[disabled],
.button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.5;
}

.sticky-actions {
  position: fixed;
  z-index: 15;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  justify-content: center;
  padding: 0.75rem max(1rem, env(safe-area-inset-right)) calc(0.75rem + env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  border-top: 1px solid var(--rule);
  background: rgb(255 255 255 / 97%);
  box-shadow: 0 -8px 24px rgb(15 23 42 / 6%);
}

.sticky-actions > * {
  width: min(100%, 46rem);
}

.step-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.25rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.step-list li {
  min-height: 0.35rem;
  overflow: hidden;
  border-radius: 999px;
  background: var(--rule-strong);
  color: transparent;
  font-size: 0;
}

.step-list li.complete,
.step-list li.current { background: var(--accent); }

.review-copy {
  margin-bottom: 1rem;
}

.review-toolbar {
  position: sticky;
  z-index: 10;
  top: 4.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  padding: 0.65rem;
  border: 1px solid var(--rule);
  border-radius: 0.7rem;
  background: rgb(255 255 255 / 96%);
}

.review-toolbar button {
  min-width: 2.75rem;
  min-height: 2.75rem;
  border: 1px solid var(--rule-strong);
  border-radius: 0.5rem;
  background: var(--surface-card);
}

.pdf-page {
  position: relative;
  width: 100%;
  min-height: 24rem;
  margin: 0 auto 1rem;
  overflow: hidden;
  border: 1px solid var(--rule-strong);
  border-radius: 0.35rem;
  background: white;
  box-shadow: var(--shadow-card);
}

.pdf-page canvas {
  display: block;
  width: 100%;
  height: auto;
}

.pdf-text-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  line-height: 1;
  opacity: 0.2;
}

.pdf-text-layer span,
.pdf-text-layer br {
  position: absolute;
  color: transparent;
  white-space: pre;
  transform-origin: 0 0;
  cursor: text;
}

.page-sentinel {
  position: absolute;
  z-index: 2;
  right: 0;
  left: 0;
  height: 2px;
  pointer-events: none;
}

.page-sentinel-top { top: 0; }
.page-sentinel-bottom { bottom: 0; }

.capture-preview {
  display: grid;
  width: 100%;
  min-height: 16rem;
  place-items: center;
  overflow: hidden;
  border-radius: 0.75rem;
  background: #111827;
  color: white;
}

.capture-preview video,
.capture-preview img {
  display: block;
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
}

.public-footer {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem max(1rem, env(safe-area-inset-right)) calc(1.5rem + env(safe-area-inset-bottom));
  color: var(--ink-muted);
  font-size: 0.82rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

[hidden] { display: none !important; }

@media (min-width: 48rem) {
  .admin-header,
  .public-header {
    padding-right: 2rem;
    padding-left: 2rem;
  }

  .admin-main,
  .public-main {
    padding-top: 2.5rem;
    padding-right: 2rem;
    padding-left: 2rem;
  }

  .nav-link {
    padding-right: 0.9rem;
    padding-left: 0.9rem;
    font-size: 0.9rem;
  }

  .card-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .document-card {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding: 1.25rem 1.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ══════════════════════════════════════════════════════════════════════════
   Application shell

   A persistent sidebar on desktop, a drawer on mobile. The drawer is opened by
   a checkbox and closed by a label overlay, so it needs no JavaScript at all —
   AGENTS.md forbids Alpine.js and inline scripts, and a nav that only works
   once a module has parsed is a nav that fails on a slow phone.
   ══════════════════════════════════════════════════════════════════════════ */

.app-shell {
  display: flex;
  min-height: 100vh;
}

.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.app-sidebar {
  position: fixed;
  z-index: 50;
  top: 0;
  bottom: 0;
  left: 0;
  display: flex;
  width: var(--sidebar);
  flex-direction: column;
  overflow-y: auto;
  border-right: 1px solid var(--rule);
  background: var(--surface-card);
  transform: translateX(-100%);
  transition: transform 200ms ease-in-out;
}

.nav-toggle:checked ~ .app-shell .app-sidebar {
  transform: translateX(0);
}

.nav-scrim {
  position: fixed;
  z-index: 40;
  inset: 0;
  display: none;
  background: rgb(15 23 42 / 45%);
}

.nav-toggle:checked ~ .app-shell .nav-scrim {
  display: block;
}

.sidebar-brand {
  display: flex;
  min-height: 3.5rem;
  align-items: center;
  padding: var(--space-4);
  border-bottom: 1px solid var(--rule-soft);
  gap: var(--space-2);
}

.sidebar-nav {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-3) var(--space-2);
}

.sidebar-heading {
  padding: var(--space-3) var(--space-3) var(--space-1);
  color: var(--ink-subtle);
  font-size: var(--text-xs);
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sidebar-footer {
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid var(--rule);
}

.sidebar-identity {
  overflow: hidden;
  color: var(--ink-primary);
  font-size: var(--text-sm);
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-identity-detail {
  overflow: hidden;
  color: var(--ink-muted);
  font-size: var(--text-xs);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-content {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.mobile-bar {
  position: sticky;
  z-index: 30;
  top: 0;
  display: flex;
  min-height: 3.25rem;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-4);
  border-bottom: 1px solid var(--rule);
  background: var(--surface-card);
}

.nav-button {
  display: inline-flex;
  min-width: 2.5rem;
  min-height: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--ink-secondary);
  cursor: pointer;
}

.nav-button:hover {
  background: var(--surface-hover);
}

.icon {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
}

/* ── Page furniture ─────────────────────────────────────────────────────── */

.page-header {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.page-header h1 {
  margin-bottom: 0;
  font-size: var(--text-2xl);
  letter-spacing: -0.02em;
}

.page-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.page-subtitle {
  margin: 0;
  color: var(--ink-muted);
  font-size: var(--text-sm);
}

/* ── Stat tiles ─────────────────────────────────────────────────────────── */

.stat-grid {
  display: grid;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
  /* Two up on a phone rather than four stacked full-width rows, which pushed
     the list itself below the fold. */
  grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
}

.stat-tile {
  display: flex;
  align-items: center;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  background: var(--surface-card);
  box-shadow: var(--shadow-sm);
  color: inherit;
  gap: var(--space-3);
  text-decoration: none;
}

a.stat-tile:hover {
  border-color: var(--accent-ring);
  box-shadow: var(--shadow-card);
}

a.stat-tile[aria-current="true"] {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.stat-marker {
  width: 0.25rem;
  align-self: stretch;
  border-radius: var(--radius-full);
  background: var(--ink-subtle);
}

.stat-marker-success { background: var(--success-strong); }
.stat-marker-warning { background: var(--warning-strong); }
.stat-marker-danger { background: var(--danger-strong); }
.stat-marker-info { background: var(--accent); }

.stat-value {
  color: var(--ink-primary);
  font-size: var(--text-xl);
  font-weight: 650;
  line-height: 1.1;
}

.stat-label {
  color: var(--ink-muted);
  font-size: var(--text-sm);
}

/* ── Filter bar ─────────────────────────────────────────────────────────── */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-4);
  background: var(--surface-card);
  gap: var(--space-3);
}

.filter-search {
  min-width: 12rem;
  flex: 1;
  margin-bottom: 0;
}

.filter-bar .field {
  margin-bottom: 0;
}

/* ── Record list ────────────────────────────────────────────────────────── */

.record-list {
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  background: var(--surface-card);
  overflow: hidden;
}

.record-row {
  display: flex;
  flex-direction: column;
  padding: var(--space-4);
  border-bottom: 1px solid var(--rule-soft);
  gap: var(--space-2);
  text-decoration: none;
}

.record-row:last-child {
  border-bottom: 0;
}

a.record-row:hover {
  background: var(--surface-hover);
}

.record-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
}

.record-title {
  margin: 0;
  color: var(--ink-primary);
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1.35;
}

.record-meta {
  color: var(--ink-muted);
  font-size: var(--text-xs);
}

.signer-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.signer-chip {
  display: inline-flex;
  align-items: center;
  color: var(--ink-secondary);
  font-size: var(--text-xs);
  gap: var(--space-2);
}

.signer-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: var(--radius-full);
  background: var(--ink-subtle);
}

.signer-dot-signed { background: var(--success-strong); }
.signer-dot-declined { background: var(--danger-strong); }
.signer-dot-active { background: var(--accent); }

/* ── Empty state and pagination ─────────────────────────────────────────── */

.empty-state {
  padding: var(--space-7) var(--space-4);
  text-align: center;
}

.empty-state p {
  margin-bottom: var(--space-4);
  color: var(--ink-muted);
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-4);
  gap: var(--space-3);
}

.pagination-status {
  color: var(--ink-muted);
  font-size: var(--text-sm);
}

/* ── Desktop ────────────────────────────────────────────────────────────── */

@media (min-width: 60rem) {
  .app-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    transform: none;
  }

  .mobile-bar {
    display: none;
  }

  .nav-scrim {
    display: none !important;
  }

  .page-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (prefers-contrast: more) {
  :root {
    --rule: #6b7280;
    --rule-soft: #9ca3af;
    --ink-muted: #374151;
  }
}

/* ── Site-only layer ─────────────────────────────────────────────────────
   The marketing pages reuse every token and component above; only the page
   furniture that has no equivalent in the product lives here. */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--content);
  margin: 0 auto;
  padding: var(--space-4) var(--space-5);
  gap: var(--space-4);
}

.site-nav {
  display: flex;
  gap: var(--space-4);
}

.site-nav a {
  color: var(--ink-secondary);
  font-size: var(--text-sm);
  font-weight: 550;
  text-decoration: none;
}

.site-nav a:hover { color: var(--accent-fg); }

.site-main {
  max-width: 52rem;
  margin: 0 auto;
  padding: var(--space-6) var(--space-5) var(--space-7);
}

.hero {
  padding: var(--space-6) 0 var(--space-7);
  border-bottom: 1px solid var(--rule);
  margin-bottom: var(--space-6);
}

.hero h1 {
  max-width: 20ch;
  font-size: clamp(2rem, 6vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.hero p {
  max-width: 46ch;
  color: var(--ink-secondary);
  font-size: var(--text-lg);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  margin-top: var(--space-5);
  gap: var(--space-3);
}

.feature-grid {
  display: grid;
  gap: var(--space-4);
  margin: var(--space-6) 0;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}

.feature {
  padding: var(--space-4);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  background: var(--surface-card);
}

.feature h2 {
  margin-bottom: var(--space-2);
  font-size: var(--text-base);
}

.feature p {
  margin: 0;
  color: var(--ink-muted);
  font-size: var(--text-sm);
}

.prose h2 {
  margin-top: var(--space-6);
  font-size: var(--text-lg);
}

.prose p, .prose li {
  color: var(--ink-secondary);
  max-width: 68ch;
}

.site-footer {
  border-top: 1px solid var(--rule);
  margin-top: var(--space-7);
  padding: var(--space-5);
  color: var(--ink-muted);
  font-size: var(--text-sm);
  text-align: center;
}

.site-footer a { color: var(--ink-secondary); }

.notice {
  padding: var(--space-4);
  border-left: 4px solid var(--warning-strong);
  border-radius: var(--radius-md);
  background: var(--warning-bg);
  color: var(--warning-fg);
}
