/* Ink Rush site: the game's paper-and-ink palette (Assets/InkRunner/Runtime/PaperView.cs). */
:root {
  --paper: #faf7ef;
  --surface: #fffdf7;
  --ink: #242424;
  --muted: #68645c;
  --rule: #e1dbd0;
  --border: #c9c2b6;
  --red: #bc4032;
  --measure: 42rem;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
}
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--red); }
a:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 2px; }
img { max-width: 100%; height: auto; display: block; }

.wrap { width: min(100% - 2rem, 60rem); margin-inline: auto; }
.narrow { width: min(100% - 2rem, var(--measure)); margin-inline: auto; }

/* Header and footer */
.site-header { border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.5rem; }
.brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; letter-spacing: 0.02em; text-decoration: none; }
.brand img { width: 2rem; height: 2rem; border-radius: 0.5rem; }
.lang { font-size: 0.9rem; color: var(--muted); }
.site-footer { border-top: 1px solid var(--rule); margin-top: 4rem; padding: 2rem 0 3rem; color: var(--muted); font-size: 0.9rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-bottom: 0.75rem; }
.site-footer a { color: var(--muted); }

/* Landing */
.hero { display: grid; gap: 2rem; align-items: center; padding: 3.5rem 0 2.5rem; }
.hero img { width: min(16rem, 70%); margin-inline: auto; border-radius: 22%; box-shadow: 0 1px 0 var(--border), 0 12px 32px -18px rgba(36, 36, 36, 0.45); }
.hero h1 { font-size: clamp(2.6rem, 9vw, 4rem); line-height: 1.05; margin: 0 0 0.75rem; letter-spacing: -0.01em; }
.hero .tagline { font-size: clamp(1.15rem, 3.5vw, 1.4rem); margin: 0 0 1rem; }
.hero p { margin: 0 0 1rem; }
.availability { display: inline-block; border: 1px solid var(--ink); border-radius: 999px; padding: 0.35rem 1rem; font-size: 0.95rem; font-weight: 600; }
@media (min-width: 48rem) {
  .hero { grid-template-columns: 1fr 1.2fr; padding-top: 5rem; }
  .hero img { width: 100%; max-width: 20rem; }
}

section { padding: 2rem 0; }
section h2 { font-size: 1.5rem; margin: 0 0 1.25rem; }
.features { display: grid; gap: 1rem; padding: 0; margin: 0; list-style: none; }
.features li { background: var(--surface); border: 1px solid var(--rule); border-radius: 0.75rem; padding: 1.1rem 1.25rem; }
.features h3 { font-size: 1.05rem; margin: 0 0 0.35rem; }
.features p { margin: 0; color: var(--muted); }
@media (min-width: 40rem) { .features { grid-template-columns: repeat(2, 1fr); } }

.support { max-width: var(--measure); }
.faq dt { font-weight: 700; margin-top: 1.25rem; }
.faq dd { margin: 0.35rem 0 0; color: var(--muted); }
.contact { background: var(--surface); border: 1px solid var(--rule); border-radius: 0.75rem; padding: 1.25rem; }

/* Documents (privacy policy, account deletion) */
.doc { padding: 2.5rem 0 1rem; }
.doc h1 { font-size: clamp(1.8rem, 6vw, 2.4rem); line-height: 1.2; margin: 0 0 0.5rem; }
.doc .meta { color: var(--muted); margin: 0 0 2rem; }
.doc h2 { font-size: 1.25rem; margin: 2.25rem 0 0.75rem; padding-top: 1rem; border-top: 1px solid var(--rule); }
.doc h3 { font-size: 1.05rem; margin: 1.5rem 0 0.5rem; }
.doc ul, .doc ol { padding-left: 1.4rem; }
.doc li { margin: 0.3rem 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.95rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 0.6rem 0.5rem; border-bottom: 1px solid var(--rule); }
.doc th { font-weight: 700; }
.table-scroll { overflow-x: auto; }
.note { background: var(--surface); border-left: 3px solid var(--ink); padding: 0.75rem 1rem; margin: 1rem 0; }
