:root {
  --plum: #4a1f3d;
  --plum-deep: #2a1124;
  --plum-soft: #6b3a5c;
  --gold: #c9a45c;
  --gold-soft: #e6d2a8;
  --cream: #f7f1ea;
  --ink: #2a1424;
  --muted: #6b5a64;
  --error: #b3261e;
  --radius: 16px;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--cream); line-height: 1.6; }
a { color: var(--plum); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; }

.notice { background: var(--gold); color: var(--plum-deep); text-align: center; padding: .6rem 1rem; font-weight: 500; }

/* Hero */
.hero {
  background: radial-gradient(1200px 600px at 85% -10%, rgba(201,164,92,.22), transparent 60%),
              linear-gradient(160deg, var(--plum-deep), var(--plum) 70%);
  color: #fff; padding: 1.25rem 1.25rem 4rem;
}
.top { max-width: 1120px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.logo { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; letter-spacing: .01em; color: inherit; text-decoration: none; }
.logo span { color: var(--gold); }
.top-link { color: var(--gold-soft); text-decoration: none; font-weight: 500; }
.top-link:hover { color: #fff; }

.hero-inner { max-width: 1120px; margin: 3rem auto 0; display: grid; gap: 3rem; grid-template-columns: 1.1fr .9fr; align-items: start; }
.eyebrow { color: var(--gold); text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 600; margin: 0 0 1rem; }
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
.lead { font-size: 1.12rem; color: #f1e6ee; max-width: 36em; margin: 0 0 1.75rem; }
.reassure { color: #d9c6d3; font-size: .9rem; margin-top: 1rem; }

.btn {
  display: inline-block; background: var(--gold); color: var(--plum-deep); border: 0; border-radius: 999px;
  padding: .85rem 1.6rem; font: 600 1rem var(--sans); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: #d8b673; transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }
.btn.full { width: 100%; margin-top: .5rem; }
.btn.small { padding: .55rem 1rem; font-size: .9rem; }

/* Card + form */
.card { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 1.75rem; box-shadow: 0 20px 50px rgba(20, 5, 15, .28); }
.join h2 { font-size: 1.8rem; color: var(--plum); margin-bottom: .25rem; }
.perk { background: #fbf5e8; border: 1px solid var(--gold-soft); color: var(--plum); border-radius: 10px; padding: .6rem .8rem; font-size: .92rem; font-weight: 500; }
label { display: block; font-weight: 600; font-size: .92rem; margin: 1rem 0 .35rem; }
input[type=email], input[type=text], select {
  width: 100%; padding: .75rem .85rem; border: 1px solid #d9cdd4; border-radius: 10px; font: inherit; color: var(--ink); background: #fff;
}
input:focus, select:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.hint { font-size: .82rem; color: var(--muted); margin: .3rem 0 0; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; font-size: .9rem; }
.check input { margin-top: .3rem; width: 1.05rem; height: 1.05rem; accent-color: var(--plum); flex: none; }
.err { color: var(--error); font-size: .84rem; margin: .25rem 0 0; min-height: 0; }
.err:empty { display: none; }
.invalid { border-color: var(--error) !important; }
.form-msg { font-size: .9rem; margin: .75rem 0 0; color: var(--muted); }
.form-msg.bad { color: var(--error); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
#turnstile { margin-top: 1rem; }

.done h3 { font-size: 1.6rem; color: var(--plum); }
.share { display: flex; gap: .5rem; }
.share input { flex: 1; padding: .6rem .7rem; border: 1px solid #d9cdd4; border-radius: 10px; font: inherit; font-size: .9rem; background: var(--cream); }

/* Sections */
main section { padding: 4.5rem 1.25rem; }
.features { max-width: 1120px; margin: 0 auto; }
.features > h2, .cta h2, .privacy-band h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); color: var(--plum); text-align: center; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-top: 2rem; }
.grid article { background: #fff; border-radius: var(--radius); padding: 1.5rem; border: 1px solid #eadfe6; }
.grid h3 { font-size: 1.4rem; color: var(--plum); }
.grid p { margin: 0; color: var(--muted); }
.icon { display: inline-grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: #f4e9d4; color: var(--plum); font-size: 1.25rem; margin-bottom: .9rem; }

.privacy-band { background: var(--plum); color: #fff; }
.privacy-band h2 { color: #fff; }
.privacy-band ul { max-width: 760px; margin: 1.5rem auto 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 2rem; }
.privacy-band li { padding-left: 1.6rem; position: relative; color: #f1e6ee; }
.privacy-band li::before { content: ''; position: absolute; left: 0; top: .55em; width: .6rem; height: .6rem; border-radius: 50%; background: var(--gold); }

.cta { text-align: center; }
.cta p { max-width: 34em; margin: 0 auto 1.5rem; color: var(--muted); }

footer { text-align: center; padding: 2.5rem 1.25rem 3rem; font-size: .9rem; color: var(--muted); border-top: 1px solid #eadfe6; }
footer p { margin: .3rem 0; }
.small { font-size: .8rem; }

/* Simple pages (confirm, unsubscribe, privacy) */
body.simple { background: linear-gradient(160deg, var(--plum-deep), var(--plum)); min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; }
body.simple .card { max-width: 560px; width: 100%; }
body.simple .logo { color: var(--plum); display: inline-block; margin-bottom: 1.25rem; }
body.simple h1 { color: var(--plum); font-size: 2rem; }
.prose { max-width: 760px; margin: 0 auto; padding: 3rem 1.25rem 4rem; }
.prose h1 { color: var(--plum); font-size: 2.4rem; }
.prose h2 { color: var(--plum); font-size: 1.5rem; margin-top: 2rem; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; margin-top: 2rem; }
  .grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .grid, .privacy-band ul { grid-template-columns: 1fr; }
  .card { padding: 1.35rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }

/* Quiz */
.quiz-page .card.quiz { max-width: 600px; }
main.quiz section { padding: 0; }
body.quiz-page { place-items: start center; padding-top: 6vh; }
.quiz h1 { font-size: 2rem; color: var(--plum); }
.quiz h2 { font-size: 1.6rem; color: var(--plum); margin-bottom: 1rem; }
.quiz h3 { font-family: var(--sans); font-size: 1rem; font-weight: 600; color: var(--plum); margin: 1.4rem 0 .5rem; }
.quiz-label { font-weight: 600; margin: 1.25rem 0 .5rem; }
.choices { display: grid; gap: .6rem; }
.choice { text-align: left; background: #fff; border: 1.5px solid #d9cdd4; border-radius: 12px; padding: .9rem 1rem; font: 500 1rem var(--sans); color: var(--ink); cursor: pointer; transition: border-color .15s, background .15s; }
.choice:hover, .choice:focus-visible { border-color: var(--gold); background: #fbf5e8; outline: none; }
.choice.picked { border-color: var(--plum); background: #f4ecf1; }
.progress { height: 6px; background: #f0e7ec; border-radius: 999px; overflow: hidden; margin-bottom: .75rem; }
.progress span { display: block; height: 100%; background: var(--gold); transition: width .25s ease; }
.quiz-count { font-size: .85rem; color: var(--muted); margin: 0 0 .25rem; }
.back { background: none; border: 0; color: var(--plum); font: 500 .95rem var(--sans); text-decoration: underline; cursor: pointer; margin-top: 1rem; padding: .25rem 0; display: block; }
.eyebrow-dark { color: var(--plum-soft); text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; font-weight: 600; margin: 0 0 .5rem; }
.quiz ol { padding-left: 1.2rem; margin: 0; }
.quiz ol li { margin-bottom: .4rem; }
.suggest { background: #fbf5e8; border: 1px solid var(--gold-soft); border-radius: 12px; padding: .25rem 1rem .75rem; margin-top: 1.25rem; }
.quiz-cta { margin-top: 1.5rem; border-top: 1px solid #eadfe6; padding-top: 1.25rem; }
.quiz-band { background: #fff; border-top: 1px solid #eadfe6; border-bottom: 1px solid #eadfe6; text-align: center; }
.quiz-band h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); color: var(--plum); }
.quiz-band p { max-width: 34em; margin: 0 auto 1.5rem; color: var(--muted); }
.result-note { background: #f4ecf1; border-radius: 10px; padding: .6rem .8rem; font-size: .92rem; color: var(--plum); }

/* Guides */
.site-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.25rem; background: var(--plum-deep); flex-wrap: wrap; }
.site-bar .logo { color: #fff; }
.site-bar nav { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; }
.site-bar nav a { color: var(--gold-soft); text-decoration: none; font-weight: 500; }
.site-bar nav a:hover { color: #fff; }
.site-bar nav a.btn { color: var(--plum-deep); }
.guide { line-height: 1.7; }
.guide h1 { font-size: clamp(2.1rem, 4.5vw, 2.8rem); color: var(--plum); }
.guide h2 { margin-top: 2.2rem; }
.guide ul { padding-left: 1.2rem; }
.guide li { margin-bottom: .45rem; }
.guide table { width: 100%; border-collapse: collapse; margin: 1rem 0; background: #fff; border-radius: 12px; overflow: hidden; }
.guide th, .guide td { text-align: left; padding: .7rem .9rem; border-bottom: 1px solid #eadfe6; vertical-align: top; }
.guide th { background: #f4ecf1; color: var(--plum); }
.guide .crumbs { font-size: .9rem; margin: 0 0 .5rem; }
.checklist { list-style: none; padding-left: 0 !important; }
.checklist li { position: relative; padding-left: 2rem; }
.checklist li::before { content: ''; position: absolute; left: 0; top: .3em; width: 1.1rem; height: 1.1rem; border: 2px solid var(--plum); border-radius: 4px; }
.guide-cta { background: var(--plum); color: #fff; border-radius: var(--radius); padding: 1.5rem 1.75rem; margin: 2.5rem 0 1.5rem; }
.guide-cta h2 { color: #fff; margin-top: 0; }
.guide-cta p { color: #f1e6ee; }
.btn.ghost { background: transparent; color: #fff; border: 1.5px solid var(--gold-soft); margin-left: .4rem; }
.btn.ghost:hover { background: rgba(255,255,255,.08); }
.next-guide { font-weight: 500; }
.lead-dark { font-size: 1.1rem; color: var(--muted); }
.guide-list { display: grid; gap: 1rem; margin-top: 1.5rem; }
.guide-card { display: block; background: #fff; border: 1px solid #eadfe6; border-radius: var(--radius); padding: 1.4rem 1.5rem; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.guide-card:hover { border-color: var(--gold); transform: translateY(-1px); }
.guide-card h2 { margin: 0 0 .4rem; font-size: 1.5rem; color: var(--plum); }
.guide-card p { margin: 0 0 .6rem; color: var(--muted); }
.guide-card span { color: var(--plum); font-weight: 600; }
@media (max-width: 560px) { .btn.ghost { margin: .6rem 0 0; } .site-bar nav { gap: .8rem; font-size: .92rem; } }

.top-links { display: flex; gap: 1.2rem; }
.guide-links { margin-top: 1.25rem !important; font-size: .95rem; }

/* Admin */
.admin { max-width: 860px; margin: 0 auto; padding: 1.5rem 1rem 3rem; }
.admin-card { background: #fff; border: 1px solid #eadfe6; border-radius: var(--radius); padding: 1.4rem 1.5rem; margin-bottom: 1.25rem; }
.admin-card h1, .admin-card h2 { color: var(--plum); margin-top: 0; }
.admin-card form { display: grid; gap: .45rem; max-width: 480px; margin-bottom: 1.25rem; }
.admin-card input, .admin-card select { padding: .65rem .75rem; border: 1px solid #d9c9d3; border-radius: 10px; font: inherit; }
.admin-card form .btn { justify-self: start; margin-top: .4rem; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .75rem; margin-bottom: 1rem; }
.stat { background: #f7f1ea; border-radius: 12px; padding: .9rem 1rem; }
.stat strong { display: block; font-size: 1.5rem; color: var(--plum); }
.stat span { color: var(--muted); font-size: .9rem; }
.admin-list { margin: 0; padding-left: 1.2rem; }
.table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { text-align: left; padding: .6rem .5rem; border-bottom: 1px solid #eadfe6; vertical-align: top; }
.admin-table small { color: var(--muted); }
.admin-table tr.inactive { opacity: .5; }
.admin-table .actions { white-space: nowrap; }
.link-btn { background: none; border: 0; color: var(--plum); font: inherit; font-weight: 600; cursor: pointer; padding: 0 .4rem; }
.qr-box { max-width: 280px; background: #fff; }
.qr-box svg { width: 100%; height: auto; display: block; }
.qr-link { word-break: break-all; color: var(--muted); font-size: .9rem; }
.btn.ghost-dark { background: transparent; color: var(--plum); border: 1.5px solid var(--plum); }
.admin-foot { text-align: center; }
.stat-row { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
@media (max-width: 560px) {
  .admin-card { padding: 1.1rem 1rem; }
  .admin-table thead { display: none; }
  .admin-table, .admin-table tbody, .admin-table tr, .admin-table td { display: block; width: 100%; }
  .admin-table tr { border-bottom: 1px solid #eadfe6; padding: .7rem 0; }
  .admin-table td { border: 0; padding: .15rem 0; }
  .admin-table td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); }
  .admin-table .actions { padding-top: .4rem; }
  .admin-table .link-btn { padding: .3rem 1rem .3rem 0; }
}

/* Area progress */
.area-progress { max-width: 460px; margin: 0 auto 1.75rem; text-align: left; background: #fff; border: 1px solid #eadfe6; border-radius: var(--radius); padding: 1.2rem 1.4rem; }
.area-progress h3 { margin: 0 0 .8rem; font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.4rem; color: var(--plum); }
.area-progress ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; }
.progress-label { display: flex; justify-content: space-between; gap: 1rem; font-size: .95rem; margin-bottom: .3rem; }
.progress-label span:first-child { font-weight: 600; color: var(--ink); }
.progress-label span:last-child { color: var(--muted); white-space: nowrap; }
.progress-bar { height: 10px; background: #f1e7ee; border-radius: 999px; overflow: hidden; }
.progress-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--plum), var(--gold)); border-radius: 999px; min-width: 6px; }
.cta .progress-note { font-size: .88rem; margin: .9rem 0 0; }
.raw-areas { margin-top: .8rem; } .raw-areas summary { cursor: pointer; color: var(--plum); font-weight: 600; } .admin-list .muted { color: var(--muted); }
.card-head { color: var(--plum); margin: 1.4rem 0 .3rem; font-size: 1.05rem; }
.small-note { color: var(--muted); font-size: .9rem; margin-top: 0; }
.card-previews { display: grid; gap: .75rem; max-width: 420px; margin-bottom: .8rem; }
.card-previews img { width: 100%; border-radius: 10px; box-shadow: 0 2px 10px rgba(42,17,36,.15); }
.guide .byline { color: var(--muted); font-size: .9rem; margin-top: -.6rem; }
.related { border-top: 1px solid #eadfe6; margin-top: 2rem; padding-top: 1rem; }
.related h2 { margin-top: 0; font-size: 1.4rem; }
.related ul { padding-left: 1.2rem; }

/* Yes, maybe, no tool */
.ymn ol { margin-bottom: 1rem; }
.ymn-privacy { background: #f7f1ea; border-radius: 10px; padding: .75rem .9rem; font-size: .92rem; }
.ymn #item-text { color: var(--muted); margin-top: -.4rem; margin-bottom: 1rem; }
.ymn ul { padding-left: 1.2rem; }
.ymn ul li { margin-bottom: .45rem; }
.ymn .muted { color: var(--muted); font-size: .92rem; }
.ymn-hidden { background: #f4ecf1; border-radius: 10px; padding: .75rem .9rem; font-size: .92rem; }

/* Areas and club directory */
.area-one { margin: 1.5rem 0 2rem; max-width: none; }
.area-one .btn { margin-top: .5rem; }
.area-one .progress-note { font-size: .88rem; color: var(--muted); margin: .6rem 0 0; }
.club { background: #fff; border: 1px solid #eadfe6; border-radius: var(--radius); padding: 1.1rem 1.25rem; margin: 1rem 0; }
.club h3 { margin: 0; font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.5rem; color: var(--plum); }
.club-meta { color: var(--muted); margin: .1rem 0 .7rem; font-size: .92rem; }
.club dl { margin: 0; display: grid; grid-template-columns: 8.5rem 1fr; gap: .35rem .8rem; font-size: .95rem; }
.club dt { font-weight: 600; color: var(--ink); }
.club dd { margin: 0; }
.club-foot { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin: .8rem 0 0; font-size: .9rem; }
.club-foot span { color: var(--muted); }
.dir-note { font-size: .9rem; color: var(--muted); background: #f7f1ea; border-radius: 10px; padding: .8rem 1rem; }
.claim-form { margin-top: 1.5rem; }
.claim-form textarea { width: 100%; padding: .7rem .8rem; border: 1px solid #d9c9d3; border-radius: 10px; font: inherit; }
.done-msg { font-weight: 500; }
@media (max-width: 560px) { .club dl { grid-template-columns: 1fr; gap: .1rem; } .club dt { margin-top: .4rem; } }
.claim-item { border-bottom: 1px solid #eadfe6; padding: .8rem 0; } .claim-item p { margin: .25rem 0; } .claim-item.done { opacity: .55; }

/* Ground rules and first meet tools */
.tool form h3 { margin-top: 1.2rem; }
.tool .rule { margin: .45rem 0; }
.tool input[type=text], .tool textarea { width: 100%; padding: .7rem .8rem; border: 1px solid #d9c9d3; border-radius: 10px; font: inherit; }
.tool .hint { font-size: .85rem; color: var(--muted); margin-top: .3rem; }
.tool .muted { color: var(--muted); font-size: .92rem; }
.tool ul { padding-left: 1.2rem; }
.tool ul li { margin-bottom: .45rem; }
.rules-card { background: #f7f1ea; border: 1px solid #eadfe6; border-radius: var(--radius); padding: 1.2rem 1.3rem; }
.rules-card h2 { margin-top: 0; }
.rules-foot { font-size: .8rem; color: var(--muted); margin: 1rem 0 0; }

/* Members' area */
.member-card form { display: grid; gap: .35rem; }
.member-card form .btn { justify-self: start; margin-top: .6rem; }
.member-card input[type=text], .member-card input[type=email], .member-card input[type=password], .member-card select { width: 100%; padding: .7rem .8rem; border: 1px solid #d9c9d3; border-radius: 10px; font: inherit; background: #fff; }
.member-card .hint { font-size: .85rem; color: var(--muted); margin: 0; }
.member-card .muted { color: var(--muted); }
.member-card .err { color: #b3261e; font-size: .88rem; margin: 0; min-height: 0; }
.member-card .invalid { border-color: #b3261e; }
.choices-row { border: 0; padding: 0; margin: 0 0 .3rem; display: flex; gap: .6rem; flex-wrap: wrap; }
.choices-row legend { font-weight: 600; margin-bottom: .4rem; }
.pill { display: flex; align-items: center; gap: .45rem; border: 1.5px solid #d9cdd4; border-radius: 999px; padding: .55rem 1rem; cursor: pointer; }
.pill:has(input:checked) { border-color: var(--plum); background: #f4ecf1; }
.code-input { font-size: 1.6rem; letter-spacing: .3em; text-align: center; max-width: 12rem; }
.small-links { margin-top: 1.25rem; font-size: .92rem; }
.status-card { background: #f4ecf1; border-radius: 12px; padding: .9rem 1rem; margin-bottom: 1rem; }
.status-card p { margin: .25rem 0 0; }
.step-card { border-top: 1px solid #eadfe6; padding-top: 1rem; margin-top: 1rem; }
.step-card h2 { font-size: 1.35rem; margin: 0 0 .5rem; }
.invite-link { margin: .8rem 0 .5rem; font-size: .85rem; }
.approvals { margin-bottom: 1rem; }
.approvals h2 { font-size: 1.35rem; margin: 0 0 .5rem; }
.approval-card { border: 1.5px solid var(--gold); background: #fbf5e8; border-radius: 12px; padding: .9rem 1rem; margin-bottom: .6rem; }
.approval-card p { margin: 0 0 .7rem; }
.approval-card .btn { margin-right: .4rem; }
.switch-row { display: flex; gap: .7rem; align-items: flex-start; margin: .7rem 0; cursor: pointer; }
.switch-row input { margin-top: .3rem; width: 1.15rem; height: 1.15rem; }
.switch-row small { color: var(--muted); }
