/* deemster.io marketing site — shared stylesheet.
   Palette and type are PROVISIONAL (2026-09-16): no deemster brand exists yet.
   Everything routes through the tokens below so a real brand is a one-block swap. */

:root {
  color-scheme: light;

  --ink: #0f1a17;
  --ink-2: #3b4a45;
  --ink-3: #6b7a75;
  --paper: #f7f6f2;
  --surface: #ffffff;
  --line: #e2e0d8;
  --line-2: #d3d0c5;

  --accent: #1e6f55;       /* ledger green */
  --accent-ink: #0f4a38;
  --accent-soft: #e3efe9;
  --flag: #b4561c;         /* held-for-review amber */
  --flag-soft: #f7e9dd;

  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --radius: 10px;
  --radius-lg: 16px;
  --container: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.mono { font-family: var(--font-mono); }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); }
.btn-ghost { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn:focus-visible, .nav-link:focus-visible, .site-logo:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ── Header ──────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 16px;
}
.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
}
.site-logo img { width: 26px; height: 26px; }
.site-nav { display: flex; align-items: center; gap: 24px; }
.nav-link {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}
.nav-link:hover { color: var(--ink); }

@media (max-width: 640px) {
  .site-nav .nav-link { display: none; }
  .site-nav .btn { padding: 9px 14px; font-size: 14px; }
}

/* ── Hero ────────────────────────────────────────────────── */
.hero { padding-block: clamp(48px, 9vw, 112px) clamp(56px, 8vw, 96px); }
.hero .container {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
}
.hero h1 {
  font-size: clamp(36px, 4.6vw, 52px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin: 0 0 22px;
  font-weight: 700;
  text-wrap: balance;
}
.hero .lede {
  font-size: clamp(17px, 1.6vw, 19px);
  color: var(--ink-2);
  margin: 0 0 32px;
  max-width: 34em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 900px) {
  .hero .container { grid-template-columns: minmax(0, 1fr); }
}

/* ── Ledger card (hero illustration) ────────────────────── */
.ledger {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 0 rgba(15, 26, 23, .04), 0 24px 48px -24px rgba(15, 26, 23, .18);
  overflow: hidden;
}
.ledger-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.ledger-head .label { font-size: 12px; color: var(--ink-3); font-family: var(--font-mono); }
.ledger-head .client { font-weight: 600; font-size: 16px; }
.pill {
  flex: none;
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  white-space: nowrap;
}
.ledger-rows { list-style: none; margin: 0; padding: 6px 0; }
.ledger-rows li {
  display: grid;
  grid-template-columns: 7.5em minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 9px 20px;
  font-size: 14px;
}
.ledger-rows .src { color: var(--ink-3); }
.ledger-rows .val {
  font-family: var(--font-mono);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ledger-rows .ok {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
}
.ledger-flag {
  margin: 6px 14px 14px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--flag-soft);
  border: 1px solid color-mix(in srgb, var(--flag) 25%, transparent);
}
.ledger-flag .flag-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
}
.ledger-flag .flag-state { font-family: var(--font-mono); font-size: 12px; color: var(--flag); white-space: nowrap; }
.ledger-flag p { margin: 0; font-size: 13.5px; color: var(--ink-2); }
.ledger-foot {
  padding: 12px 20px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
}

@media (max-width: 420px) {
  .ledger-rows li { grid-template-columns: 5.5em minmax(0, 1fr) auto; padding-inline: 16px; gap: 8px; }
}

/* ── Sections ────────────────────────────────────────────── */
.section { padding-block: clamp(56px, 8vw, 104px); border-top: 1px solid var(--line); }
.section-head { max-width: 40em; margin-bottom: clamp(32px, 4vw, 48px); }
.section-head h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 14px;
  text-wrap: balance;
}
.section-head p { margin: 0; color: var(--ink-2); font-size: 17px; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
@media (max-width: 860px) {
  .grid-3, .grid-2 { grid-template-columns: minmax(0, 1fr); }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
}
.card h3 { font-size: 18px; letter-spacing: -0.01em; margin: 0 0 8px; }
.card p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.card .step {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 14px;
}
.card ul { margin: 14px 0 0; padding-left: 18px; color: var(--ink-2); font-size: 15px; }
.card li + li { margin-top: 6px; }
.card-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 4px 8px;
  border-radius: 6px;
  margin-bottom: 14px;
  background: var(--accent-soft);
  color: var(--accent-ink);
}
.card-tag.alt { background: #ecebe5; color: var(--ink-2); }

/* ── Integrations ────────────────────────────────────────── */
.tools {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.tools li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.tools .name { font-weight: 600; display: block; }
.tools .role { font-size: 13.5px; color: var(--ink-3); }
.tools-note { margin: 20px 0 0; color: var(--ink-3); font-size: 14.5px; }
.tools-note a { color: var(--accent-ink); }
@media (max-width: 860px) { .tools { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ── CTA band ────────────────────────────────────────────── */
.cta {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 56px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.cta h2 { margin: 0 0 8px; font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.02em; }
.cta p { margin: 0; color: #c5d0cc; max-width: 36em; }
.cta .btn-primary { background: #fff; color: var(--ink); }
.cta .btn-primary:hover { background: var(--accent-soft); }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  padding-block: 40px;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 14px;
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.footer-links { display: flex; gap: 20px; }

/* ── 404 ─────────────────────────────────────────────────── */
.solo { min-height: 60vh; display: grid; place-items: center; text-align: center; padding-block: 96px; }
.solo h1 { font-size: clamp(32px, 5vw, 48px); line-height: 1.1; letter-spacing: -0.03em; margin: 0 0 12px; text-wrap: balance; }
.solo p { color: var(--ink-2); margin: 0 0 28px; }
.solo .hero-actions { justify-content: center; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
