/* --- Base & Reset --- */
html, body { margin: 0; padding: 0; background: #ffffff; color: #000000; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: hidden; box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }
img { width: 100%; display: block; height: auto; object-fit: cover; }
p { margin-bottom: 8px; color: #686868; }
h3 { margin-bottom: 10px; margin-top: 10px; }
a { color: #000; text-decoration: none; }
a:hover { color: #000; text-decoration: underline; }
img[data-path] { opacity: 0; transition: opacity 0.3s ease; }
.site-logo-img { height: clamp(24px, 4vw, 36px); width: auto; display: block; object-fit: contain; }

/* --- Hero Section --- */
.home-hero { position: relative; width: 100%; height: 100vh; margin: 0; overflow: hidden; background: #d8d5cc; display: flex; flex-direction: column; padding: 0; }
.home-hero-image { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; }
.home-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.08) 62%, rgba(0, 0, 0, 0.65) 100%); pointer-events: none; }
.home-hero-copy { position: absolute; z-index: 2; left: 2vw; right: 2vw; bottom: 42px; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; color: #fff; }
.hero-period { color: #fff; vertical-align: top; }
.home-hero-subtitle { margin-top: 8px; }
.home-hero-description { max-width: 220px; margin: 0 0 4px; color: #fff; }

/* --- Landing Container & Masthead --- */
.home-landing-container { padding: 0px; margin-top: 0px; }
.site-seo-masthead { margin-top: 0; margin-bottom: 0; display: flex; flex-direction: column; }

/* --- Section Headers & Intros --- */
.section-header { display: flex; justify-content: center; align-items: center; }
.section-subtitle { color: #111; margin-bottom: 0.5rem; }
.edition-intro { max-width: 80%; margin: 28px auto 0; }
.edition-intro p { color: #686868; margin: 0; }
.edition-divider { width: 100%; height: 1px; background: #bdbdbd; margin: 22px auto 22px; }

/* --- Grids & Layouts --- */
.home-index-section { width: 100%; }
.home-three-column-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0px 0px; width: 100%; margin: 0; }
.home-archive-grid { display: grid; width: 100%; margin: 0; gap: 0; }
.home-archive-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.home-archive-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.home-archive-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

/* --- Archive Cards & Components --- */
.home-archive-card { display: block; border: 1px solid #e0e0e0; padding: 0; background: #ffffff; text-decoration: none; color: inherit; transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.3s ease; }
.home-archive-card:hover { border-color: #999999; text-decoration: none; }
.home-archive-card.is-hidden { display: none !important; }
.home-archive-card.is-revealing { animation: revealCard 0.6s ease both; }
.card-image { width: 100%; aspect-ratio: 6 / 5; overflow: hidden; background: #f9f9f9; margin: 0; }
.card-image img { width: 100%; height: 100%; object-fit: cover; }
.card-content-box { padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.card-content-box h5, .card-content-box h3, .card-content-box p { padding: 0; margin: 0; }
.card-excerpt { color: #686868; }
.meta-flex { display: flex; justify-content: space-between; align-items: baseline; }
.card-category { display: flex; font-family: 'Lato', 'Helvetica Neue', Arial, Helvetica, sans-serif; font-style: italic; margin-top: 4px; }
.card-category a { display: inline-block; border-bottom: 2px solid #a60505; text-decoration: none; color: inherit; }
.card-category .card-date::before { content: "/"; margin: 0 8px; color: #888; }

/* --- Animations --- */
@keyframes revealCard { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* --- Media Queries / Responsive --- */
@media (max-width: 768px) {
  .home-landing-container { margin-top: 0px !important; }
  .site-seo-masthead { margin-top: 0px; }
  .section-subtitle { margin-bottom: 0.1rem; }
  .section-title { margin-bottom: 10px; }
  .edition-intro { max-width: 90%; margin-top: 22px; }
  .home-three-column-grid { grid-template-columns: repeat(1, 1fr); width: 100%; gap: 15px; }
  .home-hero { height: 100vh; min-height: 420px; }
  .home-hero-copy { left: 5vw; right: 5vw; bottom: 25px; flex-direction: column; align-items: flex-start; gap: 18px; }
  .home-hero-description { max-width: 240px; }
  .home-archive-grid { grid-template-columns: repeat(1, 1fr) !important; width: 100%; gap: 15px; }
}