/* tos.watch — mobile-first, no framework. Base styles target ~375px. */

:root {
  --fg: #1a1a1a;
  --bg: #ffffff;
  --muted: #5a5a5a;
  --accent: #0b5fff;
  --border: #e2e2e2;
  --max-width: 640px;
}

* { box-sizing: border-box; }

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.site-header .brand {
  font-weight: 700;
  font-size: 1.125rem;
}

.site-header .rss,
.site-footer a {
  color: var(--accent);
  text-decoration: none;
}

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

.hero h1 {
  font-size: 1.5rem;
  line-height: 1.25;
  margin: 0 0 0.5rem;
}

.hero .lede {
  color: var(--muted);
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
}

.signup-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.signup-form input[type="email"] {
  padding: 0.75rem;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.signup-form button {
  padding: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.signup-form button:active {
  opacity: 0.85;
}

.form-note {
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

.how,
.recent {
  margin-top: 2.5rem;
}

.how h2,
.recent h2 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}

.how ol {
  padding-left: 1.25rem;
}

.how li {
  margin-bottom: 0.75rem;
}

.recent ul.recent-alerts {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.recent ul.recent-alerts li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

.recent ul.recent-alerts a {
  color: var(--fg);
  text-decoration: none;
  font-weight: 500;
}

.site-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--muted);
}

article.alert {
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}

article.alert h2 {
  font-size: 1.05rem;
  margin: 0 0 0.25rem;
}

article.alert .alert-date {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0 0 0.5rem;
}

article.alert blockquote {
  margin: 0.25rem 0 0.75rem;
  padding: 0.5rem 0.75rem;
  border-left: 3px solid var(--accent);
  background: #f7f9fc;
  font-size: 0.95rem;
}

@media (min-width: 640px) {
  .hero h1 { font-size: 1.875rem; }
  .signup-form { flex-direction: row; }
  .signup-form input[type="email"] { flex: 1; }
  .signup-form button { flex-shrink: 0; }
}
