:root {
  color-scheme: light;
  --bg: #f4f1e8;
  --paper: #fffdf7;
  --text: #1e1b17;
  --muted: #655d53;
  --line: #d9cfbf;
  --accent: #8f4d12;
  --accent-deep: #6f3908;
  --hero-accent: #1e6b46;
  --hero-accent-deep: #154d32;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
}

body.docs {
  padding: 32px 18px;
  background:
    radial-gradient(circle at top left, rgba(143, 77, 18, 0.1), transparent 32%),
    linear-gradient(180deg, #faf7ef 0%, var(--bg) 100%);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.landing {
  display: flex;
  align-items: stretch;
  background:
    radial-gradient(circle at 15% 15%, rgba(30, 107, 70, 0.1), transparent 22%),
    radial-gradient(circle at 85% 20%, rgba(143, 77, 18, 0.08), transparent 26%),
    linear-gradient(180deg, #fbfcf8 0%, #f3f5ee 100%);
  font-family: Georgia, "Times New Roman", serif;
}

.page {
  max-width: 860px;
  margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px 22px;
  box-shadow: 0 14px 44px rgba(39, 32, 18, 0.08);
}

.wrap {
  width: min(720px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0 64px;
}

.hero {
  position: relative;
  padding: 12px 0 0;
}

.hero::before {
  content: "";
  display: block;
  width: min(140px, 28vw);
  height: 2px;
  margin-bottom: 28px;
  background: linear-gradient(
    90deg,
    rgba(21, 77, 50, 0.95) 0%,
    rgba(21, 77, 50, 0.18) 100%
  );
}

.brand {
  display: grid;
  grid-template-columns: minmax(84px, 112px) 1fr;
  gap: 24px;
  align-items: center;
  margin-bottom: 18px;
}

.brand-mark {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 16px 28px rgba(21, 77, 50, 0.14));
}

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 0;
  color: var(--hero-accent-deep);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2 {
  line-height: 1.2;
}

body.docs h1 {
  margin: 0 0 10px;
  font-size: 2rem;
}

body.docs h2 {
  margin: 28px 0 10px;
  font-size: 1.15rem;
}

body.landing h1 {
  margin: 0 0 14px;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 0.92;
  max-width: 9ch;
}

p,
li {
  margin: 0 0 12px;
}

body.landing p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

#summary {
  max-width: 34rem;
}

ul {
  margin: 0;
  padding-left: 20px;
}

.meta {
  color: var(--muted);
}

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

code {
  background: #f1eadb;
  border-radius: 6px;
  padding: 2px 6px;
}

.highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  padding: 0;
  list-style: none;
}

.highlights li {
  margin: 0;
  padding: 7px 12px;
  border: 1px solid rgba(30, 107, 70, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  color: var(--hero-accent-deep);
  font-size: 14px;
  letter-spacing: 0.02em;
}

.actions-wrap {
  margin-top: 34px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 98px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  padding: 16px 26px;
  border: none;
  border-radius: 999px;
  text-decoration: none;
  font-size: clamp(16px, 1.4vw, 22px);
  font-weight: 600;
  transition: transform 120ms ease, opacity 120ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--hero-accent);
  color: #fff;
}

.button.secondary {
  background: #e7ece6;
  color: var(--text);
}

.button.secondary:hover {
  background: #dee4dd;
}

.android-link {
  box-shadow: inset 0 0 0 1px rgba(30, 107, 70, 0.03);
}

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 42px;
  padding-top: 18px;
  border-top: 1px solid rgba(30, 107, 70, 0.12);
}

.footer-label {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer a {
  text-decoration: none;
}

@media (max-width: 640px) {
  body.docs {
    padding: 20px 12px;
  }

  .page {
    padding: 22px 18px;
    border-radius: 18px;
  }

  .wrap {
    padding: 28px 0 40px;
  }

  .hero::before {
    margin-bottom: 22px;
  }

  .brand {
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: start;
  }

  .brand-mark {
    width: 88px;
  }

  .button {
    width: 100%;
  }

  .footer {
    gap: 10px 14px;
  }
}
