/* CFO Tax Ledger site: shared styles for every page.
   System fonts only. No analytics, no third-party requests. */
:root {
  color-scheme: light dark;
  --ink: #142339;
  --muted: #4a5568;
  --paper: #fbf8f1;
  --surface: #ffffff;
  --soft: #f1ece0;
  --rule: #e2dccd;
  --navy: #1b3352;
  --on-navy: #fbf8f1;
  --teal: #0f766e;
  --teal-ink: #0b5c56;
  --gold: #a07a3c;
  --link: #0b5c56;
  --yes: #0f766e;
  --no: #8a8f98;
  --focus: #b8860b;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #eef1f6;
    --muted: #a9b3c2;
    --paper: #0f1a2a;
    --surface: #16243a;
    --soft: #1b2c45;
    --rule: #2b3d58;
    --navy: #0a1422;
    --on-navy: #eef1f6;
    --teal: #3fbfb2;
    --teal-ink: #5fd3c7;
    --gold: #d4b07a;
    --link: #7fdcd2;
    --yes: #5fd3c7;
    --no: #7d889a;
    --focus: #f2c14e;
  }
}

:root[data-theme="dark"] {
  --ink: #eef1f6;
  --muted: #a9b3c2;
  --paper: #0f1a2a;
  --surface: #16243a;
  --soft: #1b2c45;
  --rule: #2b3d58;
  --navy: #0a1422;
  --on-navy: #eef1f6;
  --teal: #3fbfb2;
  --teal-ink: #5fd3c7;
  --gold: #d4b07a;
  --link: #7fdcd2;
  --yes: #5fd3c7;
  --no: #7d889a;
  --focus: #f2c14e;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.55;
  overflow-wrap: break-word;
}

a {
  color: var(--link);
}

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

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--surface);
  color: var(--ink);
  padding: 0.5rem 0.8rem;
  z-index: 10;
}

.skip:focus {
  left: 0.5rem;
  top: 0.5rem;
}

/* Header shared by every page */
.site-header {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}

.site-header .inner {
  max-width: 68rem;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  font-size: 0.92rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
}

/* Reading pages (privacy, terms, support, delete-data) */
main.doc {
  max-width: 42rem;
  margin: 0 auto;
  padding: 2rem 1rem 3.5rem;
}

.eyebrow {
  margin: 0 0 0.35rem;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

main.doc h1 {
  margin: 0 0 0.4rem;
  font-size: 1.85rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

main.doc h2 {
  margin: 2rem 0 0.55rem;
  font-size: 1.18rem;
  line-height: 1.3;
}

main.doc h3 {
  margin: 1.2rem 0 0.35rem;
  font-size: 1rem;
}

main.doc p,
main.doc ul,
main.doc ol {
  margin: 0 0 0.9rem;
}

main.doc ul,
main.doc ol {
  padding-left: 1.25rem;
}

main.doc li {
  margin-bottom: 0.3rem;
}

.meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.callout {
  margin: 1.2rem 0;
  padding: 0.85rem 1rem;
  border: 1px solid var(--rule);
  border-left: 4px solid var(--teal);
  border-radius: 0.45rem;
  background: var(--surface);
}

.callout p:last-child {
  margin-bottom: 0;
}

.toc {
  margin: 1rem 0 1.5rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--rule);
  border-radius: 0.45rem;
  background: var(--surface);
  font-size: 0.95rem;
}

.toc ul {
  margin: 0;
}

.caps {
  text-transform: uppercase;
  font-size: 0.92rem;
}

/* FAQ disclosure (used on support + landing) */
details {
  border-bottom: 1px solid var(--rule);
  padding: 0.2rem 0 0.2rem 1.1rem;
}

details:first-of-type {
  border-top: 1px solid var(--rule);
}

summary {
  cursor: pointer;
  padding: 0.7rem 0;
  font-weight: 650;
  list-style-position: outside;
}

details > div {
  padding: 0 0 0.6rem;
}

/* Footer shared by every page */
.site-footer {
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer .inner {
  max-width: 68rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 2.5rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  margin-bottom: 0.75rem;
}

.site-footer a {
  color: var(--muted);
}

.site-footer p {
  margin: 0.3rem 0;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
