/* Pacifistares Gaming site styles. Mobile-first, light + dark, no external scripts.
   Colours follow the Puzzle Park game palette. */

:root {
  --purple: #6E5BD8;
  --purple-dark: #4B3CA8;
  --ink: #2D2560;
  --orange: #FF8A1F;
  --yellow: #FFD21F;
  --green: #2ED158;
  --soft: #D9D3F5;

  --bg: var(--soft);
  --surface: #FFFFFF;
  --text: var(--ink);
  --muted: #4A4380;
  --link: var(--purple-dark);
  --header-bg: var(--purple);
  --header-text: #FFFFFF;
  --card-border: rgba(75, 60, 168, 0.18);
  --radius: 24px;
  --font: "Fredoka", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17132E;
    --surface: #241E4A;
    --text: #F1EEFF;
    --muted: #C9C2F0;
    --link: #C7BDFF;
    --header-bg: var(--purple-dark);
    --card-border: rgba(199, 189, 255, 0.2);
  }
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--link); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 8px;
  top: -48px;
  background: var(--yellow);
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 12px;
  font-weight: 600;
  z-index: 10;
}
.skip-link:focus { top: 8px; }

/* Header */
.site-header {
  background: var(--header-bg);
  color: var(--header-text);
  padding: 14px 16px;
}
.site-header .inner {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--header-text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
}
.brand img { width: 36px; height: 36px; }
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
}
.site-nav a {
  color: var(--header-text);
  text-decoration: none;
  font-weight: 500;
  padding: 4px 2px;
}
.site-nav a:hover, .site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 3px;
}

/* Main */
main {
  flex: 1;
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 24px 16px 40px;
}

h1, h2, h3 { line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(1.8rem, 6vw, 2.6rem); margin: 0.2em 0 0.4em; }
h2 { font-size: 1.4rem; margin: 1.6em 0 0.5em; }
h3 { font-size: 1.15rem; margin: 1.2em 0 0.3em; }

.card {
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 20px;
  margin: 16px 0;
  box-shadow: 0 6px 0 rgba(75, 60, 168, 0.15);
}
.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }

.hero {
  text-align: center;
  padding: 32px 20px;
}
.hero .tagline { font-size: 1.2rem; color: var(--muted); margin: 0; }

.badge {
  display: inline-block;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 600;
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 0.95rem;
}
.badge.green { background: var(--green); }

.game {
  display: grid;
  gap: 18px;
  align-items: center;
}
.game img { width: 100%; max-width: 220px; height: auto; margin: 0 auto; display: block; }
@media (min-width: 640px) {
  .game { grid-template-columns: 220px 1fr; }
}

.button {
  display: inline-block;
  background: var(--orange);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  padding: 10px 22px;
  box-shadow: 0 4px 0 #C9650C;
}
.button:hover { filter: brightness(1.05); }

.muted { color: var(--muted); }
.effective { color: var(--muted); font-size: 0.95rem; }

details {
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 12px 18px;
  margin: 10px 0;
}
summary { cursor: pointer; font-weight: 600; }
details[open] summary { margin-bottom: 6px; }

ul.plain { padding-left: 1.2em; }

/* Footer */
.site-footer {
  background: var(--header-bg);
  color: var(--header-text);
  padding: 20px 16px;
  font-size: 0.95rem;
}
.site-footer .inner {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
}
.site-footer a { color: var(--header-text); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.site-footer p { margin: 0; }

@media (prefers-reduced-motion: no-preference) {
  .button { transition: filter 0.15s ease; }
}
