/* Starlitt Games website: shared styles. Fonts are self-hosted; no third-party requests. */
@font-face { font-family: "Fredoka"; src: url("fonts/Fredoka.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Andika"; src: url("fonts/Andika-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Andika"; src: url("fonts/Andika-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --ink: #22235A; --night: #2E2F7A; --dusk: #5B4BB7; --gold: #FFC83D; --gold-deep: #F59E1B;
  --glow: #FFE89A; --cream: #FFF7E6; --blush: #FF9C8A; --surface: #FFF9EE; --muted: #55577F;
  --radius: 24px; --shadow: 0 4px 0 rgba(34, 35, 90, 0.12);
  --wrap: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--surface); color: var(--ink);
  font: 18px/1.6 "Andika", "Trebuchet MS", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--dusk); text-underline-offset: 3px; }
a:hover { color: var(--night); }
h1, h2, h3 { font-family: "Fredoka", "Trebuchet MS", system-ui, sans-serif; line-height: 1.15; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.35rem; font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.narrow { width: min(100% - 40px, 760px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--gold-deep); outline-offset: 3px; border-radius: 6px; }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid rgba(34,35,90,0.08); position: sticky; top: 0; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.site-header .logo img { height: 52px; width: auto; }
.nav { display: flex; gap: 22px; flex-wrap: wrap; font-family: "Fredoka", sans-serif; font-weight: 500; font-size: 1.02rem; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--dusk); text-decoration: underline; }

/* Buttons */
.btn { display: inline-block; font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 1.1rem; padding: 14px 26px;
  border-radius: 999px; text-decoration: none; border: 3px solid var(--ink); box-shadow: 0 4px 0 var(--ink); transition: transform .1s, box-shadow .1s; }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--glow); color: var(--ink); }
.btn-plain { background: var(--cream); color: var(--ink); }
.btn-plain:hover { background: #fff; color: var(--ink); }

/* Hero */
.hero { background: radial-gradient(120% 90% at 80% 10%, #3D3D99 0%, var(--night) 45%, var(--ink) 100%); color: var(--cream); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 32px; align-items: center; padding-block: 72px 80px; }
.hero h1 { color: #fff; }
.hero h1 span { color: var(--gold); display: block; }
.hero p.lede { font-size: 1.2rem; max-width: 34ch; color: var(--cream); }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 26px 0 30px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.chips li { background: rgba(255,247,230,0.1); border: 1px solid rgba(255,232,154,0.35); color: var(--glow);
  border-radius: 999px; padding: 6px 14px; font-family: "Fredoka", sans-serif; font-weight: 500; font-size: 0.98rem; }
.hero-art { position: relative; justify-self: center; width: min(100%, 380px); }
.hero-art::before { content: ""; position: absolute; inset: 8% 4% 0; background: radial-gradient(circle, rgba(255,200,61,0.45), rgba(255,200,61,0) 65%); filter: blur(6px); }
.hero-art img { position: relative; width: 100%; }
.stars { position: absolute; inset: 0; pointer-events: none; }
.stars i { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--glow); opacity: .7; }

/* Sections */
section { padding-block: 80px; }
.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.divider { display: flex; justify-content: center; padding-top: 8px; }
.divider img { width: 260px; opacity: .9; }

/* Game cards */
.games { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.card { background: #fff; border: 2px solid rgba(34,35,90,0.1); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px; }
.card-top { display: flex; gap: 18px; align-items: center; }
.card-top img { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 3px 0 rgba(34,35,90,0.15); flex: none; }
.card-top h3 { margin: 0; font-size: 1.6rem; }
.meta { color: var(--muted); font-size: 0.98rem; margin: 2px 0 0; }
.price { background: var(--cream); border-radius: 16px; padding: 14px 18px; margin: 4px 0 0; }
.price p { margin: 0; }
.price strong { font-family: "Fredoka", sans-serif; }
.note { font-size: 0.95rem; color: var(--muted); margin: 0; }
.soon { margin-top: auto; align-self: flex-start; font-family: "Fredoka", sans-serif; font-weight: 600; background: var(--ink); color: var(--glow); border-radius: 999px; padding: 8px 16px; font-size: 0.98rem; }

/* Promise */
.promise { background: var(--cream); }
.promise-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.promise-item { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.promise-item h3 { color: var(--ink); }
.promise-item .num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--gold); font-family: "Fredoka", sans-serif; font-weight: 700; margin-bottom: 12px; }
.callout { margin-top: 28px; background: #fff; border-left: 6px solid var(--gold); border-radius: 12px; padding: 16px 20px; color: var(--muted); }

/* Parents */
.parents-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.parent-item { border: 2px solid rgba(34,35,90,0.1); border-radius: var(--radius); padding: 24px; background: #fff; }
.parent-item.feature { grid-row: span 2; background: var(--ink); color: var(--cream); border: none; display: flex; flex-direction: column; justify-content: space-between; }
.parent-item.feature h3 { color: #fff; }
.parent-item.feature img { width: 150px; align-self: center; margin-top: 12px; }
.dont { margin-top: 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.dont ul { margin: 0; padding-left: 1.2em; }
.dont li { margin-bottom: 6px; }

/* About */
.about { background: var(--ink); color: var(--cream); }
.about .wrap { display: grid; grid-template-columns: 180px 1fr; gap: 40px; align-items: center; }
.about h2 { color: #fff; }
.about a { color: var(--gold); }
.about img { width: 180px; border-radius: 40px; }

/* Footer */
.site-footer { background: var(--surface); padding-block: 40px; border-top: 1px solid rgba(34,35,90,0.08); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; align-items: center; }
.site-footer .logo img { height: 44px; width: auto; }
.foot-links { display: flex; gap: 20px; flex-wrap: wrap; }
.foot-links a { color: var(--ink); }
.tagline { font-family: "Fredoka", sans-serif; font-weight: 500; color: var(--muted); }
.fine { width: 100%; font-size: 0.9rem; color: var(--muted); margin: 0; }

/* Inner pages */
.page-hero { background: var(--cream); padding-block: 56px 40px; }
.page-hero p { color: var(--muted); font-size: 1.1rem; margin: 0; }
.prose { padding-block: 48px 80px; }
.prose h2 { font-size: 1.6rem; margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 6px; }
.box { background: #fff; border: 2px solid rgba(34,35,90,0.1); border-radius: var(--radius); padding: 22px 24px; margin: 1.2em 0; }
.box.gold { border-color: var(--gold); background: #FFFBEF; }

/* Responsive */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; padding-block: 48px 56px; }
  .hero-art { width: min(70%, 300px); grid-row: 1; }
  .games, .dont { grid-template-columns: 1fr; }
  .promise-grid { grid-template-columns: 1fr 1fr; }
  .parents-grid { grid-template-columns: 1fr 1fr; }
  .parent-item.feature { grid-row: auto; grid-column: span 2; }
  .about .wrap { grid-template-columns: 1fr; text-align: left; }
  .about img { width: 120px; border-radius: 28px; }
  section { padding-block: 56px; }
}
@media (max-width: 600px) {
  body { font-size: 17px; }
  .site-header .wrap { flex-direction: column; align-items: flex-start; gap: 6px; }
  .site-header .logo img { height: 44px; }
  .nav { gap: 14px; font-size: 0.98rem; }
  .site-header { position: static; }
  .promise-grid, .parents-grid { grid-template-columns: 1fr; }
  .parent-item.feature { grid-column: auto; }
  .card { padding: 22px; }
  .card-top img { width: 76px; height: 76px; border-radius: 18px; }
  .hero .actions .btn { flex: 1 1 auto; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
