/* Thomas R&D LLC — shared stylesheet. No external fonts or assets. */
:root {
  --bg: #fbfbfa;
  --surface: #ffffff;
  --text: #1c1f23;
  --muted: #5b636e;
  --border: #e4e6e9;
  --accent: #2f5d50;
  --accent-soft: #e8f0ed;
  --note-bg: #fff6db;
  --note-border: #e8c766;
  --maxw: 46rem;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141618;
    --surface: #1b1e21;
    --text: #e7e9eb;
    --muted: #9aa3ad;
    --border: #2c3136;
    --accent: #7fbfaa;
    --accent-soft: #1f2b27;
    --note-bg: #3a3220;
    --note-border: #8a7330;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a { color: var(--accent); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.site-header { border-bottom: 1px solid var(--border); background: var(--surface); }
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.brand {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 0.45rem;
  background: var(--accent);
  color: var(--surface);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0;
}
.site-nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.1rem; font-size: 0.95rem; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }

/* Main */
main { flex: 1; padding: 3rem 0 4rem; }
h1, h2, h3 { line-height: 1.25; letter-spacing: -0.015em; }
h1 { font-size: 2.1rem; margin: 0 0 0.75rem; }
h2 { font-size: 1.3rem; margin: 2.5rem 0 0.75rem; }
h3 { font-size: 1.05rem; margin: 1.75rem 0 0.5rem; }
p, ul, ol { margin: 0 0 1rem; }
li { margin-bottom: 0.35rem; }

.lede { font-size: 1.2rem; color: var(--muted); max-width: 38rem; }
.meta { color: var(--muted); font-size: 0.95rem; }

.hero { padding-bottom: 1rem; }
.hero h1 { font-size: 2.6rem; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin: 1rem 0;
}
.card h3 { margin-top: 0; }
.tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  margin-bottom: 0.6rem;
}
.links-inline { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; margin: 0; padding: 0; list-style: none; }

/* Template / confirm notes — remove before launch */
.confirm {
  background: var(--note-bg);
  border-left: 3px solid var(--note-border);
  padding: 0 0.35rem;
  font-size: 0.92em;
}
.notice {
  background: var(--note-bg);
  border: 1px solid var(--note-border);
  border-radius: 0.5rem;
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

/* Long-form legal pages */
.doc h2 { border-top: 1px solid var(--border); padding-top: 1.75rem; }
.doc .toc { font-size: 0.95rem; }
.doc .toc ol { padding-left: 1.25rem; }
.caps { text-transform: none; font-weight: 600; }

details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  padding: 0.85rem 1.1rem;
  margin: 0.6rem 0;
}
details summary { cursor: pointer; font-weight: 600; }
details[open] summary { margin-bottom: 0.5rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); font-size: 0.9rem; color: var(--muted); }
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}
.site-footer a { color: var(--muted); }

@media (max-width: 560px) {
  body { font-size: 1rem; }
  main { padding: 2rem 0 3rem; }
  h1 { font-size: 1.75rem; }
  .hero h1 { font-size: 2rem; }
  .lede { font-size: 1.08rem; }
  .card { padding: 1.15rem; }
}
