/* Menace and Menagerie Studios — site styles
   Edit the tokens at the top to retheme everything. */

:root {
  --ink: #121417;        /* charcoal ground */
  --ink-2: #1E2126;      /* slightly lifted panels on dark */
  --paper: #FFFFFF;      /* light ground */
  --paper-2: #F4F1E8;    /* cream band */
  --line: #DAD6CA;
  --text: #1C1C1A;
  --text-muted: #3A3A36;
  --text-on-dark: #F4F1E8;
  --text-on-dark-muted: #D9D5C8;
  --gold: #C9A227;       /* accent */
  --gold-ink: #8A6A0F;   /* accent for text on light backgrounds (passes contrast) */
  --logo-red: #C8102E;   /* adjust to your logo's exact red */
  --logo-blue: #1F4E9A;  /* adjust to your logo's exact blue */
  --display: "Big Shoulders", "Big Shoulders Display", Impact, "Arial Narrow", sans-serif;
  --body: "Source Sans 3", Arial, sans-serif;
  --max: 1080px;
  --star: url("data:image/svg+xml;utf8,<svg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%20100%20100%27><path%20d=%27M50.00%200.00%20L60.50%2031.81%20L93.30%2025.00%20L71.00%2050.00%20L93.30%2075.00%20L60.50%2068.19%20L50.00%20100.00%20L39.50%2068.19%20L6.70%2075.00%20L29.00%2050.00%20L6.70%2025.00%20L39.50%2031.81%20Z%27%20fill=%27black%27/></svg>");
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.55;
  color: var(--text);
  background: var(--paper);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-ink); }
a:hover { color: #5E4705; }
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.05;
  margin: 0;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
h1 { font-size: clamp(44px, 7vw, 84px); }
h2 { font-size: clamp(32px, 4.5vw, 52px); }
h3 { font-size: 26px; }
p { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-size: 14px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold-ink);
}
.dark .eyebrow { color: var(--gold); }
.muted { color: var(--text-muted); }
.dark .muted { color: var(--text-on-dark-muted); }

/* ---------- header ---------- */
.site-header {
  background: var(--ink); color: var(--text-on-dark);
  position: sticky; top: 0; z-index: 10;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--text-on-dark); text-decoration: none; }
.brand img { width: 54px; height: 44px; object-fit: contain; }
.brand span {
  font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: 1px; text-transform: uppercase;
}
.nav { display: flex; gap: 22px; align-items: center; font-weight: 600; font-size: 16px; }
.nav a { color: var(--text-on-dark); text-decoration: none; padding: 8px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--gold); color: var(--text-on-dark); }
.nav .cta { background: var(--gold); color: var(--ink); padding: 10px 16px; border-radius: 4px; border: 0; }
.nav .cta:hover { background: #E0B52E; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--text-on-dark-muted); color: var(--text-on-dark);
  font: inherit; padding: 8px 12px; border-radius: 4px; cursor: pointer;
}
@media (max-width: 800px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 72px; background: var(--ink);
         flex-direction: column; align-items: stretch; padding: 12px 24px 20px; gap: 4px; border-top: 1px solid #2C3038; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; font-size: 18px; }
  .nav .cta { text-align: center; margin-top: 8px; }
}

/* ---------- sections ---------- */
.section { padding: 80px 0; }
.section.tight { padding: 48px 0; }
.dark { background: var(--ink); color: var(--text-on-dark); }
.cream { background: var(--paper-2); }
.stack { display: flex; flex-direction: column; gap: 20px; }
.section-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 36px; }
.lead { font-size: 21px; max-width: 720px; }

/* hero */
.hero { padding: 96px 0 88px; }
.hero h1 { max-width: 900px; }
.hero .lead { color: var(--text-on-dark-muted); font-size: 22px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 10px; }
.btn {
  display: inline-block; font-weight: 600; text-decoration: none; padding: 14px 24px; border-radius: 4px;
  font-size: 18px; border: 2px solid transparent; cursor: pointer; font-family: var(--body);
}
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #E0B52E; color: var(--ink); }
.btn-ghost { border-color: var(--text-on-dark-muted); color: var(--text-on-dark); }
.btn-ghost:hover { border-color: var(--gold); color: var(--text-on-dark); }
.btn-ink { background: var(--ink); color: var(--text-on-dark); }
.btn-ink:hover { background: #2C3038; color: var(--text-on-dark); }

/* cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.card {
  border: 1px solid var(--line); padding: 28px; display: flex; flex-direction: column; gap: 12px;
  background: var(--paper); color: var(--text); text-decoration: none;
}
a.card:hover { border-color: var(--gold); color: var(--text); }
.card h3 { font-size: 28px; }
.card .more { color: var(--gold-ink); font-weight: 600; margin-top: auto; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.gallery figure { margin: 0; background: var(--paper-2); aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid var(--line); }
.gallery figure button {
  all: unset; display: block; width: 100%; height: 100%; cursor: zoom-in;
}
.gallery figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.gallery figure button:hover img, .gallery figure button:focus-visible img { transform: scale(1.03); }
.gallery figure button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.gallery-empty {
  border: 1px dashed var(--line); padding: 24px; color: var(--text-muted); font-size: 16px; grid-column: 1 / -1;
}
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1200px); }
dialog.lightbox::backdrop { background: rgba(18, 20, 23, .92); }
dialog.lightbox img { max-height: 88vh; width: auto; max-width: 100%; margin: 0 auto; }
dialog.lightbox figcaption { color: var(--text-on-dark); text-align: center; padding: 12px; font-size: 16px; }
dialog.lightbox .close {
  position: fixed; top: 16px; right: 16px; background: var(--gold); color: var(--ink); border: 0;
  font: inherit; font-weight: 600; padding: 10px 14px; border-radius: 4px; cursor: pointer;
}

/* games */
.game { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 36px; align-items: center; }
.game:nth-child(even) .game-art { order: 2; }
.game-art { background: var(--paper-2); border: 1px solid var(--line); aspect-ratio: 16 / 9; overflow: hidden; }
.game-art img { width: 100%; height: 100%; object-fit: cover; }
.game h3 { font-size: 40px; }
.game .tag { font-size: 20px; font-weight: 600; }
.games-list { display: flex; flex-direction: column; gap: 64px; }
@media (max-width: 760px) { .game { grid-template-columns: 1fr; } .game:nth-child(even) .game-art { order: 0; } }

/* steps (consulting) */
.steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step { display: flex; gap: 18px; align-items: flex-start; }
.step .num {
  flex: 0 0 48px; height: 48px; background: var(--ink); color: var(--gold);
  font-family: var(--display); font-weight: 800; font-size: 26px; display: flex; align-items: center; justify-content: center;
}
.step strong { font-size: 20px; display: block; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { border: 1px solid var(--line); padding: 6px 12px; font-size: 15px; }
.pain { display: flex; flex-wrap: wrap; gap: 24px; font-size: 17px; }
.pain div { flex: 1 1 280px; display: flex; gap: 12px; }
.pain span.mark { color: var(--gold); font-weight: 700; }
.two-col { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.two-col > * { flex: 1 1 360px; }
.portrait { flex: 0 0 280px; aspect-ratio: 7 / 8; background: var(--line); display: flex; align-items: center; justify-content: center;
            text-align: center; padding: 16px; color: var(--text-muted); font-weight: 600; overflow: hidden; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }

/* forms */
form.contact { display: flex; flex-direction: column; gap: 16px; }
form.contact label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 15px; }
form.contact input, form.contact textarea, form.contact select {
  font: inherit; font-weight: 400; font-size: 17px; padding: 12px 14px; border-radius: 4px;
  border: 1px solid #5A5A55; background: var(--ink-2); color: var(--text-on-dark);
}
form.contact input:focus, form.contact textarea:focus, form.contact select:focus { outline: 3px solid var(--gold); outline-offset: 1px; }
.contact-lines { display: flex; flex-direction: column; gap: 8px; font-size: 20px; font-weight: 600; }
.contact-lines a { color: var(--text-on-dark); text-decoration: none; }
.contact-lines a.gold { color: var(--gold); }

/* news */
.news-list { display: flex; flex-direction: column; gap: 24px; }
.news-item { display: grid; grid-template-columns: 140px 1fr; gap: 20px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.news-item time { font-weight: 600; color: var(--text-muted); }
@media (max-width: 600px) { .news-item { grid-template-columns: 1fr; gap: 6px; } }

/* footer */
.site-footer { background: #0B0C0E; color: #9A978C; padding: 32px 0; font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.site-footer .foot-left { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; flex: 1 1 480px; }
.site-footer .proud { height: 44px; width: auto; margin-left: auto; }
.site-footer a { color: #C9C5B6; }
.site-footer .social { display: flex; gap: 16px; }
.site-footer .social a { text-decoration: none; }
.notice { font-size: 15px; color: var(--text-muted); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--gold); color: var(--ink); padding: 8px 12px; z-index: 20; }

/* ---------- Chicago star motif ---------- */
.star, .eyebrow::before, .pain span.mark {
  display: inline-block; width: 0.8em; height: 0.8em; vertical-align: -0.08em;
  background-color: currentColor; -webkit-mask: var(--star) no-repeat center / contain; mask: var(--star) no-repeat center / contain;
}
.eyebrow::before { content: ""; margin-right: 8px; color: var(--gold); }
.pain span.mark { color: var(--gold); flex: 0 0 auto; margin-top: 0.3em; width: 0.9em; height: 0.9em; }
.hero { position: relative; overflow: hidden; }
.hero .wrap { position: relative; z-index: 1; }
.hero::after {
  content: ""; position: absolute; right: -40px; bottom: -30px; width: 520px; height: 110px;
  background-color: var(--gold); opacity: 0.07; pointer-events: none;
  -webkit-mask: var(--star) no-repeat 0 50% / 110px 110px, var(--star) no-repeat 136px 50% / 110px 110px, var(--star) no-repeat 272px 50% / 110px 110px, var(--star) no-repeat 408px 50% / 110px 110px;
  mask: var(--star) no-repeat 0 50% / 110px 110px, var(--star) no-repeat 136px 50% / 110px 110px, var(--star) no-repeat 272px 50% / 110px 110px, var(--star) no-repeat 408px 50% / 110px 110px;
}
.brand span::after {
  content: ""; display: inline-block; width: 12px; height: 12px; margin-left: 10px; vertical-align: 1px;
  background-color: var(--gold); -webkit-mask: var(--star) no-repeat center / contain; mask: var(--star) no-repeat center / contain;
}
