/* Colors from the app's theme (lib/core/theme/app_theme.dart). */
:root {
  --primary: #2d6a4f;
  --accent: #e8a838;
  --bg: #f8f6f1;
  --surface: #ffffff;
  --text: #1a1a1a;
  --subtle: #5f6672;
  --line: #e7e3da;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --primary: #5fae8a;
    --bg: #1a1a1a;
    --surface: #2a2a2a;
    --text: #f0ede8;
    --subtle: #a8afba;
    --line: #3a3a3a;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --primary: #5fae8a;
  --bg: #1a1a1a;
  --surface: #2a2a2a;
  --text: #f0ede8;
  --subtle: #a8afba;
  --line: #3a3a3a;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

a {
  color: var(--primary);
  text-underline-offset: 0.15em;
}

a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 2px;
}

.wrap {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1rem;
}

header.site {
  padding: 1rem 0;
}

header.site a {
  gap: 0.75rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.125rem;
}

header.site img {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
}

main {
  padding: 1.5rem 0 3rem;
}

h1 {
  font-size: 2.25rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  text-wrap: balance;
}

h2 {
  font-size: 1.375rem;
  line-height: 1.3;
  margin: 2rem 0 0.5rem;
  text-wrap: balance;
}

p,
ul {
  margin: 0 0 1rem;
  max-width: 68ch;
  text-wrap: pretty;
}

main ul:not(.features) {
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.5rem;
}

.meta {
  color: var(--subtle);
  font-size: 0.875rem;
}

.lead {
  font-size: 1.25rem;
  color: var(--subtle);
  max-width: 34ch;
}

.hero {
  padding: 2rem 0 1rem;
}

.hero img {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 1.25rem;
  margin-bottom: 1.5rem;
}

.features {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 1rem;
  margin: 2rem 0;
  max-width: none;
}

.features li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1rem 1.5rem;
  margin: 0;
}

.features li {
  font-weight: 600;
}

.note {
  font-weight: 600;
}

footer.site {
  border-top: 1px solid var(--line);
  padding: 1rem 0 3rem;
  color: var(--subtle);
  font-size: 0.875rem;
}

footer.site nav {
  display: flex;
  flex-wrap: wrap;
  column-gap: 1.5rem;
  margin-bottom: 0.5rem;
}

/* A 44px tall tap area without changing how the links look. */
footer.site nav a,
header.site a {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
}

@media (min-width: 40rem) {
  h1 {
    font-size: 3rem;
  }

  .features {
    grid-template-columns: 1fr 1fr;
  }
}
