:root {
  --bg: #121016;
  --bg-raised: #1b1822;
  --border: #2e2a38;
  --text: #ece9f2;
  --muted: #a39db0;
  --accent: #a678ff;
  --accent-strong: #8b5cf6;
  --on-accent: #ffffff;
  --code-bg: #0c0a10;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #faf9fc;
    --bg-raised: #ffffff;
    --border: #e3dfeb;
    --text: #1d1a24;
    --muted: #5e576b;
    --accent: #6d3fd6;
    --accent-strong: #6d3fd6;
    --code-bg: #f1eef6;
    --shadow: 0 20px 50px rgba(40, 20, 80, 0.16);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans JP", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

code, pre {
  font-family: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9em;
}

code {
  background: var(--code-bg);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

pre {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  overflow-x: auto;
}

pre code { background: none; padding: 0; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

/* Header */

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 650;
  font-size: 18px;
}
.brand:hover { text-decoration: none; }
.brand img { border-radius: 8px; }

nav { display: flex; gap: 24px; }
nav a { color: var(--muted); font-size: 15px; }
nav a:hover { color: var(--text); text-decoration: none; }

/* Sections */

section { padding: 88px 0; }
section + section { border-top: 1px solid var(--border); }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: clamp(36px, 6vw, 60px); margin: 24px 0 16px; font-weight: 750; }
h2 { font-size: clamp(28px, 4vw, 38px); margin: 0 0 24px; font-weight: 700; }
h3 { font-size: 19px; margin: 0 0 8px; }

.hero { text-align: center; padding-top: 72px; }
.hero-icon { border-radius: 24px; box-shadow: var(--shadow); }

.lead {
  font-size: clamp(18px, 2.2vw, 21px);
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 32px;
}

.section-lead { color: var(--muted); max-width: 640px; margin: -8px 0 32px; }

.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.button {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-raised);
  color: var(--text);
  font-weight: 600;
}
.button:hover { text-decoration: none; border-color: var(--accent); }

.button.primary {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: var(--on-accent);
}
.button.primary:hover { filter: brightness(1.1); }

.fine { color: var(--muted); font-size: 14px; margin-top: 16px; }

.shot {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hero-shot { margin-top: 56px; }

/* Philosophy */

.philosophy p { color: var(--muted); font-size: 18px; }

.points { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 16px; }
.points li {
  padding: 16px 20px;
  border-left: 3px solid var(--accent-strong);
  background: var(--bg-raised);
  border-radius: 0 10px 10px 0;
  color: var(--muted);
}
.points strong { color: var(--text); display: block; }

/* Features */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.grid article {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 24px;
}
.grid article p { margin: 0; color: var(--muted); font-size: 16px; }

.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 32px;
  margin-top: 56px;
}

figure { margin: 0; }
figcaption { color: var(--muted); font-size: 15px; text-align: center; margin-top: 14px; }

/* Download */

.downloads {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}

.download {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 20px 22px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-raised);
  color: var(--text);
}
.download:hover { text-decoration: none; border-color: var(--accent); }
.download.current { border-color: var(--accent-strong); box-shadow: 0 0 0 1px var(--accent-strong); }

.download .os { font-weight: 650; font-size: 18px; }
.download .arch { color: var(--muted); font-size: 14px; }
.download .file {
  margin-top: 12px;
  font-family: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;
  font-size: 13px;
  color: var(--accent);
  word-break: break-all;
}

.notes { margin-top: 32px; display: grid; gap: 10px; }

details {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
}
summary { cursor: pointer; font-weight: 600; }
details p { color: var(--muted); margin: 12px 0 0; }
details pre { margin: 12px 0 0; }

/* Footer */

footer { border-top: 1px solid var(--border); padding: 32px 0; color: var(--muted); font-size: 14px; }
.footer-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@media (max-width: 600px) {
  section { padding: 64px 0; }
  nav { gap: 16px; }
  nav a:first-child { display: none; }
  .shots { grid-template-columns: 1fr; }
}
