/* Spentence's website: one stylesheet, the system font, light and dark. */

:root {
  color-scheme: light dark;
  --text: #0f172a;
  --muted: #475569;
  --accent: #2563eb;
  --background: #ffffff;
  --surface: #f1f5f9;
  --line: #e2e8f0;
  --shadow: rgba(15, 23, 42, 0.18);
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #f1f5f9;
    --muted: #94a3b8;
    --accent: #60a5fa;
    --background: #0b1120;
    --surface: #131c2e;
    --line: #1e293b;
    --shadow: rgba(0, 0, 0, 0.5);
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--background);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}

/* The bar at the top of every page. */

.site-header {
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 18px;
  font-weight: 600;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 32px;
  height: 32px;
}

.site-nav {
  display: flex;
  gap: 20px;
  font-size: 15px;
}

/* The landing page. */

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

.hero img {
  width: 128px;
  height: 128px;
  border-radius: 29px;
  box-shadow: 0 14px 36px var(--shadow);
}

.hero h1 {
  margin: 28px 0 12px;
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.lead {
  max-width: 30em;
  margin: 0 auto;
  color: var(--muted);
  font-size: 21px;
  line-height: 1.45;
}

.badge {
  display: inline-block;
  margin-top: 28px;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
}

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

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

.features h2 {
  margin: 0 0 6px;
  font-size: 17px;
}

.features p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.promise {
  padding: 8px 0 72px;
  text-align: center;
}

.promise h2 {
  margin: 0 0 12px;
  font-size: 28px;
  letter-spacing: -0.01em;
}

.promise p {
  max-width: 34em;
  margin: 0 auto 12px;
  color: var(--muted);
}

/* The policies and the support page. */

/* Top and bottom only: the same element's .wrap sets the sides. */
.document {
  padding-top: 48px;
  padding-bottom: 64px;
}

.document h1 {
  margin: 0 0 4px;
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.document h2 {
  margin: 32px 0 8px;
  font-size: 20px;
}

.document p {
  margin: 0 0 12px;
}

.updated {
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 15px;
}

.acceptance {
  margin-top: 32px;
  padding: 16px 20px;
  border-radius: 12px;
  background: var(--surface);
  font-weight: 600;
}

.document .contact {
  margin: 24px 0 40px;
  padding: 20px 22px;
  border-radius: 16px;
  background: var(--surface);
}

.contact a {
  font-size: 21px;
  font-weight: 600;
}

details {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

summary {
  cursor: pointer;
  font-weight: 600;
}

details p {
  margin: 10px 0 0;
  color: var(--muted);
}

/* The footer of every page. */

.site-footer {
  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: 8px 20px;
  padding-top: 24px;
  padding-bottom: 24px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

@media (max-width: 480px) {
  .hero {
    padding: 48px 0 40px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .lead {
    font-size: 19px;
  }

  .document h1 {
    font-size: 30px;
  }
}
