/* Gridda landing — light theme only */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&display=swap');

:root {
  color-scheme: light;

  --color-bg: #FBF7EF;
  --color-surface: #FFFFFF;
  --color-surface-alt: #F0ECE6;
  --color-primary: #17365C;          /* headings + links */
  --color-primary-hover: #0F2640;
  --color-text: #1A1816;             /* body text — near black */
  --color-text-secondary: #5C5750;
  --color-text-muted: #9E9890;
  --color-border: #E2DDD3;

  --shadow-sm: 0 1px 3px rgba(26, 24, 22, 0.06), 0 1px 2px rgba(26, 24, 22, 0.04);
  --shadow-md: 0 4px 12px rgba(26, 24, 22, 0.08), 0 2px 4px rgba(26, 24, 22, 0.04);
  --shadow-lg: 0 8px 24px rgba(26, 24, 22, 0.10), 0 4px 8px rgba(26, 24, 22, 0.04);

  --font-sans: 'Outfit', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 150ms ease-out;
}
a:hover { color: var(--color-primary-hover); text-decoration: underline; }

.page-header {
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}


/* ---- Landing (minimal: wordmark + Play badge) ---- */

.landing-minimal {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.landing-minimal main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  padding: 2rem 1.25rem;
  text-align: center;
}

.wordmark {
  width: min(420px, 80vw);
  height: auto;
  display: block;
}
.wordmark--sm {
  width: min(160px, 50vw);
}
.brand-link {
  display: inline-block;
  line-height: 0;
}
.brand-link:hover { text-decoration: none; opacity: 0.85; }

.play-badge {
  display: inline-block;
  line-height: 0;
  transition: transform 150ms ease-out, filter 150ms ease-out;
}
.play-badge img {
  width: min(220px, 60vw);
  height: auto;
  display: block;
}
.play-badge:hover {
  text-decoration: none;
  transform: translateY(-1px);
  filter: brightness(1.05);
}
.play-badge:active { transform: scale(0.97); }

footer {
  border-top: 1px solid var(--color-border);
  padding: 1.5rem 1.25rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}
footer nav {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}
.copyright { margin: 0; color: var(--color-text-muted); font-size: 0.8rem; }

/* ---- Puzzle redirect ---- */

.puzzle-redirect {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.card {
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: 14px;
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
  text-align: center;
  max-width: 22rem;
  width: 100%;
}
.card .brand-link { display: inline-block; margin-bottom: 1rem; }
.card .wordmark--sm { width: min(140px, 60vw); margin: 0 auto; }
.card p { margin: 0.5rem 0; color: var(--color-text-secondary); }

/* ---- Legal / 404 ---- */

.legal main.prose {
  max-width: 640px;
  margin: 0 auto;
  padding: 1rem 1.25rem 3rem;
}

.prose h1,
.prose h2 {
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.01em;
}
.prose h1 {
  font-size: 1.875rem;
  margin: 0 0 0.5rem;
}
.prose h2 {
  font-size: 1.25rem;
  margin: 2rem 0 0.5rem;
}
.prose > strong {
  display: block;
  font-weight: 700;
  color: var(--color-primary);
  font-size: 1.125rem;
  margin: 1.75rem 0 0.5rem;
}
.prose .updated { color: var(--color-text-muted); font-size: 0.85rem; margin-top: 0; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: 0.4rem; color: var(--color-text-secondary); }
.prose p { color: var(--color-text-secondary); }
.prose hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 2rem 0;
}
.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--color-surface-alt);
  padding: 0.1em 0.35em;
  border-radius: 4px;
  font-size: 0.9em;
  color: var(--color-text);
}
