:root {
  --bg: #eeede9;
  --surface: #ffffff;
  --text: #111111;
  --muted: #6b6b6b;
  --line: #deddd8;
  --accent: #111111;
  --accent-text: #ffffff;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121212;
    --surface: #1c1c1e;
    --text: #f2f2f2;
    --muted: #a0a0a0;
    --line: #2c2c2e;
    --accent: #f2f2f2;
    --accent-text: #111111;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  line-height: 1.8;
}

a { color: inherit; }

.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 20px;
}

header.site {
  padding: 20px 0;
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

nav.site a {
  margin-left: 18px;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
}

nav.site a:hover,
nav.site a[aria-current="page"] { color: var(--text); }

.hero {
  padding: 48px 0 32px;
  text-align: center;
}

.hero .icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}

.hero h1 {
  margin: 24px 0 8px;
  font-size: clamp(28px, 6vw, 40px);
  line-height: 1.3;
}

.hero p.lead {
  margin: 0 auto;
  max-width: 34em;
  color: var(--muted);
}

.button {
  display: inline-block;
  margin-top: 28px;
  padding: 12px 28px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 700;
  text-decoration: none;
}

.shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 16px 0 48px;
}

.shots img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  display: block;
}

@media (max-width: 640px) {
  .shots {
    grid-template-columns: repeat(3, 70%);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }
  .shots img { scroll-snap-align: center; }
  nav.site a { margin-left: 12px; }
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  padding-bottom: 48px;
}

.card {
  background: var(--surface);
  border-radius: 16px;
  padding: 20px 22px;
}

.card h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.card p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

article.doc {
  background: var(--surface);
  border-radius: 16px;
  padding: 28px 24px;
  margin: 24px 0 48px;
}

article.doc h1 { margin-top: 0; font-size: 26px; line-height: 1.4; }
article.doc h2 { margin-top: 40px; font-size: 20px; border-top: 1px solid var(--line); padding-top: 24px; }
article.doc h3 { margin-top: 28px; font-size: 16px; }
article.doc .updated { color: var(--muted); font-size: 14px; }

footer.site {
  border-top: 1px solid var(--line);
  padding: 24px 0 40px;
  font-size: 13px;
  color: var(--muted);
}

footer.site .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}

footer.site a { margin-right: 16px; }
