/* =========================================================
   Top Games Hub — Soft calm pastel
   Refined, gentle, stationery-brand feel. No gimmicks.
   ========================================================= */

:root {
  --bg: #fbf8f3;
  --surface: #ffffff;
  --ink: #2a2a28;
  --ink-soft: #3d3c38;
  --muted: #74716b;
  --accent: #7a8a5a;
  --accent-hover: #65754a;
  --accent-soft: #e8ecdd;
  --divider: #ebe6db;
  --footer-bg: #f3eee2;
  --shadow-card: 0 1px 2px rgba(0,0,0,0.03), 0 12px 24px -18px rgba(40,40,30,0.10);
  --shadow-card-hover: 0 1px 2px rgba(0,0,0,0.04), 0 22px 36px -20px rgba(40,40,30,0.18);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-pill: 999px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Mulish', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--accent-hover); }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.hidden { display: none !important; }

/* ---------- Container ---------- */
.container {
  width: min(1180px, 92%);
  margin-inline: auto;
}

/* ---------- Typography helpers ---------- */
h1, h2, h3 {
  font-family: 'Newsreader', Georgia, 'Times New Roman', serif;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 0 0 0.4em;
  line-height: 1.1;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--divider);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(140%) blur(6px);
  -webkit-backdrop-filter: saturate(140%) blur(6px);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
}
.site-logo {
  font-family: 'Newsreader', Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: 24px;
  color: var(--ink);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.site-logo:hover { color: var(--ink); }

.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 4px;
  align-items: center;
  justify-content: flex-end;
}
.main-nav li a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 6px 12px;
  position: relative;
  border-radius: 6px;
  transition: color 0.2s ease;
}
.main-nav li a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s ease;
}
.main-nav li a:hover { color: var(--accent); }
.main-nav li a:hover::after { transform: scaleX(1); }

/* ---------- Hero ---------- */
.hero {
  padding: clamp(64px, 12vw, 140px) 0 clamp(56px, 10vw, 120px);
}
.hero .container { max-width: 920px; }
.hero h1 {
  font-family: 'Newsreader', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(50px, 7vw, 86px);
  line-height: 0.98;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 28px;
  max-width: 14ch;
  animation: fadeUp 0.9s ease both;
}
.hero p {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 58ch;
  margin: 0;
  animation: fadeUp 0.9s ease 0.12s both;
}

/* ---------- Sections ---------- */
section { padding: clamp(48px, 8vw, 96px) 0; }
section + section { border-top: 1px solid var(--divider); }

/* The .about-block is used both for section headers AND for the about copy.
   Distinguish via parent. */
.about-block { margin-bottom: 48px; max-width: 720px; }
.about-block h2 {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 400;
  font-size: clamp(36px, 4.4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 14px;
}
.about-block > p {
  font-size: 16px;
  color: var(--muted);
  max-width: 60ch;
  margin: 0;
}

/* Subtle character: selective italic on alternate section headings */
#reviews .about-block h2,
#about .about-block h2 {
  font-style: italic;
}

/* ---------- Games grid ---------- */
.games-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card {
  display: flex;
  flex-direction: column;
}
.game-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}

/* Entrance fade on first row */
.games-grid > .game-card:nth-child(-n+2) {
  animation: fadeUp 0.8s ease 0.2s both;
}
.games-grid > .game-card:nth-child(2) { animation-delay: 0.3s; }

.game-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}
.game-head img {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid var(--divider);
  flex: 0 0 64px;
}
.game-head h3 {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 400;
  font-size: 22px;
  line-height: 1.2;
  margin: 0 0 6px;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.game-meta {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.badge {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: 'Mulish', sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.game-desc {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0 0 20px;
}

.screenshots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 22px;
}
.screenshots img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--divider);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-family: 'Mulish', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  transition: background 0.2s ease, transform 0.2s ease;
  text-align: center;
  align-self: flex-start;
  margin-top: auto;
}
.btn:hover { background: var(--accent-hover); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn-block { display: block; width: 100%; align-self: stretch; }

/* ---------- Reviews ---------- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}
.review-card {
  display: flex;
  flex-direction: column;
}
.review-stars {
  color: var(--accent);
  font-size: 16px;
  letter-spacing: 0.15em;
  margin-bottom: 14px;
}
.review-card p {
  font-family: 'Newsreader', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
  margin: 0 0 18px;
}
.review-meta {
  font-family: 'Mulish', sans-serif;
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: auto;
  font-weight: 500;
}

/* ---------- FAQ ---------- */
.faq-list {
  border-top: 1px solid var(--divider);
}
.faq-item {
  border-bottom: 1px solid var(--divider);
  padding: 22px 0;
}
.faq-item summary {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 400;
  font-size: 22px;
  color: var(--ink);
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  transition: color 0.2s ease;
}
.faq-item summary:hover { color: var(--accent); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: 'Mulish', sans-serif;
  font-weight: 400;
  font-size: 24px;
  color: var(--muted);
  flex: 0 0 auto;
  width: 28px;
  text-align: center;
  transition: transform 0.3s ease, color 0.2s ease;
  line-height: 1;
}
.faq-item[open] summary::after {
  content: "−";
  color: var(--accent);
}
.faq-item p {
  font-family: 'Mulish', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  margin: 14px 0 4px;
  max-width: 70ch;
}
.faq-item a { color: var(--accent); border-bottom: 1px solid transparent; }
.faq-item a:hover { border-bottom-color: var(--accent); }

/* ---------- About — image + text ---------- */
#about .container {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.about-figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--divider);
  background: var(--surface);
}
.about-figure img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}
#about .about-block {
  margin: 0;
  max-width: none;
}
#about .about-block h2 {
  margin: 0 0 18px;
  font-size: clamp(36px, 4vw, 48px);
}
#about .about-block p {
  font-family: 'Mulish', sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: none;
  margin: 0 0 1.1em;
}
#about .about-block p:last-child { margin-bottom: 0; }

/* ---------- Subscribe ---------- */
#subscribe { padding-bottom: clamp(56px, 9vw, 110px); }
.contact-card {
  max-width: 620px;
  margin-inline: auto;
  padding: clamp(28px, 4vw, 44px);
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.contact-card h2 {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 400;
  font-size: clamp(30px, 3.4vw, 40px);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.contact-card .subtitle {
  font-family: 'Mulish', sans-serif;
  font-size: 16px;
  color: var(--muted);
  margin: 0 0 28px;
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-family: 'Mulish', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 6px;
}
.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"] {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: 'Mulish', sans-serif;
  font-size: 16px;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}
.form-group input::placeholder { color: #b9b6ad; }
.form-group input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(122,138,90,0.12);
}
.form-agree label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
  font-weight: 400;
}
.form-agree input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}
.form-agree a { color: var(--accent); }
.form-agree a:hover { text-decoration: underline; }

.form-success {
  display: none;
  margin-top: 16px;
  padding: 12px 14px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
}
.form-success.show { display: block; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--footer-bg);
  border-top: 1px solid var(--divider);
  padding: 40px 0 32px;
}
.site-footer .container { text-align: center; }
.site-footer p {
  font-family: 'Mulish', sans-serif;
  font-size: 14px;
  color: var(--muted);
  margin: 8px 0 0;
}
.footer-links {
  font-family: 'Mulish', sans-serif;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 14px;
  line-height: 2;
}
.footer-links a {
  color: var(--muted);
  padding: 0 6px;
  transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--accent); }
.site-footer a { color: var(--accent); }
.site-footer a:hover { color: var(--accent-hover); }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  width: min(680px, calc(100% - 32px));
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 22px 50px -20px rgba(40,40,30,0.22);
  z-index: 100;
  flex-wrap: wrap;
}
.cookie-banner p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.55;
  flex: 1 1 320px;
}
.cookie-banner a {
  color: var(--accent);
  border-bottom: 1px solid transparent;
}
.cookie-banner a:hover { border-bottom-color: var(--accent); }
#cookieAccept {
  background: var(--accent);
  color: #fff;
  font-family: 'Mulish', sans-serif;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  transition: background 0.2s ease;
  white-space: nowrap;
}
#cookieAccept:hover { background: var(--accent-hover); }

/* ---------- Animations ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .site-header .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 0;
  }
  .main-nav ul { justify-content: flex-start; }
  .main-nav li a { padding: 6px 10px 6px 0; }
  .main-nav li a::after { left: 0; right: 10px; }

  .games-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }

  #about .container {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .about-figure img { aspect-ratio: 16 / 10; }

  .hero { padding: 72px 0 60px; }
  section { padding: 64px 0; }
}

@media (max-width: 480px) {
  :root { --radius: 12px; }
  .container { width: min(1180px, 94%); }
  .hero { padding: 56px 0 48px; }
  .hero h1 { font-size: clamp(40px, 11vw, 56px); }
  .hero p { font-size: 16px; }

  section { padding: 52px 0; }
  .about-block { margin-bottom: 32px; }
  .about-block h2 { font-size: clamp(30px, 8vw, 38px); }

  .card { padding: 20px; }
  .game-head img { width: 56px; height: 56px; flex-basis: 56px; }
  .game-head h3 { font-size: 20px; }
  .game-desc { font-size: 15px; }
  .screenshots { grid-template-columns: 1fr; }

  .faq-item summary { font-size: 19px; gap: 16px; }
  .faq-item { padding: 18px 0; }

  #about .about-block p { font-size: 16px; }

  .contact-card { padding: 22px 18px; }

  .cookie-banner {
    bottom: 12px;
    padding: 14px 16px;
    flex-direction: column;
    align-items: stretch;
    text-align: left;
  }
  #cookieAccept { width: 100%; }

  .footer-links { line-height: 2.2; }
}

/* ----- legal pages ----- */
.legal-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 0 40px;
}
.legal-content h1 {
  font-family: var(--font-display, "Newsreader", serif);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 24px;
  color: var(--ink, #2a2a28);
}
.legal-content h2 {
  font-family: var(--font-display, "Newsreader", serif);
  font-weight: 400;
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.25;
  margin: 40px 0 14px;
  color: var(--ink, #2a2a28);
}
.legal-content h3 {
  font-family: var(--font-display, "Newsreader", serif);
  font-weight: 400;
  font-size: 20px;
  margin: 28px 0 10px;
}
.legal-content p,
.legal-content li {
  font-family: var(--font-body, "Mulish", sans-serif);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink, #2a2a28);
}
.legal-content p { margin: 0 0 16px; }
.legal-content ul,
.legal-content ol { padding-left: 22px; margin: 0 0 18px; }
.legal-content li { margin: 0 0 8px; list-style: disc; }
.legal-content ol li { list-style: decimal; }
.legal-content a { color: var(--accent, #7a8a5a); text-decoration: underline; }
.legal-content a:hover { filter: brightness(0.9); }
