:root {
  --bg:      #fafaf8;
  --fg:      #1a1a1a;
  --muted:   #666;
  --accent:  #c0392b;
  --border:  #e0e0d8;
  --max-w:   680px;
  --font:    Georgia, 'Times New Roman', serif;
  --mono:    'Courier New', Courier, monospace;
}

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

html {
  font-size: 18px;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  line-height: 1.7;
  margin: 0;
  padding: 2rem 1rem;
}

main {
  max-width: var(--max-w);
  margin: 0 auto;
}

nav {
  font-size: 0.85rem;
  margin-bottom: 2rem;
  color: var(--muted);
}

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

nav a:hover {
  color: var(--accent);
}

h1 {
  font-size: 1.6rem;
  margin-top: 0;
  line-height: 1.3;
}

h2 {
  font-size: 1.15rem;
  margin-top: 2.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.25rem;
}

h3 {
  font-size: 1rem;
  margin-top: 2rem;
  margin-bottom: 0.25rem;
}

a {
  color: var(--accent);
}

a:visited {
  color: #922b21;
}

code {
  font-family: var(--mono);
  font-size: 0.82em;
  background: var(--border);
  padding: 0.1em 0.35em;
  border-radius: 2px;
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

blockquote {
  margin: 1.5rem 0;
  padding-left: 1rem;
  border-left: 3px solid var(--border);
  color: var(--muted);
  font-style: italic;
}

/* Homepage */
.tagline {
  color: var(--muted);
  margin-top: 0.25rem;
  margin-bottom: 2rem;
}

.signup-form {
  margin: 2rem 0;
}

.signup-form input[type="email"] {
  font-family: var(--font);
  font-size: 1rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  width: 100%;
  max-width: 340px;
  background: white;
  color: var(--fg);
  margin-bottom: 0.5rem;
}

.signup-form button {
  font-family: var(--font);
  font-size: 0.9rem;
  padding: 0.5rem 1.25rem;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 2px;
  cursor: pointer;
}

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

/* Archive list */
.archive-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.archive-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  gap: 1rem;
}

.archive-list a {
  text-decoration: none;
}

.archive-list a:hover {
  text-decoration: underline;
}

.date {
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
  font-family: var(--mono);
}

/* Newsletter article view */
.newsletter h3 a {
  color: var(--fg);
  text-decoration: none;
}

.newsletter h3 a:hover {
  color: var(--accent);
}

.newsletter em {
  font-size: 0.85rem;
  color: var(--muted);
  font-style: normal;
}
