/* bindaasgames.com: the studio's own look (warm paper, ink, marigold), not any one game's. */
:root {
  color-scheme: light dark;
  --bg: #fbf7ef;
  --panel: #ffffff;
  --panel-2: #f3ecdf;
  --line: #e6dccb;
  --ink: #1b1712;
  --muted: #645b4f;
  --marigold: #f4a51c;
  --marigold-ink: #1b1712;
  --link: #a8410a;
  --teal: #0f6e68;
  --display: "Avenir Next", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1080px;
  --radius: 18px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14110d;
    --panel: #1e1a15;
    --panel-2: #27221b;
    --line: #362f26;
    --ink: #f5efe4;
    --muted: #b0a596;
    --link: #ffb547;
    --teal: #4fc9bf;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--body); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 .45em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 7.5vw, 4.6rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
h3 { font-size: 1.35rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--marigold); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; z-index: 10; background: var(--panel); padding: 8px 12px; }

/* Header */
.top { border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 16px; min-height: 68px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 800 1.2rem/1 var(--display); letter-spacing: -0.01em; }
.brand svg { width: 34px; height: 34px; flex: none; }
.nav { display: flex; gap: 4px 18px; margin-left: auto; flex-wrap: wrap; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; padding: 6px 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }

/* Hero */
.hero { padding: clamp(48px, 10vw, 104px) 0 clamp(40px, 7vw, 72px); }
.eyebrow { display: inline-block; font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.hero h1 .hl { background: linear-gradient(transparent 62%, var(--marigold) 62%, var(--marigold) 92%, transparent 92%); padding: 0 .06em; }
.lede { font-size: clamp(1.1rem, 2.4vw, 1.3rem); color: var(--muted); max-width: 40rem; }
.word { font-style: italic; color: var(--ink); }

/* Sections */
section { padding: 40px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.section-head p { color: var(--muted); margin: 0; }

/* Games */
.games { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.game { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.game .shot { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; background: var(--panel-2); }
.game .body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.game .title { display: flex; align-items: center; gap: 12px; }
.game .title img { width: 44px; height: 44px; border-radius: 11px; }
.game .title h3 { margin: 0; }
.game p { margin: 0; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; list-style: none; }
.tags li { font-size: .82rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--panel-2); color: var(--muted); }
.links { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-top: auto; padding-top: 8px; }
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 999px; background: var(--marigold); color: var(--marigold-ink); font-weight: 700; text-decoration: none; }
.btn:hover { filter: brightness(1.05); }

.game.soon { border-style: dashed; border-width: 2px; }
.shot.pixel { image-rendering: pixelated; }
.game .meta { font-size: .9rem; margin-top: auto; padding-top: 8px; }
.status { color: var(--teal); font-weight: 700; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; }

/* About / contact */
.split { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card p:last-child { margin-bottom: 0; }
.big-mail { font: 800 clamp(1.2rem, 3.4vw, 1.6rem)/1.2 var(--display); word-break: break-word; }

/* Text pages */
.page-head { padding: clamp(40px, 8vw, 72px) 0 8px; }
.prose > * { max-width: 44rem; }
.prose h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .5em; }
.meta { color: var(--muted); font-size: .95rem; }
.note { background: var(--panel-2); border-left: 4px solid var(--marigold); border-radius: 8px; padding: 14px 16px; margin: 1.2em 0; }
.note p:last-child { margin: 0; }

/* Footer */
footer { border-top: 1px solid var(--line); margin-top: 48px; padding: 28px 0 40px; color: var(--muted); font-size: .95rem; }
footer .wrap { display: flex; gap: 12px 24px; flex-wrap: wrap; justify-content: space-between; }
footer nav { display: flex; gap: 8px 18px; flex-wrap: wrap; }
footer a { color: var(--muted); }
footer a:hover { color: var(--ink); }
