/* 4D Finance Integration — shared styles.
   No external assets by design: no web fonts, no CDN, no analytics.
   That is what makes the privacy policy's "no third-party requests" claim true. */

:root {
  --bg: #fbfbfa;
  --surface: #ffffff;
  --text: #1c1d1a;
  --muted: #5e6158;
  --border: #e3e3df;
  --accent: #2f5d50;
  --accent-soft: #eef3f1;
  --warn-bg: #fff4d6;
  --warn-border: #e8c766;
  --warn-text: #6b4e05;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17181a;
    --surface: #1e2022;
    --text: #e8e8e4;
    --muted: #9a9e97;
    --border: #2e3134;
    --accent: #7fb3a2;
    --accent-soft: #22302c;
    --warn-bg: #3a3017;
    --warn-border: #7a6428;
    --warn-text: #f0d68f;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 44rem;
  margin: 0 auto;
  padding: 3rem 1rem 4rem;
}

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

header.site .wrap {
  padding: 1.25rem 1rem;
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
}

header.site .name {
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}

header.site .org {
  color: var(--muted);
  font-size: 0.9rem;
}

h1 {
  font-size: 1.75rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

h2 {
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  margin: 2.25rem 0 0.6rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

h2:first-of-type { border-top: 0; padding-top: 0; }

p, ul, ol { margin: 0 0 1rem; }
ul, ol { padding-left: 1.3rem; }
li { margin-bottom: 0.4rem; }

.lede {
  font-size: 1.08rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

.meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem 1.4rem;
  margin: 1.5rem 0;
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--accent);
}

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

a { color: var(--accent); }
a:hover { text-decoration: none; }

/* Unfilled placeholders are deliberately loud — see site/README.md */
.todo {
  background: var(--warn-bg);
  border: 1px dashed var(--warn-border);
  color: var(--warn-text);
  padding: 0.05em 0.4em;
  border-radius: 4px;
  font-size: 0.92em;
  font-weight: 600;
}

footer.site {
  border-top: 1px solid var(--border);
  margin-top: 3rem;
  background: var(--surface);
}

footer.site .wrap {
  padding: 1.5rem 1rem;
  font-size: 0.875rem;
  color: var(--muted);
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

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

@media (max-width: 480px) {
  .wrap { padding: 2rem 1rem 3rem; }
  h1 { font-size: 1.5rem; }
}
