:root {
  color-scheme: light;
  --bg: #f6f4ef;
  --surface: #ffffff;
  --text: #1d2024;
  --muted: #5b6168;
  --border: #e2ddd2;
  --accent: #0f6b74;
  --accent-text: #ffffff;
  --shadow: 0 1px 2px rgb(30 30 20 / 6%), 0 8px 24px rgb(30 30 20 / 6%);
  --radius: 12px;
  --serif: ui-serif, 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans', sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;
    --bg: #15181c;
    --surface: #1d2126;
    --text: #e7e9eb;
    --muted: #a3aab2;
    --border: #2d333a;
    --accent: #5ec2c9;
    --accent-text: #0c1417;
    --shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 8px 24px rgb(0 0 0 / 30%);
  }
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #15181c;
  --surface: #1d2126;
  --text: #e7e9eb;
  --muted: #a3aab2;
  --border: #2d333a;
  --accent: #5ec2c9;
  --accent-text: #0c1417;
  --shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 8px 24px rgb(0 0 0 / 30%);
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--sans);
  padding: 0 max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
}
a {
  color: var(--accent);
}
.top,
main,
.foot {
  max-width: 1080px;
  margin: 0 auto;
}
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 650;
  font-size: 19px;
}
.langs {
  display: flex;
  gap: 4px;
}
.langs a {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}
.langs a[aria-current] {
  color: var(--text);
  background: var(--surface);
  box-shadow: var(--shadow);
}
h1,
h2,
h3 {
  font-family: var(--serif);
  line-height: 1.25;
  font-weight: 600;
}
h1 {
  font-size: clamp(30px, 5vw, 44px);
  margin: 8px 0 16px;
}
h2 {
  font-size: 26px;
  margin: 0 0 16px;
}
h3 {
  font-size: 19px;
  margin: 0 0 6px;
}
.hero {
  display: grid;
  gap: 32px;
  padding: 24px 0 48px;
}
.hero-text p {
  color: var(--muted);
  max-width: 46ch;
}
.button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-text);
  text-decoration: none;
  font-weight: 600;
}
.shot {
  margin: 0;
}
.shot img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.how {
  padding: 32px 0;
  border-top: 1px solid var(--border);
}
.how-grid {
  display: grid;
  gap: 24px;
}
.how-item p,
.split p {
  color: var(--muted);
  margin: 0;
}
.split {
  display: grid;
  gap: 32px;
  padding: 32px 0;
  border-top: 1px solid var(--border);
}
.stores {
  padding: 32px 0 48px;
  border-top: 1px solid var(--border);
}
.store-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.store {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.store span {
  color: var(--muted);
  font-size: 14px;
}
.manual {
  font-size: 15px;
  max-width: 70ch;
}
.doc {
  max-width: 720px;
  padding-bottom: 48px;
}
.doc h2 {
  font-size: 21px;
  margin-top: 32px;
}
.muted {
  color: var(--muted);
}
.foot {
  padding: 24px 0 max(32px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 15px;
}
.foot p {
  margin: 8px 0;
}
.theme {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.theme button {
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.theme button[aria-pressed='true'] {
  background: var(--accent);
  color: var(--accent-text);
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
@media (min-width: 860px) {
  .hero {
    grid-template-columns: 5fr 7fr;
    align-items: center;
    padding-top: 48px;
  }
  .how-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 48px;
  }
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }
  .store-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
