/* The Digital Areopagus — umbrella site */

:root {
  --bg:        #281b10;            /* walnut, not void */
  --bg-raised: #382817;            /* worn leather */
  --bg-inset:  #1e1409;
  --ink:       #efe5ce;            /* parchment */
  --ink-muted: #b9a88e;
  --brass:     #c9a84c;
  --brass-dim: rgba(201, 168, 76, 0.38);
  --maroon:    #96424a;            /* wine-maroon */
  --oxblood:   #a34d55;
  --hunter:    #3f5c48;            /* hunter green */
  --hunter-lt: #8fb49a;
  --border:    #55402a;
  --serif:     'Cormorant Garamond', Georgia, serif;
  --mono:      'IBM Plex Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(212,175,95,0.10), transparent),
    radial-gradient(ellipse 120% 90% at 50% 115%, rgba(24,15,7,0.5), transparent 70%),
    linear-gradient(rgba(40,27,16,0.62), rgba(40,27,16,0.62)),   /* walnut veil — keeps the shelves subliminal */
    url('/bookwall.svg') repeat,           /* ghost of the mansion library */
    var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.13rem;
  line-height: 1.62;
}

.mono { font-family: var(--mono); }
.serif-i { font-style: italic; }
.wide-only { display: none; }
@media (min-width: 640px) { .wide-only { display: inline; } }

/* Acropolis (hero) */
.acropolis {
  position: relative;
  text-align: center;
  padding: 3.5rem 1.25rem 3.5rem;
  border-bottom: 1px solid var(--border);
}
/* flanking Doric columns — faint brass line-art, the tribunal's porch */
.acropolis::before,
.acropolis::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 84px;
  height: 440px;
  opacity: 0.5;
  pointer-events: none;
  background: url('/column.svg') no-repeat center / contain;
  display: none;
}
.acropolis::before { left: calc(50% - 565px); }
.acropolis::after  { right: calc(50% - 565px); }
@media (min-width: 1150px) {
  .acropolis::before, .acropolis::after { display: block; }
}

/* --- Dark Academia banner frame --- */
.acropolis-frame {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 3.8rem 2.5rem 3.4rem;
  background:
    radial-gradient(ellipse 90% 70% at 50% 0%, rgba(212,175,95,0.10), transparent 65%),
    linear-gradient(180deg, #4a252b, #391c21);   /* as below, so above — matches the Summons maroon */
  border: 1.5px solid var(--brass-dim);
  border-radius: 3px;
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.5),
    0 18px 60px rgba(0,0,0,0.55),
    inset 0 0 90px rgba(201,168,76,0.04);
}
/* inner gilt rule — the second line of the double frame */
.acropolis-frame::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(201,168,76,0.30);
  border-radius: 2px;
  pointer-events: none;
}
/* corner flourishes seated on the inner rule */
.frame-corner {
  position: absolute;
  z-index: 2;
  color: var(--brass);
  font-size: 1.05rem;
  line-height: 1;
  opacity: 0.85;
  text-shadow: 0 0 10px rgba(201,168,76,0.4);
}
.frame-corner.tl { top: 4px;  left: 4px; }
.frame-corner.tr { top: 4px;  right: 4px; }
.frame-corner.bl { bottom: 4px; left: 4px; }
.frame-corner.br { bottom: 4px; right: 4px; }

.acropolis-crest {
  display: block;
  margin: 0 auto 1.1rem;
  width: 112px;
  height: 112px;
  filter: drop-shadow(0 0 18px rgba(228,200,131,0.45));
}

/* gilt divider with a centered diamond, between title and creed */
.acropolis-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  margin: 1.3rem auto 1.2rem;
  max-width: 360px;
}
.acropolis-rule::before,
.acropolis-rule::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, var(--brass-dim), transparent);
}
.acropolis-rule span { color: var(--brass); font-size: 0.8rem; opacity: 0.9; }

@media (max-width: 520px) {
  .acropolis-frame { padding: 2.4rem 1.1rem 2rem; }
  .acropolis-crest { width: 64px; height: 64px; }
}
.kicker {
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 1.6rem;
}
.title {
  font-size: clamp(3rem, 10vw, 5.8rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0.005em;
}
.creed {
  margin-top: 1.4rem;
  color: var(--ink-muted);
  font-size: 1.2rem;
}
html { scroll-behavior: smooth; }
.challenge {
  margin-top: 2.4rem;
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--ink);
  border: 1px solid var(--brass-dim);
  border-radius: 4px;
  padding: 0.7rem 1.3rem;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.18s, color 0.18s;
}
.challenge:hover { border-color: var(--brass); color: var(--brass); }

/* Chambers */
.chambers {
  max-width: 1080px;
  margin: 0 auto;
  padding: 3.5rem 1.25rem 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.1rem;
}
.chamber {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: linear-gradient(180deg, #3c2b19, #332313);
  border: 1px solid var(--border);
  border-left: 4px solid var(--maroon);   /* book spine */
  border-radius: 10px 12px 12px 10px;
  padding: 1.6rem 1.5rem 1.4rem;
  text-decoration: none;
  color: var(--ink);
  box-shadow: 0 10px 26px rgba(20, 12, 5, 0.35), inset 0 1px 0 rgba(233, 223, 200, 0.05);
  transition: border-color 0.18s, transform 0.18s, box-shadow 0.18s;
}
.chambers .chamber:nth-child(3n+2) { border-left-color: var(--hunter); }
.chambers .chamber:nth-child(3n)   { border-left-color: var(--brass); }
.chamber--open:hover {
  border-color: var(--brass);
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(20, 12, 5, 0.5), inset 0 1px 0 rgba(233, 223, 200, 0.07);
}
.chamber--sealed { opacity: 0.62; }

.chamber-status {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--hunter-lt);
  margin-bottom: 0.9rem;
}
.chamber--sealed .chamber-status { color: var(--ink-muted); }
.chamber-name {
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 0.45rem;
}
.chamber-test {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  color: #cf8a90;                  /* lifted clay — was oxblood, too muddy on leather */
  margin-bottom: 0.8rem;
}
.chamber-name { color: var(--ink); }
.chamber--sealed .chamber-test { color: var(--ink-muted); }
.chamber-desc {
  font-size: 1.02rem;
  color: #c8b79c;                  /* lifted for readability on leather */
  margin-bottom: 1.1rem;
}
.chamber-enter {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--brass);
  margin-top: auto;                /* pin every card's CTA to a common baseline */
}
.chamber--sealed .chamber-enter { color: var(--ink-muted); font-style: italic; }

/* Doctrine — a parchment plaque pinned to the leather wall */
.doctrine {
  position: relative;
  max-width: 660px;
  margin: 3.5rem auto 0;
  padding: 2.4rem 2.2rem 2.2rem;
  text-align: center;
  background:
    radial-gradient(ellipse 130% 100% at 50% 0%, rgba(255,250,235,0.5), transparent 60%),
    radial-gradient(ellipse 140% 120% at 50% 60%, transparent 55%, rgba(150,116,60,0.28) 100%),
    linear-gradient(180deg, #efe4c9, #e4d5b2);
  border: 1px solid #b9a57c;
  border-radius: 4px;
  box-shadow:
    0 16px 44px rgba(18, 11, 5, 0.5),
    inset 0 0 70px rgba(140, 108, 56, 0.18);
  color: #33271a;
}
/* certificate rule — the plaque's piece of the house jewelry */
.doctrine::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(121, 50, 58, 0.28);
  border-radius: 2px;
  pointer-events: none;
}
.doctrine-head {
  font-size: 1.5rem;
  color: #79323a;                  /* maroon ink */
  margin-bottom: 1rem;
}
.doctrine p { color: #4c3c27; }
.doctrine-sig {
  margin-top: 1.2rem;
  font-size: 1.25rem;
  color: #2e2416 !important;
}

/* Summons (email capture) */
.summons {
  max-width: 560px;
  margin: 4rem auto;
  padding: 2.2rem 1.8rem;
  background: linear-gradient(180deg, #4a252b, #391c21);   /* maroon study */
  border: 1px solid rgba(201, 168, 76, 0.35);
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 12px 30px rgba(18, 11, 5, 0.4), inset 0 1px 0 rgba(233, 223, 200, 0.05);
}
.summons-head { font-size: 1.7rem; font-weight: 700; margin-bottom: 0.5rem; }
.summons-sub { color: var(--ink-muted); font-size: 1rem; margin-bottom: 1.3rem; }
.summons-form { display: flex; gap: 0.6rem; flex-wrap: wrap; justify-content: center; }
.summons-input {
  flex: 1 1 240px;
  background: #2b1418;
  border: 1px solid #6e3239;
  border-radius: 6px;
  color: var(--ink);
  padding: 0.85rem 1rem;
  font-size: 0.85rem;
}
.summons-input:focus { outline: none; border-color: var(--brass-dim); }
.summons-btn {
  background: var(--brass);
  color: var(--bg);
  border: none;
  border-radius: 6px;
  padding: 0.85rem 1.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}
.summons-btn:hover { background: #d9b95e; }

/* Stoa (footer) */
.stoa {
  border-top: 1px solid var(--border);
  padding: 1.8rem 1.5rem 2.6rem;
  text-align: center;
  color: var(--ink-muted);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
}
.stoa a { color: var(--brass); text-decoration: none; }
.stoa-fine { margin-top: 0.5rem; opacity: 0.75; }

/* Summons waitlist — honeypot + status feedback */
.summons-hp { position:absolute; left:-9999px; width:1px; height:1px; opacity:0; pointer-events:none; }
.summons-status { min-height:1.2em; margin:.7em 0 0; font-size:.82rem; letter-spacing:.04em; opacity:.85; }
.summons-status.summons-ok  { color:#7ad19a; }
.summons-status.summons-err { color:#e6896f; }

/* The hidden attribute must win. A class carrying its own `display` (.site-main is
   `display:grid`) silently defeats the UA `[hidden]{display:none}` rule, which is how
   the Arena and Comebacks landing pages shipped ~950px of an inert practice panel
   below the match view, tier cards and all (beta audit 2026-10-21). */
[hidden] { display: none !important; }
