/* FunderNote site. Palette: ledger paper and green ink. The one bold element is the notes-to-draft trace in the hero. */
@font-face { font-family: "Public Sans"; src: url("/fonts/public-sans.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("/fonts/source-serif-4.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("/fonts/source-serif-4-italic.woff2") format("woff2"); font-weight: 200 900; font-style: italic; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/ibm-plex-mono.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --paper: #ffffff;
  --ledger: #eef2ef;       /* the notes pane: pale ledger-sheet green */
  --ink: #1c2733;          /* body text: deep slate */
  --pencil: #56616b;       /* secondary text */
  --green: #23684a;        /* traced figures, links, the button */
  --green-wash: #dcebe2;   /* a traced pair while pointed at */
  --marker: #f5df6b;       /* a gap the notes don't cover */
  --rule: #d3dbd6;
  --sans: "Public Sans", system-ui, sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --wrap: 68rem;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--sans); }
a { color: var(--green); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 2px; }

.top, main > section, .foot { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

/* Header */
.top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1.5rem 0 0; }
.mark { font-weight: 700; font-size: 1.15rem; letter-spacing: -0.015em; color: var(--ink); text-decoration: none; }
.top-link { font-size: 0.95rem; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 4.4fr) minmax(0, 7.6fr); gap: 3.5rem; align-items: start; padding: 4.5rem 0 5rem; }
h1 { font-size: clamp(2.3rem, 4.6vw, 3.5rem); line-height: 1.06; letter-spacing: -0.025em; font-weight: 750; margin: 0 0 1.5rem; max-width: 13ch; }
.lede { font-size: 1.125rem; color: var(--ink); margin: 0 0 1rem; max-width: 34rem; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin-top: 2rem; }
.button { display: inline-block; background: var(--green); color: #fff; font-weight: 650; padding: 0.85rem 1.4rem; border-radius: 6px; text-decoration: none; }
.button:hover { background: #1b553c; }
.cta-note { color: var(--pencil); font-size: 0.95rem; }

/* The trace: notes on the left, draft on the right, numbers paired by index */
.trace { margin: 0.5rem 0 0; border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.trace-notes { background: var(--ledger); padding: 1.4rem 1.3rem; border-right: 1px solid var(--rule); }
.trace-draft { padding: 1.4rem 1.5rem 1.6rem; }
.pane-label { font-size: 0.85rem; font-weight: 650; color: var(--pencil); margin: 0 0 0.9rem; }
.trace pre { margin: 0; font: 400 0.84rem/1.85 var(--mono); white-space: pre-wrap; color: #2c3a47; }
.question { font-size: 0.92rem; font-weight: 600; margin: 0 0 0.6rem; }
.report { font: 400 1.04rem/1.7 var(--serif); margin: 0; }
.trace figcaption { grid-column: 1 / -1; border-top: 1px solid var(--rule); padding: 0.85rem 1.3rem; font-size: 0.9rem; color: var(--pencil); }
.trace figcaption em { font-style: normal; white-space: nowrap; }

.src, .fig { border-bottom: 2px solid color-mix(in srgb, var(--green) 55%, transparent); border-radius: 2px; transition: background-color 120ms; cursor: default; }
.src::after, .fig::after {
  content: attr(data-n); display: inline-block; margin-left: 0.2em; vertical-align: 0.45em;
  font: 650 0.62rem/1 var(--sans); color: var(--green); min-width: 1.2em; padding: 0.12em 0.25em; border: 1px solid currentColor; border-radius: 1em; text-align: center;
}
.is-on { background: var(--green-wash); }
.gap { background: var(--marker); color: var(--ink); padding: 0.05em 0.25em; border-radius: 2px; font-family: var(--sans); font-size: 0.86em; }

/* Sections */
main > section:not(.hero) { padding: 3.5rem 0; border-top: 1px solid var(--rule); }
h2 { font-size: clamp(1.55rem, 2.6vw, 2rem); letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 2rem; font-weight: 700; }
h3 { font-size: 1.1rem; margin: 0 0 0.4rem; letter-spacing: -0.01em; }

.steps ol { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: block; font: 400 2.6rem/1 var(--serif); color: var(--green); margin-bottom: 0.8rem; }
.steps p { margin: 0; color: var(--pencil); }

.rules dl { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 3rem; }
.rules dt { font-weight: 700; margin-bottom: 0.3rem; }
.rules dd { margin: 0; color: var(--pencil); max-width: 32rem; }

.offer p { max-width: 38rem; margin: 0 0 1.5rem; }
.offer table { border-collapse: collapse; margin: 0 0 1rem; min-width: min(100%, 26rem); }
.offer th, .offer td { text-align: left; padding: 0.8rem 2rem 0.8rem 0; border-bottom: 1px solid var(--rule); }
.offer th { font: 600 1.35rem/1.2 var(--serif); }
.small { font-size: 0.92rem; color: var(--pencil); }

.founder p { font: 400 1.15rem/1.7 var(--serif); max-width: 38rem; margin: 0 0 1.1rem; }

/* Footer */
.foot { border-top: 1px solid var(--rule); padding: 2rem 0 3rem; display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; align-items: baseline; color: var(--pencil); font-size: 0.92rem; }
.foot-name { font-weight: 700; color: var(--ink); margin: 0; }
.foot-links { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin: 0; padding: 0; }
.foot .address { flex-basis: 100%; margin: 0; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 2.5rem; padding-top: 3rem; }
  .steps ol { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 640px) {
  .trace { grid-template-columns: 1fr; }
  .trace-notes { border-right: 0; border-bottom: 1px solid var(--rule); }
  .rules dl { grid-template-columns: 1fr; }
  .top-link { font-size: 0.85rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print { .top, .cta-row, .foot-links { display: none; } }
