/* ===== Reset / base ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
.fade-in { animation: fadeIn 0.6s ease-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px);} to { opacity: 1; transform: translateY(0);} }

/* ===== Cozy Puzzle Theme Colors (site-wide) ===== */
:root {
  --linen-white: #F9F7F3;
  --warm-sand: #E8E2D9;
  --weathered-driftwood: #B7AFA6;
  --deep-slate: #3B3A36;
  --stone-gray: #6C6862;
  --sea-pebble: #9DA6A0;
  --golden-sandbar: #DDBF7A;
  --seafoam-mist: #A9C8BC;
  --coral-blush: #E79D83;
}

/* ===== Base layout ===== */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--deep-slate);
  background: linear-gradient(135deg, var(--linen-white) 0%, var(--warm-sand) 100%);
  min-height: 100vh;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== Header / Nav ===== */
header {
  background: rgba(249, 247, 243, 0.95);
  backdrop-filter: blur(10px);
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000; padding: 1rem 0;
  border-bottom: 1px solid rgba(183, 175, 166, 0.3);
}
nav { display: flex; justify-content: space-between; align-items: center; }
.logo {
  font-size: 1.8rem; font-weight: 700; color: var(--deep-slate);
  text-decoration: none; display: flex; align-items: center; gap: 0.5rem;
}
.logo::before { content: "🧩"; font-size: 1.5rem; }
.nav-links { display: flex; list-style: none; gap: 2rem; }
.nav-links a {
  text-decoration: none; color: var(--stone-gray); font-weight: 500; transition: color 0.3s ease;
}
.nav-links a:hover { color: var(--golden-sandbar); }

/* ===== Hero ===== */
.hero {
  padding: 120px 0 80px; text-align: center;
  background: linear-gradient(135deg, var(--linen-white) 0%, rgba(169, 200, 188, 0.1) 100%);
}
.hero h1 {
  font-size: 3.5rem; font-weight: 700; margin-bottom: 1rem; line-height: 1.4;
  background: linear-gradient(135deg, var(--deep-slate) 0%, var(--stone-gray) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero p {
  font-size: 1.3rem; color: var(--stone-gray); margin-bottom: 2rem;
  max-width: 600px; margin-left: auto; margin-right: auto;
}
.cta-button, .btn-primary {
  display: inline-block; color: white; padding: 15px 30px; border-radius: 50px;
  text-decoration: none; font-weight: 600; font-size: 1.1rem; transition: all 0.3s ease;
  background: linear-gradient(135deg, var(--golden-sandbar) 0%, var(--coral-blush) 100%);
  box-shadow: 0 4px 15px rgba(221, 191, 122, 0.4);
}
.cta-button:hover, .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 25px rgba(221, 191, 122, 0.6); }

/* ===== Features section ===== */
.features { padding: 80px 0; background: var(--linen-white); }
.features h2 {
  text-align: center; font-size: 2.5rem; margin-bottom: 3rem; color: var(--deep-slate);
}
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem;
}
.feature-card, .card {
  background: rgba(232, 226, 217, 0.7); padding: 2rem; border-radius: 15px; text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(183, 175, 166, 0.3);
}
.feature-card:hover, .card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(183, 175, 166, 0.3); }
.feature-icon { font-size: 3rem; margin-bottom: 1rem; display: block; }
.feature-card h3 { font-size: 1.5rem; margin-bottom: 1rem; color: var(--deep-slate); }
.feature-card p { color: var(--stone-gray); line-height: 1.6; }

/* ===== About section ===== */
.about {
  padding: 80px 0;
  background: linear-gradient(135deg, rgba(169, 200, 188, 0.1) 0%, var(--warm-sand) 100%);
}
.about-content { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-text h2 { font-size: 2.5rem; margin-bottom: 1.5rem; color: var(--deep-slate); }
.about-text p { font-size: 1.1rem; color: var(--stone-gray); margin-bottom: 1.5rem; line-height: 1.7; }
.about-image {
  background: linear-gradient(135deg, var(--seafoam-mist) 0%, var(--coral-blush) 100%);
  height: 400px; border-radius: 15px; display: flex; align-items: center; justify-content: center;
  font-size: 4rem; color: white; box-shadow: 0 10px 30px rgba(169, 200, 188, 0.3);
}

/* ===== Games preview (optional) ===== */
.games-preview { padding: 80px 0; background: var(--linen-white); }
.games-preview h2 { text-align: center; font-size: 2.5rem; margin-bottom: 3rem; color: var(--deep-slate); }
.game-showcase {
  background: rgba(232, 226, 217, 0.8); border-radius: 20px; padding: 3rem; text-align: center;
  border: 1px solid rgba(183, 175, 166, 0.3);
}
.game-showcase h3 { font-size: 2rem; margin-bottom: 1rem; color: var(--deep-slate); }
.game-showcase p {
  font-size: 1.2rem; color: var(--stone-gray); margin-bottom: 2rem; line-height: 1.6;
}
.game-status {
  display: inline-block; color: white; padding: 10px 20px; border-radius: 25px; font-weight: 600; font-size: 0.9rem;
  background: linear-gradient(135deg, var(--seafoam-mist) 0%, var(--golden-sandbar) 100%);
}

/* ===== Footer ===== */
footer { background: var(--deep-slate); color: var(--warm-sand); padding: 60px 0 30px; }
.footer-content {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem; margin-bottom: 2rem;
}
.footer-section h3 { margin-bottom: 1rem; color: var(--golden-sandbar); }
.footer-section p, .footer-section a { color: var(--warm-sand); text-decoration: none; line-height: 1.6; }
.footer-section a:hover { color: var(--coral-blush); }
.footer-bottom {
  text-align: center; padding-top: 2rem;
  border-top: 1px solid rgba(232, 226, 217, 0.2); color: var(--sea-pebble);
}

/* ===== Utilities for Puzzle Nook page ===== */
.section { padding: 80px 0; }
.section--light { background: var(--linen-white); }
.section--gradient { background: linear-gradient(135deg, var(--linen-white) 0%, rgba(169, 200, 188, 0.1) 100%); }
.grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.badge {
  display: inline-block; padding: 6px 12px; border-radius: 999px; font-weight: 600; font-size: .9rem;
  background: rgba(169,200,188, .25); color: var(--deep-slate); border: 1px solid rgba(169,200,188,.45);
}
.link { color: var(--deep-slate); text-decoration: underline; text-underline-offset: 2px; }
/* === List formatting inside content blocks === */
.section ul,
.section ol,
.card ul,
.card ol {
  padding-left: 1.5rem;
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
}
.section li,
.card li {
  margin-bottom: 0.4rem;
  line-height: 1.6;
}
