/* ==========================================================================
   homebook — shared chrome for the standalone pages (privacy, terms, sms).
   The landing page (index.html) carries its own inline styles; these tokens
   are lifted straight out of it so the whole site reads as one brand.
   ========================================================================== */

:root {
  --paper:       #ffffff;
  --surface:     #fafafb;
  --surface-2:   #f7f7f8;

  --ink:         #0a0a0c;
  --ink-2:       #2a2a2f;
  --ink-3:       #6e6e76;
  --ink-4:       #a4a4ad;

  --rule:        #e6e6ea;
  --rule-soft:   #f0f0f3;

  --accent:      #e2552a;
  --accent-deep: #b8401b;
  --accent-tint: #fbf1ec;
  --accent-edge: #f3e3da;

  --font-display: "Fraunces", "EB Garamond", "Iowan Old Style", Georgia, serif;
  --font-ui:      "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono:    "JetBrains Mono", "SF Mono", Menlo, monospace;

  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100%;
}

/* Matches the landing page: balance is set per-heading, pretty covers prose. */
body { text-wrap: pretty; }
::selection { background: rgba(226, 85, 42, 0.18); }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible {
  outline: none;
  border-radius: 4px;
  box-shadow: 0 0 0 3px rgba(226, 85, 42, 0.30);
}

/* ── Header ────────────────────────────────────────────────────────────────
   The landing page's sticky bar, reduced to wordmark + Login. */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule-soft);
}
.site-header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 13px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-wordmark {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 23px;
  color: var(--ink);
  letter-spacing: -0.01em;
  text-decoration: none;
}
.site-wordmark:hover { text-decoration: none; }

/* Ghost pill that warms to the accent — the landing's .hb-login. */
.site-login {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  padding: 9px 16px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  white-space: nowrap;
  transition: color .22s var(--ease-out-quart), border-color .22s var(--ease-out-quart),
              transform .22s var(--ease-out-quart), box-shadow .22s var(--ease-out-quart);
}
.site-login:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(226, 85, 42, 0.16);
  text-decoration: none;
}
.site-login-arrow { display: inline-block; transition: transform .22s var(--ease-out-quart); }
.site-login:hover .site-login-arrow { transform: translateX(3px); }

/* ── Document body ───────────────────────────────────────────────────────── */

.wrap { max-width: 720px; margin: 0 auto; padding: 64px 24px 96px; }

h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(36px, 6vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-wrap: balance;
  margin: 0 0 10px;
}
h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 25px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 44px 0 12px;
}
h3 {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  margin: 26px 0 6px;
}

p  { margin: 0 0 14px; color: var(--ink-2); }
ul { margin: 0 0 14px; padding-left: 22px; color: var(--ink-2); }
li { margin-bottom: 6px; }
strong { color: var(--ink); font-weight: 600; }

/* The accent eyebrow the landing uses above every section heading. */
.sub {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-4);
}

code {
  font-family: var(--font-mono);
  font-size: 14px;
  background: var(--surface-2);
  border: 1px solid var(--rule-soft);
  padding: 1px 6px;
  border-radius: 4px;
}

.tldr {
  background: var(--accent-tint);
  border: 1px solid var(--accent-edge);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  padding: 18px 22px;
  margin: 26px 0 34px;
}
.tldr p { margin: 0; }

.callout {
  background: var(--surface-2);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 18px 22px;
  margin: 18px 0;
}
.callout p:last-child { margin-bottom: 0; }

hr { border: none; border-top: 1px solid var(--rule); margin: 52px 0 0; }

/* ── Footer — the landing's accent band ──────────────────────────────────── */

.site-footer {
  background: var(--accent);
  color: #fff;
  text-align: center;
  padding: 44px 40px;
}
.site-footer-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
}
.site-footer a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  padding-bottom: 2px;
}
.site-footer a:hover { border-color: #fff; text-decoration: none; }
.site-footer a:focus-visible {
  outline: none;
  border-radius: 3px;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.65);
  border-bottom-color: #fff;
}
.site-footer .site-footer-note { color: rgba(255, 255, 255, 0.78); }

@media (max-width: 640px) {
  .site-header-inner { padding: 12px 20px; }
  .wrap { padding: 44px 20px 72px; }
  .site-footer { padding: 36px 24px; }
  .site-footer-inner { gap: 18px; font-size: 12px; }
}
