/* Mirai-chan website — brand tokens from brand/tokens.json. No web fonts, no scripts. */
:root {
  --bg: #fff8ee;
  --surface: #ffffff;
  --sunken: #fff1df;
  --text: #1f2a44;
  --muted: #5a6278;
  --accent: #c93a43;
  --accent-text: #ffffff;
  --link: #0b6bb0;
  --sunny: #ffc93c;
  --border: #eedfc8;
  --focus: #0b6bb0;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141827;
    --surface: #1e2338;
    --sunken: #272d47;
    --text: #f5efe6;
    --muted: #b8bfd2;
    --accent: #ff7b80;
    --accent-text: #141827;
    --link: #6cc4ff;
    --sunny: #ffd45e;
    --border: #343b5a;
    --focus: #6cc4ff;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
img { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 2px; }
a:focus-visible, summary:focus-visible, .button:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.25; }
h1 { font-size: clamp(30px, 5vw, 42px); margin: 0 0 12px; }
h2 { font-size: 24px; margin: 40px 0 10px; }
h3 { font-size: 19px; margin: 24px 0 6px; }
p, li { max-width: 72ch; }
.wrap { width: 100%; max-width: 820px; margin: 0 auto; padding: 0 16px; }
main.wrap { padding-top: 32px; padding-bottom: 64px; }
main.wide { max-width: 1040px; }

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

.site-header { border-bottom: 1px solid var(--border); background: var(--surface); }
.header-inner { max-width: 1040px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: inline-flex; }
.brand img { display: block; height: 36px; width: auto; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 15px; }
.site-header nav a { color: var(--text); text-decoration: none; padding: 4px 0; }
.site-header nav a[aria-current="page"] { color: var(--accent); font-weight: 700; }
.site-header nav a:hover { text-decoration: underline; }

.site-footer { border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; }
.footer-inner { max-width: 1040px; padding-top: 24px; padding-bottom: 40px; display: grid; gap: 12px; }
.site-footer p { margin: 0; max-width: none; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer a { color: var(--muted); }

.muted { color: var(--muted); }
.lead { font-size: 20px; color: var(--muted); }
.meta { color: var(--muted); font-size: 14px; }
.button { display: inline-block; background: var(--accent); color: var(--accent-text); font-weight: 700; text-decoration: none; padding: 12px 22px; border-radius: 999px; }
.button--soon { background: var(--sunken); color: var(--text); border: 1px dashed var(--border); font-weight: 600; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 18px 20px; }
.note { background: var(--sunken); border-left: 4px solid var(--sunny); border-radius: 12px; padding: 12px 16px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-top: 16px; }
.grid .card h3 { margin-top: 0; }
.grid .card p { margin: 0; color: var(--muted); font-size: 15px; }
.hero { display: grid; grid-template-columns: 1fr 240px; gap: 32px; align-items: center; margin-bottom: 8px; }
.hero img { width: 100%; }
.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 12px; }
.steps li { counter-increment: step; position: relative; padding-left: 48px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--sunny); color: #1f2a44; font-weight: 800; display: grid; place-items: center; }
details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 12px 16px; margin: 10px 0; }
summary { cursor: pointer; font-weight: 700; }
details p { margin: 8px 0 0; }
.table-wrap { overflow-x: auto; margin: 12px 0; }
table { border-collapse: collapse; width: 100%; font-size: 15px; min-width: 560px; }
th, td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--border); }
th { background: var(--sunken); }
.lang-switch { font-size: 15px; }
section[lang="en"] { border-top: 2px solid var(--border); margin-top: 48px; padding-top: 8px; }
@media (max-width: 700px) {
  .hero { grid-template-columns: 1fr; }
  .hero img { max-width: 200px; }
  h2 { font-size: 22px; }
}
@media print {
  .site-header, .site-footer, .skip { display: none; }
  body { background: #fff; color: #000; }
}
