:root {
  color-scheme: light;
  --bg: #faf9f6;
  --ink: #1c1a17;
  --ink-muted: #5b564d;
  --accent: #8a3b12;
  --rule: #ddd6ca;
  --max-width: 42rem;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  line-height: 1.6;
}

header.site-header {
  border-bottom: 1px solid var(--rule);
  padding: 1.25rem 1.5rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

header.site-header nav {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.75rem;
}

header.site-header .brand {
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.01em;
}

header.site-header ul {
  list-style: none;
  display: flex;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
}

header.site-header a {
  color: var(--ink-muted);
  text-decoration: none;
}

header.site-header a:hover,
header.site-header a:focus {
  color: var(--accent);
}

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

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

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

p { margin: 0 0 1.1rem; }

.lede {
  font-size: 1.15rem;
  color: var(--ink-muted);
}

.card {
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.principle-list { padding-left: 1.25rem; }
.principle-list li { margin-bottom: 0.5rem; }

form.signup {
  display: grid;
  gap: 0.9rem;
  max-width: 26rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

form.signup label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.95rem;
  color: var(--ink-muted);
}

form.signup input[type="text"],
form.signup input[type="email"] {
  font: inherit;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: white;
  color: var(--ink);
}

form.signup .checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-direction: row;
}

form.signup button {
  font: inherit;
  font-weight: 600;
  padding: 0.65rem 1.1rem;
  border: none;
  border-radius: 4px;
  background: var(--accent);
  color: white;
  cursor: pointer;
  justify-self: start;
}

form.signup button:disabled { opacity: 0.6; cursor: default; }

.form-message {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 0.95rem;
}

.form-message[data-state="success"] { color: #2c6e3f; }
.form-message[data-state="error"] { color: #a3321a; }

footer.site-footer {
  border-top: 1px solid var(--rule);
  padding: 1.5rem;
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 0.85rem;
  color: var(--ink-muted);
}
