/* Spellcraft: Second Age public site. Dark only (it frames the game's art); system fonts, no third-party requests. */
:root {
  --bg: #14111f;
  --bg-2: #1d1830;
  --panel: #241e3a;
  --line: #3a3159;
  --text: #ece6f6;
  --muted: #b3a9c9;
  --gold: #e9b949;
  --gold-2: #ffd77a;
  --link: #9fc3ff;
  --serif: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: radial-gradient(1200px 600px at 70% -10%, #2f2453 0%, transparent 60%), var(--bg);
  background-color: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 16px; }
a { color: var(--link); }
a:hover { color: #c7dcff; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin: 0.4em 0 0.3em; color: var(--gold-2); }
h2 { font-size: 1.6rem; margin: 1.6em 0 0.5em; }
h3 { font-size: 1.2rem; margin: 0 0 0.3em; color: var(--gold-2); }
img { max-width: 100%; height: auto; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: #000; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

.top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  max-width: 1100px; width: 100%; margin: 0 auto; padding: 14px 16px;
}
.brand { font: 700 1.25rem var(--serif); color: var(--gold); text-decoration: none; letter-spacing: 0.02em; }
.top nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.top nav a:not(.button) { color: var(--text); text-decoration: none; }
.top nav a:not(.button):hover { color: var(--gold-2); }

.button {
  display: inline-block; padding: 12px 22px; border-radius: 10px; text-decoration: none; font-weight: 700;
  background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #241a05; border: 1px solid #f7d98a;
  box-shadow: 0 4px 18px rgba(233, 185, 73, 0.25);
}
.button:hover { color: #241a05; filter: brightness(1.06); }
.button.small { padding: 7px 14px; font-size: 0.95rem; }
.button.secondary { background: transparent; color: var(--gold-2); border-color: var(--gold); box-shadow: none; }

.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; padding: 28px 0 12px; }
.tagline { font: italic 1.5rem/1.3 var(--serif); color: var(--text); margin: 0 0 0.6em; }
.hero-text p { color: var(--muted); }
.actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 1.4em; }
.soon { color: var(--muted); font-size: 0.95rem; }
.fan { position: relative; height: 420px; }
.fan img {
  position: absolute; width: 46%; top: 30px; border-radius: 12px; border: 2px solid #5a4a86;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}
.fan img:nth-child(1) { left: 4%; transform: rotate(-9deg); }
.fan img:nth-child(2) { left: 27%; top: 0; z-index: 2; }
.fan img:nth-child(3) { left: 50%; transform: rotate(9deg); }

.features .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.features article { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.features p { margin: 0; color: var(--muted); }

.gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin: 40px 0 8px; }
.gallery img { border-radius: 8px; border: 1px solid var(--line); }

.callout { text-align: center; background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 8px 20px 24px; margin: 40px 0; }
.callout p { color: var(--muted); max-width: 640px; margin: 0.5em auto; }

.prose { max-width: 760px; margin: 0 auto; padding-bottom: 40px; }
.prose h2 { font-size: 1.35rem; }
.prose h3 { font-size: 1.05rem; margin-top: 1.2em; }
.prose li { margin: 0.3em 0; }
.prose details { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 16px; margin: 10px 0; }
.prose summary { cursor: pointer; font-weight: 600; }
.prose details p { color: var(--muted); margin: 0.6em 0 0.2em; }
.notice { background: #2c2440; border-left: 4px solid var(--gold); padding: 10px 14px; border-radius: 6px; }
.updated { color: var(--muted); font-size: 0.95rem; }
.legal { font-size: 16px; }
.tiers li::marker { color: var(--gold); }

.bottom { border-top: 1px solid var(--line); margin-top: 32px; padding: 20px 16px 28px; color: var(--muted); font-size: 0.92rem; }
.footer-cols { max-width: 1100px; margin: 0 auto; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-cols nav { display: flex; gap: 6px 18px; flex-wrap: wrap; }
.footer-cols nav a { color: var(--muted); }
.company { max-width: 1100px; margin: 14px auto 0; }
.langs summary { cursor: pointer; }
.langs ul { list-style: none; margin: 6px 0 0; padding: 0; }
.langs li { margin: 4px 0; }
.langs a { color: var(--muted); }
.langs a[aria-current] { color: var(--gold-2); font-weight: 700; }
.langs a[aria-current]::before { content: "• "; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; }
  .fan { height: 300px; max-width: 420px; margin: 0 auto; width: 100%; }
  .features .grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .top nav { gap: 12px; }
  .features .grid { grid-template-columns: 1fr; }
  .fan { height: 240px; }
}

.account form label { display: block; margin: 12px 0; font-weight: 600; }
.account form input {
  display: block; width: 100%; max-width: 420px; margin-top: 6px; padding: 10px 12px; font: inherit;
  color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
}
.account form input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.account .error { color: #ff9a8f; }
.account button.button { cursor: pointer; font: inherit; font-weight: 700; }
.account button.button:disabled { opacity: 0.6; cursor: wait; }
