:root {
  --background: #f6f8fa;
  --surface: #ffffff;
  --surface-subtle: #f6f8fa;
  --ink: #1f2328;
  --muted: #656d76;
  --line: #d0d7de;
  --line-soft: #d8dee4;
  --accent: #5146c9;
  --accent-hover: #4338aa;
  --success: #1a7f37;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--background);
  font-family:
    ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  text-decoration: underline;
}

button {
  color: inherit;
  font: inherit;
}

.site-header,
main,
footer {
  width: min(1040px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border-radius: 5px;
  background: var(--ink);
}

.brand-mark i {
  width: 2px;
  height: 6px;
  border-radius: 2px;
  background: #fff;
}

.brand-mark i:nth-child(2),
.brand-mark i:nth-child(4) {
  height: 11px;
}

.brand-mark i:nth-child(3) {
  height: 16px;
}

nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13px;
}

nav a {
  color: var(--ink);
}

.nav-download {
  min-height: 32px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  font-weight: 600;
  cursor: pointer;
}

.nav-download:hover {
  background: var(--surface-subtle);
  text-decoration: none;
}

.project-intro {
  padding: 48px 0 44px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 8px;
  font-size: clamp(34px, 5vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.035em;
  font-weight: 650;
}

.project-status {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.project-summary {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.5;
}

.project-description {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.project-actions {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.release-meta {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.primary-button {
  min-height: 36px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.primary-button {
  color: #fff;
  border: 1px solid var(--accent);
  background: var(--accent);
}

.primary-button:hover {
  border-color: var(--accent-hover);
  background: var(--accent-hover);
  text-decoration: none;
}

.project-details {
  max-width: 820px;
  padding: 34px 0 56px;
}

.project-details section {
  padding: 0 0 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line-soft);
}

.project-details section:last-child {
  margin-bottom: 0;
  border-bottom: 0;
}

.project-details h2 {
  margin: 0 0 10px;
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: -0.015em;
  font-weight: 650;
}

.project-details p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.feature-list {
  margin: 0;
  padding-left: 21px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.feature-list li + li {
  margin-top: 3px;
}

.pipeline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
}

.pipeline code {
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}

.technical-list {
  margin: 0;
  border-top: 1px solid var(--line-soft);
}

.technical-list > div {
  min-height: 34px;
  display: grid;
  grid-template-columns: 140px 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line-soft);
  font-size: 12px;
}

.technical-list dt {
  color: var(--muted);
}

.technical-list dd {
  margin: 0;
}

.shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  color: var(--muted);
  font-size: 12px;
}

kbd {
  margin-left: 6px;
  padding: 3px 6px;
  border: 1px solid var(--line);
  border-bottom-color: #afb8c1;
  border-radius: 5px;
  background: var(--surface);
  color: var(--ink);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  white-space: nowrap;
}

footer {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

footer p {
  margin: 0;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (max-width: 680px) {
  .site-header,
  main,
  footer {
    width: min(100% - 32px, 1040px);
  }

  nav {
    gap: 12px;
  }

  nav a:first-child {
    display: none;
  }

  .project-intro {
    padding: 40px 0 36px;
  }

  .project-details {
    padding: 32px 0 48px;
  }

  footer {
    padding: 26px 0;
  }
}

@media (max-width: 430px) {
  nav a:first-child {
    display: none;
  }

  .project-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-button {
    width: 100%;
  }

  .technical-list > div {
    grid-template-columns: 110px 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
