/* Black Lantern Gaming — base theme: black background, white text/outlines.
   Update the CSS variables below to change colors without touching component styles. */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700&display=swap');
:root {
  color-scheme: dark;
  --bg: #000000;
  --fg: #ffffff;
  --muted: rgba(255,255,255,0.75);
  --line: rgba(255,255,255,0.18);
  --focus: #ffffff;
  --accent: #8a7bff;
  --accent-deep: #594bf5;
  --bg-soft: rgba(255,255,255,0.08);
  --font-display: 'Cinzel', 'Palatino Linotype', 'Book Antiqua', Palatino, serif;
  --glow-default: rgba(138,123,255,0.55);
  --glow-parchment: rgba(255,214,163,0.65);
  --glow-storm: rgba(123,209,255,0.65);
  --glow-starmap: rgba(168,148,255,0.65);
  --glow-ward: rgba(120,255,229,0.55);
  --glow-aurora: rgba(255,156,227,0.6);
  --glow-ember: rgba(255,120,82,0.65);
  --glow-ink: rgba(138,123,255,0.55);
  --glow-starlight: rgba(255,236,179,0.6);

  /* Consistent spacing scale */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-2xl: 64px;
  --space-3xl: 88px;

  /* Typography */
  --max-text-width: 65ch;
}

* { box-sizing: border-box; }

html, body {
  min-height: 100%;
  background-color: var(--bg);
  color: var(--fg);
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.nav-open {
  overflow: hidden;
}

a { color: var(--fg); text-decoration: none; }
a:hover { text-decoration: underline; }

h2 {
  font-size: clamp(28px, 4vw, 36px);
  letter-spacing: 0.3px;
  line-height: 1.2;
}

h3 {
  font-size: clamp(20px, 3vw, 24px);
  letter-spacing: 0.2px;
  line-height: 1.3;
}

p {
  max-width: var(--max-text-width);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.container {
  max-width: min(1100px, 100% - 48px);
  margin: 0 auto;
  padding: 0 clamp(18px, 3vw, 32px);
  width: 100%;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  backdrop-filter: blur(6px);
  background: rgba(0,0,0,0.65);
}
.flock { display: flex; align-items: center; justify-content: space-between; gap: 24px; position: relative; }
.brand { display: flex; align-items: center; gap: 14px; padding: 10px 0; }
.brand img { filter: contrast(1.05) brightness(1.05); }
.brand-text { font-weight: 700; letter-spacing: 0.3px; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line);
  color: var(--fg);
  font-weight: 600;
  cursor: pointer;
}

.nav-toggle:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.nav-toggle-icon {
  width: 18px;
  height: 12px;
  position: relative;
  display: inline-block;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after,
.nav-toggle-icon span {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle-icon span { display: block; }

.nav-toggle-icon::before { top: 0; }
.nav-toggle-icon::after { bottom: 0; }
.nav-toggle-icon span { top: 50%; transform: translateY(-50%); }

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before {
  transform: translateY(5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after {
  transform: translateY(-5px) rotate(-45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon span {
  opacity: 0;
}

.skip-link {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -120%);
  background: var(--fg);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 10;
  transition: transform 0.2s ease;
}
.skip-link:focus {
  transform: translate(-50%, 12px);
}

.nav ul {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid transparent;
}

.nav-link:hover {
  border-color: var(--line);
  text-decoration: none;
}

.nav-link:focus-visible {
  border-color: var(--line);
  text-decoration: none;
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.nav-link[aria-current="page"] {
  border-color: var(--fg);
  background: rgba(255,255,255,0.12);
}

.btn {
  border: 1.8px solid rgba(255,255,255,0.28);
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease, color 0.3s ease;
  text-decoration: none;
  z-index: 0;
  backdrop-filter: blur(2px);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.primary {
  border-color: rgba(138,123,255,0.6);
  background: radial-gradient(circle at 22% 28%, rgba(255,255,255,0.2), transparent 60%),
    linear-gradient(135deg, rgba(150,138,255,0.92), rgba(102,90,255,0.88));
  color: #0b0b16;
  box-shadow: 0 10px 24px rgba(64,56,140,0.45), 0 0 18px rgba(138,123,255,0.45);
}

.btn.primary::after {
  content: "";
  position: absolute;
  inset: -120% -20%;
  background: radial-gradient(circle, rgba(255,255,255,0.35) 0%, rgba(255,255,255,0) 60%);
  opacity: 0;
  transform: rotate(18deg);
  transition: opacity 0.45s ease;
  z-index: -1;
}

.btn.primary:hover {
  box-shadow: 0 14px 30px rgba(73,64,158,0.55), 0 0 22px rgba(138,123,255,0.6);
}

.btn.primary:hover::after {
  opacity: 0.85;
}

.btn:focus {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.lantern-btn {
  animation: lanternPulse 6s ease-out 1 both;
  animation-delay: 0.3s;
}
.nav-cta { display: inline-flex; align-items: center; }

/* Hero */
.has-background {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  z-index: 0;
}

.has-background::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  pointer-events: none;
  z-index: -2;
}

.has-background::after {
  content: "";
  position: absolute;
  inset: -40% -28%;
  background: radial-gradient(circle at 32% 28%, rgba(255,214,163,0.25), transparent 62%),
    radial-gradient(circle at 72% 70%, rgba(138,123,255,0.25), transparent 68%);
  opacity: 0.25;
  mix-blend-mode: screen;
  filter: blur(0.4px);
  pointer-events: none;
  z-index: -1;
}

.has-background.lantern-shimmer::after {
  opacity: 0.45;
  animation: shimmerDrift 24s ease-in-out infinite;
}

.bg-night-sky::before {
  background: radial-gradient(circle at 10% 20%, rgba(138,123,255,0.4), transparent 55%),
    radial-gradient(circle at 90% 10%, rgba(255,255,255,0.25), transparent 45%),
    rgba(0, 0, 0, 0.9);
}

.bg-aurora::before {
  background: radial-gradient(circle at 12% 18%, rgba(255, 111, 181, 0.35), transparent 55%),
    radial-gradient(circle at 78% 28%, rgba(123, 209, 255, 0.28), transparent 52%),
    linear-gradient(135deg, rgba(5, 5, 12, 0.96), rgba(12, 9, 32, 0.88));
}

.bg-inkwell::before {
  background: linear-gradient(160deg, rgba(12, 12, 18, 0.95), rgba(35, 29, 54, 0.72));
}

.bg-starlight::before {
  background: radial-gradient(circle at 24% 70%, rgba(255, 214, 111, 0.25), transparent 60%),
    radial-gradient(circle at 82% 18%, rgba(138, 123, 255, 0.32), transparent 60%),
    rgba(6, 6, 12, 0.92);
}

.bg-moonlit::before {
  background: radial-gradient(circle at 20% 15%, rgba(255,255,255,0.35), transparent 48%),
    linear-gradient(140deg, rgba(10, 10, 16, 0.92), rgba(26, 20, 44, 0.85));
}

.bg-embers::before {
  background: radial-gradient(circle at 20% 80%, rgba(255, 102, 0, 0.28), transparent 45%),
    radial-gradient(circle at 70% 30%, rgba(255, 0, 153, 0.25), transparent 55%),
    rgba(0, 0, 0, 0.85);
}

.hero {
  text-align: center;
  padding: var(--space-3xl) 0 var(--space-2xl);
}
.hero.hero-split {
  display: grid;
  gap: var(--space-xl);
  align-items: center;
  justify-content: center;
  justify-items: center;
  grid-template-columns: repeat(auto-fit, minmax(260px, max-content));
}
.hero.hero-split .hero-copy {
  text-align: center;
  max-width: 540px;
  margin: 0 auto;
}
.hero.hero-split .cta-row { justify-content: center; }
.hero.hero-split .lede { margin: 0 auto; }
.hero.hero-split .hero-visual {
  justify-self: center;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 60px);
  margin: 0 0 var(--space-sm);
  letter-spacing: 0.3px;
  line-height: 1.1;
  font-weight: 600;
  text-transform: none;
  text-shadow: 0 12px 36px rgba(14,12,40,0.6), 0 0 22px rgba(138,123,255,0.35);
}
.hero-visual {
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 24px;
  padding: 24px;
  background: linear-gradient(140deg, rgba(18,16,32,0.72), rgba(6,6,16,0.6));
  box-shadow: 0 20px 36px rgba(0,0,0,0.55);
  max-width: 420px;
}
.hero-visual img { width: 100%; height: auto; display: block; }
.lede { font-size: clamp(16px, 2.2vw, 20px); color: var(--muted); margin: 0 auto 24px; max-width: 720px; }
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Newsletter */
.newsletter {
  display: grid;
  gap: 8px;
  padding: 16px 0 8px;
  text-align: center;
  justify-content: center;
  justify-items: center;
  align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(280px, max-content));
}
.newsletter > * { justify-self: center; }
.newsletter-copy { max-width: var(--max-text-width); margin: 0 auto; width: min(100%, var(--max-text-width)); display: flex; flex-direction: column; justify-content: center; }
.newsletter-embed,
.newsletter-form { width: min(100%, 420px); }
.newsletter-copy h2 { margin: 0 auto 4px; }
.newsletter-form {
  display: grid;
  gap: 8px;
  max-width: 460px;
  margin: 0 auto;
}
.newsletter-embed,
.contact-embed {
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  padding: 20px;
  background: linear-gradient(140deg, rgba(15,12,28,0.85), rgba(8,8,16,0.72));
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 24px 38px rgba(0,0,0,0.45);
}
.newsletter-embed iframe,
.contact-embed iframe { width: 100%; min-height: 420px; border: 0; }

.contact-testimonial {
  margin: 8px auto 12px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 16px;
  background: linear-gradient(140deg, rgba(16,12,32,0.88), rgba(6,6,16,0.7));
  box-shadow: 0 20px 36px rgba(0,0,0,0.45);
  max-width: 640px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.contact-testimonial::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 18% 12%, rgba(255,214,163,0.25), transparent 55%),
    radial-gradient(circle at 82% 88%, rgba(138,123,255,0.28), transparent 70%);
  opacity: 0.6;
  pointer-events: none;
}

.contact-testimonial blockquote {
  margin: 0 0 12px;
  font-size: clamp(18px, 2.5vw, 22px);
  line-height: 1.5;
  font-weight: 500;
  position: relative;
  z-index: 1;
  text-shadow: 0 0 18px rgba(138,123,255,0.3);
}

.contact-testimonial figcaption {
  color: var(--muted);
  font-size: 0.95rem;
}
.form-hint {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

/* Services */
.services { padding: var(--space-2xl) 0 var(--space-md); }
.section-header {
  display: grid;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  text-align: center;
}
.section-lede {
  margin: 0 auto;
  color: var(--muted);
  max-width: 640px;
  text-align: center;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: clamp(16px, 3vw, 24px);
  align-items: stretch;
  max-width: 1200px;
  margin: 0 auto;
}
.card {
  border: 1.6px solid rgba(255,255,255,0.24);
  border-radius: 16px;
  padding: var(--space-md) var(--space-sm);
  display: grid;
  gap: var(--space-sm);
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,0.03);
  transition: transform 0.25s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  isolation: isolate;
  height: 100%;
  align-content: start;
  text-align: center;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 10%, var(--glow-color, rgba(255,255,255,0.18)) 0%, transparent 65%),
    radial-gradient(circle at 90% 80%, rgba(255,255,255,0.12), transparent 68%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.card > * {
  position: relative;
  z-index: 1;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,0.4);
}

.card:hover::after {
  opacity: 0.6;
}

.card-icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  margin: 0 auto;
}

.card-icon img { max-width: 60%; height: auto; display: block; }
.card-emoji { font-size: 28px; }

.sigil-card { --glow-color: var(--glow-default); }
.sigil-card::after { opacity: 0.32; }
.sigil-card:hover::after { opacity: 0.65; }

.glow-parchment { --glow-color: var(--glow-parchment); }
.glow-storm { --glow-color: var(--glow-storm); }
.glow-starmap { --glow-color: var(--glow-starmap); }
.glow-ward { --glow-color: var(--glow-ward); }
.glow-aurora { --glow-color: var(--glow-aurora); }
.glow-ember { --glow-color: var(--glow-ember); }
.glow-ink { --glow-color: var(--glow-ink); }
.glow-starlight { --glow-color: var(--glow-starlight); }

.sigil-icon {
  --sigil-icon: none;
  background: linear-gradient(140deg, rgba(255,255,255,0.2), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.26);
  box-shadow: inset 0 0 10px rgba(255,255,255,0.12), 0 0 22px var(--glow-color, var(--glow-default));
}

.sigil-icon .sigil-shape {
  width: 100%;
  height: 100%;
  display: block;
  background: rgba(255,255,255,0.92);
  mask: var(--sigil-icon) center / 70% 70% no-repeat;
  -webkit-mask: var(--sigil-icon) center / 70% 70% no-repeat;
  filter: drop-shadow(0 0 12px var(--glow-color, var(--glow-default)));
}

.sigil-icon::after {
  content: "";
  position: absolute;
  inset: -32%;
  background: radial-gradient(circle at 32% 32%, rgba(255,255,255,0.35), transparent 65%),
    radial-gradient(circle at 68% 72%, var(--glow-color, var(--glow-default)), transparent 72%);
  opacity: 0.45;
  mix-blend-mode: screen;
  pointer-events: none;
  animation: runeDrift 14s ease-in-out infinite;
}

.sigil-icon:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.36);
  box-shadow: inset 0 0 12px rgba(255,255,255,0.18), 0 0 26px var(--glow-color, var(--glow-default));
}

.sigil-icon.sigil-scroll { --sigil-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2064%2064%22%3E%3Crect%20x%3D%2212%22%20y%3D%2216%22%20width%3D%2240%22%20height%3D%2234%22%20rx%3D%226%22/%3E%3Cpath%20d%3D%22M22%2012a10%2010%200%201120%200v4H22z%22/%3E%3Cpath%20d%3D%22M20%2028h24v4H20z%22/%3E%3Cpath%20d%3D%22M24%2038h18v4H24z%22/%3E%3C/svg%3E"); }
.sigil-icon.sigil-bolt { --sigil-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2064%2064%22%3E%3Cpath%20d%3D%22M30%206L14%2036h14l-6%2022%2024-32H32l6-20z%22/%3E%3C/svg%3E"); }
.sigil-icon.sigil-dice { --sigil-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2064%2064%22%3E%3Cpolygon%20points%3D%2232%206%2052%2018%2052%2046%2032%2058%2012%2046%2012%2018%22/%3E%3Cpolygon%20points%3D%2232%206%2032%2032%2012%2018%22/%3E%3Cpolygon%20points%3D%2232%206%2052%2018%2032%2032%22/%3E%3Cpolygon%20points%3D%2232%2032%2052%2046%2032%2058%22/%3E%3Cpolygon%20points%3D%2232%2032%2032%2058%2012%2046%22/%3E%3C/svg%3E"); }
.sigil-icon.sigil-shield { --sigil-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2064%2064%22%3E%3Cpath%20d%3D%22M32%206l18%208v18c0%2012-8.5%2023-18%2028-9.5-5-18-16-18-28V14l18-8z%22/%3E%3Cpath%20d%3D%22M32%2014l-10%204v12c0%208%204.6%2016.4%2010%2020%205.4-3.6%2010-12%2010-20V18l-10-4z%22/%3E%3C/svg%3E"); }
.sigil-icon.sigil-map { --sigil-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2064%2064%22%3E%3Cpath%20d%3D%22M10%2016l14-6%2016%206%2014-6v38l-14%206-16-6-14%206z%22/%3E%3Cpath%20d%3D%22M24%2010v38%22%20stroke%3D%22black%22%20stroke-width%3D%224%22%20stroke-linecap%3D%22round%22/%3E%3Cpath%20d%3D%22M40%2016v38%22%20stroke%3D%22black%22%20stroke-width%3D%224%22%20stroke-linecap%3D%22round%22/%3E%3Ccircle%20cx%3D%2232%22%20cy%3D%2230%22%20r%3D%226%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%224%22/%3E%3C/svg%3E"); }
.sigil-icon.sigil-lyre { --sigil-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2064%2064%22%3E%3Cpath%20d%3D%22M16%2010c2%208%207%2013%2012%2016v20c0%206%204%2010%2010%2010s10-4%2010-10V26c5-3%2010-8%2012-16h-6c-1%205-4%208-8%2010v-8c0-3%202-6%204-8h-6c-2%202-4%205-4%208v34c0%203-2%205-4%205s-4-2-4-5V18c0-3-2-6-4-8h-6c2%202%204%205%204%208v8c-4-2-7-5-8-10z%22/%3E%3C/svg%3E"); }
.card h3 { margin: 0 auto 6px; font-size: 22px; }
.card p { margin: 0 auto; color: var(--muted); }

/* Checklist */
.checklist { padding: var(--space-2xl) 0; border-top: 1px solid var(--line); margin-top: var(--space-md); text-align: center; }
.checklist h2 { margin: 0 auto var(--space-md); }
.checklist ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: clamp(14px, 2.5vw, 20px);
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  align-items: stretch;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
.checklist li {
  border: none;
  padding: 18px;
  position: relative;
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12);
  display: grid;
  gap: 12px;
  min-height: 76px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  height: 100%;
  align-content: start;
  justify-items: center;
}
.sigil-check { --glow-color: var(--glow-default); }
.checklist li::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 18% 24%, var(--glow-color, rgba(255,255,255,0.16)), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}
.checklist li:hover {
  transform: translateY(-3px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.24), 0 0 26px var(--glow-color, var(--glow-default));
}
.checklist li:hover::after {
  opacity: 0.55;
}
.checklist li > * {
  position: relative;
  z-index: 1;
}
.check-sigil {
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 40% 30%, rgba(255,255,255,0.4), transparent 65%),
    radial-gradient(circle at 60% 70%, var(--glow-color, var(--glow-default)), transparent 75%);
  box-shadow: 0 0 20px var(--glow-color, var(--glow-default));
  overflow: hidden;
}
.check-sigil::before {
  content: "";
  width: 16px;
  height: 16px;
  background: rgba(255,255,255,0.95);
  mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2032%2032%22%20stroke-width%3D%224%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20fill%3D%22none%22%20stroke%3D%22black%22%3E%3Cpath%20d%3D%22M4%2017l8%208%2016-18%22/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2032%2032%22%20stroke-width%3D%224%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20fill%3D%22none%22%20stroke%3D%22black%22%3E%3Cpath%20d%3D%22M4%2017l8%208%2016-18%22/%3E%3C/svg%3E") center / contain no-repeat;
}
.check-copy { display: grid; gap: 6px; align-content: start; text-align: center; }
.check-title { font-weight: 600; letter-spacing: 0.3px; }
.check-whisper { color: rgba(255,255,255,0.72); font-size: 0.95rem; line-height: 1.5; }

/* Differentiators */
.differentiators { padding: var(--space-2xl) 0 var(--space-md); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: var(--space-lg) 0; text-align: center; }
.differentiators-grid {
  display: grid;
  gap: clamp(16px, 3vw, 24px);
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  align-items: stretch;
  justify-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.differentiator {
  border: 1.6px solid rgba(255,255,255,0.22);
  border-radius: 16px;
  padding: var(--space-md) var(--space-sm);
  display: grid;
  gap: var(--space-sm);
  background: rgba(255,255,255,0.02);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  isolation: isolate;
  height: 100%;
  align-content: start;
  text-align: center;
  width: min(100%, 320px);
}

.differentiator::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% 10%, var(--glow-color, rgba(255,255,255,0.14)), transparent 62%),
    radial-gradient(circle at 82% 90%, rgba(255,255,255,0.1), transparent 68%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.differentiator > * {
  position: relative;
  z-index: 1;
}

.differentiator:hover {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,0.34);
}

.differentiator:hover::after {
  opacity: 0.55;
}

.differentiator-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto var(--space-xs);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.differentiators-grid h3 { margin: 0 auto 8px; }
.differentiators-grid p { margin: 0 auto; color: var(--muted); }

/* Contact */
.contact { padding: 16px 0 24px; text-align: center; }
.contact a { text-decoration: underline; }
.contact-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(280px, max-content));
  align-items: start;
  justify-content: center;
  justify-items: center;
}
.contact-grid > * { justify-self: center; width: min(100%, 500px); }
.contact-sidebar { width: min(100%, 420px); }
.contact-form {
  display: grid;
  gap: 8px;
}
.contact.embed .contact-grid { grid-template-columns: 1fr; }
.form-docs { font-size: 14px; color: var(--muted); margin: 0; }
.contact-form fieldset {
  border: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.form-grid {
  display: grid;
  gap: 8px;
}
.form-grid.single {
  grid-template-columns: 1fr;
}
.form-grid div { display: grid; gap: 8px; align-items: start; }
.contact-form label { font-weight: 600; }
.contact-sidebar {
  border: 1px solid rgba(255,255,255,0.16);
  padding: 12px;
  border-radius: 16px;
  background: linear-gradient(150deg, rgba(14,12,28,0.82), rgba(6,6,16,0.72));
  box-shadow: 0 20px 36px rgba(0,0,0,0.45);
  position: relative;
  overflow: hidden;
}

.contact-sidebar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255,214,163,0.22), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(138,123,255,0.24), transparent 70%);
  opacity: 0.55;
  pointer-events: none;
}
.contact-sidebar h3 { margin-top: 0; margin-bottom: 4px; }
.contact-sidebar p { color: var(--muted); margin-top: 0; }
.contact-cta { margin-top: 8px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 16px 0 26px; text-align: center; }
.site-footer .meta { display: flex; align-items: center; gap: 12px; color: var(--muted); justify-content: center; }

/* Blog Index */
.blog-index { padding: 72px 0 48px; display: grid; gap: 40px; text-align: center; }
.blog-header { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: center; }
.blog-index h1 { font-size: clamp(36px, 6vw, 48px); margin: 0 0 12px; }
.blog-index .lede { text-align: center; margin: 0 auto; max-width: 640px; }
.blog-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.tag-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0;
  margin: 0;
  justify-content: center;
}
.tag-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  color: var(--muted);
}
.tag-nav a:hover,
.tag-nav a:focus-visible {
  border-color: var(--fg);
  color: var(--fg);
  text-decoration: none;
}
.tag-count { opacity: 0.6; font-size: 14px; }
.posts-list { display: flex; flex-direction: column; gap: 32px; align-items: center; }
.post-preview { border-left: 2px solid var(--fg); padding: 12px 20px; text-align: center; max-width: 640px; }
.post-preview h2,
.post-preview h3 { margin: 0 0 6px; font-size: 24px; }
.post-preview h2 a,
.post-preview h3 a { text-decoration: none; }
.post-preview h2 a:hover,
.post-preview h3 a:hover { text-decoration: underline; }
.post-preview time { color: var(--muted); font-size: 14px; display: block; margin-bottom: 8px; }
.post-preview p { margin: 8px 0; color: var(--muted); }
.read-more { font-weight: 600; display: inline-block; margin-top: 6px; }
.no-posts { color: var(--muted); font-style: italic; }
.blog-subscribe {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px;
  display: grid;
  gap: 16px;
  align-items: center;
  background: rgba(255,255,255,0.03);
  text-align: center;
}
.blog-subscribe form { max-width: 360px; margin: 0 auto; }

/* Latest posts on homepage */
.latest-posts {
  padding: var(--space-2xl) 0 var(--space-md);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: var(--space-lg) 0;
  display: grid;
  gap: var(--space-md);
  text-align: center;
}
.latest-posts-header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.latest-posts-header h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 34px);
}
.posts-list.condensed { gap: 24px; }
.posts-list.condensed .post-preview {
  border-left-width: 1px;
  padding-left: 16px;
}
.posts-list.condensed .post-preview h3 { font-size: 22px; }

/* Blog Post */
.post { padding: 72px 0 48px; max-width: 800px; text-align: center; }
.post-header { margin-bottom: 32px; padding-bottom: 20px; border-bottom: 1px solid var(--line); text-align: center; }
.post-header h1 { font-size: clamp(32px, 5vw, 44px); margin: 0 0 12px; }
.post-excerpt { margin: 12px auto 0; font-size: clamp(18px, 3vw, 20px); color: var(--muted); max-width: 65ch; text-align: center; }
.post-meta { display: flex; flex-direction: column; gap: 12px; color: var(--muted); font-size: 14px; align-items: center; }
.post-meta-items { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: center; }
.post-meta-item { display: flex; align-items: center; gap: 6px; }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.post-hero { margin: 32px 0; }
.post-hero img { display: block; width: 100%; border-radius: 12px; background: var(--bg-soft); }
.post-hero figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); text-align: center; }
.tag { border: 1px solid var(--line); padding: 3px 10px; border-radius: 4px; font-size: 13px; }
.post-content { line-height: 1.8; text-align: center; }
.post-content h2 { margin: 32px 0 12px; font-size: 28px; }
.post-content h3 { margin: 24px 0 10px; font-size: 22px; }
.post-content p { margin: 16px auto; }
.post-content ul, .post-content ol { margin: 16px auto; padding-left: 24px; display: inline-block; text-align: left; }
.post-content li { margin: 8px 0; }
.post-content blockquote {
  border-left: 3px solid var(--fg);
  padding: 12px 0 12px 20px;
  margin: 24px auto;
  color: var(--muted);
  font-style: italic;
  display: inline-block;
  text-align: left;
}
.post-content code {
  background: rgba(255,255,255,0.08);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.9em;
}
.post-content pre {
  background: rgba(255,255,255,0.08);
  padding: 16px;
  border-radius: 6px;
  overflow-x: auto;
  margin: 20px 0;
}
.post-content pre code { background: none; padding: 0; }
.post-content a { text-decoration: underline; }
.post-cta {
  margin: 48px 0;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 18px;
  display: grid;
  gap: 16px;
  background: rgba(255,255,255,0.03);
  text-align: center;
}
.post-cta h2 { margin: 0; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.post-subscribe {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px;
  display: grid;
  gap: 16px;
  background: rgba(255,255,255,0.02);
  text-align: center;
}
.post-subscribe form { max-width: 360px; margin: 0 auto; }
.post-footer { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }

/* Tag index */
.tag-index { padding: 72px 0 48px; display: grid; gap: 24px; text-align: center; }
.tag-index h1 { font-size: clamp(32px, 5vw, 44px); margin-bottom: 8px; }
.tag-index .tag-summary { color: var(--muted); margin: 0 auto; max-width: 640px; }
.tag-index .posts-list { margin-top: 12px; }
.tag-index-empty { color: var(--muted); }
.tag-index-cta { margin-top: 12px; }

/* Responsive tweaks */
@media (max-width: 1200px) {
  .card-grid,
  .checklist ul,
  .differentiators-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  }
}

@media (max-width: 960px) {
  .hero { padding: clamp(48px, 8vw, 72px) 0; }
  .hero.hero-split {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  .hero.hero-split .hero-copy { text-align: center; }
  .hero.hero-split .hero-visual { max-width: min(420px, 80vw); }

  .services,
  .differentiators,
  .checklist {
    padding: clamp(32px, 6vw, 64px) 0 clamp(24px, 4vw, 48px);
  }
}

@media (max-width: 840px) {
  .card-grid,
  .differentiators-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  }
}

@keyframes shimmerDrift {
  0% { transform: translate(-6%, -4%) scale(1.02) rotate(0deg); }
  50% { transform: translate(4%, 6%) scale(1.05) rotate(2deg); }
  100% { transform: translate(-3%, 4%) scale(1.03) rotate(-2deg); }
}

@keyframes runeDrift {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(3deg) scale(1.05); }
  100% { transform: rotate(-3deg) scale(1); }
}

@keyframes lanternPulse {
  0% {
    box-shadow: 0 6px 16px rgba(64,56,140,0.35);
  }
  45% {
    box-shadow: 0 12px 32px rgba(255,214,163,0.55);
  }
  100% {
    box-shadow: 0 8px 22px rgba(102,90,255,0.45);
  }
}

@media (prefers-reduced-motion: reduce) {
  .has-background.lantern-shimmer::after,
  .sigil-icon::after,
  .lantern-btn {
    animation: none;
  }

  .card,
  .differentiator,
  .checklist li,
  .btn,
  .nav-link {
    transition: none;
  }

  .card:hover,
  .differentiator:hover,
  .checklist li:hover {
    transform: none;
  }
}

/* Statblock Builder */
.statblock-builder-page {
  min-height: calc(100vh - 180px);
  padding: clamp(2rem, 4vw, 3rem) 0;
}

.statblock-header {
  text-align: center;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.statblock-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.5rem;
}

.statblock-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3rem);
  margin: 0;
  text-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}

.statblock-lead {
  max-width: 720px;
  margin: 0.75rem auto 0;
  color: var(--muted);
}

.statblock-builder-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.3fr) minmax(280px, 1fr);
  gap: clamp(1.75rem, 3vw, 2.5rem);
  align-items: flex-start;
}

.statblock-main-column {
  min-width: 0;
}

.statblock-card {
  border-radius: 18px;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  background: radial-gradient(circle at 20% 0%, rgba(255, 214, 163, 0.18), transparent 65%),
    radial-gradient(circle at 80% 100%, rgba(255, 236, 179, 0.16), transparent 60%),
    linear-gradient(145deg, #2a2117, #1a130b);
  border: 1px solid rgba(255, 214, 163, 0.55);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.58);
  color: #fbeedd;
}

.statblock-card.statblock-theme-ink {
  background:
    radial-gradient(circle at 18% 0%, rgba(138, 123, 255, 0.32), transparent 65%),
    radial-gradient(circle at 82% 100%, rgba(123, 209, 255, 0.24), transparent 60%),
    linear-gradient(145deg, #151426, #05040c);
  border-color: rgba(138, 123, 255, 0.75);
  box-shadow: 0 18px 42px rgba(5, 4, 18, 0.9);
  color: #f7f6ff;
}

.statblock-card.statblock-theme-ember {
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 196, 160, 0.3), transparent 65%),
    radial-gradient(circle at 82% 100%, rgba(255, 120, 82, 0.26), transparent 60%),
    linear-gradient(145deg, #3b1f14, #150805);
  border-color: rgba(255, 156, 120, 0.85);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.85);
  color: #ffeadd;
}

.statblock-card.statblock-theme-starlight {
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 220, 0.35), transparent 65%),
    radial-gradient(circle at 82% 100%, rgba(168, 148, 255, 0.28), transparent 60%),
    linear-gradient(145deg, #181624, #05040c);
  border-color: rgba(255, 236, 179, 0.9);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.85);
  color: #fdfcf5;
}

.statblock-card-header {
  border-bottom: 2px solid rgba(80, 52, 30, 0.9);
  padding-bottom: 0.5rem;
  margin-bottom: 0.75rem;
}

.statblock-card.statblock-theme-ink .statblock-card-header,
.statblock-card.statblock-theme-ink .statblock-abilities,
.statblock-card.statblock-theme-ink .statblock-divider {
  border-color: rgba(138, 123, 255, 0.85);
}

.statblock-card.statblock-theme-ember .statblock-card-header,
.statblock-card.statblock-theme-ember .statblock-abilities,
.statblock-card.statblock-theme-ember .statblock-divider {
  border-color: rgba(255, 156, 120, 0.85);
}

.statblock-card.statblock-theme-starlight .statblock-card-header,
.statblock-card.statblock-theme-starlight .statblock-abilities,
.statblock-card.statblock-theme-starlight .statblock-divider {
  border-color: rgba(255, 236, 179, 0.9);
}

.spell-card .statblock-subtitle.spell-level-line {
  font-style: italic;
}

.spell-card .spell-top-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 1rem;
  row-gap: 0.4rem;
}

.spell-card .spell-top-cell .statblock-label {
  display: inline-block;
  margin-bottom: 0.1rem;
}

.spell-card .statblock-inline-input {
  min-height: 2.2rem;
}

.spell-card .spell-components-label,
.spell-card .spell-duration-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.spell-card .spell-components-toggles,
.spell-card .spell-duration-flags {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.statblock-card.statblock-theme-ink .statblock-inline-input,
.statblock-card.statblock-theme-ink .statblock-inline-textarea {
  border-color: rgba(138, 123, 255, 0.85);
}

.statblock-card.statblock-theme-ember .statblock-inline-input,
.statblock-card.statblock-theme-ember .statblock-inline-textarea {
  border-color: rgba(255, 156, 120, 0.85);
}

.statblock-card.statblock-theme-starlight .statblock-inline-input,
.statblock-card.statblock-theme-starlight .statblock-inline-textarea {
  border-color: rgba(255, 236, 179, 0.9);
}

.statblock-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.03em;
}

.statblock-subtitle {
  margin: 0.25rem 0 0;
  font-style: italic;
  font-size: 0.92rem;
}

.statblock-basics,
.statblock-details {
  margin-bottom: 0.75rem;
}

.statblock-line {
  margin: 0.15rem 0;
  font-size: 0.9rem;
}

.statblock-label {
  font-weight: 700;
}

.statblock-label::after {
  content: ' ';
}

.statblock-value {
  font-weight: 400;
}

.statblock-abilities {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.35rem;
  margin: 0.75rem 0;
  padding: 0.5rem 0.35rem;
  border-top: 1px solid rgba(80, 52, 30, 0.9);
  border-bottom: 1px solid rgba(80, 52, 30, 0.9);
}

.statblock-ability {
  text-align: center;
  font-size: 0.85rem;
}

.statblock-ability-toggle {
  display: block;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: inherit;
}

.statblock-ability-label {
  display: block;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}

.statblock-ability-value {
  display: block;
  margin-top: 0.1rem;
}

.statblock-ability-toggle.statblock-save-toggle--active .statblock-ability-label {
  text-decoration: underline;
}

.statblock-divider {
  border: 0;
  border-top: 1px solid rgba(80, 52, 30, 0.9);
  margin: 0.75rem 0;
}

.statblock-section {
  margin-top: 0.75rem;
}

.statblock-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}

.statblock-section-header h3 {
  margin: 0;
  font-size: 0.98rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.statblock-add-entry {
  border-radius: 999px;
  border: 1px solid rgba(255, 214, 163, 0.6);
  background: rgba(0, 0, 0, 0.26);
  color: #fbeedd;
  font-size: 0.76rem;
  padding: 0.25rem 0.65rem;
  cursor: pointer;
}

.statblock-add-entry:hover {
  background: rgba(0, 0, 0, 0.4);
}

.statblock-section-entries {
  display: grid;
  gap: 0.35rem;
}

.statblock-section-empty {
  margin: 0;
  font-size: 0.82rem;
  font-style: italic;
  opacity: 0.85;
}

.statblock-entry-row {
  border-radius: 8px;
  padding: 0.35rem 0.5rem;
  background: rgba(0, 0, 0, 0.16);
  border: 1px solid rgba(255, 214, 163, 0.25);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 3fr) auto;
  gap: 0.5rem;
  align-items: flex-start;
}

.statblock-entry-name {
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
}

.statblock-entry-body {
  font-size: 0.88rem;
  cursor: pointer;
}

.statblock-entry-remove {
  border-radius: 999px;
  border: 1px solid rgba(255, 214, 163, 0.4);
  background: transparent;
  color: #fbeedd;
  font-size: 0.75rem;
  padding: 0.1rem 0.5rem;
  cursor: pointer;
}

.statblock-entry-remove:hover {
  background: rgba(0, 0, 0, 0.4);
}

.statblock-inline-input,
.statblock-inline-textarea {
  width: 100%;
  font: inherit;
  color: inherit;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 6px;
  border: 1px solid rgba(255, 214, 163, 0.85);
  padding: 0.2rem 0.4rem;
}

.statblock-inline-textarea {
  resize: vertical;
}

.statblock-hp-formula {
  cursor: pointer;
}

.statblock-hp-editor {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.statblock-hp-editor button {
  border-radius: 999px;
  border: 1px solid rgba(255, 214, 163, 0.6);
  background: transparent;
  color: #fbeedd;
  font-size: 0.6rem;
  padding: 0.05rem 0.25rem;
  cursor: pointer;
}

.statblock-hp-dice-input {
  width: 5ch;
  font: inherit;
  font-size: 0.75em;
  color: inherit;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 4px;
  border: 1px solid rgba(255, 214, 163, 0.6);
  padding: 0.1rem 0.25rem;
}

.statblock-hp-dice-input::-webkit-outer-spin-button,
.statblock-hp-dice-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.statblock-hp-dice-input[type='number'] {
  -moz-appearance: textfield;
}

.statblock-hp-die-control {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0 0.2rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 214, 163, 0.6);
  background: rgba(0, 0, 0, 0.4);
}

.statblock-hp-die-value {
  min-width: 2ch;
  text-align: center;
  font-size: 0.75em;
}

.statblock-hp-die-stepper {
  display: inline-flex;
  flex-direction: column;
  gap: 0.05rem;
}

.statblock-hp-die-stepper button {
  font-size: 0.5rem;
  padding: 0;
  width: 0.7rem;
  height: 0.7rem;
  line-height: 0.7rem;
  border: none;
  background: transparent;
}

.statblock-sidebar {
  border-radius: 18px;
  padding: clamp(1rem, 2.5vw, 1.5rem);
  background: linear-gradient(150deg, rgba(10, 8, 16, 0.96), rgba(18, 12, 28, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.statblock-sidebar.statblock-theme-ink {
  background: linear-gradient(150deg, rgba(10, 10, 26, 0.98), rgba(18, 16, 40, 0.94));
  border-color: rgba(138, 123, 255, 0.6);
  box-shadow: 0 16px 40px rgba(5, 4, 18, 0.9);
}

.statblock-sidebar.statblock-theme-ember {
  background: linear-gradient(150deg, rgba(26, 10, 8, 0.98), rgba(34, 14, 8, 0.96));
  border-color: rgba(255, 156, 120, 0.6);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.9);
}

.statblock-sidebar.statblock-theme-starlight {
  background: linear-gradient(150deg, rgba(12, 10, 24, 0.98), rgba(22, 20, 40, 0.96));
  border-color: rgba(255, 236, 179, 0.6);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.95);
}

.statblock-sidebar-header h2 {
  margin: 0;
  font-size: 1.1rem;
}

.statblock-sidebar-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 0.2rem;
}

.statblock-sidebar-eyebrow {
  text-transform: uppercase;
}

.statblock-sidebar-eyebrow--plain {
  text-transform: none;
}

.statblock-sidebar-body {
  display: grid;
  gap: 0.6rem;
}

.statblock-sidebar-section {
  padding: 0.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.statblock-sidebar-section:first-of-type {
  border-top: none;
}

.statblock-sidebar-title {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
}

.statblock-sidebar-button {
  width: 100%;
  border-color: rgba(138, 123, 255, 0.7);
  background: linear-gradient(135deg, rgba(24, 22, 48, 0.98), rgba(12, 10, 28, 1));
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(6, 4, 20, 0.75);
}

.statblock-sidebar-button:hover {
  border-color: rgba(138, 123, 255, 0.95);
  background: linear-gradient(135deg, rgba(36, 32, 72, 0.98), rgba(18, 14, 40, 1));
  box-shadow: 0 14px 30px rgba(10, 6, 32, 0.85);
}

.statblock-theme-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.statblock-theme-swatch {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: radial-gradient(circle at 30% 10%, rgba(255, 255, 255, 0.25), transparent 55%);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.statblock-theme-swatch::after {
  content: '';
  position: absolute;
  inset: 0;
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.statblock-theme-swatch[aria-pressed='true'] {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85), 0 10px 24px rgba(0, 0, 0, 0.7);
}

.statblock-theme-swatch:hover::after {
  opacity: 0.4;
}

.statblock-theme-swatch--parchment {
  background:
    radial-gradient(circle at 15% 0%, rgba(255, 236, 179, 0.85), transparent 60%),
    radial-gradient(circle at 80% 100%, rgba(255, 214, 163, 0.7), transparent 60%),
    linear-gradient(145deg, #3a2b1c, #1b1209);
}

.statblock-theme-swatch--ink {
  background:
    radial-gradient(circle at 20% 0%, rgba(138, 123, 255, 0.6), transparent 60%),
    radial-gradient(circle at 85% 100%, rgba(123, 209, 255, 0.4), transparent 60%),
    linear-gradient(145deg, #151427, #05040c);
}

.statblock-theme-swatch--ember {
  background:
    radial-gradient(circle at 25% 0%, rgba(255, 196, 160, 0.8), transparent 60%),
    radial-gradient(circle at 80% 100%, rgba(255, 120, 82, 0.7), transparent 60%),
    linear-gradient(145deg, #3b1f14, #150805);
}

.statblock-theme-swatch--starlight {
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 220, 0.9), transparent 60%),
    radial-gradient(circle at 80% 100%, rgba(168, 148, 255, 0.6), transparent 60%),
    linear-gradient(145deg, #181624, #05040c);
}

.statblock-sidebar-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0.5rem 0 0;
}

.statblock-cr-row {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.statblock-cr-step {
  border-radius: 999px;
  border: 1px solid rgba(255, 214, 163, 0.6);
  background: transparent;
  color: #fbeedd;
  font-size: 0.8rem;
  line-height: 1;
  width: 1.4rem;
  height: 1.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.statblock-cr-value {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3rem;
}

.statblock-cr-xp {
  font-size: 0.85rem;
  opacity: 0.9;
}

.statblock-toggle-list {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.25rem;
}

.statblock-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.statblock-toggle input[type='checkbox'] {
  width: 14px;
  height: 14px;
}

.statblock-skill-list {
  margin-top: 0.6rem;
}

.statblock-skill-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.3);
  color: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

.statblock-skill-toggle:hover {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.5);
}

.statblock-skill-label {
  text-align: left;
}

.statblock-skill-badge {
  min-width: 42px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-size: 0.8rem;
  opacity: 0.9;
}

@media (max-width: 960px) {
  .statblock-builder-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .statblock-entry-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .site-header { z-index: 20; }
  .flock { flex-wrap: wrap; align-items: center; gap: 12px; }
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    top: calc(100% + var(--space-sm));
    right: 0;
    left: 0;
    padding: var(--space-sm);
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.94);
    backdrop-filter: blur(10px);
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.45);
    z-index: 15;
  }
  .nav.is-open { display: block; }
  .no-js .nav { display: block; position: static; padding: 0; border: 0; background: transparent; box-shadow: none; }
  .no-js .nav ul { align-items: flex-start; }
  .nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .nav-link,
  .nav-cta {
    justify-content: center;
    width: 100%;
  }
  .hero { text-align: center; padding: clamp(40px, 10vw, 64px) 0 clamp(32px, 8vw, 48px); }
  .hero .cta-row { justify-content: center; }
  .hero-visual { margin: 0 auto; }
  .newsletter { padding: 12px 0 0; }
  .contact { padding: 12px 0 16px; }
  .blog-header { flex-direction: column; align-items: center; }
  .site-footer .meta { flex-direction: column; align-items: center; gap: 8px; }

  .card-grid,
  .checklist ul,
  .differentiators-grid {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }
}

@media (min-width: 640px) {
  .newsletter {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: end;
  }
  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .form-grid.single {
    grid-template-columns: 1fr;
  }
  .blog-subscribe {
    grid-template-columns: 1fr auto;
  }
  .post-cta {
    grid-template-columns: 1fr auto;
  }
  .post-subscribe {
    grid-template-columns: 1fr auto;
  }
}
.grimoire-form {
  position: relative;
  display: grid;
  gap: inherit;
  padding: 26px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.14);
  background: linear-gradient(155deg, rgba(18,16,32,0.9), rgba(8,6,18,0.92));
  box-shadow: 0 20px 34px rgba(0,0,0,0.45);
  isolation: isolate;
  overflow: hidden;
}

.grimoire-form::before {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 18px;
  background: radial-gradient(circle at 18% -10%, rgba(255,214,163,0.28), transparent 55%),
    radial-gradient(circle at 82% 100%, rgba(138,123,255,0.25), transparent 65%);
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}

.grimoire-form::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(115deg, rgba(255,255,255,0.06) 0 2px, transparent 2px 5px);
  opacity: 0.06;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 0;
}

.grimoire-form > * {
  position: relative;
  z-index: 1;
}

.grimoire-form input,
.grimoire-form select,
.grimoire-form textarea {
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(14,14,28,0.85);
  color: var(--fg);
  box-shadow: inset 0 0 12px rgba(0,0,0,0.4);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.grimoire-form textarea { resize: vertical; }

.grimoire-form input:focus,
.grimoire-form select:focus,
.grimoire-form textarea:focus {
  outline: none;
  border-color: rgba(150,138,255,0.75);
  box-shadow: 0 0 0 2px rgba(138,123,255,0.25), inset 0 0 14px rgba(138,123,255,0.25);
  background: rgba(20,18,40,0.92);
}

.grimoire-form input::placeholder,
.grimoire-form textarea::placeholder {
  color: rgba(255,255,255,0.6);
}
