/* worldwend.com: the illuminated-manuscript look of the app, night page by default,
   parchment when the visitor's device prefers light. */
:root {
  --bg: #141826;
  --surface: #1b2033;
  --raised: #232a42;
  --border: #3a4260;
  --text: #e8e0cc;
  --muted: #a3a8bf;
  --accent: #c9a85a;
  --accent-text: #141826;
  --gold: #e4cf8e;
  --rubric: #9fb3e0;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #efe3c6;
    --surface: #f6ecd2;
    --raised: #e9dbb9;
    --border: #ccb27a;
    --text: #2b2218;
    --muted: #6c5e49;
    --accent: #8c2f1f;
    --accent-text: #f6ecd2;
    --gold: #8a6512;
    --rubric: #8c2f1f;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.15rem;
  line-height: 1.6;
}
a { color: var(--accent); }
a:hover { color: var(--gold); }
h1, h2, h3, .brand { font-family: 'Cinzel', Georgia, serif; font-weight: 700; line-height: 1.25; }
h1 { color: var(--gold); }
h2 { color: var(--gold); margin-top: 2.2rem; }
h3 { color: var(--rubric); }

.wrap { max-width: 860px; margin: 0 auto; padding: 0 16px; }

/* Top bar */
.top { border-bottom: 1px solid var(--border); background: var(--surface); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.brand { color: var(--gold); text-decoration: none; font-size: 1.3rem; letter-spacing: 0.06em; }
.top nav { display: flex; gap: 18px; flex-wrap: wrap; }
.top nav a { text-decoration: none; font-size: 1rem; }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-text);
  text-decoration: none;
  font-family: 'Cinzel', Georgia, serif;
  font-weight: 700;
  padding: 12px 26px;
  border-radius: 6px;
  letter-spacing: 0.04em;
}
.btn:hover { color: var(--accent-text); filter: brightness(1.08); }
.btn.small { padding: 8px 16px; font-size: 0.9rem; }

/* Front page */
.hero { text-align: center; padding: 72px 0 56px; border-bottom: 1px solid var(--border); }
.hero h1 { font-size: clamp(2.4rem, 8vw, 4rem); margin: 0 0 8px; letter-spacing: 0.08em; }
.hero .tagline { font-size: 1.35rem; font-style: italic; color: var(--muted); margin: 0 auto 32px; max-width: 34rem; }
.hero .note { color: var(--muted); font-size: 0.95rem; margin-top: 14px; }

section { padding: 40px 0; }
section + section { border-top: 1px solid var(--border); }
section h2 { margin-top: 0; text-align: center; }
.lead { text-align: center; color: var(--muted); max-width: 38rem; margin: 0 auto 28px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px 20px;
}
.card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.card p { margin: 0; color: var(--muted); }

.prices .card { text-align: center; }
.prices .amount { font-family: 'Cinzel', Georgia, serif; font-size: 1.8rem; color: var(--gold); }
.prices .credits { font-size: 1.1rem; }
.fine { text-align: center; color: var(--muted); font-size: 0.95rem; margin-top: 18px; }

/* Legal pages */
.doc { padding: 32px 0 56px; }
.doc h1 { font-size: clamp(1.7rem, 6vw, 2.4rem); }
.doc table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; }
.doc th, .doc td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; vertical-align: top; }
.doc th { background: var(--raised); }
.doc li { margin: 4px 0; }

/* Footer */
footer { border-top: 1px solid var(--border); background: var(--surface); padding: 24px 0; color: var(--muted); font-size: 0.95rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 10px 18px; }
