/* Palettes: Pearl Minimal (light) and Void Space (dark) from the no-slop-ui reference. */
:root {
  --background: #f8f9fa;
  --surface: #ffffff;
  --primary: #0066cc;
  --primary-text: #ffffff;
  --text: #212529;
  --muted: #5c636a;
  --border: #dee2e6;
  --code: #eef0f2;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #0d1117;
    --surface: #161b22;
    --primary: #58a6ff;
    --primary-text: #0d1117;
    --text: #c9d1d9;
    --muted: #8b949e;
    --border: #30363d;
    --code: #1f242c;
    color-scheme: dark;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: system-ui, -apple-system, "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

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

a:hover {
  text-decoration: underline;
}

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

img {
  max-width: 100%;
  height: auto;
}

code {
  background: var(--code);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 14px;
}

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 600;
}

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

nav {
  display: flex;
  gap: 24px;
}

nav a {
  color: var(--muted);
  font-size: 15px;
  transition: color 150ms ease;
}

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

/* Intro */
.intro {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
  padding-top: 64px;
  padding-bottom: 64px;
}

h1 {
  font-size: 40px;
  line-height: 1.2;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

.lead {
  font-size: 18px;
  color: var(--muted);
  margin: 0 0 24px;
  max-width: 560px;
}

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

.button {
  display: inline-block;
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-weight: 500;
  transition: background-color 150ms ease, border-color 150ms ease;
}

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

.button.primary {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-text);
}

.button.primary:hover {
  opacity: 0.9;
}

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

.badges {
  display: flex;
  gap: 8px;
  margin: 0;
}

.shot {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  background: #ffffff;
  width: 300px;
}

.shot img {
  display: block;
}

/* Sections */
.section {
  padding-top: 48px;
  padding-bottom: 48px;
  border-top: 1px solid var(--border);
}

h2 {
  font-size: 24px;
  margin: 0 0 24px;
}

h3 {
  font-size: 16px;
  margin: 0 0 4px;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 32px;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  align-items: start;
}

.gallery figure {
  margin: 0;
}

.gallery img {
  display: block;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
}

figcaption {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
}

.steps {
  margin: 0 0 16px;
  padding-left: 20px;
}

.steps li {
  margin-bottom: 8px;
}

.note {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
}

.plain {
  margin: 0;
  padding-left: 20px;
}

.plain li {
  margin-bottom: 8px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 14px;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding-top: 24px;
  padding-bottom: 24px;
}

@media (max-width: 800px) {
  .intro {
    grid-template-columns: 1fr;
    padding-top: 40px;
    padding-bottom: 40px;
  }

  h1 {
    font-size: 30px;
  }

  .shot {
    width: 100%;
    max-width: 320px;
  }

  .features,
  .gallery {
    grid-template-columns: 1fr;
  }

  nav {
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .wrap {
    padding: 0 16px;
  }

  nav a:not(:last-child) {
    display: none;
  }
}
