/* Layout: one narrow reading column under a quiet header; three pages (join, privacy, terms). Evening palette: slate dusk with a lamp-amber accent. */
:root {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --ink: #1b2230;
  --muted: #5a6475;
  --line: #dde1e8;
  --accent: #b5680f;
  --accent-soft: #fbefdf;
  --bubble-in: #e9ecf1;
  --bubble-out: #2f5d8a;
  --bubble-out-ink: #ffffff;
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #12161e; --surface: #1a2029; --ink: #e7eaf0; --muted: #9aa4b5; --line: #2b3340;
    --accent: #e6a54d; --accent-soft: #2c2418; --bubble-in: #262e3a; --bubble-out: #3d74a8; --bubble-out-ink: #ffffff;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #12161e; --surface: #1a2029; --ink: #e7eaf0; --muted: #9aa4b5; --line: #2b3340;
  --accent: #e6a54d; --accent-soft: #2c2418; --bubble-in: #262e3a; --bubble-out: #3d74a8; --bubble-out-ink: #ffffff;
  color-scheme: dark;
}
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.6;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.wrap { max-width: 44rem; margin: 0 auto; padding-block: 1.5rem 4rem; }
header.site { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.brand { font-family: var(--font-display); font-weight: 700; font-size: 1.75rem; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.brand span { color: var(--accent); }
nav { display: flex; flex-wrap: wrap; gap: 0.25rem; }
nav a { font-size: 0.95rem; color: var(--muted); text-decoration: none; padding: 0.35rem 0.75rem; border-radius: 999px; }
nav a:hover { color: var(--ink); }
nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); font-weight: 700; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; line-height: 1.2; }
h1 { font-size: clamp(1.9rem, 5vw, 2.5rem); font-weight: 700; letter-spacing: -0.02em; margin: 2rem 0 0.5rem; }
h2 { font-size: 1.3rem; font-weight: 700; margin: 2.25rem 0 0.5rem; }
h3 { font-size: 1.05rem; font-weight: 700; margin: 1.5rem 0 0.25rem; }
p, li { max-width: 65ch; }
ul { padding-left: 1.25rem; }
li + li { margin-top: 0.35rem; }
a { color: var(--accent); }
.lede { font-size: 1.2rem; color: var(--muted); margin-top: 0; }
.meta { font-size: 0.9rem; color: var(--muted); }
.kw { font-family: var(--font-mono); font-weight: 500; font-size: 0.92em; background: var(--accent-soft); color: var(--accent); padding: 0.05em 0.4em; border-radius: 4px; }
.number { font-family: var(--font-mono); font-weight: 500; white-space: nowrap; }

/* Join view */
.join-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 18rem); gap: 2rem; align-items: start; margin-top: 1.5rem; }
@media (max-width: 680px) { .join-grid { grid-template-columns: minmax(0, 1fr); } }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; }
.steps li { display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: 0.75rem; margin: 0; }
.steps .n { font-family: var(--font-display); font-weight: 700; color: var(--accent); font-size: 1.25rem; line-height: 1.3; }
.steps strong { display: block; }
.phone { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 1rem 0.9rem 1.25rem; box-shadow: 0 10px 30px -18px rgba(20, 30, 50, 0.45); max-width: 100%; }
.phone-top { text-align: center; font-size: 0.8rem; color: var(--muted); padding-bottom: 0.75rem; border-bottom: 1px solid var(--line); margin-bottom: 0.9rem; }
.phone-top b { display: block; color: var(--ink); font-size: 0.9rem; }
.thread { display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.9rem; line-height: 1.4; }
.msg { max-width: 85%; padding: 0.55rem 0.8rem; border-radius: 18px; overflow-wrap: anywhere; }
.msg.out { align-self: flex-end; background: var(--bubble-out); color: var(--bubble-out-ink); border-bottom-right-radius: 6px; }
.msg.in { align-self: flex-start; background: var(--bubble-in); color: var(--ink); border-bottom-left-radius: 6px; }
.stamp { align-self: center; font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 0.4rem; }
.caption { font-size: 0.85rem; color: var(--muted); margin-top: 0.75rem; text-align: center; }
.callout { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.25rem; margin-top: 2rem; }
.callout p { margin: 0.25rem 0; }
.keywords { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0.5rem 1rem; margin: 0.5rem 0 0; }
.keywords dt { margin: 0; }
.keywords dd { margin: 0; color: var(--muted); }
footer.site { margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: 0.9rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
footer.site a { color: var(--muted); }
