/* STIXLY privacy page. Fonts are served with the page; nothing loads from third parties. */
@font-face { font-family: 'Cormorant'; src: url(fonts/Cormorant.woff) format('woff'); font-weight: 300 700; font-display: swap; }
@font-face { font-family: 'Jost'; src: url(fonts/Jost.woff) format('woff'); font-weight: 100 900; font-display: swap; }

/* Warm parchment by day, the game's dark wood by night. */
:root {
  --bg: #f5efe4;
  --surface: #fbf7f0;
  --fg: #2b2219;
  --muted: #6f6253;
  --rule: #e2d7c5;
  --accent: #8a5a24;
  --accent-soft: #f0e2cc;
  --serif: 'Cormorant', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --sans: 'Jost', -apple-system, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #120e0b;
    --surface: #1b1612;
    --fg: #ece2d0;
    --muted: #a8998a;
    --rule: #2f2720;
    --accent: #d8a868;
    --accent-soft: #2a2017;
  }
}
:root[data-theme="dark"] {
  --bg: #120e0b; --surface: #1b1612; --fg: #ece2d0; --muted: #a8998a; --rule: #2f2720; --accent: #d8a868; --accent-soft: #2a2017;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 17px/1.62 var(--sans);
  padding: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0) env(safe-area-inset-bottom, 0) env(safe-area-inset-left, 0);
}
[hidden] { display: none !important; }
.wrap { max-width: 720px; margin: 0 auto; padding: 48px 20px 64px; }

header { padding-bottom: 28px; border-bottom: 1px solid var(--rule); margin-bottom: 8px; }
.mark { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.mark img { border-radius: 10px; display: block; }
.mark span { font: 500 15px/1 var(--sans); letter-spacing: 0.32em; color: var(--accent); }
h1 { font: 500 clamp(36px, 7vw, 48px)/1.08 var(--serif); margin: 0 0 10px; letter-spacing: -0.005em; }
.meta { color: var(--muted); margin: 0 0 22px; font-size: 15px; }

.lang { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); position: relative; }
.lang select {
  appearance: none; -webkit-appearance: none;
  font: 500 15px/1.2 var(--sans); color: var(--fg);
  background: var(--surface); border: 1px solid var(--rule); border-radius: 10px;
  padding: 9px 34px 9px 12px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 17px) 55%, calc(100% - 12px) 55%;
  background-size: 5px 5px; background-repeat: no-repeat;
}
.lang select:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

section { padding: 26px 0 4px; }
h2 { font: 600 clamp(24px, 4.6vw, 28px)/1.2 var(--serif); margin: 0 0 10px; }
p { margin: 0 0 14px; }
ul { margin: 0 0 14px; padding-left: 1.2em; }
li { margin: 0 0 8px; }
li::marker { color: var(--accent); }
strong { font-weight: 600; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; overflow-wrap: anywhere; }
.ui { font-weight: 500; }

/* CJK reads better without the Latin display face and with a little more air. */
article:lang(ja), article:lang(ko), article:lang(zh) { line-height: 1.8; }
article:lang(ja) h2, article:lang(ko) h2, article:lang(zh) h2 { font-family: var(--sans); font-weight: 600; font-size: 22px; }
html:lang(ja) h1, html:lang(ko) h1, html:lang(zh-Hans) h1, html:lang(zh-Hant) h1 { font-family: var(--sans); font-weight: 500; font-size: clamp(30px, 6vw, 38px); }

.contact {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: 12px 12px 12px 16px; margin-top: 4px;
}
.contact a { font-weight: 500; text-decoration: none; }
.copy {
  font: 500 14px/1 var(--sans); color: var(--accent); background: var(--accent-soft);
  border: 0; border-radius: 8px; padding: 9px 14px; cursor: pointer;
}

footer { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 14px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 480px) {
  body { font-size: 16px; }
  .wrap { padding: 32px 16px 48px; }
}
