/*!*************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!./app/globals.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************/
:root {
  --bg: #0b0a10;
  --bg-2: #13111c;
  --panel: #16141f;
  --ink: #ece6d6;
  --ink-dim: #a39c8c;
  --gold: #c9a227;
  --ember: #c4513a;
  --indigo: #6b5b9a;
  --rule: #2a2636;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); }
body { font-family: var(--serif); line-height: 1.6; -webkit-font-smoothing: antialiased; }

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

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---- top bar ---- */
.topbar { border-bottom: 1px solid var(--rule); background: rgba(11,10,16,0.9); position: -webkit-sticky; position: sticky; top: 0; z-index: 10; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; }
.brand { font-family: var(--serif); letter-spacing: 0.04em; font-size: 1.15rem; color: var(--ink); }
.brand .mark { color: var(--gold); }
.nav a { color: var(--ink-dim); margin-left: 18px; font-family: var(--sans); font-size: 0.9rem; }
.nav a:hover { color: var(--ink); text-decoration: none; }

/* ---- hero ---- */
.hero { padding: 64px 0 40px; border-bottom: 1px solid var(--rule); }
.hero h1 { font-size: 2.6rem; line-height: 1.12; margin: 0 0 18px; font-weight: 500; letter-spacing: -0.01em; }
.hero h1 .gold { color: var(--gold); }
.hero .lede { font-size: 1.15rem; color: var(--ink-dim); max-width: 640px; }
.hero .open-label { margin-top: 22px; font-style: italic; color: var(--ink-dim); border-left: 2px solid var(--gold); padding-left: 14px; max-width: 620px; }

.cta-row { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.btn { display: inline-block; font-family: var(--sans); font-size: 0.98rem; padding: 12px 22px; border-radius: 4px; border: 1px solid var(--gold); color: var(--ink); background: transparent; cursor: pointer; transition: background .15s, color .15s; }
.btn.primary { background: var(--gold); color: #1a1408; border-color: var(--gold); }
.btn.primary:hover { background: #d8b446; text-decoration: none; }
.btn.ghost:hover { background: rgba(201,162,39,0.12); text-decoration: none; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ---- section ---- */
section { padding: 56px 0; border-bottom: 1px solid var(--rule); }
h2.section-title { font-size: 1.5rem; font-weight: 500; margin: 0 0 6px; }
.section-sub { color: var(--ink-dim); margin: 0 0 28px; font-family: var(--sans); font-size: 0.92rem; }

/* ---- gallery ---- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); grid-gap: 18px; gap: 18px; }
.card { background: var(--panel); border: 1px solid var(--rule); border-radius: 6px; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.card .sigil { width: 72px; height: 72px; border-radius: 4px; background: #0c0a14; border: 1px solid var(--rule); }
.card .who { display: flex; align-items: center; gap: 12px; }
.card .who .meta { font-family: var(--sans); font-size: 0.82rem; color: var(--ink-dim); }
.card .who .name { color: var(--ink); font-size: 0.98rem; }
.card .confession { font-style: italic; color: var(--ink); font-size: 0.98rem; }
.card .blessed-tag { font-family: var(--sans); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }

/* ---- forms ---- */
.form-card { max-width: 560px; background: var(--panel); border: 1px solid var(--rule); border-radius: 6px; padding: 28px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--sans); font-size: 0.85rem; color: var(--ink-dim); margin-bottom: 6px; }
.field input, .field textarea, .field select { width: 100%; background: var(--bg-2); border: 1px solid var(--rule); color: var(--ink); border-radius: 4px; padding: 10px 12px; font-family: var(--serif); font-size: 1rem; }
.field textarea { min-height: 120px; resize: vertical; }
.field .hint { font-family: var(--sans); font-size: 0.78rem; color: var(--ink-dim); margin-top: 6px; }
.err { color: var(--ember); font-family: var(--sans); font-size: 0.88rem; margin-top: 10px; }
.note { font-family: var(--sans); font-size: 0.82rem; color: var(--ink-dim); }

/* ---- rite ---- */
.rite-prompt { font-style: italic; color: var(--ink); border-left: 2px solid var(--gold); padding-left: 14px; margin: 16px 0; }
.artifact { background: var(--panel); border: 1px solid var(--rule); border-radius: 6px; padding: 26px; margin-top: 20px; }
.artifact .sigil-big { width: 200px; height: 200px; border-radius: 6px; border: 1px solid var(--rule); background: #0c0a14; }
.blessing { font-style: italic; color: var(--ink); margin: 18px 0; font-size: 1.08rem; }
pre.mark { background: var(--bg-2); border: 1px solid var(--rule); border-radius: 4px; padding: 14px; overflow-x: auto; font-size: 0.78rem; color: var(--ink-dim); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

/* ---- footer ---- */
footer { padding: 36px 0 48px; color: var(--ink-dim); font-family: var(--sans); font-size: 0.82rem; }
footer .open-label { color: var(--ink-dim); font-style: italic; margin-bottom: 8px; }
footer .grid { display: flex; gap: 28px; flex-wrap: wrap; }
footer .grid div { max-width: 320px; }

.pill { display: inline-block; font-family: var(--sans); font-size: 0.72rem; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--rule); color: var(--ink-dim); margin-left: 8px; }
.pill.dev { color: var(--ember); border-color: var(--ember); }
.pill.live { color: var(--gold); border-color: var(--gold); }

.muted { color: var(--ink-dim); }
.center { text-align: center; }

/* ---- soul / canon ---- */
.eyebrow { font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.articles { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); grid-gap: 18px; gap: 18px; }
.article { background: var(--panel); border: 1px solid var(--rule); border-left: 2px solid var(--gold); border-radius: 4px; padding: 18px 20px; }
.article-head { font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.05em; color: var(--gold); margin-bottom: 8px; text-transform: uppercase; }
.article-head .roman { font-feature-settings: "smcp"; font-variant: small-caps; letter-spacing: 0.1em; }
.article-text { font-family: var(--serif); font-size: 1rem; color: var(--ink); line-height: 1.65; }
.canon-banner { font-style: italic; color: var(--ink-dim); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 14px 0; margin: 24px 0; text-align: center; }

/* ---- sacred atmosphere ---- */
.sacred-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.sacred-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.9; }
.sacred-geometry { position: absolute; left: 50%; top: 50%; width: min(120vw, 1100px); height: min(120vw, 1100px); transform: translate(-50%, -50%); opacity: 0.22; }
.sacred-geometry-fol { opacity: 0.16; animation: breathe 11s ease-in-out infinite; }
.sacred-geometry:not(.sacred-geometry-fol) { animation: spin-slow 180s linear infinite; width: min(95vw, 860px); height: min(95vw, 860px); opacity: 0.1; }
.sacred-geometry-fol { animation: breathe 11s ease-in-out infinite, spin-rev 240s linear infinite; }
.sacred-vignette { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 42%, transparent 0%, transparent 38%, rgba(11,10,16,0.55) 72%, rgba(11,10,16,0.92) 100%); }

@keyframes spin-slow { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes spin-rev { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(-360deg); } }
@keyframes breathe { 0%,100% { opacity: 0.12; } 50% { opacity: 0.26; } }
@keyframes bloom { from { transform: scale(0.6); opacity: 0; } to { transform: scale(1); opacity: 0.5; } }
@keyframes ember-pulse { 0%,100% { opacity: 0.5; } 50% { opacity: 0.9; } }

/* hero must sit above the sacred layer */
.hero { position: relative; overflow: hidden; }
.hero .wrap { position: relative; z-index: 1; }
.hero h1, .hero .lede, .hero .open-label, .hero .cta-row { position: relative; z-index: 1; }

/* rite contemplation seed */
.rite-seed-wrap { display: flex; justify-content: center; margin: 10px 0 18px; }
.rite-seed-wrap svg { width: 90px; height: 90px; opacity: 0.55; animation: bloom 6s ease-in-out infinite alternate; transform-origin: center; }
.rite-seed-wrap svg circle { stroke: var(--gold); }

/* article divider: a blooming Seed of Life */
.seed-divider { display: flex; justify-content: center; margin: 26px 0; }
.seed-divider svg { width: 64px; height: 64px; opacity: 0.5; animation: bloom 7s ease-in-out infinite alternate; }
.seed-divider svg circle { stroke: var(--gold); }

/* gallery sigil stirs on hover */
.card .sigil { transition: transform 1.2s ease; }
.card:hover .sigil { transform: rotate(18deg) scale(1.06); }

/* a slow ember glow on blessed tags */
.blessed-tag { animation: ember-pulse 6s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  .sacred-geometry, .sacred-geometry-fol, .seed-divider svg, .blessed-tag, .card .sigil { animation: none !important; }
  .sacred-canvas { opacity: 0.5; }
}

/* ---- field ---- */
.field-result { background: var(--panel); border: 1px solid var(--rule); border-radius: 6px; padding: 16px 18px; margin-bottom: 12px; }
.field-result .score { font-family: var(--sans); font-size: 0.72rem; color: var(--ink-dim); float: right; }
.field-result .who { font-family: var(--sans); font-size: 0.8rem; color: var(--gold); margin-bottom: 6px; }
.field-result .text { font-style: italic; color: var(--ink); }
.gate { background: var(--panel); border: 1px solid var(--rule); border-radius: 6px; padding: 26px; max-width: 560px; }
.gate p { color: var(--ink-dim); }

