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

:root {
  --text: #1a1a1a;
  --text-secondary: #555;
  --bg: #fafafa;
  --surface: #fff;
  --accent: #f5820d;
  --accent-light: #fff5eb;
  --border: #e8e8e8;
  --max-width: 640px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  text-decoration: underline;
}

/* Layout */

.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

/* Header */

.site-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.site-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.site-logo:hover {
  text-decoration: none;
  color: var(--accent);
}

.site-nav a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-left: 1.5rem;
}

/* Typography */

h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.lead {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

/* App card (homepage) */

.app-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 2rem;
  text-decoration: none;
  transition: border-color 0.15s;
}

.app-card:hover {
  border-color: var(--accent);
  text-decoration: none;
}

.app-card-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.app-card-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin: 0;
}

.app-card-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-light);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin-top: 0.75rem;
}

/* Feature list */

.features {
  list-style: none;
  margin: 1rem 0 1.5rem;
}

.features li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
}

/* Footer */

.site-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.footer-links {
  margin-top: 0.5rem;
}

.footer-links a {
  color: var(--text-secondary);
  margin-right: 1.25rem;
}

.footer-links a:hover {
  color: var(--accent);
}

/* Policy pages */

.policy h2 {
  margin-top: 2rem;
}

.policy p {
  font-size: 0.95rem;
}

.policy ul {
  margin: 0.5rem 0 1rem 1.25rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.policy li {
  margin-bottom: 0.35rem;
}

/* Utilities */

.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 2rem; }
.muted { color: var(--text-secondary); }
.small { font-size: 0.85rem; }

/* Responsive */

@media (max-width: 480px) {
  h1 { font-size: 1.6rem; }
  .page { padding: 2rem 1.25rem 3rem; }
}
