/* Dire Dungeon Master — design tokens & base (PLAN.md §2.2: dark neutral gallery) */
:root {
  --bg: #0d0d0f;
  --surface: #17171b;
  --surface-2: #1e1e23;
  --line: #2a2a30;
  --line-2: #3a3a42;
  --text: #b9b9c2;
  --text-bright: #e8e8ec;
  --text-dim: #6b6b74;
  --accent: #b08d4a;
  --live: #c0392b;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --maxw: 1200px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
}
img, svg, iframe { max-width: 100%; }
a { color: var(--text-bright); text-decoration: none; }
a:hover { color: var(--accent); }
h1, h2, h3 { font-family: var(--serif); color: var(--text-bright); font-weight: 500; line-height: 1.2; }
h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); letter-spacing: 0.04em; }
h2 { font-size: clamp(1.3rem, 3vw, 1.7rem); }
h3 { font-size: 1.15rem; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.dim { color: var(--text-dim); }
.small { font-size: 0.85rem; }

/* header / nav */
.site-header {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #1a1a1e, #101013);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px 24px; padding-top: 18px; padding-bottom: 18px;
}
.wordmark {
  font-family: var(--serif); font-size: 1.25rem; letter-spacing: 0.28em;
  color: var(--text-bright); white-space: nowrap;
}
.wordmark span { color: var(--accent); }
nav.main { display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: 0.92rem; }
nav.main a { color: var(--text); letter-spacing: 0.05em; }
nav.main a.active, nav.main a:hover { color: var(--accent); }

/* hero banner slot */
.banner { border-bottom: 1px solid var(--line); }
.banner img { display: block; width: 100%; height: auto; }

/* sections & boxes */
section.block { padding: 44px 0; border-bottom: 1px solid var(--line); }
.box {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line-2); border-radius: 10px; padding: 22px;
}
.grid { display: grid; gap: 20px; }
.grid.cols-3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid.cols-2 { grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); }

/* broadcast block */
.broadcast {
  position: relative;
  aspect-ratio: 2080 / 1240;
  margin: 0 auto;
}
.broadcast .frame {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 2;
}
.broadcast .window {
  position: absolute; z-index: 1;
  top: 6.45%; bottom: 6.45%; left: 3.85%; right: 3.85%;
  background: radial-gradient(ellipse at center, #1b1b20 0%, #0a0a0c 75%);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.broadcast .window iframe { width: 100%; height: 100%; border: 0; }
.poster { text-align: center; padding: 24px; }
.poster .title { font-family: var(--serif); font-size: clamp(1rem, 2.6vw, 1.6rem); color: var(--text-bright); }
.badge-live {
  display: inline-block; background: var(--live); color: #fff;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em;
  padding: 3px 10px; border-radius: 4px; margin-bottom: 10px;
}
.badge-next {
  display: inline-block; border: 1px solid var(--accent); color: var(--accent);
  font-size: 0.75rem; letter-spacing: 0.12em; padding: 3px 10px;
  border-radius: 4px; margin-bottom: 10px;
}
.under-broadcast {
  display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center;
  justify-content: center; margin-top: 14px;
}

/* buttons */
.btn {
  display: inline-block; padding: 9px 18px; border-radius: 6px;
  border: 1px solid var(--line-2); background: var(--surface-2);
  color: var(--text-bright); font-size: 0.9rem; cursor: pointer;
}
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn.primary { border-color: var(--accent); color: var(--accent); }

/* calendar cards */
.card {
  background: linear-gradient(180deg, #1e1e23, #121215);
  border: 1px solid var(--line-2); border-radius: 10px; padding: 18px 20px;
}
.card .when {
  font-size: 0.85rem; letter-spacing: 0.14em; color: var(--text-dim);
  text-transform: uppercase;
}
.card .title { font-family: var(--serif); font-size: 1.2rem; color: #cfcfd8; margin: 8px 0 4px; }
.card .note { font-size: 0.9rem; color: var(--text-dim); min-height: 1.2em; }
.card .actions { display: flex; gap: 10px; align-items: center; margin-top: 14px; flex-wrap: wrap; }
.card .status { font-size: 0.85rem; color: var(--text-dim); }
.card .status::before {
  content: ""; display: inline-block; width: 8px; height: 8px;
  border-radius: 50%; background: var(--line-2); margin-right: 7px;
}
.card.live .status::before { background: var(--live); }

/* piece / spotlight */
.spotlight { display: grid; gap: 26px; grid-template-columns: 1fr 1fr; align-items: center; }
.spotlight .art {
  aspect-ratio: 4 / 5; border: 1px solid var(--line-2); border-radius: 10px;
  background: radial-gradient(ellipse at 50% 35%, #232329 0%, #101013 80%);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim); font-size: 0.9rem; text-align: center; padding: 20px;
}
.price { font-family: var(--serif); font-size: 1.4rem; color: var(--accent); }
.piece .art {
  aspect-ratio: 1; border: 1px solid var(--line); border-radius: 8px;
  background: radial-gradient(ellipse at 50% 40%, #202026 0%, #111114 80%);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim); font-size: 0.85rem; text-align: center; padding: 14px;
  margin-bottom: 12px;
}
.piece .meta { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }

/* forms */
input, textarea {
  width: 100%; background: #101013; border: 1px solid var(--line-2);
  border-radius: 6px; color: var(--text-bright); padding: 10px 12px;
  font-family: var(--sans); font-size: 0.95rem;
}
input:focus, textarea:focus { outline: 1px solid var(--accent); border-color: var(--accent); }
label { display: block; margin: 14px 0 6px; font-size: 0.9rem; color: var(--text-dim); }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; }
.inline-form input { flex: 1 1 260px; width: auto; }

/* footer */
footer.site {
  padding: 36px 0 48px; color: var(--text-dim); font-size: 0.85rem;
}
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; }

@media (max-width: 760px) {
  .spotlight { grid-template-columns: 1fr; }
  section.block { padding: 32px 0; }
}
@media (max-width: 480px) {
  .wordmark { font-size: 1rem; letter-spacing: 0.18em; }
}
