/* atlashomeos.com — the compliance site (docs/atlas-site-twilio-compliance-spec.md).
   Plain CSS, system fonts, no requests beyond this file and the favicon. Two grounds and
   two inks, neither pure white nor pure black; dark theme by prefers-color-scheme. */

:root {
  --ground: #f6f4ee;
  --ground-raised: #fcfbf7;
  --ink: #2a2622;
  --ink-soft: #5e5751;
  --rule: #d9d3c8;
  --link: #6b4a2b;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #1f1d1a;
    --ground-raised: #28251f;
    --ink: #ece7dc;
    --ink-soft: #b3aca0;
    --rule: #3d382f;
    --link: #d8b48d;
  }
}

* { box-sizing: border-box; }

html { background: var(--ground); color: var(--ink); }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

header.site, main, footer {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 20px;
}

header.site {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  padding-top: 20px;
  padding-bottom: 8px;
}
header.site .brand {
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  color: var(--ink);
  padding: 8px 0;
  margin-right: auto;
}
header.site nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }
header.site nav a {
  color: var(--ink-soft);
  text-decoration: none;
  padding: 8px 0;
  font-size: 0.95rem;
}
header.site nav a:hover, header.site nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; }

main { padding-top: 28px; padding-bottom: 32px; }

h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 12px; }
h2 { font-size: 1.3rem; line-height: 1.3; margin: 36px 0 8px; }
h3 { font-size: 1.05rem; margin: 22px 0 6px; }
p, ul, ol, blockquote, dl { margin: 0 0 14px; }
ul, ol { padding-left: 1.4em; }
li { margin-bottom: 4px; }

.lede { font-size: 1.2rem; color: var(--ink-soft); }
.meta { color: var(--ink-soft); font-size: 0.95rem; }
.small { font-size: 0.95rem; color: var(--ink-soft); }

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }

section { margin-bottom: 8px; }

.card, section#sms {
  border: 1px solid var(--rule);
  background: var(--ground-raised);
  border-radius: 8px;
  padding: 16px 20px;
  margin: 16px 0 24px;
}
.card p:last-child, section#sms p:last-child { margin-bottom: 0; }
section#sms p { margin-bottom: 10px; }

blockquote.exact {
  border-left: 3px solid var(--rule);
  margin: 12px 0 16px;
  padding: 6px 0 6px 16px;
  color: var(--ink);
}
blockquote.exact p { margin: 0; }

.sample {
  border: 1px solid var(--rule);
  background: var(--ground-raised);
  border-radius: 12px;
  padding: 10px 14px;
  margin: 0 0 10px;
  max-width: 540px;
}
.sample p { margin: 0; }

dl.terms dt { font-weight: 600; margin-top: 10px; }
dl.terms dd { margin: 0 0 6px; }

footer {
  border-top: 1px solid var(--rule);
  padding-top: 20px;
  padding-bottom: 48px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}
footer a { color: inherit; }
