/* Hexley's "midnight" theme (src/theme/themes.ts). */
:root {
  color-scheme: dark;
  --background: #0e0b1a;
  --surface: #1a1530;
  --border: #2c2448;
  --text: #ede7f6;
  --text-muted: #a99bc8;
  --accent: #d4af37;
  --accent-soft: #a78bfa;
  --error: #f28b82;
  --display: 'Cormorant Garamond', Georgia, serif;
  --body: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  min-height: 100vh;
  /* The Midnight spotlight (spotlights.midnight in src/theme/decorations.ts). */
  background:
    radial-gradient(ellipse 80% 48% at 50% 44%, rgba(167, 139, 250, 0.24), rgba(120, 90, 220, 0.09) 45%, rgba(14, 11, 26, 0) 78%)
    fixed,
    var(--background);
  color: var(--text);
  font: 17px/1.6 var(--body);
}

a { color: var(--accent-soft); }

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

.top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.brand { font: 600 1.6rem var(--display); color: var(--accent); text-decoration: none; letter-spacing: 0.02em; }

/* The corner stars stay in the corners of the screen, behind everything; the bottom ones are drawn smaller. */
.corner { position: fixed; z-index: -1; pointer-events: none; opacity: 0.85; height: auto; }
.corner.tl { top: 0; left: 0; }
.corner.tr { top: 0; right: 0; }
.corner.bl { bottom: 0; left: 0; width: 85px; }
.corner.br { bottom: 0; right: 0; width: 85px; }

h1, h2 { font-family: var(--display); font-weight: 600; line-height: 1.15; }
h1 { font-size: clamp(2.1rem, 7vw, 3rem); margin: 0 0 16px; }
h2 { font-size: 1.5rem; margin: 32px 0 8px; color: var(--accent); }

.muted { color: var(--text-muted); }
.footer { margin-top: 48px; font-size: 0.85rem; color: var(--text-muted); text-align: center; }
.footer a { color: var(--text-muted); }
