/* main.css — Turnaround Files (mobile-first, clean, modern) */
:root{
  /* new visual system: warm cream + mustard + near-black CTAs */
  --accent:#f5c542; /* mustard yellow */
  --accent-2:#ff6b35; /* warm accent */
  --bg:#000000; /* page background — switched to black per request */
  --muted:#d6ccc1; /* softened cream for secondary text */
  --text:#fff8ef; /* primary text now uses former page background color */
  --card:#12120e; /* matched to hero artwork background to hide the image edge */
  --card-border: rgba(255,255,255,0.04);
  --shadow: 0 8px 24px rgba(0,0,0,0.6);
  --radius:12px;
  --max-width:1100px;
  --container-padding:1rem;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif; color:var(--text);background:var(--bg); -webkit-font-smoothing:antialiased; line-height:1.5;}
.container{max-width:var(--max-width);margin:0 auto;padding:0.3125rem var(--container-padding)}

/* Header */
.header{display:flex;align-items:center;justify-content:space-between;margin-bottom:0.375rem;padding:0.25rem 0}
.brand{display:flex;align-items:center;gap:0.75rem;text-decoration:none;color:inherit}
  .brand-image{width:340px;height:187px;overflow:hidden;border-radius:12px;display:inline-block;display:flex;align-items:center;justify-content:center;background:transparent}
.brand-image img{width:100%;height:100%;object-fit:cover;object-position:center;display:block}
.brand .logo{display:none}
.nav{display:flex;gap:0.75rem;align-items:center}
.nav a{color:var(--muted);text-decoration:none;padding:0.35rem 0.6rem;border-radius:8px;font-weight:600;font-size:0.95rem}
.nav a:hover{color:var(--accent)}

/* Links: improve contrast and add clear hover/focus state for accessibility */
a{color:var(--accent);text-decoration:none}
a:visited{color:#c59f2e}
a:hover,a:focus{color:var(--accent-2);text-decoration:underline}
a:focus{outline:none;box-shadow:0 0 0 4px rgba(245,197,66,0.12);border-radius:6px}

/* Ensure navigation links are readable against dark background */
.nav a{color:var(--text)}
.nav a:hover{color:var(--accent-2)}
/* Header responsiveness: stack nav under brand on small screens */
@media(max-width:719px){
  /* Stack brand and nav vertically on small screens and center them
     so the menu doesn't appear as a vertical column at the right. */
  .header{flex-direction:column;align-items:center;gap:0.375rem;padding:0.375rem 0}

  .brand-image{width:288px;height:288px}
  .brand-image img{width:100%;height:100%;object-fit:contain;object-position:center}

  .nav{width:100%;display:flex;flex-direction:row;flex-wrap:wrap;justify-content:center;gap:0.5rem}
  .nav a{display:inline-block;padding:0.45rem 0.6rem;font-size:0.95rem}
}

/* Hero */
.hero{display:grid;grid-template-columns:1fr;gap:0.75rem;align-items:center;padding:0.65rem 0}
.hero-badge{display:inline-block;background:linear-gradient(90deg,#151515,#0f0f0f);color:var(--text);padding:0.45rem 0.8rem;border-radius:999px;font-weight:800;font-size:0.9rem;border:1px solid var(--card-border)}
/* small image + heading wrapper */
.hero-head{display:flex;align-items:flex-start;gap:1rem;margin-bottom:0.5rem}
.hero-small{width:120px;height:84px;object-fit:cover;border-radius:10px;box-shadow:var(--shadow);border:1px solid rgba(255,255,255,0.03)}
.subtle{margin:0;font-size:0.85rem;color:var(--muted);font-weight:700;letter-spacing:0.6px}
.hero h1{margin:0;font-size:1.6rem;line-height:1.02}
.hero p.lead{color:var(--muted);margin:0.4rem 0 0.85rem;font-size:0.98rem}
.buttons{display:flex;gap:0.5rem}
.btn{display:inline-flex;align-items:center;gap:0.5rem;padding:0.7rem 1rem;border-radius:8px;font-weight:700;text-decoration:none;border:1px solid transparent;cursor:pointer}
.btn-primary{background:var(--text);color:var(--bg);box-shadow:0 8px 24px rgba(255,248,239,0.06)}
.btn-ghost{background:transparent;border:1px solid rgba(255,248,239,0.08);color:var(--text)}

.hero-visual{display:flex;align-items:center;justify-content:center;background:var(--card);height:340px;border-radius:18px;color:var(--accent-2);font-weight:700;box-shadow:0 10px 30px rgba(255,255,255,0.02);overflow:hidden;padding:16px}
.hero-visual .hero-banner{display:block;max-width:100%;max-height:100%;width:auto;height:100%;object-fit:contain;object-position:center;border-radius:12px}

/* Cards */
.grid{display:grid;gap:1rem}
@media(min-width:720px){
  /* Increase the right column to give the hero visual more room */
  .hero{grid-template-columns:1fr 520px}
  .hero-small{width:130px;height:90px}
  .grid-3{grid-template-columns:repeat(3,1fr)}
  .grid-2{grid-template-columns:repeat(2,1fr)}
}
.card{background:var(--card);border-radius:var(--radius);padding:1rem;box-shadow:0 6px 18px rgba(255,255,255,0.02);border:1px solid var(--card-border)}
.card h3{margin:0 0 0.4rem}
.card p{margin:0;color:var(--muted)}
.card .meta{font-size:0.85rem;color:var(--muted);margin-bottom:0.75rem}
.card .card-links{display:flex;gap:0.5rem;margin-top:0.75rem}
.small-link{font-weight:700;font-size:0.9rem;color:var(--accent);text-decoration:none}

/* Episode/Post list */
.item-list{display:flex;flex-direction:column;gap:0.9rem}
.item{display:flex;flex-direction:column;gap:0.4rem}
.item .meta{font-size:0.85rem;color:var(--muted)}

/* Page container */
.page{padding:1rem 0}
.article-content{margin-top:1rem}
.tags{display:flex;gap:0.5rem;margin-top:1rem}
.tag{background:rgba(255,248,239,0.04);padding:0.35rem 0.6rem;border-radius:999px;font-weight:700;color:var(--muted);font-size:0.85rem}

/* Footer */
.footer{padding:1rem 0;margin-top:1rem;border-top:1px solid var(--card-border);color:var(--muted);font-size:0.9rem;display:flex;flex-direction:column;gap:0.5rem}
.footer .links{display:flex;gap:0.75rem}

/* Utilities */
.kicker{font-weight:700;color:var(--accent);font-size:0.85rem}
.small{font-size:0.9rem;color:var(--muted)}

/* Responsive tweaks */
@media(min-width:900px){
  .container{padding:1rem}
  .hero h1{font-size:2.08rem}
}

/* small tweak for hero image responsiveness on narrow devices */
@media(max-width:719px){
  .hero-visual{height:220px}
  .brand-image{width:280px;height:154px}
}
