/* Over Yonder's inner pages (support, privacy, terms, credits, and the invite page the proxy draws):
   the landing page's palette and type, quiet. Lilac paper, Fraunces Soft headings, Nunito text, the
   sun-yellow only as a mark. Fonts are the app's own (SIL OFL, licences in fonts/). No framework, no
   scripts, nothing tracked. The landing page carries its own styles in index.html. */
@font-face { font-family: "Fraunces Soft"; src: url("/fonts/FrauncesSoft-ExtraBold.ttf"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Fraunces Soft"; src: url("/fonts/FrauncesSoft-SemiBold.ttf"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("/fonts/Nunito-Regular.ttf"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("/fonts/Nunito-Bold.ttf"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Caveat"; src: url("/fonts/Caveat-SemiBold.ttf"); font-weight: 600; font-display: swap; }

:root {
  --paper: #f7f4f9; --paper-2: #efe9f4; --raised: #ffffff;
  --ink: #1d1724; --ink-2: #5d5368; --ink-3: #7d7289; --rule: rgba(29, 23, 36, .12);
  --lilac: #6c4c9e; --lilac-soft: #e6ddf1; --sun: #f1b13c; --sun-soft: #fbefd6;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #141019; --paper-2: #1e1826; --raised: #211a2a;
    --ink: #f2edf6; --ink-2: #b5aac1; --ink-3: #958aa2; --rule: rgba(242, 237, 246, .14);
    --lilac: #c2a8ea; --lilac-soft: #2e2440; --sun: #f5c25c; --sun-soft: #2e2618;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 17px/1.65 "Nunito", ui-rounded, system-ui, sans-serif; min-height: 100vh;
       background: linear-gradient(180deg, var(--paper-2), var(--paper) 360px) no-repeat, var(--paper); }
main { max-width: 720px; margin: 0 auto; padding: 28px 24px 96px; }
a { color: var(--lilac); text-underline-offset: 3px; }
h1, h2, h3 { font-family: "Fraunces Soft", Georgia, serif; color: var(--ink); text-wrap: balance; }
h1 { font-weight: 600; font-size: clamp(42px, 8vw, 68px); line-height: 1; letter-spacing: -.025em; margin: 56px 0 18px; }
h2 { font-weight: 600; font-size: 30px; line-height: 1.1; letter-spacing: -.015em; margin: 56px 0 14px; }
h3 { font-weight: 600; font-size: 21px; line-height: 1.2; margin: 36px 0 8px; }
p, li { color: var(--ink-2); text-wrap: pretty; }
strong { color: var(--ink); }
.hand { font-family: "Caveat", cursive; font-weight: 600; color: var(--lilac); font-size: 26px; }
.meta { color: var(--ink-3); font-size: 15px; }

nav { display: flex; gap: 22px; align-items: center; padding-block: 4px; font-weight: 700; font-size: 15px; }
nav a { white-space: nowrap; text-decoration: none; color: var(--ink-2); }
nav a:hover { color: var(--ink); }
nav .mark { display: flex; align-items: center; gap: 10px; color: var(--ink);
            font-family: "Fraunces Soft", Georgia, serif; font-weight: 600; font-size: 20px; margin-right: auto; }
nav .mark img { width: 34px; height: 34px; border-radius: 9px; }

/* The invite page's welcome (proxy/netlify/functions/join-page.ts). */
.hero { text-align: center; padding: 40px 0 12px; }
.hero h1 { margin-top: 0; }
.hero img.icon { width: 132px; height: 132px; border-radius: 30px; box-shadow: 0 20px 40px -18px rgba(29, 23, 36, .45);
                 rotate: -4deg; margin: 0 auto 30px; }
.hero p.line { font-size: 20px; margin: 0 auto 8px; max-width: 34ch; }
.badge { display: inline-block; margin-top: 26px; padding: 13px 26px; border-radius: 14px;
         background: #000; color: #fff; font-weight: 700; text-decoration: none; }
.badge small { display: block; font-weight: 400; opacity: .75; font-size: 12px; }

.card { background: var(--raised); border: 1px solid var(--rule); border-radius: 20px; padding: 20px 24px; margin: 14px 0; }
.card h3 { margin-top: 0; }
.card p { margin-bottom: 0; }
table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--rule); }
th { color: var(--ink); font-weight: 700; }
td { color: var(--ink-2); }
/* Not yet true: shown while the policy is a draft, and must be built or removed before it goes live. */
.pending { background: var(--lilac-soft); border-radius: 4px; padding: 0 4px; font-style: normal; }
.draft { background: var(--sun-soft); border: 1px dashed var(--sun); border-radius: 14px;
         padding: 12px 16px; font-size: 15px; color: var(--ink-2); margin: 40px 0 0; }
.draft + h1 { margin-top: 32px; }

footer { max-width: 720px; margin: 0 auto; padding: 28px 24px 48px; font-size: 14px; color: var(--ink-3);
         border-top: 1px solid var(--rule); }
footer a { color: var(--ink-3); text-decoration: none; }
footer a:hover { color: var(--ink); text-decoration: underline; }
@media (max-width: 480px) {
  main { padding: 20px 16px 72px; }
  footer { padding: 24px 16px 40px; }
  table { font-size: 14px; }
  nav { gap: 16px; }
  nav .mark { font-size: 18px; }
  nav .mark img { width: 30px; height: 30px; }
}
