/* Het Dagelijks Nieuws — krantstijl */
:root {
  --ink: #1a1a1a;
  --paper: #fdfbf7;
  --paper-dark: #f4f0e8;
  --rule: #2b2b2b;
  --rule-light: #d8d2c4;
  --accent: #8b0000;
  --muted: #6b6558;
  --serif: Georgia, "Times New Roman", "Noto Serif", serif;
  --sans: "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

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

a { color: inherit; }
.page a:hover { color: var(--accent); }

/* ---------- masthead ---------- */
.masthead {
  border-bottom: 4px double var(--rule);
  background: var(--paper);
  text-align: center;
  padding: 1rem 1rem 0.75rem;
}
.masthead-inner { max-width: 1100px; margin: 0 auto; }
.masthead-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--rule-light);
  padding-bottom: 0.4rem;
  margin-bottom: 0.6rem;
}
.masthead-top a { color: var(--muted); text-decoration: none; }
.masthead-top a:hover { color: var(--accent); }
.masthead-motto { font-style: italic; text-transform: none; letter-spacing: 0.02em; }
.masthead-title {
  margin: 0.2rem 0 0.6rem;
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.05;
  font-variant: small-caps;
}
.masthead-title a { text-decoration: none; color: var(--ink); }

/* ---------- layout ---------- */
.page { max-width: 1100px; margin: 0 auto; padding: 1.5rem 1rem 3rem; }

.edition-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule-light);
  padding: 0.5rem 0;
  margin-bottom: 1.5rem;
}
.edition-title {
  margin: 0;
  font-size: 1.25rem;
  font-variant: small-caps;
  letter-spacing: 0.05em;
}
.edition-nav { font-family: var(--sans); font-size: 0.75rem; }
.edition-link {
  color: var(--muted);
  text-decoration: none;
  margin-left: 0.6rem;
  white-space: nowrap;
}
.edition-link:hover { color: var(--accent); }

/* ---------- cards ---------- */
.big-news { margin-bottom: 1.75rem; }
.big-card {
  border: 1px solid var(--rule);
  padding: 1.25rem 1.5rem;
  background: var(--paper-dark);
}
.big-card .kicker { color: var(--accent); font-weight: 700; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 0;
  border-top: 1px solid var(--rule);
}
.card {
  padding: 1.25rem 1.5rem 1.5rem;
  border-bottom: 1px solid var(--rule-light);
  border-right: 1px solid var(--rule-light);
}
.card:nth-child(3n) { border-right: none; }

.kicker {
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-block;
  margin-bottom: 0.35rem;
}
.kicker.big { color: var(--accent); font-weight: 700; }

.card h3 {
  margin: 0.15rem 0 0.4rem;
  font-size: 1.3rem;
  line-height: 1.25;
}
.big-card h3 { font-size: 1.7rem; }
.card h3 a { text-decoration: none; }
.card h3 a:hover { color: var(--accent); }

.subtitle {
  margin: 0 0 0.5rem;
  font-style: italic;
  color: var(--muted);
  font-size: 0.98rem;
}
.card-img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border: 1px solid var(--rule-light);
  margin: 0.5rem 0 0.75rem;
  display: block;
}
.body-preview { font-size: 0.95rem; color: #333; }
.readmore { font-family: var(--sans); font-size: 0.78rem; margin-top: 0.6rem; }
.readmore a { text-decoration: none; letter-spacing: 0.04em; }

/* ---------- artikel ---------- */
.article-full { max-width: 720px; margin: 0 auto; }
.article-full h2 { font-size: 2rem; line-height: 1.2; margin: 0.25rem 0 0.4rem; }
.byline {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--rule-light);
  padding-bottom: 0.5rem;
  margin-bottom: 1.25rem;
}
.article-figure { margin: 1rem 0; }
.article-figure img { width: 100%; border: 1px solid var(--rule-light); }
.article-body p { margin: 0 0 1rem; font-size: 1.05rem; }
.article-body p:first-child::first-letter {
  font-size: 3.2em;
  float: left;
  line-height: 0.85;
  padding: 0.05em 0.12em 0 0;
  font-weight: 700;
}
.sources {
  border-top: 1px solid var(--rule-light);
  margin-top: 1.5rem;
  padding-top: 0.75rem;
  font-size: 0.9rem;
}
.sources h4 { margin: 0 0 0.4rem; font-variant: small-caps; letter-spacing: 0.06em; }
.sources ul { margin: 0; padding-left: 1.2rem; }
.sources a { color: var(--muted); }
.back { margin-top: 1.75rem; font-family: var(--sans); font-size: 0.8rem; }

/* ---------- archief ---------- */
.archive h2 { font-variant: small-caps; letter-spacing: 0.05em; }
.search-form { display: flex; gap: 0.5rem; margin: 1rem 0 1.5rem; }
.search-form input[type=search] {
  flex: 1;
  padding: 0.55rem 0.75rem;
  font-family: var(--serif);
  font-size: 1rem;
  border: 1px solid var(--rule);
  background: #fff;
}
.search-form button, .login-box button, .admin-actions button {
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  padding: 0.55rem 1.1rem;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  cursor: pointer;
}
.search-form button:hover, .login-box button:hover, .admin-actions button:hover {
  background: var(--accent);
  border-color: var(--accent);
}
.search-result { border-bottom: 1px solid var(--rule-light); padding: 0.9rem 0; }
.search-result h4 { margin: 0.2rem 0 0.3rem; font-size: 1.15rem; }
.search-result h4 a { text-decoration: none; }
.search-result mark { background: #f3e2a8; padding: 0 0.15em; }
.editions-list { border-top: 1px solid var(--rule); }
.edition-row {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 0.6rem 0.25rem;
  border-bottom: 1px solid var(--rule-light);
  text-decoration: none;
  font-family: var(--sans);
  font-size: 0.85rem;
}
.edition-row:hover { background: var(--paper-dark); }
.edition-row .status { color: var(--muted); text-transform: uppercase; font-size: 0.7rem; letter-spacing: 0.08em; }
.muted { color: var(--muted); }

/* ---------- login / leeg / admin ---------- */
.login-box, .empty-state, .admin {
  max-width: 460px;
  margin: 2.5rem auto;
  text-align: left;
}
.empty-state { text-align: center; }
.login-box { border: 1px solid var(--rule); padding: 1.5rem 2rem; background: #fff; }
.login-box h2 { font-variant: small-caps; margin-top: 0; }
.login-box label { display: block; margin-bottom: 0.9rem; font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.05em; }
.login-box input {
  display: block;
  width: 100%;
  margin-top: 0.3rem;
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--rule);
  font-family: var(--serif);
  font-size: 1rem;
}
.error { color: var(--accent); font-size: 0.9rem; }
.msg { color: var(--accent); font-weight: 700; }
.admin { max-width: 760px; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1rem 0; }
.raw-list { padding-left: 1.2rem; font-size: 0.92rem; }
.raw-list li { margin-bottom: 0.4rem; }

/* ---------- footer ---------- */
.footer {
  border-top: 4px double var(--rule);
  margin-top: 2rem;
  padding: 1rem;
  text-align: center;
  font-family: var(--sans);
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

@media (max-width: 700px) {
  .masthead-top { flex-direction: column; align-items: center; gap: 0.25rem; }
  .card { border-right: none; }
  .article-body p:first-child::first-letter { font-size: 2.4em; }
}
