/* the ClueLess — front page only.
   Sub-site pages use assets/sub.css instead (different palette roles —
   see claude/site-structure.md section 0). The Escape Room Journal keeps
   its own escaperoom/style.css. */

/* Front page's 5-color palette, as CSS custom properties (variables) —
   referenced everywhere below as var(--name) instead of repeating hex
   codes, so the whole page's look can be retuned from this one block.
   This is a separate copy of the same 5 values assets/sub.css defines
   for every other page — kept duplicated on purpose since the front
   page is the one deliberate exception to the shared sub-page look
   (see claude/site-structure.md section 0). */
:root {
  --wine: #3c0008;
  --navy: #012161;
  --cream: #e8d6b6;
  --cream-dim: #ddc9a3;
  --paper: #fffaf0;
}
/* Makes every element's declared width/height include its padding and
   border, instead of the browser's default of adding them on top — the
   standard reset nearly every modern site applies, so padding never
   accidentally makes a box bigger than its declared width. */
* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--navy);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
header {
  background: var(--navy);
  padding: 40px 24px 36px;
  text-align: center;
}
.wordmark {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}
.wordmark .the {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cream-dim);
}
.wordmark .mark {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: 52px;
  line-height: 1.1;
}
.wordmark .mark .clue { color: var(--cream); }
.wordmark .mark .less { color: var(--cream-dim); }
.wordmark .underline {
  width: 220px;
  height: 10px;
  margin-top: 4px;
}
.wordmark .underline path {
  stroke: var(--cream-dim);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
}
.tagline {
  max-width: 480px;
  margin: 14px auto 0;
  font-size: 14px;
  color: var(--cream-dim);
  letter-spacing: 0.01em;
}
main {
  max-width: 880px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}
section + section {
  margin-top: 48px;
}
.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wine);
}
.section-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--cream-dim);
}
/* The card-listing grid used inside each <section>. `auto-fit` +
   `minmax(220px, 1fr)` means the browser fits as many 220px-or-wider
   columns as the viewport allows and stretches them evenly to fill the
   remaining space — so the grid naturally reflows from many columns on
   a wide desktop down to one column on a narrow phone, with no separate
   mobile-specific column-count override needed. */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.card {
  display: block;
  padding: 24px;
  border-radius: 14px;
  background: var(--cream);
  color: var(--navy);
  text-decoration: none;
  border: 1px solid var(--cream-dim);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(1, 33, 97, 0.12);
}
.card h2 {
  margin: 0 0 6px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
}
.card p {
  margin: 0;
  font-size: 14px;
  color: var(--navy);
  opacity: 0.75;
}
.card.disabled {
  background: transparent;
  border: 1px dashed var(--cream-dim);
  cursor: default;
  opacity: 0.6;
}
.card.disabled:hover {
  transform: none;
  box-shadow: none;
}
.badge {
  display: inline-block;
  margin-top: 10px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--wine);
}

/* ---------- Footer (added 2026-10-11) ----------
   Kept intentionally simple per Andy: just the site name and a small
   "Est. 2018" personal touch, one centered line, no login button and no
   link to /admin/ (this is a public-facing catalog page, not a
   login-gated sub-site — see claude/site-structure.md section 0b, and
   section 0a for why none of the 3 catalog sub-sites has its own
   login). This is its own small block rather than reusing any rule from
   assets/sub.css, since the front page is the one deliberate exception
   to that shared sub-page look (section 0) and keeps every one of its
   own rules self-contained in this file. The border-top color matches
   this page's own existing divider convention (.section-label::after,
   a few rules up) — var(--cream-dim) — rather than copying sub.css's
   divider color (var(--navy)), so the footer reads as part of THIS
   page's palette, not a copy-pasted sub-page rule. */
/* 2026-10-20: width aligned to the content (832px = <main>'s 880px minus
   its 24px side padding), so the divider line starts and ends exactly
   where the cards do instead of sticking out 24px each side. Same change
   made to .catalog-footer in sub.css so the front page, Mini Web Apps and
   Gaming Apps footers look identical. */
footer {
  width: calc(100% - 48px);
  max-width: 832px;
  margin: 0 auto;
  padding: 24px 0 40px;
  border-top: 1px solid var(--cream-dim);
  text-align: center;
}
footer p {
  margin: 0;
  font-size: 13px;
  color: var(--wine);
}
