/* Welcome page.
 *
 * The neutral front door: it explains the game and hands you the three ways
 * to run it. Shares the quiz's palette exactly, so stepping into the game
 * feels like walking through a doorway rather than arriving somewhere else.
 */

:root {
  --bg: #0b0d12;
  --lift: #141823;
  --fg: #f2f4f8;
  --dim: #6b7488;
  --accent: #ffcc33;
  --line: #232936;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
}

body {
  color: var(--fg);
  font-family: Archivo, "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  display: grid;
  place-items: center;
  padding: clamp(32px, 7vw, 80px) clamp(18px, 5vw, 56px);
}

#page {
  position: relative;
  width: 100%;
  max-width: 760px;
  text-align: center;
}


/* ---------- the mark ----------
   The title behaves like the puzzles it introduces. */

.mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(7px, 1.2vh, 12px);
  margin-bottom: clamp(26px, 4vh, 44px);
}

.mark-rule {
  display: block;
  width: clamp(150px, 34vw, 300px);
  height: clamp(3px, 0.5vh, 5px);
  background: var(--fg);
  border-radius: 999px;
}

.mark-word {
  font-size: clamp(26px, 5.6vw, 54px);
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--accent);
  line-height: 1;
}

/* ---------- title ---------- */

.title {
  margin: 0;
  font-size: clamp(13px, 1.7vw, 19px);
  font-weight: 600;
  letter-spacing: 0.4em;
  text-indent: 0.4em;
  color: var(--dim);
}

.blurb {
  max-width: 44ch;
  margin: clamp(18px, 3vh, 28px) auto 0;
  font-size: clamp(14px, 1.7vw, 19px);
  font-weight: 500;
  line-height: 1.65;
  color: var(--dim);
}

/* ---------- ways in ---------- */

.ways {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: clamp(10px, 1.4vw, 16px);
  margin: clamp(30px, 5vh, 52px) 0 0;
  text-align: left;
}

.way {
  display: block;
  padding: clamp(16px, 2vw, 24px) clamp(17px, 2.1vw, 26px);
  background: var(--lift);
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.12s ease;
}

.way:hover,
.way:focus-visible {
  background: #1a2030;
  border-color: var(--accent);
  transform: translateY(-2px);
}

.way:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.way-name {
  display: block;
  font-size: clamp(15px, 1.6vw, 19px);
  font-weight: 800;
  color: var(--fg);
  margin-bottom: 5px;
}

.way-sub {
  display: block;
  font-size: clamp(12px, 1.2vw, 14px);
  font-weight: 500;
  color: var(--dim);
  line-height: 1.5;
}

.hint {
  margin: clamp(22px, 3.5vh, 34px) 0 0;
  font-size: clamp(12px, 1.2vw, 14px);
  font-weight: 500;
  color: #4d5567;
}

@media (prefers-reduced-motion: reduce) {
  .way { transition: none; }
}
