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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #fff;
  padding: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

h1 {
  font-size: 3rem;
  font-weight: 400;
  margin-bottom: 1rem;
}

h1 a {
  color: inherit;
  text-decoration: none;
}

h1 a:hover {
  text-decoration: underline;
  color: inherit;
}

h2 {
  font-size: 2rem;
  font-weight: 400;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: #0066cc;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul {
  padding-left: 2em;
  margin-bottom: 1rem;
}

ul ul {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

/* Keep nav lists without bullets/padding */
nav ul {
  list-style: none;
  margin: 2rem 0;
  padding-left: 0; /* Override the ul padding for nav */
}

nav li {
  margin: 0.5rem 0;
}

section {
  margin-top: 3rem;
}

.link-list {
  list-style: none;
  padding-left: 0;
}

.link-list li {
  margin: 0.5rem 0;
}

time {
  color: #999;
  font-size: 0.95rem;
}

/* Form styles */
form {
  margin: 2rem 0;
}

label {
  display: block;
  margin-top: 1rem;
  margin-bottom: 0.3rem;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ccc;
  font-family: inherit;
  font-size: 1rem;
}

textarea {
  resize: vertical;
}

button {
  margin-top: 1rem;
  padding: 0.7rem 1.5rem;
  background: #333;
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

button:hover {
  background: #555;
}

#message {
  margin-top: 1rem;
  padding: 1rem;
}

#message.success {
  color: #2d5016;
  background: #e8f5e9;
}

#message.error {
  color: #c62828;
  background: #ffebee;
}

footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid #eee;
  color: #999;
  font-size: 0.9rem;
}
