/*
  Shared shell for the static pages that sit outside the React app: /privacy,
  /card, /mcp, /qr and the 404. They used to carry a separate dark-and-gold
  identity with a different type stack, which read as a different company.
  Same tokens as src/styles.css, same self-hosted fonts.
*/

/* Pages using this must also link /fonts/fonts.css. An @import here would
   serialise the two requests instead of fetching them in parallel. */

:root {
  --bg: #f6f2ea;
  --bg-warm: #efe7d6;
  --bg-card: #fdfbf6;
  --ink: #1a1814;
  --ink-dim: #5a5448;
  --ink-muted: #736d5f;
  --rule: rgba(26, 24, 20, 0.1);
  --rule-strong: rgba(26, 24, 20, 0.22);
  --accent: #7a3a5c;
  --accent-deep: #522652;
  --accent-on-dark: #b7887c;
  --dark: #18150f;

  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'Inter Tight', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.page {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 5rem) clamp(1.25rem, 4vw, 3rem) 5rem;
}

.page-brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.page-brand .mark {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--dark); color: var(--bg);
  display: grid; place-items: center;
  font-family: var(--serif); font-style: italic; font-size: 18px; line-height: 1;
}
.page-brand .name {
  font-family: var(--serif); font-size: 20px; letter-spacing: -0.01em;
}
.page-brand .name em { font-style: italic; color: var(--accent); }

h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.05; letter-spacing: -0.02em;
  margin-bottom: 10px;
}
h1 em { font-style: italic; color: var(--accent); }

h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  letter-spacing: -0.01em;
  margin: 2.4rem 0 0.6rem;
}

.lede {
  font-size: 18px; color: var(--ink-dim);
  margin-bottom: 1.5rem;
}

.stamp {
  font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 2.5rem;
}

p { margin-bottom: 1rem; color: var(--ink-dim); }
p strong { color: var(--ink); font-weight: 500; }

ul { margin: 0 0 1rem 1.1rem; color: var(--ink-dim); }
li { margin-bottom: 0.5rem; }

.page a:not(.page-brand):not(.btn) {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.page a:not(.page-brand):not(.btn):hover { color: var(--accent-deep); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: #fdfbf6;
  padding: 13px 22px; border-radius: 999px;
  font-size: 15px; font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}
.btn:hover { background: var(--accent-deep); transform: translateY(-1px); }

.page-foot {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-size: 13px; color: var(--ink-muted);
}
.page-foot a { color: var(--ink-muted); }
