:root {
  color-scheme: light dark;
  --fg: #1d1d1f; --bg: #ffffff; --muted: #6e6e73; --rule: #d2d2d7;
  --card: #f5f8ff; --accent: #2f7cf6; --brand: #6b1010; --pink: #ffd6e7;
  --link: #0a66d8;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fg: #f5f5f7; --bg: #111113; --muted: #a1a1a6; --rule: #3a3a3c;
    --card: #1b1d24; --accent: #5c9dff; --brand: #ff9aa8; --pink: #3a2230;
    --link: #4da3ff;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--link); }
img { max-width: 100%; height: auto; }

.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 680px; }

header.site { border-bottom: 1px solid var(--rule); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; }
.wordmark { display: flex; align-items: center; }
.wordmark img { height: 30px; width: auto; }
nav.site { display: flex; gap: 20px; font-size: 15px; }
nav.site a { color: var(--fg); text-decoration: none; }
nav.site a:hover { color: var(--accent); }

h1, h2, h3 { font-family: "Fredoka", -apple-system, sans-serif; font-weight: 600; }
h1 { font-size: 32px; line-height: 1.2; margin: 0 0 8px; }
h2 { font-size: 22px; margin: 32px 0 8px; }
p, li { margin: 8px 0; }
.muted { color: var(--muted); font-size: 15px; }
main.wrap { padding-top: 40px; padding-bottom: 64px; }

.hero { text-align: center; padding: 24px 0 40px; }
.hero h1 { font-size: clamp(34px, 7vw, 52px); color: var(--brand); }
.hero h1.logo { margin: 0; }
.hero h1.logo img { display: inline-block; height: clamp(48px, 9vw, 70px); width: auto; vertical-align: middle; }
.hero p { font-size: 20px; color: var(--muted); max-width: 560px; margin: 8px auto 0; }

.button {
  display: inline-block; background: var(--fg); color: var(--bg); text-decoration: none;
  font-weight: 600; font-size: 15px; padding: 10px 18px; border-radius: 12px;
}
.buttons { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0; }

.app-head { display: flex; gap: 20px; align-items: center; margin-bottom: 24px; }
.app-head img.icon { width: 96px; height: 96px; border-radius: 22px; flex: none; }
.app-head h2 { margin: 0; font-size: 30px; }
h3 { font-size: 18px; margin: 24px 0 4px; }

.shots {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(180px, 1fr);
  gap: 14px; overflow-x: auto; padding: 8px 0 16px; margin: 24px 0; scroll-snap-type: x mandatory;
}
.shots img { border-radius: 18px; border: 1px solid var(--rule); scroll-snap-align: start; }

table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0; }
th, td { text-align: left; vertical-align: top; padding: 8px 8px 8px 0; border-bottom: 1px solid var(--rule); }
/* CJK breaks between any two characters, so keep the short data names on one or two lines */
:lang(ja) td:first-child, :lang(zh) td:first-child { min-width: 6.5em; }

.contact-box {
  background: var(--card); border-radius: 18px; padding: 20px 24px; margin: 20px 0;
}
.contact-box a.email { font-size: 22px; font-weight: 600; }

footer.site { border-top: 1px solid var(--rule); color: var(--muted); font-size: 14px; }
footer.site .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 20px; padding-bottom: 32px; }
footer.site a { color: var(--muted); }
footer.site nav { display: flex; gap: 16px; }
