/* Pixel Art Collect — shared styles for the static pages (privacy, support, credits, index).
   Colours follow the game's museum palette (ThemeSpec system v4); no web fonts, no external requests. */
:root {
  color-scheme: light dark;
  --bg: #F3E8CD;
  --surface: #FBF6EC;
  --text: #302922;
  --muted: #665C4E;
  --link: #702B35;
  --gold: #B99A52;
  --line: #D5C5A2;
  --badge: #EDE0BE;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1C1814;
    --surface: #262019;
    --text: #EDE0BE;
    --muted: #B5A88E;
    --link: #D9B96E;
    --gold: #B99A52;
    --line: #3D3429;
    --badge: #332B22;
  }
}

/* Language: site.js sets html[data-lang]; without it (no JavaScript) English is shown. */
html:not([data-lang="tr"]) [data-l="tr"],
html[data-lang="tr"] [data-l="en"] { display: none !important; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-wrap: break-word;
}
a { color: var(--link); text-underline-offset: 2px; }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3 { font-family: ui-serif, "New York", Georgia, "Times New Roman", serif; font-weight: 600; line-height: 1.25; }
h1 { font-size: 2rem; margin: 0 0 .25rem; }
h2 { font-size: 1.35rem; margin: 2.25rem 0 .5rem; padding-top: .75rem; border-top: 1px solid var(--line); }
h3 { font-size: 1.05rem; margin: 1.5rem 0 .25rem; }
p, ul, ol { margin: 0 0 1rem; }
ul, ol { padding-left: 1.25rem; }
li { margin: .25rem 0; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85em; }
pre { white-space: pre-wrap; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 12px; margin: 0 0 1rem; }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }
.site { border-bottom: 1px solid var(--line); }
.site .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: ui-serif, "New York", Georgia, serif; font-size: 1.15rem; font-weight: 600; margin-right: auto; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .95rem; }
.nav a { text-decoration: none; }
.nav a[aria-current="page"] { color: var(--text); font-weight: 600; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; font-size: .85rem; }
.lang a { padding: 4px 12px; text-decoration: none; color: var(--muted); min-height: 32px; display: flex; align-items: center; }
html:not([data-lang="tr"]) .lang a[hreflang="en"],
html[data-lang="tr"] .lang a[hreflang="tr"] { background: var(--link); color: var(--bg); font-weight: 600; }

main.wrap { padding-top: 28px; padding-bottom: 40px; }
.lead { font-size: 1.1rem; color: var(--muted); }
.meta { color: var(--muted); font-size: .95rem; }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin: 0 0 1.25rem; }
.box > :last-child { margin-bottom: 0; }
.cards { list-style: none; padding: 0; display: grid; gap: 12px; }
.cards a { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; text-decoration: none; color: var(--text); }
.cards a strong { color: var(--link); display: block; font-size: 1.05rem; }
.cards a > span { color: var(--muted); font-size: .95rem; }
.hero { display: flex; align-items: center; gap: 16px; margin-bottom: 1.25rem; }
.hero img { width: 88px; height: 88px; border-radius: 20px; flex: none; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 16px; margin: 0 0 10px; }
details summary { cursor: pointer; padding: 14px 0; font-weight: 600; }
details[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 12px; }
details > :last-child { margin-bottom: 14px; }

/* Credits */
.toc { columns: 2 220px; padding: 0; list-style: none; }
.toc li { margin: 0 0 .35rem; break-inside: avoid; }
.works { list-style: none; padding: 0; margin: 0 0 1rem; }
.works li { padding: 10px 0; border-bottom: 1px solid var(--line); margin: 0; }
.works li:last-child { border-bottom: 0; }
.works .t { font-weight: 600; margin: 0; }
.works .a, .works .s { margin: 0; font-size: .92rem; color: var(--muted); }
.badge { display: inline-block; background: var(--badge); border: 1px solid var(--line); border-radius: 999px; padding: 0 8px; font-size: .8rem; color: var(--text); text-decoration: none; }
a.badge { color: var(--link); }

.foot { border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.foot .wrap { padding-top: 16px; padding-bottom: 24px; }

@media (max-width: 480px) {
  h1 { font-size: 1.6rem; }
  .hero img { width: 72px; height: 72px; border-radius: 16px; }
}
