/* ==========================================================================
   icebreaker.games — layout for the website pages (home, guides, privacy…).
   Colours and fonts come from theme.css. Games have their own styles.
   ========================================================================== */

html { scroll-behavior: smooth; }
body.site {
  height: auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #050a1f linear-gradient(180deg, #0b1438 0, #050a1f 520px) no-repeat;
  font-size: 1.0625rem;
  line-height: 1.65;
}
body.site main { flex: 1; width: min(1040px, 100%); margin: 0 auto; padding: 8px 20px 56px; }
body.site main.narrow { width: min(760px, 100%); }

a { color: #8ccaff; }
a:hover { color: #fff; }
:focus-visible { outline: 3px solid #8ccaff; outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 { line-height: 1.15; margin: 0; }
h1 { font-family: var(--font-display); font-weight: 400; letter-spacing: 0.03em; font-size: clamp(2.3rem, 6vw, 4rem); color: #fff; }
h2 { font-family: var(--font-display); font-weight: 400; letter-spacing: 0.04em; font-size: clamp(1.7rem, 4vw, 2.4rem); color: var(--accent); margin: 48px 0 14px; }
h3 { font-size: 1.15rem; font-weight: 800; margin: 22px 0 6px; }
p { margin: 0 0 14px; }
.lead { font-size: clamp(1.1rem, 2.2vw, 1.3rem); color: var(--ink-dim); max-width: 60ch; }
.muted { color: var(--ink-dim); }
.small { font-size: 0.9rem; }

/* ------------------------------ Header + footer ------------------------------ */
site-header { display: block; min-height: 68px; }
.site-header { width: min(1040px, 100%); margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
.site-logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; color: #fff; text-decoration: none; }
.site-logo b { color: var(--accent); }
.logo-hex { width: 30px; aspect-ratio: 1.1547; clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); background: linear-gradient(135deg, var(--brand-blue) 0 50%, var(--accent) 50% 100%); }
.site-header nav, .site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.site-header nav a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 0.98rem; padding: 6px 0; }
.site-header nav a:hover { color: var(--accent); }

site-footer { display: block; border-top: 1px solid var(--line); background: #070c22; }
.site-footer { width: min(1040px, 100%); margin: 0 auto; padding: 28px 20px 36px; color: var(--ink-dim); font-size: 0.95rem; }
.site-footer nav { margin: 10px 0 14px; }
.site-footer nav a { padding: 4px 0; }
.site-footer p { margin: 0; }

/* --------------------------------- Buttons --------------------------------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.85em 1.5em;
  border-radius: 12px;
  border: 2px solid transparent;
  background: var(--accent);
  color: #201400;
  font: 800 1.1rem/1.1 var(--font-ui);
  text-decoration: none;
  cursor: pointer;
}
.button:hover { background: #ffd95e; color: #201400; }
.button.big { font-size: 1.3rem; padding: 1em 1.9em; }
.button.ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.button.ghost:hover { border-color: #fff; color: #fff; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 22px 0; }

/* ----------------------------------- Home ----------------------------------- */
.hero { padding: 36px 0 12px; }
.hero h1 { max-width: 24ch; }
.hero .lead { margin-top: 16px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.game-card {
  --c: var(--accent);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 268px;
  padding: 22px;
  border-radius: 18px;
  border: 2px solid var(--c);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 45%), var(--panel);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.2s;
}
.game-card:hover { transform: translateY(-4px); color: var(--ink); }
.game-card h3 { font-family: var(--font-display); font-weight: 400; font-size: 2rem; letter-spacing: 0.05em; margin: 4px 0 0; }
.game-card p { margin: 0; color: var(--ink-dim); font-size: 0.98rem; line-height: 1.5; }
.game-card .meta { margin-top: auto; font-size: 0.85rem; font-weight: 700; color: var(--ink-dim); }
.game-card .badge { position: absolute; top: 18px; right: 18px; padding: 4px 12px; border-radius: 99px; background: var(--c); color: #0a1030; font-size: 0.78rem; font-weight: 800; }
.game-card.soon { border-style: dashed; }
.game-card.soon .badge { background: transparent; color: var(--c); border: 1.5px solid var(--c); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; counter-reset: step; }
.steps li { counter-increment: step; padding: 20px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 10px; border-radius: 50%; background: var(--accent); color: #201400; font-weight: 900; font-size: 1.2rem; }
.steps b { display: block; margin-bottom: 4px; }

/* ------------------------------ Content pages ------------------------------ */
.page-head { padding: 28px 0 6px; }
.panel { padding: 20px 22px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); margin: 18px 0; }
.panel > :last-child { margin-bottom: 0; }
.tick-list { list-style: none; padding: 0; margin: 0 0 14px; }
.tick-list li { padding-left: 1.7em; position: relative; margin-bottom: 8px; }
.tick-list li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 900; }
figure { margin: 18px 0; }
figure img, figure video { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); background: #070c22; }
figcaption { margin-top: 8px; font-size: 0.9rem; color: var(--ink-dim); }
ol.guide { padding-left: 0; list-style: none; counter-reset: g; }
ol.guide > li { counter-increment: g; position: relative; padding: 0 0 8px 58px; margin-bottom: 26px; }
ol.guide > li::before { content: counter(g); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--accent); color: #201400; font-weight: 900; font-size: 1.2rem; }
ol.guide h2.step { font: 800 1.2rem/1.25 var(--font-ui); letter-spacing: 0; color: var(--ink); margin: 6px 0 6px; }
details { border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin-bottom: 10px; background: var(--panel); }
summary { cursor: pointer; font-weight: 800; }
details p { margin: 10px 0 0; }
kbd { padding: 1px 7px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; font: 700 0.85em ui-monospace, Consolas, monospace; background: rgba(255, 255, 255, 0.06); }

/* Coming-soon pages */
.soon-hero { text-align: center; padding: 40px 0 10px; }
.soon-hero img { width: 120px; height: 120px; }
.soon-hero h1 { margin-top: 12px; }
.soon-hero .lead { margin: 16px auto 0; }
.soon-tag { display: inline-block; margin-top: 14px; padding: 5px 16px; border-radius: 99px; border: 2px dashed var(--accent); color: var(--accent); font-weight: 800; }

/* Icebreaker questions */
.q-group { margin: 14px 0 34px; }
.q-group-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.q-group-head h2 { margin: 0; }
.q-list { margin: 12px 0 0; padding-left: 1.6em; }
.q-list li { margin-bottom: 8px; padding-left: 4px; }
.copy { padding: 8px 14px; border-radius: 10px; border: 1.5px solid var(--line); background: transparent; color: var(--ink); font: 700 0.9rem var(--font-ui); cursor: pointer; }
.copy:hover { border-color: #fff; }
.copy.done { border-color: var(--good); color: #86efac; }

@media (max-width: 560px) {
  body.site main { padding: 4px 16px 40px; }
  .site-header { padding: 12px 16px; }
  .site-footer { padding: 24px 16px 30px; }
  ol.guide > li { padding-left: 0; padding-top: 52px; }
}
