/* =========================================================================
   Apliom — "Quiet Constellation" for static /famio document pages.
   Self-contained (no Tailwind): mirrors app/globals.css tokens.
   ========================================================================= */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&display=swap');

:root {
  color-scheme: light;
  --cream: #faf8f4;
  --paper: #ffffff;
  --ink: #0b0e1f;
  --label: #16171f;
  --muted: #5c5f70;
  --faint: #8b8e9e;
  --teal: #22c3c9;
  --blue: #3d6df7;
  --violet: #7c4de6;
  --coral: #ff6f61;
  --line: #ece8e0;
  --display: "Fraunces", Georgia, serif;
  --sans: -apple-system, "Segoe UI", system-ui, Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(120% 90% at 85% -10%, rgba(124, 77, 230, .10), transparent 55%),
    radial-gradient(90% 70% at -5% 0%, rgba(34, 195, 201, .08), transparent 50%),
    var(--cream);
  color: var(--label);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: -0.01em;
}

::selection { background: rgba(61, 109, 247, .22); }

/* — chrome — */
header.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 760px;
  margin: 0 auto;
  padding: 22px clamp(20px, 5vw, 32px) 18px;
}
header.site .brand {
  font-family: var(--display);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--label);
  text-decoration: none;
}
header.site .brand::after {
  content: "";
  display: inline-block;
  width: 7px; height: 7px;
  margin-left: 7px;
  border-radius: 50%;
  background: linear-gradient(105deg, var(--teal), var(--blue) 48%, var(--violet));
  vertical-align: 2px;
}
header.site nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .6);
}
header.site nav a:hover { color: var(--label); border-color: #ddd6c9; }

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 16px clamp(20px, 5vw, 32px) 40px;
}

/* — hero for hub/invite pages — */
.hero {
  max-width: 760px;
  margin: 0 auto;
  padding: 34px clamp(20px, 5vw, 32px) 0;
  text-align: left;
}

/* — typography — */
h1 {
  font-family: var(--display);
  font-size: clamp(32px, 6vw, 42px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 18px 0 10px;
}
h2 {
  font-family: var(--display);
  font-size: 25px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin: 40px 0 10px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
h3 {
  font-size: 17px;
  font-weight: 650;
  margin: 26px 0 6px;
}
p { margin: 0 0 14px; }
.lede { font-size: 20px; line-height: 1.5; color: var(--muted); margin: 0 0 18px; }
.meta {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--faint);
  margin: 0 0 26px;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

ul, ol { margin: 0 0 16px; padding-left: 22px; }
li { margin-bottom: 7px; }
li::marker { color: var(--violet); }

strong { font-weight: 650; color: var(--label); }

hr { border: 0; border-top: 1px solid var(--line); margin: 30px 0; }

table { border-collapse: collapse; width: 100%; margin: 0 0 18px; font-size: 15px; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 650; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }

blockquote {
  margin: 0 0 16px;
  padding: 14px 18px;
  border-left: 3px solid var(--coral);
  background: rgba(255, 255, 255, .65);
  border-radius: 0 12px 12px 0;
  color: var(--muted);
}

/* — cards / blocks — */
.card, .cta-block, .promise-mini, .no-token {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 26px 26px;
  margin: 22px 0;
  box-shadow: 0 30px 80px -50px rgba(20, 25, 80, .28);
}
.cta-block { text-align: center; }
.promise-mini h3 { margin-top: 0; font-family: var(--display); font-weight: 500; font-size: 20px; }
.no-token { text-align: center; color: var(--muted); }

.cta-button {
  display: inline-block;
  background: var(--ink);
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 16px;
  padding: 14px 28px;
  border-radius: 999px;
  margin: 14px 0 4px;
  min-width: 240px;
}
.cta-button:hover { background: #1a1f3a; }

.hint { font-size: 13px; color: var(--faint); margin-top: 12px; }

.token-note {
  font-family: var(--mono);
  font-size: 13px;
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--muted);
  word-break: break-all;
  margin-top: 8px;
}

.invite-hero { text-align: center; padding: 40px 24px 8px; }
.invite-emoji { font-size: 54px; line-height: 1; margin-bottom: 14px; }

/* — footer — */
footer.site {
  max-width: 760px;
  margin: 30px auto 0;
  padding: 20px clamp(20px, 5vw, 32px) 44px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 14px;
}
footer.site a { color: var(--muted); }
footer.site p { margin: 0 0 6px; }
