:root{
  --maroon:#840024;
  --bg:#0b0b0d;
  --panel:#111116;
  --panel2:#15151c;
  --text:#f4f4f6;
  --muted:#b9bac4;
  --line:rgba(255,255,255,.10);
  --shadow:0 12px 34px rgba(0,0,0,.45);
  --r:18px;
  --max:1160px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --sans: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

@media (prefers-color-scheme: light){
  :root{
    --bg:#fbfbfd;
    --panel:#ffffff;
    --panel2:#ffffff;
    --text:#0b0b0d;
    --muted:#3b3c43;
    --line:rgba(10,10,10,.12);
    --shadow:0 12px 34px rgba(10,10,10,.12);
  }
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0; font-family:var(--sans); color:var(--text); background:
    radial-gradient(1000px 600px at 12% -10%, rgba(132,0,36,.22), transparent 60%),
    radial-gradient(900px 500px at 90% 10%, rgba(132,0,36,.16), transparent 55%),
    radial-gradient(800px 500px at 30% 112%, rgba(132,0,36,.10), transparent 55%),
    var(--bg);
  line-height:1.45;
  -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale;
}
a{color:inherit;text-decoration:none}
.wrap{max-width:var(--max);margin:0 auto;padding:0 20px}
.mono{font-family:var(--mono)}
.small{font-size:12px;color:var(--muted)}
.muted{color:var(--muted)}

.topbar{
  position:sticky; top:0; z-index:40;
  backdrop-filter:saturate(140%) blur(10px);
  background: linear-gradient(to bottom, rgba(11,11,13,.90), rgba(11,11,13,.74));
  border-bottom:1px solid var(--line);
}
@media (prefers-color-scheme: light){
  .topbar{background: linear-gradient(to bottom, rgba(251,251,253,.94), rgba(251,251,253,.80));}
}

.nav{
  display:flex; align-items:center; justify-content:space-between;
  gap:14px; padding:14px 0;
}
.brand{display:flex;align-items:center;gap:12px;min-width:260px}
.sigil{
  width:38px;height:38px;border-radius:12px;
  background: radial-gradient(14px 14px at 30% 30%, rgba(255,255,255,.22), transparent 55%),
              linear-gradient(135deg, rgba(132,0,36,1), rgba(20,20,28,1));
  border:1px solid rgba(255,255,255,.16);
  box-shadow:0 10px 20px rgba(132,0,36,.18);
}
@media (prefers-color-scheme: light){
  .sigil{border:1px solid rgba(10,10,10,.10)}
}
.brand h1{margin:0;font-size:14px;font-weight:800;letter-spacing:.2px}
.brand p{margin:0;font-size:12px;color:var(--muted)}

.navlinks{display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end}
.pill{
  display:inline-flex;align-items:center;gap:8px;
  padding:9px 11px;border-radius:999px;
  border:1px solid var(--line);
  color:var(--muted);
  background: rgba(255,255,255,.02);
  transition:transform .12s ease, background .12s ease, color .12s ease, border-color .12s ease;
  user-select:none;
  font-size:13px;
}
.pill:hover{transform:translateY(-1px);color:var(--text);background:rgba(255,255,255,.04)}
.pill.active{
  color:var(--text);
  border-color: rgba(132,0,36,.55);
  background: rgba(132,0,36,.12);
}
.cta{
  display:inline-flex;align-items:center;justify-content:center;
  padding:10px 14px;border-radius:999px;font-weight:800;font-size:13px;
  border:1px solid rgba(132,0,36,.65);
  background: linear-gradient(180deg, rgba(132,0,36,.95), rgba(132,0,36,.78));
  box-shadow:0 12px 24px rgba(132,0,36,.18);
  transition:transform .12s ease, filter .12s ease;
  white-space:nowrap;
}
.cta:hover{transform:translateY(-1px);filter:saturate(115%)}
.ghost{background:transparent;border:1px solid var(--line);box-shadow:none;color:var(--text);font-weight:700}

main{padding:34px 0 64px}

/* Gutenberg alignment safety */
.wp-site-blocks{padding:0}
.wp-site-blocks > *{margin-block-start:0}
.wp-block-group{margin:0}
.wp-block-post-content{margin:0}

.card{
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.015));
  border:1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.pad{padding:22px}

.hero{
  display:grid; grid-template-columns: 1.2fr .8fr; gap:22px; align-items:stretch;
}
@media (max-width: 980px){ .hero{grid-template-columns:1fr} .brand{min-width:auto} }

.kicker{
  display:inline-flex;align-items:center;gap:10px;
  font-family:var(--mono);
  font-size:12px;
  padding:6px 10px;border-radius:999px;
  background: rgba(132,0,36,.12);
  border:1px solid rgba(132,0,36,.35);
}

.title{
  margin:14px 0 8px;
  font-size:40px; line-height:1.06; letter-spacing:-.6px; font-weight:900;
}
@media (max-width:520px){ .title{font-size:32px} }

.sub{margin:0;font-size:16px;color:var(--muted);max-width:64ch}

.actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}

.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:14px}
@media (max-width: 980px){ .grid3{grid-template-columns:1fr} }

.mini{
  padding:14px;border-radius:14px;border:1px solid var(--line);
  background: rgba(255,255,255,.02);
}
.mini h3{margin:0 0 6px;font-size:13px;letter-spacing:.2px}
.mini p{margin:0;color:var(--muted);font-size:13px}

.hr{height:1px;background:var(--line);margin:16px 0}

.section{margin-top:18px}
.section h2{margin:0 0 10px;font-size:22px;letter-spacing:-.2px}
.section p{margin:0;color:var(--muted)}

.two{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:14px}
@media (max-width: 980px){ .two{grid-template-columns:1fr} }

.panel{
  border:1px solid var(--line);
  background: rgba(255,255,255,.02);
  border-radius: var(--r);
  overflow:hidden;
}
.panel .pad{padding:18px}
.panel h3{margin:0 0 8px;font-size:14px}
.panel p,.panel li{color:var(--muted);font-size:13px}
ul{margin:10px 0 0 18px;padding:0}

pre{
  margin:12px 0 0;
  padding:14px;border-radius:14px;
  border:1px solid var(--line);
  background: rgba(0,0,0,.22);
  overflow:auto;
  font-size:12px;
  line-height:1.55;
}
@media (prefers-color-scheme: light){ pre{background: rgba(10,10,10,.04)} }

.btnrow{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}
button{font:inherit;cursor:pointer}
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  padding:10px 14px;border-radius:999px;font-weight:800;font-size:13px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.02);
  color: var(--text);
  transition:transform .12s ease, background .12s ease;
}
.btn:hover{transform:translateY(-1px); background: rgba(255,255,255,.04)}
.btn.primary{
  border:1px solid rgba(132,0,36,.65);
  background: linear-gradient(180deg, rgba(132,0,36,.95), rgba(132,0,36,.78));
  box-shadow:0 12px 24px rgba(132,0,36,.18);
}

.footer{
  margin-top:28px;padding-top:18px;border-top:1px solid var(--line);
  color:var(--muted);font-size:12px;
  display:flex;flex-wrap:wrap;gap:10px;justify-content:space-between;align-items:center;
}
.footer a{color:var(--muted);text-decoration:underline;text-decoration-color:rgba(132,0,36,.35)}
.footer a:hover{color:var(--text)}

.notice{
  border:1px solid rgba(132,0,36,.35);
  background: rgba(132,0,36,.10);
  padding:12px 14px;
  border-radius:14px;
  color: var(--text);
}

.toast{
  position:fixed;left:50%;bottom:18px;transform:translateX(-50%);
  max-width:min(720px, calc(100% - 24px));
  background: rgba(17,17,22,.92);
  border:1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 999px;
  padding:10px 14px;
  display:none;
  z-index:50;
  color: var(--text);
  font-size:13px;
  backdrop-filter: blur(10px);
}
@media (prefers-color-scheme: light){
  .toast{background: rgba(255,255,255,.92)}
}
