/* LampyQuest — shared puzzle page styles
   Harvard Lampoon 150th anniversary hunt
   Palette: purple, gold & crimson */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-bg: #1a0f30;
  --color-surface: #2b1750;
  --color-purple: #4a2d8a;
  --color-purple-light: #6940b8;
  --color-accent: #fcd116;
  --color-accent-dim: #d4af00;
  --color-red: #d4213d;
  --color-red-light: #ef3850;
  --color-text: #eef0f5;
  --color-muted: #9a88b8;
  --font-body: system-ui, -apple-system, sans-serif;
  --font-display: Georgia, 'Times New Roman', serif;
  --font-mono: ui-monospace, monospace;
}

html, body {
  height: 100%;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

body {
  padding: 1.5rem 1rem;
  max-width: 600px;
  margin: 0 auto;
}

h1 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--color-accent);
}

h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
  color: var(--color-accent);
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover, a:active {
  color: var(--color-accent-dim);
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  border: 2px solid var(--color-surface);
}

audio {
  width: 100%;
  margin: 1rem 0;
}

.puzzle-container {
  padding: 1rem 0;
}

.puzzle-header {
  border-bottom: 2px solid var(--color-purple-light);
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
}

strong, b {
  color: var(--color-red-light);
  font-weight: 700;
}

.hint {
  font-size: 0.85rem;
  color: var(--color-muted);
  font-style: italic;
}

/* Utility: image grid for multi-image puzzles */
.image-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin: 1rem 0;
}

.image-grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.image-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

/* Utility: button */
.btn {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  background: var(--color-purple);
  color: var(--color-accent);
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.btn:hover, .btn:active {
  background: var(--color-purple-light);
  color: var(--color-accent);
}

.btn.btn-red {
  background: var(--color-red);
  color: var(--color-text);
}

.btn.btn-red:hover, .btn.btn-red:active {
  background: var(--color-red-light);
}
