/* ---------------------------------------------------------------------------
   The Silver Key — stylesheet
   Palette lifted from the room: slate-blue walls, walnut, brass, navy velvet,
   parchment, and a whisper of eldritch green.
--------------------------------------------------------------------------- */

:root {
  --ink: #0f1a22;
  --ink-2: #16232d;
  --slate: #3d5566;
  --slate-2: #2a3d4b;
  --walnut: #2b1a12;
  --brass: #c9a55a;
  --brass-light: #e8d296;
  --brass-dim: #8d7238;
  --parchment: #ede3cf;
  --parchment-dim: #b9ad95;
  --velvet: #1d2f55;
  --eldritch: #6f9a78;
  --whatsapp: #25d366;

  --display: "Limelight", "Poiret One", Georgia, serif;
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;

  --max: 1120px;
  --radius: 4px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--parchment);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body::before {
  /* faint paper grain */
  content: "";
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image: radial-gradient(rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 3px 3px;
  opacity: .5;
}
img { max-width: 100%; display: block; }
a { color: var(--brass-light); text-decoration: none; }
a:hover { color: #fff; }
h1, h2, h3, h4 { font-weight: 400; margin: 0 0 .5em; line-height: 1.15; }
h1 { font-family: var(--display); font-size: clamp(2.6rem, 7vw, 5.4rem); letter-spacing: .02em; color: var(--brass-light); text-shadow: 0 2px 30px rgba(0,0,0,.6); }
h2 { font-family: var(--display); font-size: clamp(1.8rem, 3.6vw, 2.6rem); color: var(--brass-light); }
h3 { font-size: 1.45rem; color: var(--parchment); }
p { margin: 0 0 1em; }
.lede { font-size: 1.28rem; color: var(--parchment); }
.muted { color: var(--parchment-dim); }
.eyebrow {
  font-family: var(--serif);
  text-transform: uppercase;
  letter-spacing: .28em;
  font-size: .8rem;
  color: var(--brass);
  margin-bottom: .9rem;
  display: block;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; min-width: 0; }
body { overflow-x: hidden; }
section { padding: 96px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head h2 { margin-bottom: .6rem; }

/* deco rule: — ◆ — */
.rule {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  color: var(--brass); margin: 18px auto 0; width: 220px;
}
.rule::before, .rule::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--brass)); }
.rule::after { background: linear-gradient(90deg, var(--brass), transparent); }
.rule span { font-size: .7rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px;
  border: 1px solid var(--brass);
  color: var(--brass-light);
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: background .2s, color .2s, transform .15s;
}
.btn:hover { background: var(--brass); color: var(--ink); transform: translateY(-1px); }
.btn-primary { background: var(--brass); color: var(--ink); }
.btn-primary:hover { background: var(--brass-light); }
.btn-whatsapp { border-color: var(--whatsapp); color: #d9f8e4; }
.btn-whatsapp:hover { background: var(--whatsapp); color: var(--ink); }
.btn svg { width: 20px; height: 20px; fill: currentColor; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15, 26, 34, .82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(201,165,90,.18);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--brass-light); font-family: var(--display); font-size: 1.2rem; letter-spacing: .04em; white-space: nowrap; flex-shrink: 0; }
.brand img { width: 40px; height: 40px; }
.nav-links { display: flex; gap: 22px; align-items: center; list-style: none; margin: 0 20px; padding: 0; }
.nav-links a { font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; color: var(--parchment-dim); white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { color: var(--brass-light); }
.nav .btn { padding: 9px 18px; font-size: .85rem; white-space: nowrap; flex-shrink: 0; }
@media (max-width: 1260px) { .nav-links { gap: 16px; margin: 0 14px; } .nav-links a { font-size: .82rem; letter-spacing: .05em; } .nav .btn { padding: 8px 14px; font-size: .78rem; } }
.nav-toggle { display: none; background: none; border: 1px solid var(--brass-dim); color: var(--brass-light); width: 42px; height: 42px; border-radius: 2px; font-size: 1.2rem; cursor: pointer; }
@media (max-width: 1080px) {
  .nav-links { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; background: var(--ink-2); padding: 20px 24px 28px; gap: 18px; border-bottom: 1px solid rgba(201,165,90,.25); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .nav .btn-cta { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 92vh; display: grid; place-items: center; text-align: center;
  padding: 80px 0; overflow: hidden; isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background: url("../assets/photos/room.jpg") center 60% / cover no-repeat;
  filter: saturate(.9) brightness(.72);
  transform: scale(1.03);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse at center, rgba(15,26,34,.2) 0%, rgba(15,26,34,.6) 62%, var(--ink) 100%),
    linear-gradient(180deg, rgba(15,26,34,.45), rgba(15,26,34,.1) 40%, var(--ink) 100%);
}
.hero .mark { width: clamp(120px, 18vw, 190px); height: auto; margin: 0 auto 26px; filter: drop-shadow(0 8px 30px rgba(0,0,0,.6)); }
.hero .eyebrow { margin-bottom: 1.2rem; }
.hero h1 { margin-bottom: .4rem; }
.hero .tagline { font-size: clamp(1.15rem, 2.2vw, 1.5rem); color: var(--parchment); max-width: 640px; margin: 0 auto 1.6rem; font-style: italic; }
.hero .cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.hero .fineprint { margin-top: 30px; font-size: .95rem; color: var(--parchment-dim); letter-spacing: .06em; }

/* ---------- Stats strip ---------- */
.stats { border-top: 1px solid rgba(201,165,90,.25); border-bottom: 1px solid rgba(201,165,90,.25); background: var(--ink-2); padding: 0; }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 34px 20px; text-align: center; border-right: 1px solid rgba(201,165,90,.15); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-family: var(--display); font-size: 2.2rem; color: var(--brass-light); font-weight: 400; line-height: 1; margin-bottom: 8px; }
.stat span { text-transform: uppercase; letter-spacing: .2em; font-size: .78rem; color: var(--parchment-dim); }
@media (max-width: 720px) { .stats .wrap { grid-template-columns: repeat(2, 1fr); } .stat:nth-child(2) { border-right: 0; } .stat:nth-child(-n+2) { border-bottom: 1px solid rgba(201,165,90,.15); } }

/* ---------- Two-column feature ---------- */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }
.split figure { margin: 0; position: relative; }
.split figure img { border-radius: var(--radius); box-shadow: 0 30px 80px rgba(0,0,0,.55); border: 1px solid rgba(201,165,90,.3); aspect-ratio: 4/3; object-fit: cover; }
.split figure::before { content: ""; position: absolute; inset: -14px; border: 1px solid rgba(201,165,90,.35); border-radius: var(--radius); pointer-events: none; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; }
.step {
  position: relative; padding: 40px 28px 32px;
  background: linear-gradient(180deg, rgba(61,85,102,.22), rgba(22,35,45,.6));
  border: 1px solid rgba(201,165,90,.25); border-radius: var(--radius);
}
.step::before {
  counter-increment: step; content: counter(step, upper-roman);
  position: absolute; top: -18px; left: 24px;
  font-family: var(--display); font-size: 1.1rem; color: var(--ink);
  background: var(--brass); padding: 6px 14px; border-radius: 2px; letter-spacing: .1em;
}
.step h3 { margin-top: 4px; }
.step p { color: var(--parchment-dim); margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- Evenings ---------- */
.evenings { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.evening {
  display: grid; grid-template-columns: 96px 1fr; gap: 22px; align-items: start;
  padding: 28px; border: 1px solid rgba(201,165,90,.25); border-radius: var(--radius);
  background: rgba(22,35,45,.6);
}
.evening .glyph { width: 96px; height: 96px; border: 1px solid var(--brass-dim); border-radius: 50%; display: grid; place-items: center; font-family: var(--display); color: var(--brass-light); font-size: 1.6rem; background: radial-gradient(circle at 50% 40%, rgba(201,165,90,.15), transparent 70%); }
.evening h3 { margin-bottom: .3rem; }
.evening .when { color: var(--brass); font-size: .85rem; letter-spacing: .2em; text-transform: uppercase; display: block; margin-bottom: .6rem; }
.evening p { color: var(--parchment-dim); margin-bottom: .6rem; }
.evening .picks { font-size: .95rem; color: var(--parchment); }
.evening .picks b { color: var(--brass-light); font-weight: 400; }
@media (max-width: 860px) { .evenings { grid-template-columns: 1fr; } .evening { grid-template-columns: 1fr; } .evening .glyph { width: 72px; height: 72px; font-size: 1.3rem; } }

/* ---------- Library grid ---------- */
.library-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center; margin: 0 auto 36px; }
.chip {
  border: 1px solid rgba(201,165,90,.4); background: transparent; color: var(--parchment-dim);
  padding: 8px 16px; border-radius: 999px; font-family: var(--serif); font-size: .95rem; letter-spacing: .04em; cursor: pointer;
  transition: all .15s;
}
.chip:hover { color: var(--brass-light); border-color: var(--brass); }
.chip.active { background: var(--brass); color: var(--ink); border-color: var(--brass); }
.library-controls { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-bottom: 36px; }
.library-controls select, .library-controls input {
  background: var(--ink-2); color: var(--parchment); border: 1px solid rgba(201,165,90,.4);
  padding: 10px 14px; font-family: var(--serif); font-size: 1rem; border-radius: 2px; min-width: 200px;
}
.library-controls input::placeholder { color: var(--parchment-dim); }
.library-count { text-align: center; color: var(--parchment-dim); margin-bottom: 24px; font-style: italic; }

.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.game {
  background: var(--ink-2); border: 1px solid rgba(201,165,90,.22); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: transform .2s, border-color .2s; min-width: 0;
}
.game:hover { transform: translateY(-3px); border-color: rgba(201,165,90,.6); }
.game .cover { position: relative; aspect-ratio: 1; background: var(--slate-2); overflow: hidden; }
.game .cover img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.92); }
.game .cover .badge { position: absolute; top: 10px; left: 10px; background: rgba(15,26,34,.85); color: var(--brass-light); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; padding: 5px 9px; border: 1px solid rgba(201,165,90,.4); border-radius: 2px; }
.game .cover .badge.arkham { color: #b9dcc0; border-color: rgba(111,154,120,.6); }
.game .body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.game h3 { font-size: 1.2rem; margin: 0; line-height: 1.25; }
.game .meta { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--brass); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }
.game .blurb { color: var(--parchment-dim); font-size: .98rem; margin: 0; flex: 1; }
.game details { margin-top: 6px; font-size: .92rem; }
.game details summary { cursor: pointer; color: var(--brass-light); list-style: none; letter-spacing: .04em; }
.game details summary::-webkit-details-marker { display: none; }
.game details summary::before { content: "+ "; color: var(--brass); }
.game details[open] summary::before { content: "− "; }
.game details ul { margin: 8px 0 0; padding-left: 18px; color: var(--parchment-dim); }
.game details li { margin-bottom: 2px; }

.library-preview .games { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .library-preview .games { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 540px) { .library-preview .games, .games { grid-template-columns: minmax(0, 1fr); } }
.library-preview .more { text-align: center; margin-top: 44px; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 240px; gap: 14px; }
.gallery figure { margin: 0; overflow: hidden; border-radius: var(--radius); border: 1px solid rgba(201,165,90,.25); position: relative; }
.gallery figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; filter: saturate(.9); }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figure.tall { grid-row: span 2; }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 16px; font-size: .9rem; letter-spacing: .06em; background: linear-gradient(0deg, rgba(15,26,34,.9), transparent); color: var(--parchment); }
@media (max-width: 720px) { .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; } }

/* ---------- House rules ---------- */
.rules { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 44px; max-width: 920px; margin: 0 auto; }
.rules li { list-style: none; position: relative; padding-left: 38px; color: var(--parchment-dim); }
.rules li b { color: var(--parchment); font-weight: 400; display: block; font-size: 1.15rem; }
.rules li::before { content: "◆"; position: absolute; left: 0; top: .2em; color: var(--brass); font-size: .8rem; }
.rules { padding: 0; margin-top: 0; }
@media (max-width: 720px) { .rules { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; margin: 0 auto; }
.faq details { border-bottom: 1px solid rgba(201,165,90,.22); padding: 20px 0; }
.faq summary { cursor: pointer; font-size: 1.25rem; color: var(--parchment); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brass); font-family: var(--display); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 14px 0 0; color: var(--parchment-dim); }

/* ---------- Big CTA ---------- */
.cta-band {
  position: relative; text-align: center; padding: 110px 0; overflow: hidden; isolation: isolate;
  background: url("../assets/photos/study.jpg") center / cover no-repeat;
}
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--ink), rgba(15,26,34,.72) 40%, rgba(15,26,34,.72) 60%, var(--ink)); }
.cta-band h2 { font-size: clamp(2rem, 5vw, 3.4rem); }
.cta-band .password { font-style: italic; color: var(--parchment); max-width: 560px; margin: 0 auto 30px; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid rgba(201,165,90,.2); padding: 56px 0 40px; background: var(--ink-2); }
footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
footer h4 { color: var(--brass); text-transform: uppercase; letter-spacing: .22em; font-size: .8rem; margin-bottom: 14px; }
footer p, footer li { color: var(--parchment-dim); font-size: .98rem; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin-bottom: 8px; }
footer .brand { margin-bottom: 14px; }
footer .legal { grid-column: 1 / -1; border-top: 1px solid rgba(201,165,90,.12); padding-top: 22px; margin-top: 12px; font-size: .85rem; color: var(--parchment-dim); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
@media (max-width: 860px) { footer .wrap { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Page header (inner pages) ---------- */
.page-head { padding: 90px 0 40px; text-align: center; background: radial-gradient(ellipse at top, rgba(61,85,102,.35), transparent 60%); }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }

/* ---------- Config warning (dev only) ---------- */
.config-warning { background: #5a2a1e; color: #ffe1d6; text-align: center; padding: 10px 16px; font-size: .9rem; }
.config-warning code { background: rgba(0,0,0,.3); padding: 2px 6px; border-radius: 2px; }

/* ---------- Reveal on scroll ---------- */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- Shop (coming soon) ---------- */
.shop { position: relative; overflow: hidden; }
.shop::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 0%, rgba(111,154,120,.12), transparent 60%); pointer-events: none; }
.shop-inner { position: relative; text-align: center; max-width: 820px; margin: 0 auto; padding: 56px 40px 64px; border: 1px solid rgba(201,165,90,.35); border-radius: var(--radius); background: rgba(22,35,45,.55); }
.shop-inner::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(201,165,90,.18); border-radius: 2px; pointer-events: none; }
.shop-inner .lede { margin-bottom: .6rem; }
.shop-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 34px 0 30px; text-align: left; }
.shop-card { padding: 20px; border: 1px solid rgba(201,165,90,.22); border-radius: var(--radius); background: rgba(15,26,34,.6); display: flex; flex-direction: column; gap: 6px; }
.shop-card b { color: var(--parchment); font-weight: 400; font-size: 1.15rem; }
.shop-card span:last-child { color: var(--parchment-dim); font-size: .95rem; }
.shop-glyph { color: var(--brass); font-size: .7rem; }
.shop-note { color: var(--parchment-dim); margin: 0; }
.stamp {
  position: absolute; top: 22px; right: 22px; transform: rotate(8deg);
  font-family: var(--display); letter-spacing: .18em; text-transform: uppercase; font-size: .8rem;
  color: var(--eldritch); border: 2px solid var(--eldritch); padding: 8px 14px; border-radius: 2px; opacity: .85;
}
@media (max-width: 860px) { .shop-cards { grid-template-columns: 1fr; } .shop-inner { padding: 64px 22px 48px; } .stamp { top: 14px; right: 14px; } }
