/* =============================================
   Terminal Station — Newspaper Theme
   Est. 1847 | Atlanta, Georgia
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,800;0,900;1,400;1,600&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=UnifrakturCook:wght@700&display=swap');

/* --- TOKENS --- */
:root {
  --paper:      #F5F0E8;
  --paper-dark: #EDE7D9;
  --paper-mid:  #E8E0CF;
  --ink:        #1A1A1A;
  --ink-light:  #4A4A3F;
  --ink-faint:  #8A8675;
  --rule:       #C4B99A;
  --rule-dark:  #9E9478;
  --accent:     #8B1A1A;
  --accent-light: #B04040;
}

/* --- RESET --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: "Libre Baskerville", Georgia, serif;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: "Playfair Display", Georgia, serif;
  line-height: 1.2;
  color: var(--ink);
}

.masthead-font { font-family: "UnifrakturCook", "Playfair Display", serif; }

p { margin-bottom: 1.2em; }
p:last-child { margin-bottom: 0; }

blockquote {
  border-left: 3px solid var(--accent);
  padding: 0.5em 1.2em;
  margin: 1.5em 0;
  font-style: italic;
  color: var(--ink-light);
}

/* --- RULES & DIVIDERS --- */
.rule-double {
  border: none;
  border-top: 3px double var(--ink);
  margin: 0;
}

.rule-single {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 0;
}

.rule-thick {
  border: none;
  border-top: 2px solid var(--ink);
  margin: 0;
}

/* --- MASTHEAD --- */
#masthead {
  text-align: center;
  padding: 20px 24px 0;
  background: var(--paper);
}

#masthead::before {
  content: "";
  display: block;
  height: 1px;
  background: var(--ink);
  margin-bottom: 2px;
}

.masthead-top-rule {
  height: 2px;
  background: var(--ink);
  margin-bottom: 12px;
}

.masthead-dateline {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 4px;
}

.masthead-title {
  font-family: "UnifrakturCook", "Playfair Display", serif;
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 1px;
  color: var(--ink);
  margin-bottom: 4px;
}

.masthead-title a { color: var(--ink); text-decoration: none; }
.masthead-title a:hover { color: var(--accent); }

.masthead-subtitle {
  font-family: "Playfair Display", serif;
  font-size: clamp(11px, 1.6vw, 13px);
  font-style: italic;
  color: var(--ink-light);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

/* --- NAVIGATION --- */
#site-nav {
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--rule);
  margin-top: 10px;
}

#site-nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

#site-nav ul li a {
  display: block;
  padding: 8px 18px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--ink);
  font-family: "Libre Baskerville", serif;
  font-weight: 700;
  border-right: 1px solid var(--rule);
  transition: background 0.15s;
}

#site-nav ul li:first-child a { border-left: 1px solid var(--rule); }
#site-nav ul li a:hover { background: var(--paper-dark); text-decoration: none; color: var(--accent); }
#site-nav ul li.current-menu-item a { background: var(--ink); color: var(--paper); }

/* --- LAYOUT --- */
.site-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.content-area { padding: 32px 0; }

/* Section header (rule + title) */
.section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.section-header h2 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  white-space: nowrap;
  font-weight: 700;
}
.section-header::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
}

/* --- BORDERED PANEL --- */
.panel {
  border: 1px solid var(--rule-dark);
  position: relative;
  background: var(--paper);
}
.panel::before {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid var(--rule);
  pointer-events: none;
  z-index: 1;
}
.panel-inner { padding: 24px 28px; position: relative; z-index: 2; }

/* --- FRONT PAGE --- */
.front-page-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  border: 1px solid var(--rule-dark);
}

.front-page-grid .col {
  padding: 24px;
  border-right: 1px solid var(--rule);
}
.front-page-grid .col:last-child { border-right: none; }

.front-page-map {
  border: 1px solid var(--rule-dark);
  position: relative;
  margin-bottom: 0;
}

.front-page-map #map {
  width: 100%;
  height: 55vh;
  min-height: 400px;
}

/* --- NEWS / POSTS --- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 0;
}

.news-item {
  padding: 20px 24px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.news-item:nth-child(3n) { border-right: none; }

.news-category {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 6px;
  display: block;
}

.news-headline {
  font-family: "Playfair Display", serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 8px;
}

.news-headline a { color: var(--ink); }
.news-headline a:hover { color: var(--accent); text-decoration: none; }

.news-dateline {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ink-faint);
  margin-bottom: 10px;
}

.news-excerpt {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-light);
}

.read-more {
  display: inline-block;
  margin-top: 10px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  font-weight: 700;
}

/* --- SINGLE POST --- */
.post-header { padding: 32px 0 24px; border-bottom: 1px solid var(--rule); margin-bottom: 32px; }

.post-category {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 10px;
  display: block;
}

.post-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 12px;
}

.post-meta {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ink-faint);
}

.post-content { max-width: 740px; }
.post-content p { font-size: 17px; line-height: 1.75; margin-bottom: 1.4em; }
.post-content h2 { font-size: 24px; margin: 1.6em 0 0.6em; }
.post-content h3 { font-size: 20px; margin: 1.4em 0 0.5em; }

/* Drop cap for first paragraph */
.post-content > p:first-of-type::first-letter {
  font-family: "Playfair Display", serif;
  font-size: 4.5em;
  font-weight: 900;
  line-height: 0.75;
  float: left;
  margin: 0.08em 0.08em 0 0;
  color: var(--ink);
}

/* --- GALLERY --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0;
  border: 1px solid var(--rule-dark);
}

.gallery-item {
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  filter: sepia(20%) contrast(95%);
  transition: filter 0.3s ease;
}

.gallery-item:hover img { filter: sepia(0%) contrast(100%); }

.gallery-caption {
  padding: 12px 16px;
  background: var(--paper);
  border-top: 1px solid var(--rule);
}

.gallery-caption p {
  font-size: 12px;
  font-style: italic;
  color: var(--ink-light);
  margin: 0;
  line-height: 1.4;
}

.gallery-credit {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ink-faint);
  margin-top: 4px;
  display: block;
}

/* --- TIMELINE --- */
.timeline { position: relative; padding: 0; }

.timeline-year {
  font-family: "Playfair Display", serif;
  font-size: 48px;
  font-weight: 900;
  color: var(--rule);
  line-height: 1;
  margin: 32px 0 0;
  border-top: 2px solid var(--ink);
  padding-top: 12px;
}

.timeline-entry {
  padding: 16px 0 16px 0;
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  align-items: start;
}

.timeline-date {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ink-faint);
  padding-top: 4px;
  font-weight: 700;
}

.timeline-body h3 {
  font-family: "Playfair Display", serif;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

.timeline-body p {
  font-size: 14px;
  color: var(--ink-light);
  line-height: 1.6;
  margin: 0;
}

.timeline-map-link {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  font-weight: 700;
  margin-top: 6px;
  display: inline-block;
}

/* --- ABOUT PAGE --- */
.about-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 0;
  border: 1px solid var(--rule-dark);
}

.about-mission { padding: 32px; border-right: 1px solid var(--rule); }
.about-bio { padding: 32px; background: var(--paper-dark); }

.about-mission h2 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--ink-faint);
  margin-bottom: 16px;
  font-weight: 700;
  font-family: "Libre Baskerville", serif;
}

.about-mission .lede {
  font-family: "Playfair Display", serif;
  font-size: 22px;
  font-style: italic;
  line-height: 1.4;
  margin-bottom: 20px;
  color: var(--ink);
}

.bio-photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  filter: sepia(15%) contrast(95%);
  margin-bottom: 16px;
  border: 1px solid var(--rule);
}

.bio-name {
  font-family: "Playfair Display", serif;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.bio-title {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--ink-faint);
  margin-bottom: 12px;
}

/* --- FOOTER --- */
#site-footer {
  border-top: 3px double var(--ink);
  padding: 20px 24px;
  margin-top: 32px;
  background: var(--paper);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-title {
  font-family: "Playfair Display", serif;
  font-size: 16px;
  font-weight: 700;
  font-style: italic;
  color: var(--ink);
}

.footer-copy {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--ink-faint);
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
  .front-page-grid { grid-template-columns: 1fr; }
  .front-page-grid .col { border-right: none; border-bottom: 1px solid var(--rule); }
  .about-grid { grid-template-columns: 1fr; }
  .about-bio { border-top: 1px solid var(--rule); }
  .timeline-entry { grid-template-columns: 80px 1fr; gap: 12px; }
}

@media (max-width: 640px) {
  .site-wrapper { padding: 0 16px; }
  #site-nav ul li a { padding: 8px 12px; font-size: 9px; letter-spacing: 1.5px; }
  .news-grid { grid-template-columns: 1fr; }
  .news-item { border-right: none; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .timeline-entry { grid-template-columns: 1fr; gap: 4px; }
  .timeline-year { font-size: 32px; }
}
