/* AskTheBook — shared tokens and site chrome.

   Single source of truth for colours, type and the header/footer/link styles.
   Pages keep their own content CSS; everything that used to be copied between
   landing.html, index.html and account.html lives here (DEC-0010). */

/* Source Serif 4, self-hosted (DEC-0011): the same family exists in Figma, so
   the design file and the product render the same type. One variable file
   covers weights 400-700; the latin subset keeps the download small. */
@font-face {
  font-family: "Source Serif 4";
  src: url("/fonts/source-serif-4-400-normal.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Serif 4";
  src: url("/fonts/source-serif-4-400-italic.woff2") format("woff2");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --atb-bg: #faf7f0;
  --atb-panel: #ffffff;
  --atb-ink: #2b2620;
  --atb-muted: #7a7266;
  --atb-border: #e4dccd;
  --atb-brand: #7c5a35;
  --atb-brand-strong: #6a4b2b;
  --atb-accent-soft: #efe6d8;
  --atb-danger: #b3261e;
  --atb-danger-soft: #fbeeee;
  --atb-danger-border: #eccccc;
  --atb-success: #2f5c33;
  --atb-success-soft: #eef7ee;
  --atb-success-border: #cfe6cf;
  --atb-warning: #7a5a17;
  --atb-warning-soft: #fdf5e6;
  --atb-warning-border: #eedcb8;
  --atb-radius: 10px;
  --atb-radius-md: 12px;
  --atb-radius-lg: 16px;
  --atb-radius-full: 999px;
  --atb-space-xs: 4px;
  --atb-space-sm: 8px;
  --atb-space-md: 12px;
  --atb-space-lg: 16px;
  --atb-space-xl: 22px;
  --atb-space-2xl: 28px;
  --atb-space-3xl: 40px;
  --atb-font: "Source Serif 4", Georgia, "Times New Roman", serif;
  --atb-wrap: 860px;
}

* { box-sizing: border-box; }

a { color: var(--atb-brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.atb-header { border-bottom: 1px solid var(--atb-border); background: var(--atb-panel); }
.atb-header .atb-wrap {
  max-width: var(--atb-wrap);
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.atb-brand { font-size: 21px; color: var(--atb-ink); text-decoration: none; letter-spacing: .2px; }
.atb-brand:hover { text-decoration: none; }
.atb-tag { color: var(--atb-muted); font-size: 13px; font-style: italic; }
.atb-nav { margin-left: auto; display: flex; align-items: center; gap: 14px; font-size: 14px; }
.atb-nav a { color: var(--atb-brand); text-decoration: none; }
.atb-nav a:hover { text-decoration: underline; }
.atb-status { color: var(--atb-muted); font-size: 12px; }
.atb-status:empty { display: none; }

.atb-btn {
  display: inline-block;
  background: var(--atb-brand);
  color: #fff;
  text-decoration: none;
  padding: 10px 20px;
  border: 0;
  border-radius: var(--atb-radius);
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}
.atb-btn:hover { background: var(--atb-brand-strong); text-decoration: none; color: #fff; }
.atb-btn--ghost { background: var(--atb-panel); color: var(--atb-brand); border: 1px solid var(--atb-border); }
.atb-btn--ghost:hover { background: var(--atb-panel); color: var(--atb-brand-strong); }

.atb-footer {
  border-top: 1px solid var(--atb-border);
  padding: 22px;
  text-align: center;
  color: var(--atb-muted);
  font-size: 13px;
}
.atb-footer a { color: var(--atb-muted); }
