/* Letter Rack pages (look E: paper, ink and ochre) inside the Kinsman shell.
   Headlines: Source Serif 4. Body: IBM Plex Sans. Both self-hosted via /assets/fonts.css.
   Text colours are 6.5:1 or better on their backgrounds in both themes; ochre #A86A12 is decoration only. */
:root {
  --paper: #F5F0E6;
  --surface: #FBF8F2;
  --ink: #2B261F;
  --muted: #4A4236;
  --rule: #DDD3C2;
  --ochre: #A86A12;
  --ochre-text: #7A4A0A;
  --note: #F3E4C8;
  --btn-bg: #2B261F;
  --btn-ink: #F5F0E6;
  --pine: #1C453A;
  --logo-pine: #1C453A;
  --logo-gold: #C27B0A;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1B1916; --surface: #24211D; --ink: #EFE8DB; --muted: #CFC6B6; --rule: #3A352F;
    --ochre: #E3A94F; --ochre-text: #E3A94F; --note: #3A2E1C; --btn-bg: #EFE8DB; --btn-ink: #1B1916;
    --pine: #86C2AE; --logo-pine: #368470; --logo-gold: #F3D49B; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #1B1916; --surface: #24211D; --ink: #EFE8DB; --muted: #CFC6B6; --rule: #3A352F;
  --ochre: #E3A94F; --ochre-text: #E3A94F; --note: #3A2E1C; --btn-bg: #EFE8DB; --btn-ink: #1B1916;
  --pine: #86C2AE; --logo-pine: #368470; --logo-gold: #F3D49B; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 1.1875rem; line-height: 1.6;
  padding-inline: clamp(16px, 5vw, 64px);
}
.wrap { max-width: 72rem; margin: 0 auto; }
a { color: var(--ink); text-decoration-color: var(--ochre); text-decoration-thickness: 2px; text-underline-offset: 4px; }
a:hover { text-decoration-color: currentColor; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--ochre); outline-offset: 3px; border-radius: 3px; }
img { max-width: 100%; height: auto; display: block; }

/* Kinsman shell (from /credentialing/) */
header.top {
  display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: baseline; justify-content: space-between;
  padding-block: 28px 0;
}
.mark { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; }
.mark svg { width: 34px; height: 34px; flex: none; }
.ki-b { fill: var(--logo-pine); }
.ki-d { fill: var(--logo-gold); }
.mark span span { color: var(--pine); }
header.top nav { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 1rem; }
header.top nav a { color: var(--muted); text-decoration: none; }
header.top nav a:hover { color: var(--ink); text-decoration: underline; }
footer.site { padding-block: 32px 48px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; color: var(--ink); font-size: 0.95rem; }

/* Letter Rack product bar */
.lr-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; margin-top: 28px; padding: 14px 0; border-block: 1px solid var(--rule); }
.lr-name { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 600; font-size: 1.3rem; color: var(--ink); text-decoration: none; margin-right: auto; }
.lr-name img { width: 34px; height: 34px; }
.lr-bar nav { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 1rem; }
.lr-bar nav a { text-decoration: none; color: var(--ink); }
.lr-bar nav a:hover, .lr-bar nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--ochre); text-decoration-thickness: 2px; }

/* Type */
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6.2vw, 4.4rem); letter-spacing: -0.015em; margin: 0; max-width: 18ch; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); letter-spacing: -0.01em; margin: 0 0 18px; }
h3 { font-size: 1.35rem; margin: 0 0 10px; }
p { margin: 0 0 16px; }
.eyebrow { font-family: var(--mono); font-weight: 500; font-size: 0.875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ochre-text); margin: 0 0 18px; }
.lede { font-size: clamp(1.2rem, 1.8vw, 1.35rem); max-width: 60ch; margin: 24px 0 0; }
.measure { max-width: 66ch; }
.small { font-size: 1rem; }

/* Buttons */
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 18px; }
.btn { display: inline-block; background: var(--btn-bg); color: var(--btn-ink); font: 600 1.075rem/1.2 var(--sans); padding: 15px 22px; border-radius: 6px; text-decoration: none; }
.btn:hover { text-decoration: underline; text-decoration-color: var(--btn-ink); }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }

/* The early-access line: same size and weight as the line above it, always in full view */
.ea { max-width: 62ch; }
.assent { font-size: 1rem; margin-top: 18px; }

/* Sections */
.lr section { padding-block: clamp(48px, 7vw, 88px); border-bottom: 1px solid var(--rule); }
.lr section:last-of-type { border-bottom: 0; }
.hero { padding-block: clamp(44px, 8vw, 96px) clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--rule); }

/* Screenshots */
figure.shot { margin: 40px 0 0; }
figure.shot img { border-radius: 10px; }
figure.shot figcaption { margin-top: 10px; font-size: 1rem; }
.tag { display: inline-block; font-family: var(--mono); font-weight: 500; font-size: 0.8125rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); border: 1px solid var(--ink); border-radius: 999px; padding: 2px 10px; margin-right: 8px; }

/* Grids */
.promises { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 36px 40px; }
.promises > div { border-top: 3px double var(--ochre); padding-top: 18px; min-width: 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--rule); border-radius: 8px; padding: 26px; min-width: 0; }
.card p:last-child { margin-bottom: 0; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); gap: 32px 48px; align-items: start; }

/* Privacy list */
.facts { display: grid; gap: 0; max-width: 70ch; border-top: 1px solid var(--ink); }
.facts > div { padding: 20px 0; border-bottom: 1px solid var(--rule); }
.facts h3 { font-size: 1.2rem; margin-bottom: 8px; }
.facts p:last-child { margin-bottom: 0; }

/* Download */
.dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 20px; margin: 24px 0 8px; }
.dl .card .btn { margin-bottom: 14px; }
.note { background: var(--note); color: var(--ink); border-left: 4px solid var(--ochre); border-radius: 6px; padding: 14px 18px; }
code { font-family: var(--mono); font-size: 0.9em; }
.meta code { word-break: break-all; }
.meta { font-size: 1rem; margin-top: 12px; }

/* Long-form legal and how-it-works pages */
.doc { max-width: 46rem; padding-block: clamp(40px, 7vw, 80px); }
.doc h1 { font-size: clamp(2.2rem, 5.2vw, 3.4rem); max-width: 20ch; }
.doc h2 { font-size: clamp(1.4rem, 2.6vw, 1.75rem); margin: 44px 0 12px; }
.doc .effective { margin: 16px 0 28px; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin-bottom: 10px; }

/* Product footer block */
.lr-foot { border-top: 1px solid var(--ink); margin-top: 8px; padding: 28px 0 8px; }
.lr-foot p { max-width: 70ch; font-size: 1rem; }
.lr-foot .links { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 1rem; margin-top: 12px; }
.lr-foot strong { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; }
.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; }
