/* =========================================================
   LUMI STUDIO — Master Styles (All Pages)
   + Homepage hero + character grid support
   ========================================================= */

:root{
  --bg:#F4F1EB;
  --text:#5E676E;
  --muted: rgba(94,103,110,0.74);
  --gold:#CBB27A;
  --night:#2F3A40;

  --surface: rgba(94,103,110,0.06);
  --border: rgba(94,103,110,0.14);
  --shadow: 0 18px 60px rgba(47,58,64,0.14);

  --radius:22px;
  --max:1100px;

  --serif: ui-serif, Georgia, "Times New Roman", Times, serif;
  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

/* Base */
*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
img{ max-width:100%; height:auto; display:block; }

body{
  background:var(--bg);
  color:var(--text);
  font-family:var(--sans);
  line-height:1.6;
  font-size:20px;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

a{ color:inherit; text-decoration:none; }
a:hover{ text-decoration:underline; }

.container{
  max-width:var(--max);
  margin:0 auto;
  padding:0 20px;
}

/* =========================================================
   Header / Navigation
   ========================================================= */

header.site-header{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(244,241,235,0.84);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--border);
}

.navbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:36px 0;
  gap:24px;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:fit-content;
}

.brand-mark{ width:28px; height:28px; }
.brand-name{
  font-family:var(--serif);
  letter-spacing:.18em;
  font-weight:600;
  font-size:14px;
  text-transform:uppercase;
}

nav ul{
  list-style:none;
  display:flex;
  gap:18px;
  padding:0;
  margin:0;
  flex-wrap:wrap;
  justify-content:flex-end;
}

nav a{ font-size:14px; color:rgba(94,103,110,0.92); }
nav a.active{ text-decoration:underline; }

/* =========================================================
   Buttons / Type helpers
   ========================================================= */

.h1{
  margin:0;
  font-family:var(--serif);
  letter-spacing:.18em;
  text-transform:uppercase;
  font-size:clamp(1.8rem,3.2vw,2.6rem);
}

.h2{
  font-family:var(--serif);
  letter-spacing:.06em;
  margin:0 0 10px 0;
  font-size:20px;
}

.lead{
  margin:0;
  color:rgba(94,103,110,0.92);
  line-height:1.55;
}

.btn{
  display:inline-block;
  padding:12px 18px;
  border-radius:999px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.55);
  color:var(--text);
  font-weight:500;
  text-decoration:none;
}

.btn:hover{ text-decoration:none; filter:brightness(0.98); }

.btn.primary{
  background:#ffd84d;
  border-color:#ffd84d;
  color:#000;
  font-weight:700;
}

.cta-row{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  justify-content:center;
  margin-top:16px;
}

/* =========================================================
   Sections / Cards / Layout
   ========================================================= */

.section{ padding:60px 0; }

.card{
  border:1px solid var(--border);
  background:rgba(255,255,255,.42);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:18px;
}

.grid.two{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:18px;
}

@media (max-width:900px){
  .grid.two{ grid-template-columns:1fr; }
}

/* Episodes / Quotes */
.episodes{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));
  gap:12px;
}
.episode{
  display:block;
  padding:12px 14px;
  border:1px solid var(--border);
  border-radius:14px;
  background:rgba(255,255,255,.45);
}
.episode small{
  display:block;
  opacity:.7;
  margin-bottom:4px;
}
.quotes{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(240px, 1fr));
  gap:12px;
}
.quote{
  padding:14px 16px;
  border:1px solid var(--border);
  border-radius:14px;
  background:rgba(255,255,255,.42);
}

/* =========================================================
   Footer
   ========================================================= */

footer{
  padding:34px 0;
  background:var(--night);
  color:rgba(244,241,235,0.9);
}

footer a{ color:rgba(244,241,235,0.92); }

.footer-inner{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  flex-wrap:wrap;
}

.footer-mini{
  color:rgba(244,241,235,0.72);
  font-size:13px;
}

/* =========================================================
   HOMEPAGE ONLY (requires <body class="home">)
   ========================================================= */

/* Homepage: float header over hero */
body.home header.site-header{
  position:absolute;
  top:0;
  left:0;
  right:0;
  background:transparent;
  border-bottom:1px solid rgba(255,255,255,0.14);
}

body.home .brand-name,
body.home nav a{
  color: rgba(255,255,255,0.92);
}

body.home .brand-mark{
  color: rgba(255,255,255,0.92) !important;
}

/* Hero banner */
body.home .hero{
  position:relative;
  width:100%;
  height:72vh;
  min-height:520px;
  overflow:hidden;
  background:#000;
}

body.home .hero-img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

body.home .hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(
    to bottom,
    rgba(0,0,0,.50) 0%,
    rgba(0,0,0,.25) 35%,
    rgba(0,0,0,0) 70%
  );
  pointer-events:none;
}

body.home .hero-overlay{
  position:absolute;
  top:10%;
  left:50%;
  transform:translateX(-50%);
  width:min(980px,92%);
  text-align:center;
  color:#fff;
  z-index:2;
}

body.home .hero-overlay h1{
  margin:0 0 14px 0;
  font-family:var(--serif);
  font-weight:600;
  font-size:clamp(2.2rem,4.6vw,4.2rem);
  text-shadow: 0 10px 40px rgba(0,0,0,.45);
}

body.home .hero-btn{
  display:inline-block;
  padding:12px 22px;
  border-radius:999px;
  background:#ffd84d;
  color:#000;
  font-weight:700;
  box-shadow: 0 18px 40px rgba(0,0,0,.28);
}

/* Dark characters band */
body.home .characters-preview{
  padding:78px 22px 88px;
  background:#0b1220;
  color:#fff;
  text-align:center;
}

body.home .characters-preview h2{
  margin:0 0 30px 0;
  font-size:clamp(1.6rem,3vw,2.4rem);
  font-weight:700;
}

body.home .character-grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:18px;
  max-width:1100px;
  margin:0 auto;
  align-items:stretch;
}

body.home .character-card{
  display:flex;
  flex-direction:column;
  gap:10px;
  padding:18px;
  border-radius:16px;
  background:rgba(255,255,255,0.06);
  border:1px solid rgba(255,255,255,0.10);
  box-shadow: 0 12px 40px rgba(0,0,0,0.22);
  color:#fff;
  text-align:left;
  transition:transform .2s ease, border-color .2s ease, background-color .2s ease;
  min-height:140px;
}

body.home .character-card:hover{
  transform:translateY(-3px);
  border-color: rgba(255,255,255,0.18);
  background:rgba(255,255,255,0.075);
}

/* Dot fallback */
body.home .character-dot{
  width:10px;
  height:10px;
  border-radius:999px;
  background:rgba(255,216,77,0.95);
  box-shadow: 0 0 0 3px rgba(255,216,77,0.14);
}

/* Face icon */
body.home .character-face{
  width:56px;
  height:56px;
  border-radius:50%;
  border:3px solid rgba(255,216,77,0.95);
  object-fit:cover;
  object-position:center;
  display:block;
}

body.home .character-card h3{
  margin:2px 0 0 0;
  font-size:0.95rem;
  font-weight:700;
}

body.home .character-card p{
  margin:0;
  opacity:.86;
  line-height:1.35;
  font-size:0.92rem;
}

/* Responsive */
@media (max-width:1100px){
  body.home .character-grid{ grid-template-columns:repeat(3, minmax(0, 1fr)); }
}
@media (max-width:900px){
  body.home .character-grid{ grid-template-columns:repeat(2, minmax(0, 1fr)); }
}
@media (max-width:560px){
  body.home .hero{ height:62vh; min-height:420px; }
  body.home .character-grid{ grid-template-columns:1fr; }
}
/* ===== HOTFIX: homepage nav size + keep it above hero ===== */
body.home header.site-header{
  z-index: 9999 !important;
}

body.home .navbar{
  padding: 22px 0 !important;
}

body.home .brand-name{
  font-size: 16px !important;
}

body.home nav a{
  font-size: 15px !important;
}

body.home .hero-overlay{
  z-index: 1 !important;
}
/* ===== GLOBAL HEADER SCALE FIX ===== */

/* widen site container */
.container{
  max-width: 1280px;
}

/* larger header spacing */
.navbar{
  padding: 24px 0 !important;
}

/* larger brand title */
.brand-name{
  font-size: 18px !important;
  letter-spacing: .20em;
}

/* larger navigation links */
nav a{
  font-size: 16px !important;
}

/* more breathing room between menu items */
nav ul{
  gap: 26px !important;
}
/* ===== HEADER TYPOGRAPHY SCALE ===== */

.brand-name{
  font-size: 20px !important;
  letter-spacing: .22em;
}

nav a{
  font-size: 18px !important;
  font-weight: 500;
}

.navbar{
  padding: 40px 0 !important;
}
/* Character face icon replacing dot */

.character-icon{
  width:26px;
  height:26px;
  border-radius:50%;
  overflow:hidden;
  border:2px solid #ffd84d;
  display:inline-block;
}

.character-icon img{
  width:100%;
  height:100%;
  object-fit:cover;
}
/* Dot-sized face icon (replaces yellow dot) */
.character-icon{
  width:12px;
  height:12px;
  border-radius:999px;
  overflow:hidden;
  display:inline-block;
  vertical-align:middle;
  border:2px solid rgba(255,216,77,0.95);
  box-shadow: 0 0 0 3px rgba(255,216,77,0.14);
}

.character-icon img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
