/* The Ordeals — shared styles */
:root {
  --bg: #0c0f14;
  --panel: #121722;
  --text: #e6ecf2;
  --muted: #9fb0c3;
  --accent: #f2c350; /* gold-ish */
  --accent-2: #5cc8ff; /* cyan */
  --link: #ffd66b;
  --maxw: 1100px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: radial-gradient(1200px 800px at 80% -20%, #1b2435 0, transparent 60%), var(--bg);
  color: var(--text);
  line-height: 1.65;
}

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

header.site-header {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(8px);
  background: color-mix(in srgb, var(--bg), transparent 40%);
  border-bottom: 1px solid #1e2634;
}
.nav { display:flex; align-items:center; justify-content:space-between; gap:1rem; max-width: var(--maxw); margin: 0 auto; padding: .8rem 1rem; }
.nav a.logo { font-weight: 800; letter-spacing: .5px; color: var(--text); }
.nav .links { display:flex; gap: 1rem; flex-wrap: wrap; }
.banner {
  background: linear-gradient(90deg, #ffd66b, #ffa24d);
  color: #1c1300; font-weight: 700; text-align: center;
  padding: .6rem 1rem; font-size: .95rem;
}
.banner a { color: #1c1300; text-decoration: underline; }

main { max-width: var(--maxw); margin: 0 auto; padding: 1.2rem; }

.hero { display:grid; grid-template-columns: 1fr; gap: 2rem; align-items: center; margin: 2rem 0; }
@media (min-width: 900px) { .hero { grid-template-columns: 1.1fr .9fr; } }
.hero h1 { font-size: clamp(2rem, 4vw, 3.2rem); margin: .2rem 0 .4rem; letter-spacing: .5px; }
.hero .deck { color: var(--muted); font-size: 1.05rem; }
.hero-cta { display:flex; flex-wrap: wrap; gap:.8rem; margin-top: 1rem; }
.btn {
  display:inline-flex; align-items:center; gap:.5rem;
  padding:.8rem 1.1rem; border-radius: 10px; border: 1px solid #2a3448; background: #172033;
  color: var(--text); font-weight: 700; letter-spacing:.2px;
}
.btn.primary { background: linear-gradient(180deg, #fcdc8f, #f2c350); color:#201400; border:none; }
.btn.primary:hover { filter: brightness(0.95); }
.btn.ghost { background: transparent; border-color:#2c364a; }
.btn.ghost:hover { background:#131a28; }

.three-wrap { aspect-ratio: 3/4; background:#0b0f16; border: 1px solid #1e2634; border-radius: 12px; position: relative; }
.three-wrap canvas { position:absolute; inset:0; width:100%!important; height:100%!important; display:block; }
.caption { color: var(--muted); font-size:.9rem; margin-top:.4rem; }

.grid { display:grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); }
.card { background: var(--panel); border:1px solid #1e2634; padding: 1rem; border-radius: 12px; }
.card h3 { margin-top:.2rem; }

.section { margin: 3rem 0; }
.section h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: .6rem; }
.divider { width:100%; height: 16px; background: url(assets/section-divider.svg) center/contain no-repeat; margin: 1.2rem 0 1.6rem; opacity:.8; }

footer { color: var(--muted); border-top: 1px solid #1e2634; margin-top: 3rem; }
footer .inner { max-width: var(--maxw); margin: 0 auto; padding: 1.2rem; }

.reading { max-width: 780px; margin: 0 auto; font-size: 1.05rem; }
.reading h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.reading .chapter-meta { color: var(--muted); margin-bottom: .6rem; }
.reading p { text-wrap: pretty; }
.reading .sectionline { height: 18px; background: url(assets/section-divider.svg) center/contain no-repeat; margin: 1.2rem 0; opacity:.85; }

/* Utilities */
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.center { text-align:center; }
