/* ─────────────────────────────────────────────────────────────
   The Credit Mann — one screen, mostly.
   Paper / ink / forest / brass. Editorial, not SaaS.
   ───────────────────────────────────────────────────────────── */

:root {
  --paper: #f7f4ee;
  --paper-2: #efeae0;
  --ink: #14150f;
  --ink-soft: #34372c;
  --muted: #6b7061;
  --line: #d6cfc0;
  --line-strong: #b9b1a0;
  --forest: #1f3a2e;
  --brass: #a1722a;

  --font-display: "Newsreader", ui-serif, Georgia, "Times New Roman", serif;
  --font-body: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --shell: 1100px;
  --gutter: clamp(20px, 5vw, 48px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.58;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1; display: flex; flex-direction: column; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.025em;
  text-wrap: balance;
  margin: 0;
}

p { margin: 0; text-wrap: pretty; }
a { color: inherit; }

::selection { background: var(--forest); color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 18px;
  z-index: 100;
  font-size: 14px;
}
.skip:focus { left: 12px; top: 12px; }

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ── Type bits ────────────────────────────────────────────── */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 20px;
  height: 1px;
  background: var(--brass);
  flex: none;
}

.lede {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 42ch;
}

.micro {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Buttons ──────────────────────────────────────────────── */

.btn {
  --btn-bg: var(--forest);
  --btn-fg: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 0 24px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bg);
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background 180ms var(--ease), border-color 180ms var(--ease), transform 180ms var(--ease);
}
.btn:hover { background: var(--ink); border-color: var(--ink); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-small { min-height: 40px; padding: 0 18px; font-size: 14px; }

.btn-invert { --btn-bg: var(--paper); --btn-fg: var(--ink); }
.btn-invert:hover { background: var(--brass); border-color: var(--brass); color: #fff; }

/* ── Header ───────────────────────────────────────────────── */

.site-header { border-bottom: 1px solid var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 66px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: -0.015em;
}

.brand-mark {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  background: var(--forest);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.04em;
  flex: none;
}

/* ── Hero ─────────────────────────────────────────────────── */

.hero {
  flex: 1;
  display: flex;
  align-items: center;
  padding-block: clamp(30px, 4.5vw, 56px) clamp(36px, 5vw, 54px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(30px, 5vw, 60px);
  align-items: start;
}

h1 {
  font-size: clamp(2.3rem, 4.4vw, 3.75rem);
  line-height: 1.0;
  letter-spacing: -0.035em;
  margin-bottom: 18px;
}
h1 em { color: var(--forest); letter-spacing: -0.02em; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  margin-top: 24px;
}

/* Topics — compact two-column list, no cards */
.topics-block {
  border-top: 1px solid var(--ink);
  padding-top: 13px;
}

.aside-label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.topics {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: 24px;
  font-size: 13.8px;
  line-height: 1.3;
  color: var(--ink-soft);
}

.topics li {
  padding: 5.5px 0;
  border-bottom: 1px solid var(--line);
  break-inside: avoid;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.topics li::before {
  content: "";
  width: 4px;
  height: 4px;
  background: var(--brass);
  flex: none;
  transform: translateY(-2px);
}

.topics-note {
  margin-top: 11px;
  font-size: 12px;
  color: var(--muted);
}

/* ── CTA band ─────────────────────────────────────────────── */

.cta { background: var(--forest); color: var(--paper); }

.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 40px;
  padding-block: clamp(30px, 4vw, 46px);
}

.cta h2 {
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #f4efe4;
}

/* ── Footer ───────────────────────────────────────────────── */

.site-footer {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 28px;
  padding-block: 20px;
  font-size: 12.5px;
  color: var(--muted);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--ink);
  white-space: nowrap;
}
.footer-brand .brand-mark { width: 22px; height: 22px; font-size: 8.5px; }

.disclaimer { flex: 1 1 320px; line-height: 1.5; max-width: 68ch; }

.copyright {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
}

/* ── 404 ──────────────────────────────────────────────────── */

.notfound {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding-block: 40px;
}
.notfound h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-block: 12px 16px; }

/* ── Responsive ───────────────────────────────────────────── */

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 26px; }
  .lede { max-width: 54ch; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  h1 { font-size: clamp(2.05rem, 9vw, 2.8rem); }
  .hero { padding-block: 22px 26px; }
  .micro { margin-top: 10px; }
  /* Topics collapse into a compact flowing list so the page stays ~1 screen */
  .topics {
    columns: unset;
    display: flex;
    flex-wrap: wrap;
    gap: 2px 16px;
    font-size: 13px;
  }
  .topics li {
    border-bottom: 0;
    padding: 2px 0;
    gap: 6px;
    white-space: nowrap;
  }
  .topics-note { display: none; }
  .br-wide { display: none; }
  .cta-inner { flex-direction: column; align-items: flex-start; gap: 14px; padding-block: 26px; }
  .footer-inner { gap: 8px 16px; padding-block: 14px; }
  .disclaimer { flex-basis: 100%; font-size: 11.5px; }
}

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