/* ============================================================
   HOMEPAGE REVAMP — WAVE #942 (live build of the approved concept)
   Homepage-only layer: this file is linked ONLY by index.html,
   and every rule is either scoped to body.home-revamp or uses
   cx- classes that exist only on the homepage, so nothing here
   can leak to other pages. It sits on top of styles.css + the
   #929 soul pass. Organizing idea: ARRIVAL — the homepage is the
   tavern itself: a threshold hero, the Keeper's Ledger for the
   live numbers, and Four Doors (Read / Play / Listen / Join).
   WAVE #943 (Nov 15, 2026): SIZE LAW pass — Brody: "large icon
   size and font size." Icons scaled up one clear step (hero CTA
   32→44px, nav Support 24→32px, door medallions 62→88px, ledger
   flourishes 104→130px, bullets .95→1.15rem, other tiles +~35%);
   every revamp-owned font under 1rem raised to at least 1rem and
   body copy stepped up. Sizes only — prose and layout unchanged.
   ============================================================ */


/* ---------- HERO: the threshold ---------- */
/* NOTE: styles.css carries `#hero > *{position:relative;z-index:1}`
   (specificity 1,0,0), so every hero-child rule below is written as
   `.home-revamp #hero > .x` (1,2,0) to win honestly. */
.home-revamp #hero{isolation:isolate;background:#060409}
.home-revamp #hero > .cx-hero-art{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;
  object-position:center 38%;z-index:0;opacity:.92}
.home-revamp #hero::after{content:'';position:absolute;inset:0;z-index:1;pointer-events:none;
  background:
    radial-gradient(900px 480px at 50% 30%, rgba(255,150,60,.10), transparent 65%),
    linear-gradient(180deg, rgba(6,4,9,.62) 0%, rgba(6,4,9,.34) 34%, rgba(6,4,9,.55) 68%, #060409 100%)}
.home-revamp #hero > #embers{position:absolute;inset:0}
.home-revamp #hero > .cx-hero-inner{position:relative;z-index:3;display:flex;flex-direction:column;align-items:center}
.home-revamp #hero > .scroll-hint{position:absolute;z-index:3}
.home-revamp .hero-tagline{color:#d9cdb2;max-width:660px;
  text-shadow:0 2px 14px rgba(0,0,0,.85)}
.home-revamp .hero-eyebrow{text-shadow:0 2px 10px rgba(0,0,0,.9)}
.home-revamp .hero-byline{text-shadow:0 2px 10px rgba(0,0,0,.9)}

/* ---------- the Keeper's Ledger (the live numbers, woven in) ---------- */
.cx-ledger-wrap{margin-top:.4rem;width:min(880px,94vw)}
.cx-ledger-cap{font-family:var(--ff-head);font-size:1rem;font-weight:700;
  letter-spacing:.22em;text-transform:uppercase;color:var(--gold-lt);
  text-shadow:0 2px 10px rgba(0,0,0,.9);margin-bottom:.7rem;text-align:center;
  display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:.35rem .6rem}
@media (min-width: 761px) {
  /* at ledger width the 1rem caption + two 130px flourishes cannot share
     one line: keep the ornaments flanking (flex:none) and let the caption
     text wrap inside its own column instead of orphaning a flourish */
  .cx-ledger-cap{flex-wrap:nowrap}
  .cx-ledger-cap .cx-flourish{flex:none}
}
.home-revamp .cx-ledger{
  max-width:none;width:100%;justify-content:space-between;gap:1.2rem;
  border:1px solid rgba(201,162,39,.45);border-radius:10px;
  padding:1.15rem 1.7rem 1.05rem;
  background:
    repeating-linear-gradient(180deg, transparent 0 30px, rgba(201,162,39,.055) 30px 31px),
    linear-gradient(168deg, rgba(30,21,10,.88), rgba(13,9,18,.92) 55%, rgba(20,12,6,.9));
  box-shadow:0 22px 50px rgba(0,0,0,.6), inset 0 1px 0 rgba(232,195,90,.14), inset 0 0 44px rgba(255,120,30,.05);
  backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
.home-revamp .cx-ledger .hstat{flex:1 1 120px}
.home-revamp .cx-ledger .hstat b{font-size:1.85rem}
.home-revamp .cx-ledger .hstat span{color:#a99e86;font-size:1rem}
@media (min-width: 761px) {
  .home-revamp .cx-ledger .hstat span{font-size:1rem;letter-spacing:.14em}
}
.cx-ledger-note{margin-top:.65rem;font-style:italic;font-size:1rem;color:#b6ab90;
  text-shadow:0 2px 8px rgba(0,0,0,.85)}

/* ---------- THE FOUR DOORS ---------- */
.cx-doors{display:grid;grid-template-columns:repeat(4,1fr);gap:1.25rem;align-items:stretch}
.cx-door{display:flex;flex-direction:column;overflow:hidden;
  background:linear-gradient(180deg,#171126 0%, #0d0817 78%);
  border:1px solid var(--line);border-radius:170px 170px 14px 14px;
  box-shadow:0 14px 34px rgba(0,0,0,.42);
  transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease}
.cx-door-art{display:block;height:196px;overflow:hidden;flex:none;
  border-bottom:1px solid rgba(201,162,39,.3)}
.cx-door-art img{width:100%;height:100%;object-fit:cover;
  transition:transform .5s ease, filter .5s ease}
.cx-door-body{display:flex;flex-direction:column;gap:.55rem;padding:1.25rem 1.3rem 1.5rem;flex:1}
.cx-door-verb{font-family:var(--ff-head);font-size:1rem;font-weight:700;
  letter-spacing:.4em;text-transform:uppercase;color:var(--ember)}
.cx-door-body h3{font-family:var(--ff-display);font-weight:700;font-size:1.32rem;
  color:var(--bone);line-height:1.15}
.cx-door-copy{font-size:1.12rem;line-height:1.6;color:var(--parch)}
.cx-door-inside{list-style:none;margin:.35rem 0 .8rem;display:grid;gap:.32rem}
.cx-door-inside li{font-size:1rem;color:var(--ash);padding-left:1.5rem;position:relative;line-height:1.45}
.cx-door-inside li::before{content:'';position:absolute;left:0;top:.15rem;width:1.15rem;height:1.15rem;
  background:url('/art/icons/flourish-dot.webp') center/cover no-repeat;border-radius:3px}
.cx-door-cta{margin-top:auto;width:100%}
.cx-door-alt{align-self:center;font-size:1rem;font-style:italic;color:var(--dim);
  text-decoration:none;border-bottom:1px dotted rgba(201,162,39,.45)}
.cx-door-alt:hover{color:var(--gold-lt)}
@media (prefers-reduced-motion: no-preference){
  .cx-door:hover{transform:translateY(-7px);border-color:rgba(232,195,90,.6);
    box-shadow:0 26px 52px rgba(0,0,0,.55), 0 0 0 1px rgba(232,195,90,.22), 0 0 38px rgba(232,160,60,.13)}
  .cx-door:hover .cx-door-art img{transform:scale(1.05);filter:brightness(1.1)}
}
@media (prefers-reduced-motion: reduce){
  .cx-door,.cx-door-art img{transition:none}
  .home-revamp .scroll-hint{animation:none}
}

/* ---------- Crossroads as a kept journal page ---------- */
.cx-cross-panel{max-width:860px;margin:0 auto;text-align:left}
.cx-cross-panel p{font-size:1.2rem;line-height:1.78;margin-bottom:1.1rem}
.cx-cross-panel p:last-child{margin-bottom:0}

/* ---------- Tavern Leaderboards: BRODY-RULED KEEPER (Nov 15, 2026) ----------
   The leaderboard was NOT moved into the Game Room after all — it stays
   in the hero, in its live position and prominence (after the numbers,
   before the scroll hint), exactly as on the live homepage. */
.home-revamp #hero > .home-boards{position:relative;z-index:3}



/* ---------- TOP TAB SEGMENTS: BRODY-RULED KEEPER (Nov 15, 2026) ----------
   The top tab/segment navigation is untouchable: its markup is the live
   markup (same links, order, labels) and this layer does not restyle it
   at any width. Only the Support link's heart glyph became the painted
   heart tile, per the icon law below. */

/* ---------- REAL-ART ICONS (Brody's law, Nov 15, 2026: no emoji icons) ----------
   Painted tiles in icons/ — dark stone / aged brass / ember / teal,
   heraldic emblems, no text. One set, sized consistently. */
.cx-ic{display:inline-block;width:35px;height:35px;object-fit:cover;border-radius:7px;
  vertical-align:-.35em;margin-right:.45em;box-shadow:0 2px 8px rgba(0,0,0,.45)}
/* buttons carry the art LARGE (44px — SIZE LAW #943, up from 32px) */
.btn .cx-ic{width:44px;height:44px;border-radius:8px;vertical-align:-.55em}
.nav-support .cx-ic{width:32px;height:32px;vertical-align:-.45em;margin-right:.35em}
.kg-board-title .cx-ic{width:43px;height:43px;border-radius:8px}
.scroll-hint .cx-ic{margin:0 0 0 .35em;width:35px;height:35px}
.cx-flourish{display:inline-block;width:130px;height:auto;vertical-align:middle;margin:0 .45em}
.cx-door-emblem{width:88px;height:88px;border-radius:50%;object-fit:cover;flex:none;
  border:1px solid rgba(201,162,39,.55);box-shadow:0 8px 20px rgba(0,0,0,.5)}

/* ---------- the merch shelf, out of the hero and onto a shelf ---------- */
.home-revamp .cx-merch .hm-pair{display:flex;gap:1rem;justify-content:center;
  flex-wrap:wrap;width:min(1060px,94vw);margin:0 auto}
.home-revamp .cx-merch .hero-merch{position:static;transform:none;width:auto;
  margin:0;flex:1 1 215px;max-width:250px}
.home-revamp .cx-merch .hm-card img{aspect-ratio:5/6}
.home-revamp .cx-merch .hero-merch-note{margin:0 auto;text-align:center}

/* ---------- responsive ---------- */
@media (max-width:1080px){
  .cx-doors{grid-template-columns:repeat(2,1fr)}
  .cx-door{border-radius:130px 130px 14px 14px}
}
@media (max-width:640px){
  .cx-doors{grid-template-columns:1fr}
  .cx-door{border-radius:110px 110px 14px 14px}
  .cx-door-art{height:170px}
  .home-revamp .cx-ledger{padding:1rem 1.1rem .9rem;gap:.9rem}
  .home-revamp .cx-ledger .hstat{flex:1 1 30%}
  .home-revamp .cx-ledger .hstat b{font-size:1.5rem}
  .cx-hero-art{object-position:center 30%}
}
