/*
Theme Name: Happy Little Games
Theme URI: https://example.com/happy-little-games
Author: OpenAI Codex
Author URI: https://openai.com/
Description: A cozy, painterly WordPress theme for a wholesome game review site with a TV art-show vibe.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: happy-little-games
Tags: blog, entertainment, custom-logo, custom-menu, featured-images, theme-options
*/

:root {
  --hlg-ink: #17314a;
  --hlg-ink-soft: #42647d;
  --hlg-sky: #8fd0ff;
  --hlg-sky-deep: #4995db;
  --hlg-cloud: #f5fbff;
  --hlg-pine: #295644;
  --hlg-meadow: #8fc49d;
  --hlg-sun: #ffd07c;
  --hlg-blush: #f3a998;
  --hlg-paper: #fff9f0;
  --hlg-paper-strong: #fffdf7;
  --hlg-shadow: 0 18px 40px rgba(23, 49, 74, 0.14);
  --hlg-shadow-soft: 0 12px 26px rgba(23, 49, 74, 0.1);
  --hlg-radius: 28px;
  --hlg-radius-small: 18px;
  --hlg-content-width: 1180px;
  --hlg-transition: 220ms ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--hlg-ink);
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.72), transparent 28%), linear-gradient(180deg, #dff2ff 0%, #edf8ff 32%, #f9f4e8 100%);
  line-height: 1.65;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0)),
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.3), transparent 18%),
    radial-gradient(circle at 80% 12%, rgba(255, 255, 255, 0.22), transparent 16%);
  opacity: 0.8;
}

a {
  color: inherit;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.22em;
}

a:hover,
a:focus-visible {
  color: #0d5e8e;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button,
input,
textarea,
select {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.8rem 1rem;
  background: var(--hlg-ink);
  color: var(--hlg-cloud);
  border-radius: 999px;
}

.skip-link:focus {
  top: 1rem;
}

.site-shell {
  position: relative;
  overflow: clip;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(248, 252, 255, 0.82);
  border-bottom: 1px solid rgba(66, 100, 125, 0.14);
}

.site-header__inner,
.site-footer__inner,
.site-main > section,
.page-shell,
.posts-shell,
.single-shell,
.archive-shell {
  width: min(calc(100% - 2rem), var(--hlg-content-width));
  margin: 0 auto;
}

.site-main > section + section {
  margin-top: clamp(2rem, 4vw, 4rem);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 0;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.site-logo-link,
.site-logo-fallback {
  flex: 0 0 auto;
}

.site-logo-image,
.custom-logo-link img,
.site-logo-fallback {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  box-shadow: var(--hlg-shadow-soft);
  background: linear-gradient(180deg, #cdeeff 0%, #8fd0ff 100%);
  border: 4px solid rgba(23, 49, 74, 0.1);
}

.site-logo-fallback {
  position: relative;
}

.site-logo-fallback::before,
.site-logo-fallback::after {
  content: "";
  position: absolute;
  background: var(--hlg-ink);
}

.site-logo-fallback::before {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  top: 21px;
  left: 19px;
  box-shadow: 18px 0 0 var(--hlg-ink), 28px 5px 0 2px var(--hlg-ink);
}

.site-logo-fallback::after {
  width: 40px;
  height: 20px;
  left: 15px;
  top: 32px;
  border-radius: 0 0 24px 24px;
  background: transparent;
  border: 5px solid var(--hlg-ink);
  border-top: 0;
}

.site-title-wrap {
  min-width: 0;
}

.site-title {
  margin: 0;
  font-size: clamp(1.3rem, 1.5vw + 0.95rem, 2rem);
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0.01em;
}

.site-title a {
  text-decoration: none;
}

.site-description {
  margin: 0.2rem 0 0;
  color: var(--hlg-ink-soft);
  font-size: 0.95rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 1rem;
  text-decoration: none;
  border-radius: 999px;
  color: var(--hlg-ink-soft);
  transition: background var(--hlg-transition), color var(--hlg-transition), transform var(--hlg-transition);
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a {
  background: rgba(143, 208, 255, 0.24);
  color: var(--hlg-ink);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  border: 0;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: rgba(23, 49, 74, 0.08);
  color: var(--hlg-ink);
  cursor: pointer;
}

.site-main {
  padding: 1.4rem 0 4rem;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 2rem;
  align-items: stretch;
  padding: 1.4rem 0 2rem;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: calc(var(--hlg-radius) + 8px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.58)),
    linear-gradient(180deg, rgba(79, 160, 224, 0.22), rgba(255, 255, 255, 0.02)),
    var(--hero-image, none),
    linear-gradient(180deg, #a5d9ff 0%, #76b6ef 42%, #f5fbff 100%);
  background-position: center;
  background-size: cover;
  box-shadow: var(--hlg-shadow);
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero-copy,
.hero-panel {
  padding: clamp(1.4rem, 2vw, 2.2rem);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 470px;
}

.eyebrow {
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: 1rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 249, 240, 0.88);
  color: var(--hlg-pine);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero h1,
.page-title,
.archive-title,
.single-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.hero h1 {
  max-width: 12ch;
  font-size: clamp(2.8rem, 6vw, 5.5rem);
}

.hero p {
  max-width: 56ch;
  margin: 1rem 0 0;
  font-size: 1.08rem;
  color: rgba(23, 49, 74, 0.88);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.7rem;
}

.button-link,
button[type="submit"],
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.85rem 1.3rem;
  border-radius: 999px;
  border: 0;
  background: linear-gradient(180deg, #2f7db1 0%, #215d8f 100%);
  color: var(--hlg-cloud);
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(47, 125, 177, 0.28);
  transition: transform var(--hlg-transition), box-shadow var(--hlg-transition), opacity var(--hlg-transition);
  cursor: pointer;
}

.button-link:hover,
.button-link:focus-visible,
button[type="submit"]:hover,
button[type="submit"]:focus-visible,
input[type="submit"]:hover,
input[type="submit"]:focus-visible {
  color: var(--hlg-cloud);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(47, 125, 177, 0.34);
}

.button-link--ghost {
  background: rgba(255, 255, 255, 0.8);
  color: var(--hlg-ink);
  box-shadow: none;
}

.button-link--ghost:hover,
.button-link--ghost:focus-visible {
  color: var(--hlg-ink);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--hlg-shadow-soft);
}

.hero-panel {
  align-self: center;
}

.paint-card,
.section-card,
.post-card,
.single-card,
.meta-card,
.empty-state,
.page-card,
.archive-head,
.posts-head {
  background: rgba(255, 253, 247, 0.88);
  border: 1px solid rgba(66, 100, 125, 0.12);
  border-radius: var(--hlg-radius);
  box-shadow: var(--hlg-shadow-soft);
}

.paint-card {
  display: grid;
  gap: 1rem;
  padding: 1.4rem;
}

.paint-card h2,
.section-heading h2,
.section-card h2,
.meta-card h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.15;
}

.metric-grid,
.feature-grid,
.post-grid {
  display: grid;
  gap: 1rem;
}

.metric-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.metric {
  padding: 1rem;
  border-radius: var(--hlg-radius-small);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(226, 243, 255, 0.9));
}

.metric strong {
  display: block;
  font-size: 1.8rem;
  line-height: 1;
}

.metric span {
  color: var(--hlg-ink-soft);
  font-size: 0.92rem;
}

.palette-list,
.post-tags,
.entry-footer,
.archive-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.palette-list span,
.post-tags a,
.archive-meta span {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(143, 208, 255, 0.18);
  color: var(--hlg-ink);
  font-size: 0.88rem;
  text-decoration: none;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.section-heading p {
  margin: 0.4rem 0 0;
  color: var(--hlg-ink-soft);
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.section-card {
  padding: 1.4rem;
}

.section-card p {
  margin-bottom: 0;
}

.post-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.post-card {
  overflow: hidden;
  transition: transform var(--hlg-transition), box-shadow var(--hlg-transition);
}

.post-card:hover,
.post-card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(23, 49, 74, 0.18);
}

.post-card__media {
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent),
    linear-gradient(135deg, #88c3f0, #daeefe 58%, #f7f1df);
  overflow: hidden;
}

.post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card__body {
  display: grid;
  gap: 0.8rem;
  padding: 1.3rem;
}

.post-card h3,
.entry-content h2,
.entry-content h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.15;
}

.post-card h3 a,
.post-card h3 a:hover,
.post-card h3 a:focus-visible {
  text-decoration: none;
}

.post-meta,
.single-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  color: var(--hlg-ink-soft);
  font-size: 0.92rem;
}

.post-card p {
  margin: 0;
  color: rgba(23, 49, 74, 0.88);
}

.posts-shell,
.page-shell,
.archive-shell,
.single-shell {
  padding-top: 1.8rem;
}

.posts-head,
.archive-head,
.page-card,
.single-card {
  padding: clamp(1.4rem, 2vw, 2rem);
}

.posts-head,
.archive-head,
.page-card {
  margin-bottom: 1.5rem;
}

.posts-head p,
.archive-head p,
.page-card p {
  color: var(--hlg-ink-soft);
}

.single-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.6fr);
  gap: 1.5rem;
  align-items: start;
}

.single-card__media {
  aspect-ratio: 16 / 8;
  border-radius: calc(var(--hlg-radius) - 8px);
  overflow: hidden;
  margin: 1.4rem 0;
  background:
    linear-gradient(135deg, #88c3f0, #daeefe 58%, #f7f1df);
}

.single-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content blockquote {
  margin: 1.5rem 0;
  padding: 1.2rem 1.4rem;
  border-left: 4px solid var(--hlg-sky-deep);
  background: rgba(143, 208, 255, 0.14);
  border-radius: 0 var(--hlg-radius-small) var(--hlg-radius-small) 0;
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.3rem;
}

.meta-card {
  padding: 1.35rem;
  position: sticky;
  top: 6.8rem;
}

.meta-card p {
  margin-top: 0.8rem;
  margin-bottom: 0;
}

.entry-footer {
  margin-top: 2rem;
}

.pagination,
.post-navigation .nav-links {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.8rem;
}

.pagination .page-numbers,
.post-navigation a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  text-decoration: none;
  box-shadow: var(--hlg-shadow-soft);
}

.pagination .current {
  background: linear-gradient(180deg, #2f7db1 0%, #215d8f 100%);
  color: var(--hlg-cloud);
}

.search-form {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.search-form label {
  flex: 1 1 auto;
}

.search-field,
input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.85rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(66, 100, 125, 0.18);
  background: rgba(255, 255, 255, 0.9);
}

.search-submit {
  flex: 0 0 auto;
}

.empty-state {
  padding: 2rem;
  text-align: center;
}

.site-footer {
  padding: 1rem 0 2.6rem;
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 1.6rem;
  background: rgba(23, 49, 74, 0.92);
  color: var(--hlg-cloud);
  border-radius: var(--hlg-radius);
  box-shadow: var(--hlg-shadow);
}

.site-footer a {
  color: var(--hlg-cloud);
}

.site-footer p {
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero,
  .single-layout,
  .feature-grid,
  .post-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    min-height: 0;
  }

  .hero h1 {
    max-width: 100%;
  }
}

@media (max-width: 760px) {
  .site-header__inner {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    width: 100%;
    display: none;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    padding-top: 0.6rem;
  }

  .site-nav a {
    width: 100%;
    justify-content: center;
  }

  .hero,
  .site-main {
    padding-top: 0.6rem;
  }

  .metric-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .hero-actions,
  .search-form,
  .site-footer__inner {
    flex-direction: column;
    align-items: stretch;
  }
}
