/* Gilded Mythos Enterprises: velvet masthead, gold accents, one wide reading
   column. Large type throughout, since most players are older adults. */
:root {
  --bg: #faf8fc;
  --surface: #ffffff;
  --fg: #231a2e;
  --muted: #5e5170;
  --rule: #e4dcec;
  --gold: #9a6a0e;
  --gold-bright: #f5c542;
  --velvet: #4a1a75;
  --mast-bg: #2a0d45;
  --mast-fg: #fff1d0;
  --display: "Cinzel", "Trajan Pro", Georgia, serif;
  --body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #140a1f; --surface: #1d1029; --fg: #ece5f4; --muted: #b3a5c6; --rule: #352448;
    --gold: #e9bd4c; --velvet: #c69af0; --mast-bg: #22093a; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #140a1f; --surface: #1d1029; --fg: #ece5f4; --muted: #b3a5c6; --rule: #352448;
  --gold: #e9bd4c; --velvet: #c69af0; --mast-bg: #22093a; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--body); font-size: 1.125rem; line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: var(--velvet); }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.wrap {
  max-width: 62rem; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* Top bar */
.topbar { background: var(--mast-bg); color: var(--mast-fg); border-bottom: 1px solid rgba(245, 197, 66, 0.35); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.75rem; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 0.6rem; color: var(--mast-fg); text-decoration: none; font-family: var(--display); font-weight: 700; letter-spacing: 0.04em; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.topbar nav { display: flex; gap: 1.25rem; font-size: 1rem; }
.topbar nav a { color: #e9d8ff; text-decoration: none; }
.topbar nav a:hover, .topbar nav a[aria-current="page"] { color: var(--gold-bright); }

/* Hero */
.hero {
  background: radial-gradient(120% 140% at 50% 0%, #5a1f8f 0%, var(--mast-bg) 70%);
  color: var(--mast-fg); border-bottom: 3px solid var(--gold-bright);
}
.hero .wrap { padding-block: 3.5rem 3rem; display: grid; grid-template-columns: auto 1fr; gap: 2rem; align-items: center; }
.hero .icon { width: 160px; height: 160px; border-radius: 36px; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45); }
.hero h1 { font-family: var(--display); font-size: clamp(2rem, 6vw, 3.2rem); line-height: 1.1; margin: 0 0 0.5rem; text-wrap: balance; }
.hero p { margin: 0 0 1.25rem; color: #e9d8ff; font-size: 1.2rem; max-width: 34rem; }
.badge {
  display: inline-block; padding: 0.7rem 1.3rem; border-radius: 12px;
  background: linear-gradient(#ffe39a, #f5c542 55%, #c8901c); color: #2a0d45;
  font-weight: 700; text-decoration: none; letter-spacing: 0.02em;
  box-shadow: 0 3px 0 #7a5208;
}
@media (max-width: 640px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; justify-items: center; padding-block: 2.5rem; }
  .hero .icon { width: 120px; height: 120px; border-radius: 28px; }
}

/* Sections */
main { padding-block: 2.5rem 1rem; }
section + section { margin-top: 3rem; }
h2 { font-family: var(--display); font-weight: 600; font-size: 1.6rem; color: var(--velvet); margin: 0 0 0.75rem; text-wrap: balance; }
h3 { font-size: 1.15rem; margin: 1.5rem 0 0.35rem; }
p, ul { margin: 0 0 0.9rem; }
.lede { font-size: 1.2rem; max-width: 44rem; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; list-style: none; padding: 0; }
.features li { background: var(--surface); border: 1px solid var(--rule); border-top: 3px solid var(--gold); border-radius: 10px; padding: 1rem 1.15rem; }
.features strong { display: block; font-family: var(--display); color: var(--gold); letter-spacing: 0.03em; margin-bottom: 0.2rem; }


.card { background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; padding: 1.25rem 1.4rem; }
.note { color: var(--muted); font-size: 1rem; }
.email { font-weight: 700; font-size: 1.2rem; }

details { background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; padding: 0.9rem 1.15rem; }
details + details { margin-top: 0.75rem; }
summary { cursor: pointer; font-weight: 600; font-size: 1.15rem; }
details[open] summary { margin-bottom: 0.5rem; }

footer { margin-top: 3rem; padding-block: 1.75rem 2.5rem; border-top: 1px solid var(--rule); color: var(--muted); font-size: 0.95rem; }
footer nav { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-bottom: 0.6rem; }
