:root {
  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ink: #111;
  --muted: #565656;
  --rule: #e0e0e0;
  --accent: #b8121f;
  --link: #1a5fb4;
  --bg: #fff;
  --max: 720px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--serif);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

/* header */
.site-header {
  border-bottom: 3px solid var(--ink);
  padding: 1rem 0;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
}
.site-header .brand {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.site-header nav a {
  margin-left: 1.1rem;
  color: var(--ink);
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* footer */
.site-footer {
  border-top: 1px solid var(--rule);
  margin-top: 3rem;
  padding: 1.5rem 0 3rem;
  color: var(--muted);
  font-size: .85rem;
}

/* home / lede */
.lede { padding: 2rem 0 1.5rem; border-bottom: 1px solid var(--rule); margin-bottom: 1.5rem; }
.kicker {
  color: var(--accent);
  text-transform: uppercase;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  margin: 0 0 .5rem;
}
.lede h1 {
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1.2;
  margin: 0 0 .75rem;
}
.lede .deck { color: var(--muted); font-size: 1.05rem; margin: 0; }

.article-card { padding: 1.25rem 0; border-bottom: 1px solid var(--rule); }
.article-card h2 { font-family: var(--serif); font-size: 1.3rem; margin: 0 0 .4rem; }
.article-card h2 a { color: var(--ink); }
.lead-snippet { color: var(--muted); }
.empty { color: var(--muted); font-style: italic; }

/* article */
.article-header { padding: 1.5rem 0 1rem; border-bottom: 1px solid var(--rule); margin-bottom: 1.25rem; }
.article-header h1 {
  font-family: var(--serif);
  font-size: 2.1rem;
  line-height: 1.2;
  margin: 0 0 .6rem;
}
.byline { color: var(--muted); font-size: .85rem; margin: 0; }

.article-full section { margin: 1.75rem 0; }
.article-full h2 {
  font-family: var(--serif);
  font-size: 1.3rem;
  border-bottom: 2px solid var(--ink);
  padding-bottom: .25rem;
  margin-bottom: .75rem;
}
.article-full .lead {
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.5;
}
.footnotes { font-size: .9rem; color: var(--muted); }
.correction-cta {
  border-top: 1px solid var(--rule);
  padding-top: 1rem;
  font-size: .9rem;
  color: var(--muted);
}

/* static pages */
.static-page h1 { font-family: var(--serif); font-size: 2rem; margin: 1.5rem 0 1rem; }
.static-page h2 { font-family: var(--serif); font-size: 1.3rem; margin-top: 1.75rem; }

.corrections-list { list-style: none; padding: 0; }
.corrections-list li { border-bottom: 1px solid var(--rule); padding: 1rem 0; }
.correction-date { color: var(--accent); font-weight: 700; font-size: .85rem; text-transform: uppercase; }

/* admin */
.admin-login-wrap, .admin-form-wrap { max-width: 640px; padding-top: 2rem; }
.admin-form { display: flex; flex-direction: column; gap: 1rem; margin-top: 1rem; }
.admin-form label { display: flex; flex-direction: column; gap: .3rem; font-weight: 600; font-size: .9rem; }
.admin-form input[type=text], .admin-form input[type=password], .admin-form input[type=date], .admin-form textarea {
  font-family: var(--sans);
  font-size: 1rem;
  padding: .5rem;
  border: 1px solid #b5b5b5;
  border-radius: 3px;
  font-weight: normal;
}
.admin-form textarea { font-family: ui-monospace, "SF Mono", Consolas, monospace; font-size: .9rem; resize: vertical; }
.checkbox-label { flex-direction: row !important; align-items: center; gap: .5rem !important; }
.form-actions { display: flex; align-items: center; gap: 1rem; }
.form-actions button { width: fit-content; }
.hint { color: var(--muted); font-size: .9rem; }
.form-error { color: var(--accent); font-weight: 600; }

button, .button {
  background: var(--ink);
  color: #fff;
  border: none;
  padding: .55rem 1.1rem;
  border-radius: 3px;
  font-size: .95rem;
  cursor: pointer;
  display: inline-block;
}
button:hover, .button:hover { background: #333; text-decoration: none; }
.link-button { background: none; color: var(--link); border: none; padding: 0; cursor: pointer; font-size: .9rem; }
.link-button:hover { text-decoration: underline; }
.danger-form { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--rule); }
.danger-button { background: var(--accent); }
.danger-button:hover { background: #8f0e19; }

.admin-dashboard section { margin: 2rem 0; }
.section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .75rem; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { text-align: left; padding: .5rem; border-bottom: 1px solid var(--rule); font-size: .9rem; }
.plain-list { padding-left: 1.2rem; }
