/* Butterbun.
 *
 * The games' own look: cream paper, chocolate text, raspberry pink and warm gold, with their two
 * fonts (Chewy for names and headings, Nunito for reading). The top of each page is a sky at dusk,
 * a warm glow in one corner. Everything is served from this site; the privacy pages say the site
 * loads nothing from third parties, and this file is half of why that's true.
 *
 * Text colours are held to WCAG AA on the background they sit on (4.5:1 or better).
 */

@font-face {
  font-family: "Chewy"; src: url("/fonts/chewy.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Nunito"; src: url("/fonts/nunito.woff2") format("woff2");
  font-weight: 200 1000; font-style: normal; font-display: swap;
}

:root {
  --bg: #fff8ef;
  --bg-2: #fcefdf;
  --panel: #ffffff;
  --line: rgba(92, 56, 40, 0.13);
  --text: #4a2c22;
  --muted: #7a5a4c;
  --faint: #8a6b5c;
  --pink: #c2405f;
  --pink-dark: #a8324f;
  --pink-text: #b83a5e;
  --gold: #f6c35b;
  --dusk: #2b1d33;
  --dusk-2: #4a2c4a;
  --cream: #fff3e0;
  --cream-2: #e8d6c8;
  --radius: 18px;
  --shadow: 0 14px 34px rgba(74, 44, 34, 0.14);
  --display: "Chewy", "Nunito", system-ui, sans-serif;
  --font: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pink-text); text-decoration: none; font-weight: 700; }
a:hover { color: var(--pink-dark); text-decoration: underline; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.15; margin: 0 0 0.5em; letter-spacing: 0.01em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
b { font-weight: 800; }

.container { width: min(1180px, 100% - 32px); margin: 0 auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 2000; background: var(--panel); padding: 8px 14px; }

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255, 248, 239, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.navbar { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); font-family: var(--display); font-weight: 400; font-size: 1.45rem; line-height: 1.05; }
.brand:hover { color: var(--text); text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 11px; }
.brand span { display: flex; flex-direction: column; gap: 4px; }
.brand small { font-family: var(--font); font-weight: 800; font-size: 0.68rem; line-height: 1; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; }
.nav-links { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--text); font-weight: 800; font-size: 0.98rem; position: relative; }
.nav-links a:hover { text-decoration: none; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 3px; width: 0; border-radius: 2px;
  background: var(--pink); transition: width 0.25s ease;
}
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { width: 100%; }
.menu { display: none; position: relative; }
.menu summary {
  list-style: none; cursor: pointer; padding: 8px 14px; border: 2px solid var(--line);
  border-radius: 12px; font-weight: 800;
}
.menu summary::-webkit-details-marker { display: none; }
.menu ul {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 210px; list-style: none; margin: 0;
  padding: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
}
.menu li a { display: block; padding: 10px 12px; color: var(--text); border-radius: 8px; }
.menu li a:hover { background: var(--bg-2); text-decoration: none; }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px;
  font-family: var(--font); font-weight: 800; font-size: 1rem; line-height: 1; border: 2px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn-primary { background: var(--pink); color: #fff; }
.btn-primary:hover { background: var(--pink-dark); color: #fff; }
.btn-ghost { border-color: var(--pink); color: var(--pink-text); }
.btn-ghost:hover { background: var(--pink); color: #fff; }
.btn-play { background: #fff; color: #1b1424; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18); }
.btn-play:hover { color: #1b1424; background: #f4ecf6; }
.btn-soon { background: var(--bg-2); color: var(--muted); border-color: var(--line); cursor: default; }
.btn-soon:hover { transform: none; }
.btn svg { width: 20px; height: 20px; flex: none; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ── Dusk: the top of every page ────────────────────────────────────────── */
.hero, .page-head {
  position: relative; overflow: hidden; color: var(--cream);
  background:
    radial-gradient(circle at 82% 18%, rgba(246, 195, 91, 0.32) 0%, rgba(246, 195, 91, 0) 42%),
    radial-gradient(circle at 8% 110%, rgba(194, 64, 95, 0.28) 0%, rgba(194, 64, 95, 0) 50%),
    linear-gradient(160deg, var(--dusk-2) 0%, var(--dusk) 70%);
}
.hero a:not(.btn), .page-head a { color: var(--gold); }
.kicker { color: var(--pink-text); font-weight: 900; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.8rem; margin-bottom: 12px; }
.hero .kicker, .page-head .kicker { color: var(--gold); }
.hero { padding: 72px 0 88px; }
.hero .container { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.hero .container > * { min-width: 0; }          /* a picture never widens its column past the screen */
.hero .container > a { display: block; }
.hero h1 { color: var(--cream); text-shadow: 0 3px 0 rgba(0, 0, 0, 0.25); margin-bottom: 0.3em; }
.hero p.lede { font-size: 1.22rem; color: var(--cream-2); max-width: 32em; }
.hero-icon { width: 112px; height: 112px; border-radius: 28px; margin-bottom: 24px; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35); }
.hero .cast {
  width: 100%; border-radius: 28px; border: 6px solid rgba(255, 243, 224, 0.92);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2), 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 120px rgba(246, 195, 91, 0.25);
  transform: rotate(1.5deg);
}
.hero .btn-ghost, .page-head .btn-ghost { border-color: rgba(255, 243, 224, 0.7); color: var(--cream); }
.hero .btn-ghost:hover { background: var(--cream); color: var(--dusk); }
.hero .btn-soon { background: rgba(255, 255, 255, 0.1); color: var(--cream-2); border-color: rgba(255, 255, 255, 0.18); }

/* ── The studio's games: one card each ──────────────────────────────────── */
.games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px; }
.games-grid > * { min-width: 0; }
.game-card {
  background: var(--panel); border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden;
  box-shadow: var(--shadow);
}
.game-card > a { display: block; }
.game-card img { width: 100%; }
.game-card-body { padding: 24px 28px 28px; }
.game-card h3 { font-size: 1.8rem; }
.game-card h3 a { color: var(--text); }
.game-card p { color: var(--muted); }

/* ── Sections ───────────────────────────────────────────────────────────── */
.section { padding: 88px 0; }
.section.alt { background: var(--bg-2); }
.intro { font-size: 1.25rem; max-width: 40em; margin-bottom: 36px; }

.game-layout { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
.sections-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.feature-card {
  background: var(--panel); padding: 26px 28px; border-radius: var(--radius); border: 1px solid var(--line);
  box-shadow: 0 4px 0 rgba(74, 44, 34, 0.06);
}
.feature-card h3 { color: var(--pink-text); }
.feature-card p { color: var(--muted); margin: 0; }
.feature-card:last-child:nth-child(odd) { grid-column: 1 / -1; }

.facts {
  position: sticky; top: 94px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.facts h2 { font-size: 1.6rem; }
.facts dl { margin: 0 0 20px; }
.facts dt { font-size: 0.78rem; color: var(--faint); font-weight: 900; text-transform: uppercase; letter-spacing: 0.07em; }
.facts dd { margin: 2px 0 14px; font-weight: 700; }
.facts .actions { flex-direction: column; }
.facts .btn { justify-content: center; }

.shots {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(250px, 62%); gap: 18px; overflow-x: auto;
  scroll-snap-type: x mandatory; padding: 8px 2px 20px; margin-top: 8px;
}
.shots figure { margin: 0; scroll-snap-align: start; }
.shots img { border-radius: 16px; border: 1px solid var(--line); background: var(--panel); box-shadow: var(--shadow); }
.shots figcaption { font-family: var(--display); font-size: 1.1rem; text-align: center; margin-top: 10px; color: var(--text); }

.note {
  background: var(--panel); border: 1px solid var(--line); border-left: 6px solid var(--gold); border-radius: 14px;
  padding: 22px 26px; margin: 36px 0 0; max-width: 820px;
}
.note p:last-child { margin: 0; }

.help-band {
  display: grid; grid-template-columns: 1.4fr auto; gap: 30px; align-items: center;
  padding: 44px 48px; border-radius: 26px;
  background: linear-gradient(120deg, #ffe3ea 0%, #fff1d6 100%);
  border: 1px solid rgba(194, 64, 95, 0.25);
}
.help-band h2 { margin-bottom: 6px; }
.help-band p { color: var(--muted); margin: 0; }

/* ── Articles: privacy, support, data deletion ──────────────────────────── */
.page-head { padding: 64px 0 40px; }
.page-head h1 { color: var(--cream); font-size: clamp(2.4rem, 5vw, 3.6rem); }
.page-head p { color: var(--cream-2); max-width: 46em; }
.article { max-width: 780px; margin: 0 auto; padding: 48px 0 90px; }
.article h2 { font-size: 1.8rem; margin-top: 1.6em; }
.article ul { padding-left: 1.2em; }
.article li { margin-bottom: 0.5em; }
.summary {
  background: var(--panel); border: 1px solid var(--line); border-left: 6px solid var(--pink);
  border-radius: 14px; padding: 20px 24px; font-size: 1.05rem;
}
.summary p:last-child { margin: 0; }
table { width: 100%; border-collapse: collapse; margin: 0.5em 0 1.4em; font-size: 0.97rem; background: var(--panel); border-radius: 12px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--faint); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; }
.table-wrap { overflow-x: auto; }
.table-wrap table { min-width: 560px; }
.use { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px 24px; margin: 0 0 16px; }
.use h3 { margin: 0 0 8px; font-size: 1.3rem; }
.use > p { margin: 0 0 12px; }
.use:target { border-color: var(--pink); }
.use[id] { scroll-margin-top: 90px; }
.use dl { margin: 0; display: grid; grid-template-columns: 11em 1fr; gap: 8px 18px; }
.use dt { color: var(--faint); font-size: 0.78rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.06em; padding-top: 3px; }
.use dd { margin: 0; }
details.faq { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 0 22px; margin-bottom: 12px; }
details.faq summary { cursor: pointer; padding: 18px 0; font-weight: 800; list-style: none; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; float: right; color: var(--pink-text); font-size: 1.4rem; line-height: 1; font-weight: 900; }
details.faq[open] summary::after { content: "–"; }
details.faq p { margin: 0 0 18px; color: var(--muted); }
.contact-card {
  display: grid; gap: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.contact-card .mail { font-size: 1.25rem; font-weight: 900; color: var(--text); word-break: break-all; }
.contact-card p { margin: 0; color: var(--muted); }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer { background: #2e1c18; padding: 56px 0 30px; color: #e6cfc0; font-size: 0.95rem; }
.site-footer .brand { color: var(--cream); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 36px; }
.footer-grid p { margin-top: 14px; max-width: 30em; }
.site-footer h4 { color: var(--cream); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; margin: 6px 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #e6cfc0; font-weight: 700; word-break: break-word; }
.site-footer a:hover { color: var(--gold); }
.legal { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 22px; font-size: 0.85rem; color: #b89c8c; }
.legal p { margin: 0 0 4px; }

/* ── Small screens ──────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero .container, .game-layout { grid-template-columns: 1fr; }
  .hero .cast { max-width: 520px; }
  .facts { position: static; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .nav-links { display: none; }
  .menu { display: block; }
  .brand { font-size: 1.25rem; }
  .hero { padding: 44px 0 60px; }
  .hero .container { gap: 36px; }
  .hero-icon { width: 88px; height: 88px; border-radius: 22px; margin-bottom: 18px; }
  .hero .cast { transform: none; border-width: 4px; border-radius: 20px; }
  .sections-grid { grid-template-columns: 1fr; }
  .use dl { grid-template-columns: 1fr; gap: 2px; }
  .use dd { margin-bottom: 10px; }
  .section { padding: 60px 0; }
  .help-band { grid-template-columns: 1fr; padding: 30px 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  th, td { padding: 10px 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
