/* Mailuminati: shared stylesheet */
:root {
  --bg: #0b0a08;
  --bg-2: #13110d;
  --panel: #16140f;
  --edge: #2c261a;
  --edge-2: #3d3524;
  --fg: #e9dcb8;
  --fg-2: #cbbd97;
  --fg-3: #bcae88;
  --muted: #a89870;
  --faint: #6d6450;
  --gold: #f0c674;
  --gold-deep: #c9973f;
  --ok: #9fc27a;
  --warn: #e0b34a;
  --bad: #d06a55;
  --serif: 'EB Garamond', Georgia, serif;
  --display: 'Cinzel', 'Trajan Pro', serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(240,198,116,.10), transparent 60%), var(--bg);
  color: var(--fg);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
::selection { background: var(--gold); color: var(--bg); }
code { font-family: var(--mono); font-size: .85em; }
[hidden] { display: none !important; }

.wrap { max-width: 980px; margin: 0 auto; padding: 0 20px; }
.kicker {
  font-family: var(--mono); font-size: 12px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold-deep); margin-bottom: 14px;
}
h1 {
  font-family: var(--display); font-weight: 700; font-size: clamp(34px, 6vw, 58px);
  line-height: 1.08; margin: 0 0 18px; letter-spacing: .01em;
}
h1 em { font-style: normal; color: var(--gold); }
h2 { font-family: var(--display); font-size: clamp(26px, 4vw, 36px); margin: 0; font-weight: 700; }

/* ---------- buttons & inputs ---------- */
.btn {
  display: inline-block; font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: .08em;
  background: var(--gold); color: #1a1407; border: 0; border-radius: 8px; padding: 14px 22px;
  cursor: pointer; transition: background .2s, transform .1s; white-space: nowrap; text-align: center;
}
.btn:hover { background: #ffd98e; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .5; cursor: wait; }
.btn.ghost { background: transparent; color: var(--gold); border: 1px solid var(--gold-deep); }
.btn.ghost:hover { background: rgba(240,198,116,.08); }
.field {
  flex: 1; min-width: 0; background: #0c0b08; border: 1px solid var(--edge-2); color: var(--fg);
  font-family: var(--mono); font-size: 16px; padding: 14px 16px; border-radius: 8px; outline: none;
}
.field:focus { border-color: var(--gold-deep); box-shadow: 0 0 0 3px rgba(240,198,116,.12); }
.label { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.fine { font-size: 14px; color: var(--muted); margin: 12px 2px 0; font-style: italic; }

/* ---------- top bar & footer ---------- */
.topbar {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 0; font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: .04em;
}
.topbar .banner { color: var(--muted); }
.topbar .banner::before { content: "● "; color: var(--ok); animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.topbar nav a { margin-left: 18px; color: var(--muted); }
.topbar nav a:hover { color: var(--gold); }

.site-footer { margin-top: 90px; border-top: 1px solid var(--edge); padding: 28px 0 40px; font-size: 15px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; }
.site-footer nav a { margin-right: 18px; font-family: var(--display); font-size: 14px; }
.site-footer .smtp { font-family: var(--mono); font-size: 12px; color: #5f5745; }

/* ---------- hero ---------- */
.hero { text-align: center; padding: 8px 0 40px; }
.hero-art { display: block; width: 100%; max-width: 720px; height: auto; margin: 0 auto 8px; aspect-ratio: 3 / 2; mix-blend-mode: lighten; }
.hero .lede { max-width: 620px; margin: 0 auto; color: var(--fg-2); font-size: 21px; }

/* ---------- trial ---------- */
.trial {
  margin: 44px auto 0; max-width: 680px; text-align: left;
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--edge); border-radius: 14px; padding: 26px;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(240,198,116,.04) inset;
}
.row { display: flex; gap: 10px; margin-top: 10px; }

.console {
  margin-top: 22px; background: #070605; border: 1px solid var(--edge);
  border-radius: 10px; padding: 16px 18px; font-family: var(--mono); font-size: 13.5px; line-height: 1.75;
  color: #bfb08a; min-height: 120px; overflow-x: auto;
}
.console .l { white-space: pre; opacity: 0; animation: in .25s forwards; }
@keyframes in { to { opacity: 1; } }
.console .ok { color: var(--ok); }
.console .warn { color: var(--warn); }
.console .bad { color: var(--bad); }
.console .none, .console .dim { color: var(--faint); }

.verdict { margin-top: 22px; text-align: center; padding: 26px 18px 8px; border-top: 1px solid var(--edge); animation: in .5s forwards; }
.verdict .label { letter-spacing: .24em; }
.verdict .rank { font-family: var(--display); font-size: 32px; font-weight: 900; color: var(--gold); margin: 6px 0 10px; }
.verdict .rank.fallen { color: var(--bad); }
.verdict p { margin: 0 auto 18px; max-width: 520px; }
.petition { text-align: left; margin-top: 8px; }
.petition .row { margin-top: 8px; }
.petition-msg { font-family: var(--mono); font-size: 14px; white-space: pre-line; color: var(--gold); margin-top: 14px; }
.petition-msg.error { color: var(--bad); }

/* ---------- sections ---------- */
section { padding: 72px 0 8px; }
.sec-head { text-align: center; margin-bottom: 34px; }
.sec-head .kicker { margin-bottom: 8px; }
.sec-head p { color: var(--muted); margin: 8px auto 0; max-width: 560px; }
.center { text-align: center; margin-top: 26px; }

.manifesto { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.manifesto div { padding: 22px; border: 1px solid var(--edge); border-radius: 12px; background: var(--bg-2); }
.manifesto h3 { font-family: var(--display); font-size: 18px; margin: 0 0 6px; color: var(--gold); }
.manifesto p { margin: 0; font-size: 17px; color: var(--fg-3); }

/* hierarchy */
.ladder { list-style: none; padding: 0; margin: 0 auto; max-width: 720px; position: relative; }
.ladder::before { content: ""; position: absolute; left: 27px; top: 10px; bottom: 10px; width: 1px; background: linear-gradient(var(--gold-deep), var(--edge)); }
.ladder li { display: flex; gap: 18px; align-items: flex-start; padding: 12px 0; position: relative; }
.sigil {
  flex: 0 0 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg); border: 1px solid var(--edge-2); font-family: var(--display); color: var(--gold); font-size: 18px; z-index: 1;
}
.ladder li:first-child .sigil { border-color: var(--gold); box-shadow: 0 0 24px rgba(240,198,116,.25); }
.ladder h3 { font-family: var(--display); font-size: 19px; margin: 6px 0 2px; font-weight: 700; }
.ladder .req { font-family: var(--mono); font-size: 12.5px; color: var(--gold-deep); }
.ladder p { margin: 4px 0 0; color: var(--fg-3); font-size: 17px; }
.ladder li.fallen .sigil { color: var(--bad); border-style: dashed; }
.ladder li.fallen h3 { color: #b98a7f; }

/* precepts (home) */
.precept-of-day {
  max-width: 760px; margin: 0 auto 28px; text-align: center; padding: 34px 24px;
  border: 1px solid var(--edge); border-radius: 14px; background: var(--panel); position: relative;
}
.precept-of-day .num { font-family: var(--display); font-size: 64px; line-height: 1; color: rgba(240,198,116,.14); position: absolute; top: 12px; left: 20px; }
.precept-of-day blockquote { margin: 0; font-family: var(--display); font-size: clamp(22px, 3.4vw, 30px); font-weight: 700; color: var(--gold); }
.precept-of-day p { margin: 10px auto 0; max-width: 520px; color: var(--fg-2); }
.precept-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; max-width: 900px; margin: 0 auto; }
.precept-grid a {
  display: flex; gap: 12px; padding: 12px 14px; border: 1px solid var(--edge); border-radius: 10px;
  color: var(--fg); font-size: 16.5px; line-height: 1.35; transition: border-color .2s, background .2s;
}
.precept-grid a:hover { border-color: var(--gold-deep); background: rgba(240,198,116,.04); text-decoration: none; }
.precept-grid .n, .precepts .n { font-family: var(--mono); font-size: 12px; color: var(--gold-deep); padding-top: 3px; }

/* precepts (full code page) */
.code-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 24px 0 26px; }
.code-head h1 { font-size: clamp(30px, 5vw, 44px); margin: 0; }
.code-head p { margin: 4px 0 0; color: var(--muted); }
.langs { display: flex; gap: 6px; font-family: var(--mono); font-size: 13px; }
.langs a { padding: 6px 10px; border: 1px solid var(--edge); border-radius: 6px; color: var(--muted); text-transform: uppercase; }
.langs a[aria-current] { border-color: var(--gold-deep); color: var(--gold); }
.langs a:hover { text-decoration: none; border-color: var(--gold-deep); }
.precepts { list-style: none; padding: 0; margin: 0; }
.precepts > li {
  display: flex; gap: 14px; margin: 0 0 10px; padding: 16px 18px;
  border: 1px solid var(--edge); border-radius: 10px; background: rgba(240,198,116,.025); scroll-margin-top: 20px;
}
.precepts > li:target { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset, 0 0 30px rgba(240,198,116,.12); }
.precepts h3 { margin: 0; font-family: var(--display); font-size: 19px; line-height: 1.3; }
.precepts p { margin: 6px 0 0; color: var(--fg-3); font-size: 17px; }
.precepts .body { flex: 1; min-width: 0; }
.copy {
  flex: 0 0 auto; align-self: flex-start; display: inline-grid; place-items: center; height: 32px; width: 32px;
  border: 1px solid var(--edge); border-radius: 8px; background: var(--bg-2); color: var(--muted); cursor: pointer;
}
.copy:hover { border-color: var(--gold-deep); color: var(--gold); }
.copy svg { width: 15px; height: 15px; }
.updated { margin-top: 22px; font-family: var(--mono); font-size: 12px; color: var(--faint); }
.toast {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%) translateY(20px);
  background: var(--panel); border: 1px solid var(--edge-2); color: var(--fg); font-family: var(--mono); font-size: 13px;
  padding: 10px 14px; border-radius: 10px; opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- certificate ---------- */
.cert-page { display: grid; place-items: center; padding: 24px 16px 0; }
.certificate {
  position: relative; width: 100%; max-width: 820px; text-align: center; padding: 56px 48px 44px;
  background: radial-gradient(ellipse at 50% 0%, rgba(240,198,116,.08), transparent 60%), var(--panel);
  border: 1px solid var(--gold-deep); border-radius: 4px;
  box-shadow: 0 0 0 6px var(--panel), 0 0 0 7px var(--edge-2), 0 40px 90px -30px rgba(0,0,0,.9);
}
.certificate .emblem { width: 150px; height: 150px; margin: 0 auto 22px; border-radius: 50%; box-shadow: 0 0 0 1px var(--gold-deep), 0 0 40px rgba(240,198,116,.2); }
.certificate h1 { font-size: clamp(24px, 4.2vw, 36px); margin-bottom: 8px; }
.certificate .subtitle { font-style: italic; color: var(--muted); margin: 0 0 30px; }
.certificate .attests { font-family: var(--mono); font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.certificate .name { font-family: var(--display); font-size: clamp(30px, 5.4vw, 46px); font-weight: 700; color: var(--gold); margin: 10px 0 6px; }
.certificate .rank { font-family: var(--display); font-size: 20px; color: var(--fg); }
.certificate .meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 28px; margin: 30px 0 0; font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.certificate .meta b { color: var(--fg-2); font-weight: 500; }
.certificate .signature { margin-top: 34px; font-family: var(--display); font-size: 17px; color: var(--gold-deep); }
.certificate .disclaimer { margin: 30px auto 0; max-width: 600px; font-size: 14px; font-style: italic; line-height: 1.6; color: var(--faint); }
.cert-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 28px 0 0; }

/* ---------- bounce pages (404, invalid cert) ---------- */
.bounce { max-width: 720px; margin: 60px auto 0; }
.bounce pre {
  background: #070605; border: 1px solid var(--edge); border-radius: 10px; padding: 20px;
  font-family: var(--mono); font-size: 13.5px; line-height: 1.7; color: #bfb08a; white-space: pre-wrap; overflow-wrap: anywhere;
}
.bounce pre .bad { color: var(--bad); }

/* ---------- ascension (path to the next rank) ---------- */
.ascension { text-align: left; margin: 26px 0 6px; padding-top: 20px; border-top: 1px solid var(--edge); }
.ascension .label { display: block; margin: 0 0 10px; }
.ascension .label + .steps + .label { margin-top: 18px; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; }
.steps li { counter-increment: step; position: relative; padding: 0 0 12px 34px; font-size: 17px; color: var(--fg-2); }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%;
  border: 1px solid var(--gold-deep); color: var(--gold); font-family: var(--mono); font-size: 11px; display: grid; place-items: center;
}
.steps.counsel li::before { content: "!"; border-color: var(--warn); color: var(--warn); }
.steps li > span { display: block; overflow-wrap: anywhere; }
.precept-ref { display: inline-block; margin-top: 2px; font-family: var(--mono); font-size: 12px; color: var(--gold-deep); }
.apex { margin: 0; color: var(--fg-2); font-style: italic; }
.share-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 18px 0 8px; }
.share-row .btn { padding: 10px 16px; font-size: 13px; }

/* ---------- shared verdict page ---------- */
.verdict-page { max-width: 720px; margin: 24px auto 0; text-align: center; }
.judged-domain { font-family: var(--mono); font-size: clamp(20px, 4vw, 28px); color: var(--fg); margin: -4px 0 26px; overflow-wrap: anywhere; }
.verdict-card {
  background: linear-gradient(180deg, var(--panel), var(--bg-2)); border: 1px solid var(--edge); border-radius: 14px;
  padding: 32px 26px 20px; box-shadow: 0 30px 80px -30px rgba(0,0,0,.8);
}
.verdict-card .sigil { width: 64px; height: 64px; margin: 0 auto 12px; font-size: 22px; border-color: var(--gold); box-shadow: 0 0 24px rgba(240,198,116,.2); }
.verdict-card .sigil.fallen { color: var(--bad); border-color: var(--bad); border-style: dashed; box-shadow: none; }
.verdict-card .rank { font-family: var(--display); font-size: clamp(28px, 5vw, 38px); font-weight: 900; color: var(--gold); }
.verdict-card .rank.fallen { color: var(--bad); }
.verdict-text { margin: 8px auto 0; max-width: 520px; color: var(--fg-2); }
.console.static { text-align: left; margin-top: 24px; }
.console.static .l { opacity: 1; animation: none; }

@media (max-width: 720px) {
  body { font-size: 18px; }
  .topbar nav { display: none; }
  .row { flex-direction: column; }
  .manifesto { grid-template-columns: 1fr; }
  .certificate { padding: 40px 22px 32px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before { animation: none !important; transition: none !important; }
  .console .l { opacity: 1; }
}
@media print {
  body { background: #fff; color: #000; }
  .topbar, .site-footer, .cert-actions { display: none; }
  .certificate { box-shadow: none; }
}
