/* Ace Club website: the app's felt, cream and gold, Fraunces + Nunito (served from our own domain). */
@font-face { font-family: Fraunces; src: url(/fonts/Fraunces_800ExtraBold.ttf) format('truetype'); font-weight: 800; font-display: swap; }
@font-face { font-family: Nunito; src: url(/fonts/Nunito_700Bold.ttf) format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: Nunito; src: url(/fonts/Nunito_900Black.ttf) format('truetype'); font-weight: 900; font-display: swap; }

:root { --cream: #FFF8EC; --ink: #1E2352; --sub: #5E6693; --gold: #F5B83D; --ledge: #C98F1E; --felt1: #36B07A; --felt2: #1F8556; --felt3: #0E5535; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 700 17px/1.55 Nunito, system-ui, sans-serif; color: var(--ink); background: var(--cream); min-height: 100vh; display: flex; flex-direction: column; }
a { color: #1F6FD6; }
body.felt { color: var(--cream); background: radial-gradient(120% 80% at 50% 0%, var(--felt1) 0%, var(--felt2) 45%, var(--felt3) 100%) fixed; }
body.felt a { color: var(--cream); }

.top { padding: 18px 20px 6px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; font: 900 15px/1 Nunito, sans-serif; letter-spacing: .28em; }
body.doc .brand { color: var(--ink); }
.brand img { border-radius: 50%; background: #2B8F5F; box-shadow: 0 0 0 2.5px var(--gold); }

.draft { margin: 8px auto 0; max-width: 720px; width: calc(100% - 32px); padding: 10px 14px; border-radius: 14px; background: #FFEFC2; color: #6B4A00; font-size: 14.5px; box-shadow: 0 3px 0 #E3C67A; }

main { flex: 1; width: 100%; }

/* felt pages: home, invite, 404 */
.hero { max-width: 520px; margin: 0 auto; padding: 8px 22px 40px; text-align: center; }
.hero .ace { width: 220px; height: auto; margin: -36px auto -6px; display: block; filter: drop-shadow(0 18px 24px rgba(0,0,0,.25)); }
.hero h1 { font: 800 clamp(34px, 9vw, 48px)/1.08 Fraunces, Georgia, serif; margin: 6px 0 12px; text-wrap: balance; text-shadow: 0 3px 0 rgba(0,0,0,.18); }
.lead { font-size: 18px; opacity: .92; margin: 0 auto 22px; max-width: 420px; text-wrap: pretty; }
.kicker { font: 900 13px/1 Nunito, sans-serif; letter-spacing: .24em; text-transform: uppercase; color: #FFE29A; margin: 0 0 4px; }
.small { font-size: 15px; opacity: .8; margin: 22px 0 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 30px; border-radius: 18px; text-decoration: none; font: 900 19px/1 Nunito, sans-serif; color: #3A2600 !important; background: linear-gradient(#FFD87A, var(--gold)); box-shadow: inset 0 2px 0 rgba(255,255,255,.6), 0 6px 0 var(--ledge), 0 12px 20px rgba(0,0,0,.25); transition: transform .08s, box-shadow .08s; }
.btn:active { transform: translateY(4px); box-shadow: inset 0 2px 0 rgba(255,255,255,.6), 0 2px 0 var(--ledge), 0 6px 10px rgba(0,0,0,.2); }
.stores { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.store { display: inline-flex; flex-direction: column; align-items: flex-start; min-width: 150px; padding: 9px 18px; border-radius: 14px; background: rgba(0,0,0,.35); color: var(--cream); font: 900 18px/1.1 Nunito, sans-serif; box-shadow: inset 0 0 0 1.5px rgba(255,248,236,.25); }
.store small { font: 700 11.5px/1.2 Nunito, sans-serif; opacity: .8; }
.facts { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 8px; font-size: 15.5px; }
.facts li::before { content: '♠'; color: #FFE29A; margin-right: 8px; }

/* document pages: terms, privacy, delete account */
article { max-width: 720px; margin: 0 auto; padding: 12px 20px 40px; }
article h1 { font: 800 clamp(30px, 7vw, 40px)/1.15 Fraunces, Georgia, serif; margin: 18px 0 8px; }
article h2 { font: 800 23px/1.25 Fraunces, Georgia, serif; margin: 34px 0 8px; }
article h3 { font: 900 18px/1.3 Nunito, sans-serif; margin: 22px 0 6px; }
article p, article li { color: #2E3363; }
article ul { padding-left: 22px; }
article li { margin: 4px 0; }
article code { font: 700 .92em/1 ui-monospace, monospace; background: #F1EADB; padding: 2px 6px; border-radius: 6px; }
.table { overflow-x: auto; margin: 14px 0; border-radius: 16px; background: #FFFFFF; box-shadow: 0 4px 0 #E8DCC4; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 10px 14px; vertical-align: top; border-bottom: 1px solid #F1EADB; }
th { font-weight: 900; background: #FBF5E8; }
tr:last-child td { border-bottom: 0; }

.foot { padding: 22px 20px calc(28px + env(safe-area-inset-bottom)); text-align: center; font-size: 14px; }
body.doc .foot { background: #F3ECDD; color: var(--sub); }
body.felt .foot { background: rgba(0,0,0,.22); color: rgba(255,248,236,.85); }
.foot nav { display: flex; gap: 6px 18px; justify-content: center; flex-wrap: wrap; margin-bottom: 8px; }
.foot a { color: inherit; font-weight: 900; }
.foot p { margin: 0 auto; max-width: 520px; }
.hero .ace.small-ace { width: 170px; margin-top: -20px; }
