/* ramelu.com: one stylesheet for every page. System fonts only (no font
   files, no third-party requests), light and dark from the device setting. */

:root {
  color-scheme: light dark;
  --bg: #f7f5f0;
  --surface: #ffffff;
  --ink: #1b1a17;
  --dim: #5f5b53;
  --rule: #e2ded5;
  --accent: #b4442a;
  --accent-ink: #ffffff;
  --soft: #efebe2;
  --shadow: 0 1px 2px rgba(27, 26, 23, 0.06), 0 8px 24px rgba(27, 26, 23, 0.06);
  --radius: 18px;
  --measure: 68ch;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121211;
    --surface: #1b1b19;
    --ink: #edeae4;
    --dim: #a8a399;
    --rule: #2e2d2a;
    --accent: #ec8a6c;
    --accent-ink: #1b1a17;
    --soft: #232320;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
  }
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, .badge:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 32px; } }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; background: var(--surface); padding: 8px 12px; z-index: 10; }

/* ---- header and footer ---- */

.site-head { border-bottom: 1px solid var(--rule); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; flex-wrap: wrap; }
.mark { display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; padding: 6px 0; }
.mark svg { display: block; height: 22px; width: 102px; }
.site-nav { display: flex; gap: 4px 20px; flex-wrap: wrap; font-size: 15px; }
.site-nav a { color: var(--dim); text-decoration: none; padding: 6px 0; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); }

.site-foot { border-top: 1px solid var(--rule); margin-top: 72px; padding: 28px 0 40px; color: var(--dim); font-size: 14px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.site-foot nav { display: flex; gap: 8px 20px; flex-wrap: wrap; }
.site-foot a { color: var(--dim); }

/* ---- home ---- */

.hero { padding: 56px 0 24px; }
@media (min-width: 700px) { .hero { padding: 88px 0 40px; } }
.hero h1 { margin: 0; max-width: 15ch; text-wrap: balance; font-size: clamp(34px, 7vw, 58px); line-height: 1.08; letter-spacing: -0.02em; font-weight: 700; }
.hero p { margin: 20px 0 0; max-width: 56ch; font-size: clamp(17px, 2.2vw, 20px); color: var(--dim); }

.promise { display: grid; gap: 12px; margin: 36px 0 0; padding: 0; list-style: none; }
@media (min-width: 700px) { .promise { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.promise li { background: var(--soft); border-radius: 14px; padding: 16px 18px; font-size: 15px; line-height: 1.5; color: var(--dim); }
.promise strong { display: block; color: var(--ink); font-size: 16px; margin-bottom: 2px; }

.section-title { margin: 64px 0 20px; font-size: 22px; letter-spacing: -0.01em; }

.games { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .games { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .games { grid-template-columns: repeat(3, 1fr); } }

.game { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.game-top { display: flex; gap: 16px; align-items: center; }
.game-top img { flex: none; width: 72px; height: 72px; border-radius: 22.5%; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06); }
.game h3 { margin: 0; font-size: 19px; line-height: 1.25; }
.game .kind { margin: 2px 0 0; font-size: 14px; color: var(--dim); }
.game p.blurb { margin: 14px 0 18px; font-size: 15px; line-height: 1.55; color: var(--dim); flex: 1; }
.stores { display: flex; flex-wrap: wrap; gap: 8px; }
.badge { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; text-decoration: none; background: var(--ink); color: var(--bg); }
.game.more { display: none; }
@media (min-width: 980px) { .game.more { display: flex; align-items: center; justify-content: center; background: transparent; box-shadow: none; border: 1px dashed var(--rule); color: var(--dim); font-size: 15px; text-align: center; } }
.badge.is-soon { background: transparent; color: var(--dim); font-weight: 500; box-shadow: inset 0 0 0 1px var(--rule); }

/* ---- text pages (privacy, support) ---- */

.doc { padding-top: 48px; }
@media (min-width: 700px) { .doc { padding-top: 72px; } }
.doc > * { max-width: var(--measure); }
.doc h1 { margin: 0 0 8px; font-size: clamp(30px, 5.5vw, 42px); line-height: 1.15; letter-spacing: -0.02em; }
.doc .meta { margin: 0 0 32px; color: var(--dim); font-size: 15px; }
.doc h2 { margin: 48px 0 12px; font-size: 22px; line-height: 1.3; letter-spacing: -0.01em; scroll-margin-top: 16px; }
.doc h3 { margin: 28px 0 8px; font-size: 18px; line-height: 1.35; }
.doc p, .doc ul, .doc ol { margin: 0 0 16px; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin: 0 0 6px; }
.doc li::marker { color: var(--dim); }

.summary { background: var(--soft); border-radius: var(--radius); padding: 20px 22px; margin: 0 0 32px; }
.summary h2 { margin: 0 0 10px; font-size: 17px; }
.summary ul { margin: 0; }

.toc, .doc .toc { margin: 0 0 16px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.toc a { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--soft); color: var(--ink); text-decoration: none; font-size: 14px; }

.table-scroll { overflow-x: auto; margin: 0 0 16px; max-width: var(--measure); }
table { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 1.45; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule); }
th { font-weight: 600; }
thead th { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--dim); }

.path { font-weight: 600; white-space: nowrap; }
.contact { font-size: 20px; font-weight: 600; }

.notfound { padding-top: 96px; padding-bottom: 24px; }
.notfound h1 { font-size: clamp(30px, 6vw, 44px); margin: 0 0 12px; }
