:root {
  --ink: #12110e;
  --sheet: #1c1b17;
  --line: #34312a;
  --text: #f6f3ec;
  --muted: #a39e93;
  --brass: #e0c48a;
  --accent: #8b5cf6;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --ink: #efeae1;
    --sheet: #fffaf3;
    --line: #d9d1c3;
    --text: #1c1914;
    --muted: #6d675e;
    --brass: #8a6420;
    --accent: #6d28d9;
    color-scheme: light;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--brass); }
.top, footer, main { max-width: 760px; margin: 0 auto; padding: 0 16px; }
.top { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; text-decoration: none; }
.brand img { border-radius: 7px; }
nav { display: flex; gap: 18px; }
nav a { color: var(--muted); text-decoration: none; font-size: 14px; }
nav a:hover, nav a[aria-current] { color: var(--text); }

.hero { text-align: center; padding: 56px 0 40px; }
.hero .logo { border-radius: 18px; }
.hero h1 { font-size: clamp(30px, 6vw, 46px); line-height: 1.15; margin: 22px 0 14px; letter-spacing: -0.02em; }
.lead { color: var(--muted); font-size: 18px; max-width: 560px; margin: 0 auto; }
.cta { margin-top: 30px; display: grid; justify-items: center; gap: 10px; }
.buy {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 999px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.buy:hover { filter: brightness(1.08); }
.note { color: var(--muted); font-size: 14px; }

main.home { max-width: 1100px; }
body:has(main.home) .top, body:has(main.home) footer { max-width: 1100px; }

.shot {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 2px 8px rgba(0, 0, 0, 0.3);
  background: var(--sheet);
}
@media (prefers-color-scheme: light) {
  .shot { box-shadow: 0 24px 50px rgba(60, 45, 20, 0.18), 0 2px 8px rgba(60, 45, 20, 0.12); }
}
.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 260px));
  justify-content: center;
  align-items: start;
  gap: 22px;
  margin: 52px auto 0;
}
.gallery .shot:nth-child(2) { transform: translateY(-18px); }

.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: center;
  gap: 48px;
  padding: 64px 0;
  border-top: 1px solid var(--line);
}
.row.flip .copy { order: 2; }
.kicker { color: var(--brass); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.row h2 { font-size: clamp(24px, 3.4vw, 32px); line-height: 1.2; margin: 8px 0 14px; letter-spacing: -0.01em; }
.row p { color: var(--muted); margin: 0 0 12px; font-size: 17px; }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.pair .shot:nth-child(2) { transform: translateY(26px); }
.single { max-width: 300px; margin: 0 auto; width: 100%; }

.closing { text-align: center; padding: 64px 0; border-top: 1px solid var(--line); }
.closing h2 { font-size: clamp(26px, 4vw, 36px); margin: 0 0 10px; }
.closing p { color: var(--muted); margin: 0 auto 26px; max-width: 520px; }

@media (max-width: 760px) {
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .gallery .shot { border-radius: 10px; }
  .gallery .shot:nth-child(2) { transform: none; }
  .row { grid-template-columns: 1fr; gap: 28px; padding: 44px 0; }
  .row.flip .copy { order: 0; }
  .pair { gap: 12px; }
  .pair .shot:nth-child(2) { transform: none; }
  .single { max-width: 240px; }
}

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin: 20px 0 36px; }
.features div { background: var(--sheet); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.features h2 { font-size: 16px; margin: 0 0 6px; }
.features p { margin: 0; color: var(--muted); font-size: 15px; }
.faq { border-top: 1px solid var(--line); padding: 26px 0 10px; }
.faq h2 { font-size: 20px; margin: 0 0 10px; }

.doc { padding: 24px 16px 40px; }
.doc h1 { font-size: 32px; line-height: 1.2; letter-spacing: -0.01em; margin: 10px 0; }
.doc h2 { font-size: 21px; margin: 34px 0 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.doc h3 { font-size: 17px; margin: 22px 0 6px; }
.doc li { margin: 6px 0; }
.doc code { font-size: 0.9em; background: var(--sheet); padding: 1px 5px; border-radius: 4px; }
.table { overflow-x: auto; margin: 14px 0; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; }

footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding-top: 22px;
  padding-bottom: 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
footer span { margin-right: auto; }
footer a { color: var(--muted); }
