/* PartyWizardGames. Plain CSS, no build step. */
:root {
  color-scheme: dark;   /* black with purple: the human's favourite colours, one theme for everyone */
  --bg: #08070b;
  --bg-2: #120c1d;
  --card: #15101f;
  --ink: #f4effc;
  --ink-soft: #c2b6dc;
  --line: #4b2f85;
  --violet: #b38aff;
  --violet-d: #d6c2ff;
  --pink: #d79bff;
  --gold: #c9a6ff;
  --teal: #b38aff;
  --btn-bg: #8b4dff;
  --btn-ink: #ffffff;
  --hero-1: #08070b;
  --hero-2: #3b1a78;
  --shadow: 0 6px 0 rgba(139, 77, 255, .22);
  --radius: 22px;
  --display: "Fredoka", "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
  --body: "Nunito", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}


* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--violet-d); text-underline-offset: 3px; }
a:hover { color: var(--pink); }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; border-radius: 6px; }
.skip {
  position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--bg);
  padding: 10px 16px; border-radius: 10px; z-index: 10;
}
.skip:focus { top: 12px; }

h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.3rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); margin-inline: auto; }
section { padding: 56px 0; }
.alt { background: var(--bg-2); }
.eyebrow {
  font-family: var(--display); letter-spacing: .08em; text-transform: uppercase;
  font-size: .9rem; color: var(--pink); margin-bottom: .4em; font-weight: 600;
}
.lede { font-size: 1.25rem; color: var(--ink-soft); }

/* Header */
.site-header { background: var(--bg); border-bottom: 3px dashed var(--line); }
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding: 12px 0; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 700; font-size: 1.35rem; line-height: 1.05; }
.brand img { display: block; height: 70px; width: auto; }   /* the PartyWizardGames logo (brand/make_logo.py) */
@media (max-width: 600px) { .brand img { height: 52px; } }
.nav { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav a {
  display: block; padding: 8px 14px; border-radius: 999px; text-decoration: none;
  color: var(--ink); font-family: var(--display); font-weight: 500; font-size: 1.05rem;
}
.nav a:hover { background: var(--bg-2); color: var(--ink); }
.nav a[aria-current="page"] { background: #8b4dff; color: #fff; }

/* Buttons */
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.btn {
  display: inline-block; font-family: var(--display); font-weight: 600; font-size: 1.1rem;
  padding: 12px 22px; border-radius: 999px; text-decoration: none; border: 3px solid var(--line);
  background: var(--btn-bg); color: var(--btn-ink); box-shadow: 0 4px 0 var(--ink);
  transition: transform .12s;
}
.btn:hover { transform: translateY(-2px); color: var(--btn-ink); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.btn.ghost { background: var(--card); color: var(--ink); }
.btn.ghost:hover { color: var(--ink); }
.btn.is-soon { background: var(--card); color: var(--ink-soft); border-style: dashed; box-shadow: none; cursor: default; }
.btn.is-soon:hover { transform: none; color: var(--ink-soft); }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover { transform: none; } }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 64px 0 72px; background: linear-gradient(160deg, var(--hero-1), var(--hero-2)); color: #fff8ee; }
.hero h1, .hero .lede { color: #fff8ee; }
.hero .eyebrow { color: #d6c2ff; }
.hero a:not(.btn) { color: #d6c2ff; }
.hero .btn.ghost { background: transparent; color: #f4effc; border-color: #b38aff; }
.hero .btn.is-soon { background: transparent; color: #fff8ee; border-color: #fff8ee; }
.hero .btn { box-shadow: 0 4px 0 #000; }
.hero .btn:not(.ghost):not(.is-soon) { background: #8b4dff; color: #fff; border-color: #b38aff; }
.hero-grid { display: grid; gap: 36px; grid-template-columns: 1fr; align-items: center; position: relative; z-index: 1; }
@media (min-width: 880px) { .hero-grid { grid-template-columns: 1fr 1.1fr; } }
.shot { border-radius: var(--radius); border: 4px solid #8b4dff; box-shadow: 0 10px 0 rgba(0, 0, 0, .25); background: #111; }

/* Cards and grids */
.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.card { background: var(--card); border: 3px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: .3em; }
.card p:last-child { margin-bottom: 0; }
.pill { display: inline-block; font-family: var(--display); font-size: .95rem; background: var(--gold); color: #2b1b5a; padding: 3px 12px; border-radius: 999px; border: 2px solid #2b1b5a; }
.quote { border-left: 6px solid var(--pink); padding: 6px 0 6px 18px; margin: 24px 0; font-size: 1.2rem; }
.quote cite { display: block; font-size: 1rem; color: var(--ink-soft); margin-top: 6px; font-style: normal; }
code { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: .95em; background: var(--bg-2); padding: 1px 6px; border-radius: 6px; }
.alt code { background: var(--card); }

/* Gallery */
.gallery { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.gallery figure { margin: 0; }
.gallery img { border-radius: 16px; border: 3px solid var(--line); background: #111; }
.gallery figcaption { font-size: 1rem; color: var(--ink-soft); margin-top: 8px; }

/* Facts */
.facts { display: grid; grid-template-columns: 1fr; gap: 0; margin: 0; border: 3px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.facts div { display: grid; grid-template-columns: 1fr; padding: 12px 18px; border-top: 2px dashed var(--line); }
.facts div:first-child { border-top: 0; }
.facts dt { font-family: var(--display); font-weight: 600; color: var(--violet-d); }
.facts dd { margin: 0; }
@media (min-width: 640px) { .facts div { grid-template-columns: 200px 1fr; gap: 16px; } }
.ph { background: #fff1b8; color: #4a3200; padding: 1px 8px; border-radius: 6px; border: 2px dashed #b88700; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .92em; }

.about-grid { display: grid; gap: 32px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 720px) { .about-grid { grid-template-columns: 240px 1fr; } }
.avatar { width: 240px; max-width: 60%; border-radius: 40px; border: 3px solid var(--line); box-shadow: var(--shadow); }

.downloads { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.downloads li { background: var(--card); border: 3px solid var(--line); border-radius: 16px; padding: 12px 16px; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; }
.swatches { display: flex; flex-wrap: wrap; gap: 12px; }
.sw { width: 110px; font-size: .9rem; }
.sw b { display: block; height: 56px; border-radius: 14px; border: 3px solid var(--line); margin-bottom: 4px; }
.logo-tile { background: #fff8ee; border: 3px solid var(--line); border-radius: var(--radius); padding: 20px; }
.logo-tile.dark { background: #2b1b5a; }
.logo-tile img { margin: 0 auto; max-height: 130px; }

/* Footer */
.site-footer { background: #000; color: #e9defc; padding: 36px 0 44px; font-size: 1rem; }
.site-footer a { color: #c9a6ff; }
.site-footer .row { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
.site-footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; padding: 0; }
.site-footer p { margin: 0; }

.boxph { display: grid; place-items: center; text-align: center; padding: 20px; min-height: 200px; border: 3px dashed var(--ink); border-radius: var(--radius); background: var(--card); }
.boxph.wide { min-height: 140px; }
@media (min-width: 720px) { .boxph:not(.wide) { aspect-ratio: 1; } }

/* Meet the cast: pictures rendered by the game itself */
.cast { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.cast-img { display: block; width: 100%; height: 260px; object-fit: cover; border-radius: calc(var(--radius) - 6px); margin-bottom: 16px; background: #10131f; }
.cast-img.peppy { object-fit: contain; padding: 16px; }

/* The game's own title letters, rendered by the game, as the page title */
.title-art { margin: 6px 0 14px; line-height: 0; }
.title-art img { display: block; width: 100%; max-width: 560px; height: auto; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .45)); }

/* the trailer: a plain HTML5 video, the title screen as its poster */
.trailer { display: block; width: 100%; height: auto; margin-top: 18px; border: 3px solid var(--line); border-radius: var(--radius); background: #000; }

/* Press kit: the studio logo on a dark panel, like the header */
.logo-show { margin: 0; padding: 28px; background: #10131f; border: 3px solid var(--line); border-radius: var(--radius); text-align: center; }
.logo-show img { display: block; margin: 0 auto; max-width: min(520px, 100%); height: auto; }

/* Planned platforms: Font Awesome Free brand icons (CC BY 4.0) with a text label each */
.platforms { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 18px 0 0; padding: 0; }
.platforms li { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.platforms svg { width: 1.2em; height: 1.2em; fill: currentColor; flex: none; }
.facts .platforms { margin: 0; }
.credit { font-size: .85em; opacity: .75; }

/* Links to #screenshots land with the heading in view */
#screenshots { scroll-margin-top: 24px; }

/* Example code with Beginner / Proficient operator tabs (game.html). Without JS both panels show, each with its label. */
.codetabs { margin: 24px 0; }
.codetabs pre.card { overflow: auto; font-size: 1rem; margin: 0; }
.codetabs pre code { background: none; padding: 0; }
.codetabs-bar { display: none; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.codetabs-bar button {
  font-family: var(--display); font-weight: 600; font-size: 1rem; cursor: pointer;
  padding: 8px 18px; border-radius: 999px; border: 3px solid var(--line);
  background: var(--card); color: var(--ink);
}
.codetabs-bar button[aria-selected="true"] { background: var(--btn-bg); color: var(--btn-ink); }
.codetabs-bar button:focus-visible { outline: 3px solid var(--violet-d); outline-offset: 2px; }
.codetabs-label { font-family: var(--display); font-weight: 600; margin: 16px 0 8px; }
.codetabs.is-js .codetabs-bar { display: flex; }
.codetabs.is-js .codetabs-label { display: none; }
.codetabs.is-js .codetabs-panel[hidden] { display: none; }
