/* ==========================================================================
   Death of Journalism — stylesheet
   Palette pulled from the logo & cartoon art: aged parchment, ink black,
   blood red, and newsprint navy.
   ========================================================================== */

:root {
  --paper:        #f2e9d8;
  --paper-dark:   #e6d9bf;
  --ink:          #17140f;
  --ink-soft:     #3a352c;
  --red:          #7b0705;
  --red-bright:   #9e1210;
  --navy:         #1b2338;
  --navy-soft:    #324961;
  --rule:         #c8bba5;
  --shadow:       rgba(23, 20, 15, 0.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 20% 10%, rgba(255,255,255,0.35), transparent 40%),
    radial-gradient(circle at 80% 60%, rgba(0,0,0,0.04), transparent 45%);
  color: var(--ink);
  font-family: "Georgia", "Iowan Old Style", "Palatino Linotype", serif;
  line-height: 1.5;
}

a { color: var(--red-bright); }
a:hover { color: var(--red); }

/* ---------- Header ---------- */

header.site-header {
  background: var(--navy);
  border-bottom: 6px solid var(--red);
  padding: 1.75rem 1.5rem 1.25rem;
  text-align: center;
}

.logo-wrap {
  max-width: 480px;
  margin: 0 auto;
}

.logo-wrap img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.45));
}

.tagline {
  margin: 0.9rem 0 0;
  color: var(--paper);
  font-family: "Trebuchet MS", "Courier New", monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
  opacity: 0.85;
}

nav.site-nav {
  margin-top: 1.1rem;
}

nav.site-nav a {
  color: var(--paper);
  text-decoration: none;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(242,233,216,0.4);
  padding: 0.45rem 1.1rem;
  border-radius: 2px;
  transition: background 0.2s ease, color 0.2s ease;
}

nav.site-nav a:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--paper);
}

/* ---------- Main / Featured cartoon ---------- */

main {
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.25rem;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red-bright);
  font-weight: bold;
}

.section-label::after {
  content: "";
  flex: 1;
  height: 2px;
  background: var(--rule);
}

.featured {
  background: #fffdf8;
  border: 1px solid var(--rule);
  box-shadow: 0 12px 30px var(--shadow);
  padding: 1.25rem 1.25rem 1.75rem;
  margin-bottom: 3rem;
}

.featured figure {
  margin: 0;
}

.featured img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--ink);
  cursor: zoom-in;
}

.featured figcaption {
  margin-top: 1rem;
}

.featured .cartoon-date {
  font-family: "Trebuchet MS", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy-soft);
}

.featured h1 {
  font-family: "Georgia", serif;
  font-weight: bold;
  font-size: 1.6rem;
  margin: 0.35rem 0 0.5rem;
  color: var(--ink);
}

.featured .cartoon-caption {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* ---------- Archive ---------- */

#archive h2.section-label {
  margin-top: 0;
}

.archive-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}

.archive-item {
  display: flex;
  gap: 1.1rem;
  align-items: center;
  padding: 0.9rem 0.25rem;
  border-bottom: 1px solid var(--rule);
}

.archive-item a.thumb-link {
  flex: 0 0 auto;
  display: block;
  width: 110px;
  height: 88px;
  overflow: hidden;
  border: 1px solid var(--ink);
  background: var(--paper-dark);
}

.archive-item a.thumb-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.archive-item a.thumb-link:hover img {
  transform: scale(1.06);
}

.archive-meta {
  flex: 1 1 auto;
  min-width: 0;
}

.archive-meta .archive-date {
  font-family: "Trebuchet MS", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy-soft);
}

.archive-meta a.archive-title {
  display: block;
  font-family: "Georgia", serif;
  font-weight: bold;
  font-size: 1.05rem;
  color: var(--ink);
  text-decoration: none;
  margin-top: 0.15rem;
}

.archive-meta a.archive-title:hover {
  color: var(--red-bright);
}

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 9, 7, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  z-index: 100;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border: 2px solid var(--paper);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  background: none;
  border: 1px solid var(--paper);
  color: var(--paper);
  font-family: "Trebuchet MS", sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  cursor: pointer;
}

.lightbox-close:hover {
  background: var(--red);
  border-color: var(--red);
}

/* ---------- Footer ---------- */

footer {
  text-align: center;
  padding: 1.5rem 1rem 2.5rem;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  opacity: 0.75;
}

@media (max-width: 480px) {
  .archive-item a.thumb-link { width: 84px; height: 68px; }
  .featured { padding: 1rem; }
}
