:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #0f172a;
  --text-muted: #475569;
  --border: #e2e8f0;
  --accent: #f97316;
  --accent-ink: #14171c;
  --max-width: 720px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

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

.site-header .header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--text);
  color: var(--accent);
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.site-header h1 {
  font-size: 1.25rem;
  margin: 0;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

h1 {
  font-size: 2rem;
  margin: 0 0 0.5rem;
}

h2 {
  font-size: 1.35rem;
  margin: 2.5rem 0 0.75rem;
}

h3 {
  font-size: 1.1rem;
  margin: 1.75rem 0 0.5rem;
}

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

.lede {
  font-size: 1.1rem;
  color: var(--text-muted);
}

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

.card h2 {
  margin-top: 0;
}

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

a:hover {
  opacity: 0.85;
}

.button {
  display: inline-block;
  background: var(--text);
  color: #ffffff;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
}

.button:hover {
  opacity: 0.9;
}

.pending {
  color: var(--text-muted);
  font-style: italic;
}

.updated {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
}

ul {
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.4rem;
}

footer.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 3rem;
}

.site-footer .footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 1.25rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.6rem;
  }

  .card {
    padding: 1.15rem;
  }
}
