:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --text: #14171c;
  --muted: #5d6573;
  --line: #e3e6eb;
  --accent: #0a6cff;
  --accent-soft: #e8f1ff;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(20, 23, 28, 0.06), 0 8px 24px rgba(20, 23, 28, 0.06);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115;
    --surface: #181b21;
    --text: #eef0f3;
    --muted: #a3abb8;
    --line: #2a2f38;
    --accent: #4d94ff;
    --accent-soft: #16243a;
    --shadow: none;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

a { color: var(--accent); }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }

/* Header and footer */

.site-header { padding: 20px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; color: var(--text); text-decoration: none; }
.brand img { width: 32px; height: 32px; }
.site-header nav { white-space: nowrap; }
.site-header nav a { color: var(--muted); text-decoration: none; margin-left: 20px; font-size: 15px; }
.site-header nav a:hover { color: var(--text); }

.site-footer { border-top: 1px solid var(--line); margin-top: 72px; padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.site-footer a { color: var(--muted); }

/* Home */

.hero { padding-top: 40px; padding-bottom: 24px; text-align: center; }
.hero h1 { font-size: clamp(36px, 6vw, 58px); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 18px; }
.hero p { font-size: clamp(18px, 2.4vw, 21px); color: var(--muted); max-width: 640px; margin: 0 auto 26px; }
.badge { display: inline-block; background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: 14px; padding: 6px 14px; border-radius: 999px; }

.shots { display: flex; justify-content: center; gap: 24px; padding: 40px 0 8px; flex-wrap: wrap; }
.shots figure { margin: 0; width: min(260px, 80vw); text-align: center; }
.shots img { width: 100%; height: auto; border-radius: 34px; border: 6px solid #1d2026; box-shadow: var(--shadow); background: #000; }
.shots figcaption { font-size: 14px; color: var(--muted); margin-top: 12px; }
.shots-note { text-align: center; font-size: 13px; color: var(--muted); margin: 6px 0 0; }

.section-title { text-align: center; font-size: clamp(26px, 3.6vw, 34px); letter-spacing: -0.01em; margin: 72px 0 28px; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card h3 { margin: 0 0 8px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.card .num { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 15px; margin-bottom: 12px; }

.materials { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 760px; margin: 0 auto; padding: 0; list-style: none; }
.materials li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 15px; }

.note { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; margin-top: 18px; }
.note h3 { margin: 0 0 6px; font-size: 18px; }
.note p { margin: 0; color: var(--muted); font-size: 16px; }

/* Text pages */

.page { padding: 24px 0; }
.page h1 { font-size: clamp(32px, 5vw, 44px); letter-spacing: -0.02em; line-height: 1.15; margin: 8px 0 6px; }
.page .updated { color: var(--muted); margin: 0 0 32px; font-size: 15px; }
.page h2 { font-size: 22px; margin: 40px 0 10px; }
.page p, .page li { color: var(--text); }
.page ul { padding-left: 22px; }
.page li { margin: 6px 0; }
.page .summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; }
.page .summary ul { margin: 8px 0 0; }

.center-page { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.center-page .tick { width: 72px; height: 72px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 36px; margin: 0 auto 20px; }
.center-page h1 { margin: 0 0 10px; font-size: clamp(28px, 5vw, 38px); }
.center-page p { color: var(--muted); max-width: 460px; margin: 0 auto; }

@media (max-width: 560px) {
  .site-header nav a { margin-left: 14px; }
  .site-header nav .optional { display: none; }
  .shots { gap: 16px; }
}
