/* PAINTIGFNGAIRE — Game publishing */
:root {
  --bg-base: #0b0d12;
  --bg-elevated: #12151c;
  --text-primary: #e6eaf2;
  --text-muted: #9aa3b2;
  --accent-1: #ff2d6e;
  --accent-1-hover: #e0265f;
  --accent-2: #00e5ff;
  --border-subtle: #2a3140;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --radius: 12px;
  --shadow-glow: 0 0 0 1px rgba(0, 229, 255, 0.25);
}

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

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-primary);
  background: var(--bg-base);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
  z-index: 0;
}

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

a:hover {
  color: #7ff4ff;
}

:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.5rem;
  z-index: 1000;
  padding: 0.5rem 1rem;
  background: var(--bg-elevated);
  color: var(--text-primary);
  border-radius: 6px;
}

.skip-link:focus {
  left: 0.5rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(1120px, 100% - 2rem);
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 13, 18, 0.75);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  text-decoration: none;
}

.brand__mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent-1), #7c3aed);
  box-shadow: var(--shadow-glow);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  background: var(--bg-elevated);
  color: var(--text-primary);
  cursor: pointer;
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--accent-2);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem 1.25rem;
  flex-wrap: wrap;
}

.nav a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  padding: 0.35rem 0;
}

.nav a:hover {
  color: var(--accent-2);
}

.nav a[aria-current="page"] {
  color: var(--accent-2);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1.25rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn--primary {
  background: var(--accent-1);
  color: #fff;
}

.btn--primary:hover:not(:disabled) {
  background: var(--accent-1-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(255, 45, 110, 0.35);
}

.btn--ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn--ghost:hover {
  border-color: var(--accent-2);
  color: var(--accent-2);
}

.hero {
  padding: clamp(3rem, 8vw, 5rem) 0;
  position: relative;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% -20%, rgba(255, 45, 110, 0.35), transparent 55%),
    radial-gradient(ellipse 60% 50% at 100% 50%, rgba(0, 229, 255, 0.12), transparent 50%);
  z-index: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .hero__bg {
    animation: heroPulse 18s ease-in-out infinite alternate;
  }
}

@keyframes heroPulse {
  from {
    opacity: 0.85;
    transform: scale(1);
  }
  to {
    opacity: 1;
    transform: scale(1.03);
  }
}

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

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  line-height: 1.1;
  margin: 0 0 1rem;
  max-width: 18ch;
}

.hero__lead {
  margin: 0 0 1.75rem;
  color: var(--text-muted);
  font-size: 1.125rem;
  max-width: 52ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.section {
  padding: clamp(2.5rem, 6vw, 4rem) 0;
}

.section__head {
  margin-bottom: 1.75rem;
}

.section__title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin: 0 0 0.5rem;
}

.section__sub {
  margin: 0;
  color: var(--text-muted);
  max-width: 60ch;
}

.grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid--games {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .grid--games {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .card--lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45), var(--shadow-glow);
    border-color: rgba(0, 229, 255, 0.35);
  }
}

.card__media {
  aspect-ratio: 16 / 9;
  background: linear-gradient(145deg, #1a1f2e, #0f1218);
  position: relative;
}

.card__media--a {
  background: linear-gradient(135deg, #4c1d95 0%, #0b0d12 60%);
}
.card__media--b {
  background: linear-gradient(135deg, #0d9488 0%, #0b0d12 55%);
}
.card__media--c {
  background: linear-gradient(135deg, #be123c 0%, #0b0d12 55%);
}

.card__body {
  padding: 1rem 1.15rem 1.25rem;
}

.card__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  margin: 0 0 0.35rem;
}

.card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  margin-bottom: 0.75rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 6px;
  background: rgba(0, 229, 255, 0.12);
  color: var(--accent-2);
  border: 1px solid rgba(0, 229, 255, 0.25);
}

.badge--muted {
  background: rgba(154, 163, 178, 0.12);
  color: var(--text-muted);
  border-color: var(--border-subtle);
}

.pillars {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .pillars {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pillar {
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-subtle);
  background: rgba(18, 21, 28, 0.65);
}

.pillar h3 {
  font-family: var(--font-display);
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
}

.pillar p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.news-list {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .news-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

.news-item {
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
}

.news-item time {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.news-item h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin: 0.35rem 0;
}

.news-item p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.newsletter {
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-subtle);
  background: linear-gradient(135deg, rgba(255, 45, 110, 0.12), rgba(0, 229, 255, 0.06));
}

.newsletter__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.newsletter input[type="email"] {
  flex: 1 1 220px;
  min-height: 44px;
  padding: 0 1rem;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-base);
  color: var(--text-primary);
  font: inherit;
}

.newsletter small {
  display: block;
  margin-top: 0.75rem;
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.site-footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border-subtle);
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.site-footer h2 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin: 0 0 0.75rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 0.5rem;
}

.site-footer a {
  color: var(--text-muted);
}

.site-footer a:hover {
  color: var(--accent-2);
}

.legal {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.page-hero {
  padding: 2.5rem 0 1rem;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin: 0 0 0.75rem;
}

.page-hero p {
  margin: 0;
  color: var(--text-muted);
  max-width: 65ch;
}

.prose {
  max-width: 65ch;
}

.prose p {
  color: var(--text-muted);
}

.prose h2 {
  font-family: var(--font-display);
  margin-top: 2rem;
  font-size: 1.25rem;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.filter-btn {
  min-height: 40px;
  padding: 0 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  color: var(--text-primary);
  font: inherit;
  cursor: pointer;
}

.filter-btn[aria-pressed="true"] {
  border-color: var(--accent-2);
  color: var(--accent-2);
}

.form {
  display: grid;
  gap: 1rem;
  max-width: 520px;
}

.form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 500;
  font-size: 0.9375rem;
}

.form input,
.form select,
.form textarea {
  min-height: 44px;
  padding: 0 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  color: var(--text-primary);
  font: inherit;
}

.form textarea {
  min-height: 140px;
  padding: 0.75rem 0.85rem;
  resize: vertical;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.toast[hidden] {
  display: none;
}

.toast {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid rgba(0, 229, 255, 0.35);
  color: var(--text-primary);
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }
  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.5rem 0 0.75rem;
  }
  .nav.is-open {
    display: flex;
  }
  .header-actions {
    margin-left: auto;
  }
  .site-header__inner {
    flex-wrap: nowrap;
  }
}
