/* Simple Git CMS — the project's own site. Hand-written, no framework; the navy is the editor's own. */
:root {
  --bg: #f7f7f4;
  --bg-alt: #ffffff;
  --surface: #ffffff;
  --ink: #16181d;
  --ink-soft: #3e434d;
  --muted: #666d79;
  --line: #e4e3dd;
  --line-soft: #eeede8;
  --accent: #1b2f6e;
  --accent-ink: #ffffff;
  --accent-soft: #eaeefb;
  --code-bg: #f2f2ee;
  --code-ink: #2a2e36;
  --t-key: #1b2f6e;
  --t-str: #38603f;
  --t-cmd: #8a3b1f;
  --t-com: #8b909a;
  --shadow: 0 1px 2px rgb(20 24 35 / 6%), 0 18px 40px -16px rgb(20 24 35 / 18%);
  --radius: 14px;
  --wrap: 1120px;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1116;
    --bg-alt: #14161c;
    --surface: #171a21;
    --ink: #e9eaee;
    --ink-soft: #c3c7d0;
    --muted: #949ba7;
    --line: #262a33;
    --line-soft: #1e222a;
    --accent: #93a9ef;
    --accent-ink: #0f1116;
    --accent-soft: #1b2235;
    --code-bg: #14171e;
    --code-ink: #cdd2dc;
    --t-key: #9ab2f5;
    --t-str: #8fc69b;
    --t-cmd: #e0a06f;
    --t-com: #6f7682;
    --shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 22px 50px -20px rgb(0 0 0 / 70%);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN",
    "Noto Sans JP", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0; font-weight: 650; }
p { margin: 0; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
code { font-family: var(--mono); font-size: 0.88em; }

.wrap { width: min(100% - 48px, var(--wrap)); margin-inline: auto; }
@media (max-width: 600px) { .wrap { width: calc(100% - 32px); } }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 10;
  background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 62px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 650; text-decoration: none; letter-spacing: -0.01em; white-space: nowrap; }
.brand-mark { width: 22px; height: 22px; color: var(--accent); }
.top-nav { display: flex; align-items: center; gap: 18px; }
.l-short { display: none; }
.langs { display: flex; gap: 2px; font-size: 13px; }
.langs a {
  padding: 5px 9px; border-radius: 999px; text-decoration: none; color: var(--muted);
  white-space: nowrap;
}
.langs a:hover { color: var(--ink); background: var(--line-soft); }
.langs a[aria-current] { color: var(--ink); background: var(--line-soft); font-weight: 600; }
.top-link { font-size: 14.5px; text-decoration: none; color: var(--muted); }
.top-link:hover { color: var(--ink); }
@media (max-width: 760px) { .top-link { display: none; } }
@media (max-width: 620px) {
  .top-nav { gap: 8px; }
  .langs a { padding: 5px 7px; }
  .l-long { display: none; }
  .l-short { display: inline; }
  .top-nav .btn-sm { padding: 7px 10px; }
  .top-nav .btn-sm span { display: none; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink); font-size: 15px; font-weight: 550; text-decoration: none;
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}
.btn:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--ink) 22%, var(--line)); }
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.btn-primary:hover { border-color: transparent; }
.btn-sm { padding: 7px 13px; font-size: 14px; border-radius: 8px; }
.btn-plain { border-color: transparent; background: none; color: var(--muted); }
.btn-plain:hover { color: var(--ink); border-color: transparent; }
.btn .icon { width: 16px; height: 16px; flex: none; }

/* ---------- hero ---------- */
.hero { padding: 86px 0 0; }
.kicker {
  font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600;
  color: var(--accent);
}
.hero h1 {
  margin: 18px 0 0;
  font-size: clamp(2.05rem, 4.5vw, 3.35rem);
  letter-spacing: -0.035em;
  max-width: 26ch;
}
:lang(ja) .hero h1, :lang(zh-Hans) .hero h1 {
  max-width: 24ch; letter-spacing: -0.01em; line-break: strict;
  font-size: clamp(1.7rem, 6.2vw, 3.1rem);
}
.lead { margin-top: 22px; max-width: 62ch; font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: var(--ink-soft); }
.lead strong { color: var(--ink); font-weight: 650; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.demo-note { margin-top: 14px; font-size: 13.5px; color: var(--muted); max-width: 54ch; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; font-size: 13px; color: var(--muted); }
.badges li { border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; background: var(--surface); }

.shot-wrap { margin-top: 56px; }
.shot {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.shot img { display: block; width: 100%; height: auto; }

/* ---------- sections ---------- */
section { padding-block: 80px; }
.hero { padding-bottom: 0; }
.band { background: var(--bg-alt); border-block: 1px solid var(--line-soft); margin-top: 86px; }
.band + .band, .flow-sec + .band { margin-top: 0; border-top: 0; }
section > .wrap > h2 { font-size: clamp(1.5rem, 2.9vw, 2.05rem); max-width: 22ch; }
.section-lead { margin-top: 14px; color: var(--muted); max-width: 60ch; }

/* ---------- pillars ---------- */
.pillars { display: grid; gap: 34px; grid-template-columns: repeat(3, 1fr); margin-top: 44px; }
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr; gap: 30px; } }
.pillar-n { font-family: var(--mono); font-size: 12px; color: var(--accent); letter-spacing: .08em; }
.pillar h3 { margin: 10px 0 10px; font-size: 1.14rem; }
.pillar p { color: var(--muted); font-size: 15.5px; }

/* ---------- flow ---------- */
.flow-sec { padding-top: 80px; }
.flow {
  display: flex; align-items: stretch; gap: 0; margin-top: 40px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  padding: 10px; box-shadow: var(--shadow);
}
.flow-node { flex: 1 1 0; padding: 20px 18px; border-radius: 10px; background: var(--line-soft); min-width: 0; }
.flow-node strong { display: block; font-size: 15px; font-weight: 600; }
.flow-node span { display: block; margin-top: 5px; font-size: 13px; color: var(--muted); }
.flow-node-end { background: var(--accent-soft); }
.flow-edge {
  flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; padding: 0 12px; color: var(--muted); text-align: center;
}
.flow-edge span { font-size: 11.5px; max-width: 13ch; line-height: 1.35; }
.flow-arrow { width: 26px; height: 11px; flex: none; }
@media (max-width: 900px) {
  .flow { flex-direction: column; }
  .flow-edge { flex-direction: row-reverse; gap: 10px; padding: 10px 0; }
  .flow-edge span { max-width: none; }
  .flow-arrow { transform: rotate(90deg); }
}
.note { margin-top: 22px; color: var(--muted); font-size: 15px; max-width: 72ch; }
.note code, .limit-list code, .step p code {
  background: var(--code-bg); padding: 1px 5px; border-radius: 5px; color: var(--code-ink);
}

/* ---------- features ---------- */
.features { display: grid; gap: 2px; grid-template-columns: repeat(4, 1fr); margin-top: 44px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; }
@media (max-width: 1000px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .features { grid-template-columns: 1fr; } }
.feature { background: var(--bg-alt); padding: 26px 22px 28px; }
.feature .icon { width: 22px; height: 22px; color: var(--accent); }
.feature h3 { margin: 14px 0 8px; font-size: 1rem; }
.feature p { color: var(--muted); font-size: 14.5px; line-height: 1.6; }

/* ---------- steps ---------- */
.start { background: var(--bg); }
.steps { display: grid; gap: 28px; grid-template-columns: repeat(2, 1fr); margin-top: 44px; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.step { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 24px; }
.step-head { display: flex; align-items: center; gap: 12px; }
.step-n {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink);
  font-size: 13px; font-weight: 650; font-family: var(--mono);
}
.step h3 { font-size: 1.06rem; }
.step p { margin-top: 10px; color: var(--muted); font-size: 15px; }
.step .code { margin-top: 16px; }

.code {
  margin: 0; padding: 16px 18px; border-radius: 10px;
  background: var(--code-bg); color: var(--code-ink);
  font-family: var(--mono); font-size: 13px; line-height: 1.65;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.code code { font-size: inherit; }
.t-key { color: var(--t-key); }
.t-str { color: var(--t-str); }
.t-cmd { color: var(--t-cmd); }
.t-com { color: var(--t-com); }

.format { display: grid; grid-template-columns: 1fr 1.25fr; gap: 34px; align-items: center; margin-top: 44px; padding-top: 44px; border-top: 1px solid var(--line); }
@media (max-width: 820px) { .format { grid-template-columns: 1fr; gap: 22px; } }
.format h3 { font-size: 1.14rem; }
.format p { margin-top: 10px; color: var(--muted); font-size: 15px; }

/* ---------- limits ---------- */
.limits { background: var(--bg-alt); border-block: 1px solid var(--line-soft); }
.limit-list { margin-top: 30px; display: grid; gap: 14px; max-width: 78ch; }
.limit-list li { position: relative; padding-left: 26px; color: var(--ink-soft); font-size: 15.5px; }
.limit-list li::before {
  content: ""; position: absolute; left: 2px; top: 11px; width: 12px; height: 1.5px; background: var(--accent); opacity: .7;
}
.more { margin-top: 26px; display: inline-block; color: var(--accent); text-decoration: none; font-weight: 550; font-size: 15px; }
.more:hover { text-decoration: underline; }

/* ---------- cta ---------- */
.cta { text-align: center; }
.cta h2 { margin-inline: auto; }
.cta p { margin: 14px auto 0; color: var(--muted); max-width: 54ch; }
.cta .actions { justify-content: center; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); background: var(--bg-alt); padding-block: 44px; }
.foot-in { display: flex; flex-wrap: wrap; gap: 40px 72px; }
.foot-brand { font-weight: 650; letter-spacing: -0.01em; }
.foot-note { margin-top: 6px; font-size: 14px; color: var(--muted); }
.foot-note a { color: inherit; }
.foot-h { font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.foot ul { margin-top: 10px; display: grid; gap: 7px; font-size: 14.5px; }
.foot ul a { color: var(--ink-soft); text-decoration: none; }
.foot ul a:hover { color: var(--ink); text-decoration: underline; }
