:root {
  --brand: #5d4037;
  --brand-ink: #ffffff;
  --bg: #faf7f5;
  --surface: #ffffff;
  --text: #2a211e;
  --muted: #6d625d;
  --line: #e8e1dd;
  --link: #7a4f3d;
  --radius: 16px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171312;
    --surface: #221c1a;
    --text: #f3ece9;
    --muted: #b1a59f;
    --line: #3a302c;
    --link: #e0b9a6;
  }
}

* { 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, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

a { color: var(--link); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

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

/* Header and footer */

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 650;
  font-size: 19px;
  text-decoration: none;
}

.brand img { width: 36px; height: 36px; border-radius: 9px; }

.site-header nav { display: flex; gap: 20px; font-size: 15px; }
.site-header nav a { color: var(--muted); text-decoration: none; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--text); }

.site-footer {
  margin-top: 96px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 28px;
  padding-bottom: 40px;
}

.site-footer nav { display: flex; gap: 20px; }
.site-footer a { color: var(--muted); }

/* Landing page */

.hero { padding: 56px 0 24px; text-align: center; }

.hero h1 {
  margin: 0 auto 16px;
  max-width: 14em;
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 750;
}

.hero .lead {
  margin: 0 auto 28px;
  max-width: 34em;
  color: var(--muted);
  font-size: clamp(17px, 2.2vw, 20px);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--brand-ink);
  font-weight: 600;
  text-decoration: none;
}

.badge-note { display: block; margin-top: 12px; color: var(--muted); font-size: 14px; }

.screens {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 40px 0 8px;
}

.screens figure { margin: 0; flex: 0 1 260px; }

.screens img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 34px;
  border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(60, 35, 25, 0.16);
}

.screens figcaption { margin-top: 12px; text-align: center; color: var(--muted); font-size: 14px; }

.section { padding-top: 88px; }

.section h2 {
  margin: 0 0 8px;
  font-size: clamp(26px, 3.6vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.section > .wrap > p.intro { margin: 0 0 32px; max-width: 36em; color: var(--muted); }

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.features li {
  padding: 22px 22px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.features h3 { margin: 0 0 6px; font-size: 18px; }
.features p { margin: 0; color: var(--muted); font-size: 16px; }

.promise {
  padding: 36px;
  border-radius: 24px;
  background: var(--brand);
  color: var(--brand-ink);
}

.promise h2 { color: inherit; }
.promise ul { margin: 16px 0 20px; padding-left: 1.2em; }
.promise li { margin: 6px 0; }
.promise a { color: inherit; }

/* Documents */

.doc { padding-top: 24px; }
.doc h1 { margin: 16px 0 4px; font-size: clamp(30px, 5vw, 42px); line-height: 1.15; letter-spacing: -0.015em; }
.doc .updated { margin: 0 0 32px; color: var(--muted); font-size: 15px; }
.doc h2 { margin: 40px 0 8px; font-size: 22px; line-height: 1.3; }
.doc h3 { margin: 24px 0 4px; font-size: 18px; }
.doc ul { padding-left: 1.2em; }
.doc li { margin: 4px 0; }

.doc table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
.doc th, .doc td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.doc th { color: var(--muted); font-weight: 600; }

.table-scroll { overflow-x: auto; }

.callout {
  margin: 24px 0;
  padding: 16px 20px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.not-found { padding: 96px 0 0; text-align: center; }

@media (max-width: 640px) {
  .site-header nav { gap: 14px; }
  .screens { gap: 12px; padding-top: 32px; }
  .screens figure:nth-child(3) { display: none; }
  .screens img { border-radius: 22px; }
  .promise { padding: 24px; }
  .section { padding-top: 64px; }
}
