/* Shared by the landing, legal and contact pages. The invite page carries
   its own styles so it stays one self-contained file. Colours are
   BrandHex.Dark from the app. */
:root {
  --ink: #100B1A;
  --surface: #1B1428;
  --line: #332747;
  --cream: #F6EFE3;
  --muted: #9A8FAE;
  --amber: #FFB454;
  --amber-deep: #E08A2E;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; }
html, body { background: var(--ink); color: var(--cream); }
body {
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 0 16px;
}
a { color: var(--amber); }

.top {
  max-width: 720px; width: 100%; margin: 0 auto;
  padding: 24px 0;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--cream); }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.brand span { font-family: var(--display); font-weight: 700; font-size: 19px; }

main.doc { max-width: 720px; width: 100%; margin: 0 auto; padding: 16px 0 48px; flex: 1; }
.doc h1 { font-family: var(--display); font-size: clamp(30px, 7vw, 40px); line-height: 1.15; letter-spacing: -0.02em; }
.doc .meta { color: var(--muted); margin-top: 8px; font-size: 14px; }
.doc .summary {
  margin-top: 24px; padding: 16px 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
}
.doc h2 { font-family: var(--display); font-size: 22px; margin-top: 36px; letter-spacing: -0.01em; }
.doc h3 { font-size: 16px; margin-top: 20px; }
.doc p, .doc ul, .doc ol { margin-top: 12px; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li + li { margin-top: 6px; }
.doc strong { color: var(--cream); }
.doc .quiet { color: var(--muted); }
.doc table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.doc th { color: var(--muted); font-weight: 600; font-size: 13px; }
.table-wrap { overflow-x: auto; }
/* Three columns in 343px is a 4000px-tall ribbon of narrow text. On a phone
   each row becomes a block: the name, then what, then why. */
@media (max-width: 640px) {
  .doc table, .doc tbody, .doc tr, .doc td { display: block; width: 100%; }
  .doc thead { display: none; }
  .doc tr { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .doc td { border: 0; padding: 0; }
  .doc td + td { margin-top: 6px; }
  .doc td:first-child { font-size: 17px; }
  .doc td:last-child { color: var(--muted); }
  .doc td:last-child::before { content: "Why: "; font-weight: 600; }
}

.cards { display: grid; gap: 14px; margin-top: 28px; }
@media (min-width: 640px) { .cards { grid-template-columns: 1fr 1fr; } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  padding: 20px; display: flex; flex-direction: column; gap: 10px;
}
.card h2 { margin-top: 0; font-size: 20px; }
.card p { margin-top: 0; color: var(--muted); flex: 1; }
.button {
  display: block; text-align: center; text-decoration: none;
  border-radius: 14px; padding: 14px 18px; font-weight: 600;
  background: linear-gradient(180deg, var(--amber), var(--amber-deep)); color: #1A1206;
}
.button.secondary { background: transparent; color: var(--cream); border: 1px solid var(--line); }
.address { font-size: 14px; color: var(--muted); text-align: center; }

footer {
  max-width: 720px; width: 100%; margin: 0 auto;
  padding: 24px 0 max(24px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between;
  font-size: 14px; color: var(--muted);
}
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--cream); }
