/* /assets/css/doors-opened.css */

@font-face{
  font-family: "Unica One";
  src: url("/assets/fonts/UnicaOne-Regular.woff2") format("woff2");
  font-display: swap;
}
@font-face{
  font-family: "IBM Plex Serif";
  src: url("/assets/fonts/IBMPlexSerif-Regular.woff2") format("woff2");
  font-display: swap;
}
@font-face{
  font-family:"Cinzel Decorative";
  font-style:normal;
  font-weight:700;
  src:url("/assets/fonts/cinzeldecorative-bold-webfont.woff2") format("woff2");
  font-display:swap;
}

:root{
  --bg: #000000;
  --bg2: #090616;

  --panel: rgba(10, 6, 18, .64);
  --panel2: rgba(8, 5, 14, .72);

  /* Purple steel, not Mardi Gras */
  --violet: #a56cff;
  --violet2: #7a3df0;
  --violet3: rgba(165,108,255,.24);

  --border: rgba(165,108,255,.30);
  --border2: rgba(165,108,255,.45);

  --text: rgba(255,255,255,.90);
  --muted: rgba(255,255,255,.66);
  --dim: rgba(255,255,255,.54);

  --shadow: 0 0 26px rgba(165,108,255,.12);
  --radius: 16px;
  --radius2: 18px;

  --focus: 0 0 0 3px rgba(165,108,255,.24);
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }

body{
  margin: 0;
  color: var(--text);
  background: var(--bg); /* solid, no gradient */
  font-family: "IBM Plex Serif", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

a{ color: inherit; }

.wrap{
  width: min(1180px, 92vw);
  margin: 44px auto 76px;
}

.hero{
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
}

/* Full-width hero wrapper */
.hero--full{
  width: 100%;
  margin: 0 0 22px;
  padding: 0;
}

.hero--full .hero-inner{
  padding-top: 18px; /* keeps kicker from kissing the top */
}

.kicker{
  font-family: "Unica One", system-ui, sans-serif;
  color: rgba(165,108,255,.92);
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: 12px;
}

h1{
  margin: 0;
  font-family: "Unica One", system-ui, sans-serif;
  font-size: clamp(30px, 3.8vw, 46px);
  font-weight: 400;
  letter-spacing: .06em;
}

.sub{
  margin: 0;
  color: var(--muted);
  max-width: 80ch;
  line-height: 1.6;
  font-size: 15px;
}

.grid{
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* 5 per row on wide screens */
  gap: 14px;
  margin-top: 18px;
}

@media (max-width: 1200px){
  .grid{ grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px){
  .grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px){
  .grid{ grid-template-columns: 1fr; }
}

.card{
  background: linear-gradient(180deg, var(--panel), var(--panel2));
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
  transition: transform .14s ease, border-color .14s ease, box-shadow .14s ease;
}

.card::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(135deg, rgba(165,108,255,.14), transparent 42%),
    radial-gradient(520px 220px at 30% 0%, rgba(165,108,255,.10), transparent 60%);
  pointer-events:none;
  opacity:.55;
}

.card:hover{
  transform: translateY(-2px);
  border-color: var(--border2);
  box-shadow: 0 0 34px rgba(165,108,255,.16);
}

.card-btn{
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.card-btn:focus-visible{
  outline: none;
  box-shadow: var(--focus);
  border-radius: var(--radius2);
}

.img{
  width: 100%;
  aspect-ratio: 3 / 2; /* shorter: about half the old height */
  background: rgba(255,255,255,.035);
  overflow: hidden;
  position: relative;
}

.img img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: contrast(1.03) saturate(1.00);
  transform: scale(1.02);
}

/* Darken bottom for text weight, subtle and “private” */
.img::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,.52) 100%);
  pointer-events:none;
}

.topbar{
  padding: 14px 14px 12px;
  display: grid;
  gap: 6px;
  position: relative;
}

.name{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.name h2{
  margin: 0;
  font-family: "Unica One", system-ui, sans-serif;
  font-size: 16px;
  letter-spacing: .10em;
  font-weight: 400;
}

.hint{
  color: rgba(165,108,255,.92);
  font-family: "Unica One", system-ui, sans-serif;
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tagline{
  margin: 0;
  color: var(--muted);
  line-height: 1.42;
  font-size: 12px;
}

.panel{
  display: none;
  padding: 0 14px 14px;
  border-top: 1px solid rgba(255,255,255,.08);
  position: relative;
}

.panel.open{ display: block; }

.bio{
  margin: 12px 0 12px;
  color: rgba(255,255,255,.80);
  line-height: 1.6;
  font-size: 14px;
}

.bio p {
  margin: 0 0 14px;
  padding: 0;
  text-indent: 0;
}

.actions{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 18px;
}

@media (max-width: 520px){
  .actions{
    flex-direction: column;
    align-items: stretch;
  }
}

.a{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(165,108,255,.32);
  color: rgba(255,255,255,.88);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: .02em;
  background: rgba(0,0,0,.22);
  transition: background .12s ease, border-color .12s ease, transform .12s ease;
}

.a.primary{
  background: rgba(165,108,255,.12);
  border-color: rgba(165,108,255,.55);
}

.a:hover{
  border-color: rgba(165,108,255,.78);
  background: rgba(165,108,255,.14);
  transform: translateY(-1px);
}

.footer-note{
  margin-top: 26px;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  color: rgba(255,255,255,.62);
  line-height: 1.55;
  font-size: 13px;
  background: rgba(0,0,0,.34);
}

/* Doors Opened banner hero (cnhalden-style, but local) */
.doors-hero{
  background: #000;
  border: 0;              /* remove border */
  border-radius: 0;       /* remove rounding */
  box-shadow: none;       /* remove boxed look */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: clamp(220px, 32vh, 420px);
}

.doors-hero .banner{
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: brightness(.95) contrast(1.02);
}

/* responsive hero scaling (mirrors your author-base.css behavior) */
@media (min-width: 1280px){
  .doors-hero{ height: clamp(240px, 32vh, 420px); }
}
@media (min-width: 1600px){
  .doors-hero{ height: clamp(260px, 34vh, 440px); }
}
@media (min-width: 2000px){
  .doors-hero{ height: clamp(280px, 36vh, 460px); }
}
@media (max-width: 820px){
  .doors-hero{ height: clamp(190px, 38vh, 360px); }
}

/* =========================
   Doors Opened: NAV
========================= */
.do-nav{
  position: sticky;
  top: 0;
  z-index: 10000;
  background: rgba(10,10,11,.72);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.do-nav__wrap{
  width: min(1180px, 92vw);
  margin: 0 auto;
  padding: 12px 0;
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}

.do-nav__brand{
  font-family: "Cinzel Decorative", "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: .10em;
  font-size: 18px;
  text-decoration: none;
  color: rgba(255,255,255,.92);
  text-shadow: 0 0 10px rgba(0,0,0,.65);
}

.do-nav__brand:hover{
  color: rgba(165,108,255,.92);
}

.do-nav__links{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.do-nav__links a{
  font-family: "IBM Plex Serif", ui-serif, Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: 12px;
  text-decoration: none;
  color: rgba(255,255,255,.82);
  padding: 6px 8px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: background .12s ease, border-color .12s ease, color .12s ease;
}


.do-nav__links a:hover,
.do-nav__links a:focus-visible{
  outline: none;
  background: rgba(165,108,255,.14);
  border-color: rgba(165,108,255,.35);
  color: rgba(255,255,255,.92);
}

/* Mobile toggle */
.do-nav__toggle{
  display: none;
  font-family: "IBM Plex Serif", ui-serif, Georgia, "Times New Roman", serif;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 12px;
  color: rgba(255,255,255,.9);
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 12px;
  padding: 8px 10px;
  cursor: pointer;
}

@media (max-width: 820px){
  .do-nav__toggle{ display: inline-flex; align-items: center; justify-content: center; }

  .do-nav__wrap{
    flex-wrap: wrap;
  }

  .do-nav__links{
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0 2px;
    border-top: 1px solid rgba(255,255,255,.08);
    margin-top: 8px;
  }

  .do-nav.is-open .do-nav__links{ display: flex; }

  .do-nav__links a{
    width: 100%;
    padding: 10px 10px;
    border-radius: 12px;
  }
}

/* =========================
   Doors Opened: FOOTER
========================= */
.do-footer{
  margin-top: 42px;
  border-top: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.35);
}

.do-footer__wrap{
  width: min(1180px, 92vw);
  margin: 0 auto;
  padding: 26px 0 34px;
  color: rgba(255,255,255,.70);
  font-size: 13px;
  line-height: 1.6;
}

.do-footer__wrap p{
  margin: 10px 0;
}

.do-footer__adult strong{
  color: rgba(255,255,255,.92);
}

.do-footer__links a{
  color: rgba(165,108,255,.90);
  text-decoration: none;
}

.do-footer__links a:hover{
  text-decoration: underline;
}

/* Hero explainer card (centered under the banner) */
.hero-note{
  max-width: 76ch;
  margin: 10px auto 0;                 /* centers the block */
  padding: 14px 16px;
  border: 1px solid rgba(165,108,255,.22);
  border-radius: 14px;
  background: rgba(0,0,0,.28);
  box-shadow: 0 0 26px rgba(165,108,255,.08);
  text-align: center;
}

.hero-note .sub{
  max-width: none;                     /* let the card control width */
  margin: 0;
}

.sub--tight{
  margin-top: 8px !important;
}

.hero-note strong{
  color: rgba(255,255,255,.92);
  font-weight: 600;
}

/* =========================
   Doors Opened: Explainer
========================= */

.explainer{
  margin: 26px auto 30px;
  padding: 22px 22px 20px;
  border: 1px solid rgba(165,108,255,.28);
  border-radius: 18px;
  background: rgba(0,0,0,.38);
  box-shadow: 0 0 34px rgba(165,108,255,.10);
}

.explainer-title{
  margin: 0 0 18px;
  text-align: center;
  font-family: "Unica One", system-ui, sans-serif;
  font-size: 18px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(165,108,255,.92);
}

.explainer-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

@media (max-width: 760px){
  .explainer-grid{
    grid-template-columns: 1fr;
  }
}

.explainer-col{
  padding: 18px 18px 16px;
  border-radius: 14px;
  background: rgba(10,6,18,.58);
  border: 1px solid rgba(255,255,255,.08);
}

.explainer-col--door{
  box-shadow: inset 0 0 0 1px rgba(165,108,255,.10);
}

.explainer-col--threshold{
  box-shadow: inset 0 0 0 1px rgba(165,108,255,.22);
}

.explainer-col h3{
  margin: 0 0 12px;
  font-family: "Unica One", system-ui, sans-serif;
  font-size: 15px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.92);
}

.explainer-list{
  margin: 0 0 14px;
  padding-left: 18px;
  color: rgba(255,255,255,.78);
  font-size: 14px;
  line-height: 1.55;
}

.explainer-list li{
  margin-bottom: 6px;
}

.explainer-note{
  margin: 10px 0 6px;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255,255,255,.82);
}

.explainer-muted{
  margin: 0;
  font-size: 12px;
  color: rgba(255,255,255,.56);
  letter-spacing: .02em;
}

.explainer-footer{
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.10);
  text-align: center;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255,255,255,.68);
}

.explainer-footer strong{
  color: rgba(255,255,255,.92);
}

/* =========================
   Doors Opened: Profile Media
========================= */

.profile-media{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 16px auto 0;
  max-width: 980px;
}

@media (max-width: 860px){
  .profile-media{ grid-template-columns: 1fr; }
}

.profile-shot{
  margin: 0;
  border: 1px solid rgba(165,108,255,.22);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,.03);
  box-shadow: 0 0 26px rgba(165,108,255,.08);
}

.profile-shot img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* Headshot: wide crop */
.profile-shot--head{
  aspect-ratio: 3 / 2;
}

/* Full body: tall poster crop (your 2400x3600 is 2:3) */
.profile-shot--full{
  aspect-ratio: 2 / 3;
  max-height: 760px; /* keeps it from becoming a scrolling punishment */
}

@media (max-width: 860px){
  .profile-shot--full{ max-height: 640px; }
}

/* =========================
   Profile 90 (Character Sheets)
========================= */

.profile90{
  max-width: 860px;
  margin: 0 auto;
  padding: 10px 0 30px;
}

.profile90-name{
  font-family: "Cinzel Decorative", serif;
  font-size: 28px;
  letter-spacing: .08em;
  text-align: center;
  margin: 20px 0 30px;
  color: rgba(255,255,255,.95);
}

.profile90-block{
  margin-bottom: 26px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.profile90-block:last-child{
  border-bottom: 0;
}

.profile90-block h3{
  font-family: "Unica One", system-ui, sans-serif;
  font-size: 14px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(165,108,255,.92);
  margin-bottom: 12px;
}

.profile90-block ul{
  list-style: none;
  padding: 0;
  margin: 0;
}

.profile90-block li{
  margin-bottom: 6px;
  line-height: 1.6;
  color: rgba(255,255,255,.85);
}

.profile90-block li strong{
  color: rgba(255,255,255,.95);
  font-weight: 600;
}

.profile90-block p{
  margin: 8px 0 0;
  line-height: 1.65;
  color: rgba(255,255,255,.82);
}

.profile90-note{
  margin-top: 10px;
  font-size: 13px;
  color: rgba(255,255,255,.62);
  font-style: italic;
}

.profile90-final p{
  font-weight: 500;
}

/* =========================
   Doors Opened: Door Layout (Option A v2)
   - Title spans both columns
   - Buttons span both columns
   - Image + profile box share height on desktop
========================= */

.door-layout{
  width: min(1180px, 92vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 520px 1fr;
  gap: 22px;
  align-items: stretch; /* IMPORTANT: equal height columns */
}

/* Title spans both columns */
.door-name--span{
  grid-column: 1 / -1;
  text-align: center;
  margin: 0 0 6px;
}

/* Left column */
.door-left{
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* Fullbody box fills left column height */
.door-fullbody{
  width: 100%;
  height: 100%;
  margin: 0;
  border: 1px solid rgba(165,108,255,.22);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255,255,255,.03);
  box-shadow: 0 0 26px rgba(165,108,255,.10);
  display: flex;
}

.door-fullbody img{
  width: 100%;
  height: 100%;
  object-fit: cover; /* IMPORTANT: match equal-height box */
  display: block;
}

/* Right column */
.door-right{
  min-height: 0;
}

/* Force panel visible and make it scroll inside the card */
.door-right .panel{
  display: block;
  max-height: 76vh;
  overflow: auto;
  padding: 16px 18px 18px;
  border-top: 1px solid rgba(255,255,255,.08);
}

/* Buttons span both columns */
.door-actions--span{
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 2px;
}

/* Mobile: stack + remove forced equal height */
@media (max-width: 980px){
  .door-layout{
    grid-template-columns: 1fr;
    align-items: start;
  }

  .door-fullbody{
    height: auto;
    display: block;
  }

  .door-fullbody img{
    height: auto;
    object-fit: cover;
  }

  .door-right .panel{
    max-height: none;
    overflow: visible;
  }
}

/* =========================
   First Name Only
========================= */

.first-name{
  margin: 12px 0 6px;
  font-family: "Unica One", system-ui, sans-serif;
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.88);
}

/* =========================
   Residents Intro
========================= */

.residents-intro{
  margin: 14px auto 18px;
  text-align: center;
  font-family: "Unica One", system-ui, sans-serif;
  font-size: 14px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: rgba(255,255,255,.78);
  text-shadow: 0 0 18px rgba(165,108,255,.10);
}

.residents-intro span{
  display:block;
  margin-top: 6px;
  font-family: "IBM Plex Serif", serif;
  font-size: 12px;
  letter-spacing: .02em;
  text-transform: none;
  color: rgba(255,255,255,.56);
}

/* =========================
   Tip Jar — Doors Opened (standalone buttons; no author-base.css)
========================= */

.tip-jar{
  margin: 26px auto 10px;
  max-width: 76ch;
  text-align: center;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.10);
}

.tip-jar__line{
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--dim);
  font-style: italic;
  line-height: 1.6;
}

.tip-jar__actions{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

/* Button baseline (self-contained) */
a.tip-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 10px 12px;
  border-radius: 12px;

  border: 1px solid rgba(165,108,255,.32);
  background: rgba(0,0,0,.22);

  color: rgba(255,255,255,.88);
  text-decoration: none;

  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-family: "Unica One", system-ui, sans-serif;

  transition: background .12s ease, border-color .12s ease, transform .12s ease, box-shadow .12s ease;
  box-shadow: 0 0 18px rgba(165,108,255,.10);
}

a.tip-btn:hover{
  border-color: rgba(165,108,255,.78);
  background: rgba(165,108,255,.14);
  transform: translateY(-1px);
}

/* Custom tip variant */
a.tip-btn--custom{
  border-style: dashed;
  background: rgba(165,108,255,.10);
  box-shadow: 0 0 22px rgba(165,108,255,.14);
}

a.tip-btn--custom:hover{
  background: rgba(165,108,255,.16);
  border-color: rgba(165,108,255,.92);
}

/* Mobile: stack */
@media (max-width: 520px){
  .tip-jar__actions{
    flex-direction: column;
    align-items: stretch;
  }
  a.tip-btn{
    width: 100%;
  }
}