:root {
  color-scheme: light;
  --bg: #f7f7f5;
  --ink: #202124;
  --muted: #5b5f65;
  --line: #d9ddd7;
  --panel: #ffffff;
  --accent: #176b5d;
  --accent-2: #355c9a;
  --terminal: #17201d;
  --terminal-line: #79c7a4;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
}

a {
  color: inherit;
}

.site-shell {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0;
}

.hero {
  max-width: 760px;
  margin-bottom: 36px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 16px;
  font-size: 52px;
  line-height: 1.05;
  font-weight: 650;
}

.lead {
  margin: 0;
  max-width: 620px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.6;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.project-card {
  display: flex;
  min-height: 430px;
  flex-direction: column;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 22px;
}

.project-card h2 {
  margin: 0;
  font-size: 28px;
}

.project-card p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.terminal-preview {
  display: grid;
  gap: 12px;
  border-radius: 8px;
  background: var(--terminal);
  color: #eef7ef;
  min-height: 164px;
  padding: 20px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.terminal-preview span {
  color: var(--terminal-line);
  font-size: 14px;
}

.terminal-preview strong {
  align-self: center;
  font-size: 20px;
  line-height: 1.3;
}

.terminal-preview em {
  color: #b8c9bf;
  font-size: 13px;
  font-style: normal;
}

.zaima-preview {
  --terminal-line: #9bbcff;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 42px;
  margin-top: auto;
  border: 1px solid var(--accent);
  border-radius: 6px;
  padding: 0 16px;
  color: var(--accent);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.button:hover {
  background: var(--accent);
  color: #fff;
}

.project-page {
  display: grid;
  gap: 36px;
}

.top-link {
  color: var(--muted);
  font-size: 15px;
  text-decoration: none;
}

.top-link:hover {
  color: var(--accent);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
}

.screenshot-frame {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111917;
  box-shadow: 0 18px 48px rgba(24, 32, 29, 0.14);
}

.screenshot-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.detail-copy {
  display: grid;
  gap: 24px;
}

.detail-copy h2,
.side-panel h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

.detail-copy p,
.detail-copy li,
.side-panel li,
.side-panel p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.detail-copy ul,
.side-panel ul {
  margin: 0;
  padding-left: 20px;
}

.side-panel {
  border-left: 3px solid var(--accent);
  padding-left: 20px;
}

.command {
  overflow-x: auto;
  border-radius: 8px;
  background: var(--terminal);
  color: #eef7ef;
  padding: 18px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 14px;
  line-height: 1.7;
}

.repo-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 760px) {
  .site-shell {
    width: min(100% - 24px, 1040px);
    padding: 40px 0;
  }

  h1 {
    font-size: 40px;
  }

  .lead {
    font-size: 18px;
  }

  .project-grid,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .project-card {
    min-height: auto;
  }

  .side-panel {
    border-left: 0;
    border-top: 3px solid var(--accent);
    padding: 20px 0 0;
  }
}
