:root {
  color-scheme: light;
  --ink: #25150d;
  --brown: #7c3f18;
  --gold: #d99b39;
  --paper: #fbf6ec;
  --ivory: #fffdf8;
  --sand: #ead7b5;
  --muted: #705f54;
  --line: #dcc6a6;
  --danger: #a63d2f;
  --success: #246347;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-size: 16px; line-height: 1.65; }
a { color: var(--brown); text-underline-offset: 3px; }
a:hover { color: #4e260f; }

.site-header {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center;
  justify-content: space-between; gap: 24px; padding: 14px max(20px, calc((100vw - 1120px) / 2));
  border-bottom: 1px solid rgba(124, 63, 24, .18); background: rgba(251, 246, 236, .94);
  backdrop-filter: blur(14px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 900; letter-spacing: -.04em; font-size: 1.2rem; }
.disc { width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle at 34% 27%, #f3c879 0 17%, var(--gold) 18% 54%, #8c4a19 55% 63%, #2f190e 64%); box-shadow: 0 4px 0 #32190d; }
.nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.nav a { color: var(--muted); text-decoration: none; font-size: .9rem; font-weight: 700; }
.nav a[aria-current="page"] { color: var(--brown); }

main { width: min(100% - 40px, 1040px); margin: 0 auto; }
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; min-height: 68vh; padding: 72px 0; }
.eyebrow { color: var(--brown); font-weight: 900; letter-spacing: .14em; text-transform: uppercase; font-size: .78rem; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.035em; }
h1 { max-width: 780px; margin: 12px 0 20px; font-family: Georgia, serif; font-size: clamp(2.7rem, 7vw, 5.4rem); }
h2 { margin-top: 2.4em; font-size: clamp(1.65rem, 4vw, 2.3rem); }
h3 { margin-top: 1.9em; font-size: 1.25rem; }
.lead { max-width: 690px; color: var(--muted); font-size: 1.15rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 11px 20px; border: 1px solid var(--brown); border-radius: 14px; background: var(--brown); color: white; text-decoration: none; font-weight: 800; cursor: pointer; font: inherit; }
.button.secondary { background: transparent; color: var(--brown); }
.button.danger { border-color: var(--danger); background: var(--danger); }
.button:disabled { opacity: .55; cursor: not-allowed; }

.board-art { aspect-ratio: 1; max-width: 390px; justify-self: end; width: 100%; padding: 10%; border: 14px solid #572b15; border-radius: 28px; background-color: #e7c995; background-image: linear-gradient(45deg, #743b1f 25%, transparent 25%), linear-gradient(-45deg, #743b1f 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #743b1f 75%), linear-gradient(-45deg, transparent 75%, #743b1f 75%); background-size: 25% 25%; background-position: 0 0, 0 12.5%, 12.5% -12.5%, -12.5% 0; box-shadow: 0 28px 60px rgba(54, 25, 12, .25); }
.board-art::after { content: "♛"; display: grid; place-items: center; height: 100%; border-radius: 50%; color: #ffe6a2; background: radial-gradient(circle, #c68329 0 48%, #5b2d16 49% 63%, #180d08 64%); font-size: clamp(4rem, 10vw, 7rem); box-shadow: 0 14px 0 rgba(35, 15, 6, .7); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 38px 0 78px; }
.card, .legal, .portal { border: 1px solid var(--line); border-radius: 22px; background: var(--ivory); box-shadow: 0 10px 28px rgba(67, 36, 18, .07); }
.card { padding: 24px; }
.card h2 { margin: 0 0 9px; font-size: 1.35rem; }
.card p { color: var(--muted); }
.legal { max-width: 820px; margin: 48px auto 80px; padding: clamp(24px, 6vw, 64px); }
.legal h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
.legal .meta { color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 22px; }
.legal li { margin: .55em 0; }
.callout { margin: 24px 0; padding: 18px 20px; border-left: 4px solid var(--gold); border-radius: 10px; background: #fff4dc; }

.portal { max-width: 690px; margin: 48px auto 80px; padding: clamp(24px, 6vw, 52px); }
.portal h1 { font-size: clamp(2.3rem, 6vw, 4rem); }
.form-stack { display: grid; gap: 13px; margin-top: 24px; }
label { display: grid; gap: 6px; font-weight: 750; }
input { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #bda987; border-radius: 12px; background: white; color: var(--ink); font: inherit; }
input:focus { outline: 3px solid rgba(217, 155, 57, .3); border-color: var(--brown); }
.status { display: none; margin-top: 18px; padding: 14px 16px; border-radius: 12px; background: #f0e4d0; }
.status.show { display: block; }
.status.error { color: #7b241c; background: #ffe6e0; }
.status.success { color: var(--success); background: #e4f4eb; }
.account-panel { display: none; }
.account-panel.show { display: block; }
.danger-zone { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.check { display: flex; grid-template-columns: none; align-items: flex-start; gap: 10px; font-weight: 500; }
.check input { width: 19px; min-height: 19px; margin-top: 4px; }
.fine { color: var(--muted); font-size: .9rem; }

footer { padding: 28px 20px 42px; border-top: 1px solid var(--line); color: var(--muted); text-align: center; }
footer nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 20px; margin-bottom: 10px; }

@media (max-width: 760px) {
  .site-header { align-items: flex-start; flex-direction: column; gap: 8px; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding: 56px 0; }
  .board-art { justify-self: center; max-width: 330px; }
  .cards { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
