:root {
  color-scheme: light;
  --bg: #f5efd8;
  --surface: #eee8d5;
  --surface-soft: #e6dec8;
  --text: #073642;
  --muted: #586e75;
  --subtle: #657b83;
  --line: #d8cfb7;
  --code-bg: #002b36;
  --code-text: #93d7c6;
  --accent: #2d7f88;
  --accent-strong: #12616b;
  --link: #236caa;
  --shadow: rgba(7, 54, 66, 0.12);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 32px;
  background: rgba(245, 239, 216, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 750;
  letter-spacing: 0;
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.95rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover {
  color: var(--text);
}

main {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  gap: 48px;
  align-items: center;
  min-height: 600px;
  padding: 64px 0 54px;
}

.project-label {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 700;
}

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

h1 {
  max-width: 680px;
  margin-bottom: 18px;
  font-size: 4.6rem;
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 10px;
  font-size: 2rem;
  line-height: 1.15;
  letter-spacing: 0;
}

.lead {
  max-width: 640px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 1.24rem;
  line-height: 1.55;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  font-weight: 650;
  text-decoration: none;
}

.button:hover {
  border-color: #93a1a1;
}

.button-primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fdf6e3;
}

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

.command,
.examples pre {
  margin: 0;
  overflow-x: auto;
  border-radius: 6px;
  background: var(--code-bg);
  color: var(--code-text);
}

.command {
  padding: 16px 18px;
}

code {
  font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.92rem;
  line-height: 1.65;
}

pre code {
  color: var(--code-text);
}

td code,
li code {
  padding: 2px 5px;
  border-radius: 4px;
  background: #e3dcc6;
  color: #073642;
}

.demo {
  margin: 0;
}

.demo video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--code-bg);
  box-shadow: 0 18px 46px var(--shadow);
}

.demo figcaption {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  color: var(--subtle);
  font-size: 0.92rem;
}

.sample-command {
  display: block;
  overflow-x: auto;
  padding: 10px 12px;
  border-radius: 6px;
  background: var(--code-bg);
  color: var(--code-text);
  white-space: nowrap;
}

.section {
  padding: 42px 0;
  border-top: 1px solid var(--line);
}

.section-header {
  max-width: 720px;
  margin-bottom: 22px;
}

.section-header p,
.source p,
.note {
  color: var(--muted);
  line-height: 1.65;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 42px;
  align-items: start;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--surface-soft);
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 700;
}

td {
  color: var(--muted);
}

tbody tr:last-child td {
  border-bottom: 0;
}

.note {
  margin: 16px 0 0;
}

.examples {
  display: grid;
  gap: 10px;
}

.examples pre {
  padding: 14px 16px;
}

.check-list {
  display: grid;
  gap: 12px;
  max-width: 880px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 24px;
  color: var(--muted);
  line-height: 1.6;
}

.check-list li::before {
  position: absolute;
  left: 0;
  color: var(--accent);
  content: ">";
  font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-weight: 700;
}

.source {
  padding-bottom: 58px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 28px;
  padding: 24px 32px;
  border-top: 1px solid var(--line);
  color: var(--subtle);
  font-size: 0.94rem;
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
    padding: 14px 20px;
  }

  .site-nav {
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px 16px;
  }

  main {
    width: min(100% - 32px, 680px);
  }

  .hero,
  .two-column {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
    padding: 46px 0 42px;
  }

  h1 {
    font-size: 3.3rem;
  }
}

@media (max-width: 560px) {
  .site-header {
    gap: 14px;
  }

  .site-nav {
    font-size: 0.88rem;
  }

  main {
    width: min(100% - 24px, 680px);
  }

  .hero {
    padding-top: 34px;
  }

  h1 {
    font-size: 2.75rem;
  }

  .lead {
    font-size: 1.08rem;
  }

  .button {
    width: 100%;
  }
}
