:root {
  color-scheme: light dark;
  --bg: #f8fcf6;
  --surface: #ffffff;
  --text: #1f2b24;
  --muted: #58675d;
  --line: #e0eedd;
  --accent: #1a7d52;
  --accent-text: #ffffff;
  --panel: #e2f4e3;
  --glow-1: rgba(160, 225, 180, 0.55);
  --glow-2: rgba(255, 230, 150, 0.5);
  --max: 1000px;
  --gutter: 24px;
  --serif: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121a15;
    --surface: #1a251e;
    --text: #edf5ee;
    --muted: #a3b3a7;
    --line: #29382e;
    --accent: #7fd6a4;
    --accent-text: #0a2416;
    --panel: #1d2c22;
    --glow-1: rgba(60, 160, 100, 0.28);
    --glow-2: rgba(190, 170, 70, 0.16);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

a {
  color: var(--accent);
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

a:focus-visible,
.button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--surface);
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 10;
}

.skip:focus {
  left: 8px;
}

/* Header */

.site-header {
  position: relative;
  z-index: 2;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand svg {
  width: 30px;
  height: 30px;
  flex: none;
}

/* Hero */

.hero {
  position: relative;
  padding: 88px 0 72px;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: -160px;
  left: 0;
  right: 0;
  height: 640px;
  background:
    radial-gradient(520px 360px at 22% 42%, var(--glow-1), transparent 70%),
    radial-gradient(560px 380px at 62% 30%, var(--glow-2), transparent 72%);
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  z-index: 1;
}

h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(28px, 9.4vw, 68px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 600;
  text-wrap: balance;
}

h1 span {
  display: block;
}

.hero h1 span:last-child {
  color: var(--accent);
  font-style: italic;
}

.lede {
  margin: 28px 0 0;
  max-width: 37em;
  color: var(--muted);
  font-size: clamp(18px, 2.2vw, 21px);
  line-height: 1.6;
  text-wrap: pretty;
}

/* Promises */

.promises {
  padding: 0 0 72px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px 28px 30px;
}

h3 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

/* Apps panel */

.apps {
  padding: 0 0 96px;
}

.panel {
  background: var(--panel);
  border-radius: 28px;
  padding: 56px;
}

.section-label {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h2 {
  margin: 0;
  max-width: 16em;
  font-family: var(--serif);
  font-size: clamp(28px, 4.2vw, 40px);
  line-height: 1.18;
  letter-spacing: -0.015em;
  font-weight: 600;
  text-wrap: balance;
}

.contact {
  margin: 40px 0 0;
}

.contact p {
  margin: 0 0 4px;
  color: var(--muted);
}

.contact a {
  font-family: var(--serif);
  font-size: clamp(21px, 3vw, 26px);
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* Text pages (privacy, not found) */

.page {
  padding: 56px 0 96px;
}

.prose {
  max-width: 40em;
}

.prose p {
  margin: 0 0 16px;
}

.prose p:last-child {
  margin-bottom: 0;
}

.page h1 {
  font-size: clamp(34px, 5vw, 48px);
  margin-bottom: 12px;
}

.page h2 {
  margin: 40px 0 10px;
  font-size: 24px;
}

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

.button {
  display: inline-block;
  margin-top: 28px;
  padding: 13px 26px;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border-radius: 999px;
}

.button:hover {
  filter: brightness(1.08);
}

/* Footer */

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

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding-top: 24px;
  padding-bottom: 24px;
}

.site-footer a {
  color: var(--muted);
}

@media (max-width: 760px) {
  :root {
    --gutter: 20px;
  }

  .site-header .wrap {
    height: 64px;
  }

  .hero {
    padding: 48px 0 48px;
  }

  .promises {
    padding-bottom: 48px;
  }

  .cards {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .card {
    padding: 22px 24px 24px;
    border-radius: 20px;
  }

  .apps {
    padding-bottom: 64px;
  }

  .panel {
    padding: 32px 24px 36px;
    border-radius: 24px;
  }

  .contact {
    margin-top: 28px;
  }

  .page {
    padding: 32px 0 64px;
  }
}
