@import url("https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=Source+Sans+3:wght@400;600&display=swap");

:root {
  color-scheme: light;
  --bg: #f4f1ea;
  --ink: #1f1c19;
  --muted: #6f655a;
  --accent: #d96f41;
  --accent-soft: #f1c5b0;
  --card: #ffffff;
  --shadow: 0 16px 40px rgba(31, 28, 25, 0.12);
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1600px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "DM Serif Display", "Georgia", "Times New Roman", serif;
  background: radial-gradient(circle at top, #fff8ef 0%, var(--bg) 55%);
  color: var(--ink);
}

img {
  width: 100%;
  display: block;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.site-header {
  padding: 28px 0 22px;
  border-bottom: 1px solid rgba(31, 28, 25, 0.1);
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-mark {
  height: 48px;
  width: auto;
  border-radius: 4px;
}

.brand-text h1 {
  margin: 0;
  font-size: 1.5rem;
}

.brand-text p {
  margin: 4px 0 0;
  color: var(--muted);
  font-family: "Source Sans 3", "Verdana", sans-serif;
}

.site-nav {
  display: flex;
  font-size: 1.2rem;
  gap: 36px;
  font-family: "Source Sans 3", "Verdana", sans-serif;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink);
  padding-bottom: 6px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease;
}

.site-nav a:hover {
  border-color: var(--accent);
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  padding: 56px 0 40px;
  align-items: top;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-family: "Source Sans 3", "Verdana", sans-serif;
  color: var(--muted);
  font-size: 0.75rem;
  margin-bottom: 12px;
}

.lede {
  font-family: "Source Sans 3", "Verdana", sans-serif;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

button {
  border: 1px solid transparent;
  background: white;
  color: var(--ink);
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  font-family: "Source Sans 3", "Verdana", sans-serif;
  box-shadow: 0 6px 18px rgba(31, 28, 25, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border 0.2s ease;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(31, 28, 25, 0.14);
}

button.primary {
  background: var(--accent);
  color: white;
}

.hero-actions a {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  font-family: "Source Sans 3", "Verdana", sans-serif;
  border: 1px solid transparent;
  box-shadow: 0 6px 18px rgba(31, 28, 25, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border 0.2s ease;
}

.hero-actions a:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(31, 28, 25, 0.14);
}

.primary-link {
  background: var(--accent);
  color: white;
}

.ghost-link {
  background: white;
  color: var(--ink);
  border-color: rgba(31, 28, 25, 0.12);
}

.section-head {
  margin: 24px 0 18px;
}

.section-head p {
  margin: 6px 0 0;
  font-family: "Source Sans 3", "Verdana", sans-serif;
  color: var(--muted);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 24px;
}

.hero-image {
  background: var(--card);
  padding: 14px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-image figcaption {
  font-family: "Source Sans 3", "Verdana", sans-serif;
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 10px;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  padding-bottom: 48px;
}

.article-grid-fixed {
  display: grid;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: 24px;
  padding-bottom: 48px;
  /* max-width: 80%; */
  margin: 0 auto;
}


.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tag {
  display: inline-block;
  font-family: "Source Sans 3", "Verdana", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.card p {
  margin: 0;
  font-family: "Source Sans 3", "Verdana", sans-serif;
  color: var(--muted);
}

.card button {
  align-self: flex-start;
  border-color: rgba(31, 28, 25, 0.12);
}

.read-link {
  align-self: flex-start;
  text-decoration: none;
  background: white;
  color: var(--ink);
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(31, 28, 25, 0.12);
  font-family: "Source Sans 3", "Verdana", sans-serif;
  box-shadow: 0 6px 18px rgba(31, 28, 25, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border 0.2s ease;
}

.read-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(31, 28, 25, 0.14);
}

.article-page {
  padding: 36px 0 60px;
}

.article {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  display: grid;
  gap: 22px;
}

.article-header .lede {
  margin-top: 12px;
}

.article-meta {
  font-family: "Source Sans 3", "Verdana", sans-serif;
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 8px;
}

.article-hero img {
  border-radius: var(--radius);
}

.article-hero figcaption {
  font-family: "Source Sans 3", "Verdana", sans-serif;
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 10px;
}

.article-body {
  font-family: "Source Sans 3", "Verdana", sans-serif;
  color: var(--ink);
  line-height: 1.7;
  display: grid;
  gap: 14px;
}

.article-body blockquote {
  margin: 10px 0;
  padding: 12px 16px;
  border-left: 3px solid var(--accent);
  background: #fff4ec;
  color: var(--muted);
}

.article-footer {
  display: flex;
  justify-content: flex-start;
}

.gallery {
  padding: 20px 0 80px;
}

.gallery-head {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: baseline;
  margin-bottom: 24px;
}

.gallery-head p {
  margin: 0;
  font-family: "Source Sans 3", "Verdana", sans-serif;
  color: var(--muted);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.gallery-grid-fixed {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 16px;
}


.gallery figure {
  margin: 0;
  padding: 10px;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.gallery figure figcaption {
  margin-top: 10px;
  font-family: "Source Sans 3", "Verdana", sans-serif;
  color: var(--muted);
  font-size: 0.85rem;
}

.gallery-grid img {
  cursor: zoom-in;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(31, 28, 25, 0.8);
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 30;
  padding: 24px;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  max-width: min(92vw, 980px);
  max-height: 82vh;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.lightbox-note {
  margin-top: 14px;
  font-family: "Source Sans 3", "Verdana", sans-serif;
  color: #f6f1ea;
  text-align: center;
  max-width: min(80vw, 720px);
  font-size: 2rem;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  border: none;
  background: white;
  color: var(--ink);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: white;
  color: var(--ink);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.8rem;
  line-height: 1;
}

.lightbox-nav.prev {
  left: 24px;
}

.lightbox-nav.next {
  right: 24px;
}

.site-footer {
  background: #1f1c19;
  color: white;
  padding: 24px 0;
  text-align: center;
  font-family: "Source Sans 3", "Verdana", sans-serif;
}

.site-footer p {
  margin: 0;
  opacity: 0.75;
}

.hidden {
  display: none !important;
}

/* ── HAMBURGER BUTTON (hidden on desktop) ── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  box-shadow: none;
  padding: 8px 6px;
  cursor: pointer;
  flex-shrink: 0;
  z-index: 20;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.22s, opacity 0.22s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── TABLET (≤ 860px) ── */
@media (max-width: 860px) {
  .article-grid-fixed {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-grid-fixed {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ── MOBILE (≤ 700px) ── */
@media (max-width: 700px) {
  .container {
    padding: 0 16px;
  }

  /* Header */
  .site-header {
    padding: 14px 0;
    position: sticky;
    top: 0;
  }

  .site-header .container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 8px;
  }

  .brand { flex: 1; min-width: 0; }

  .brand-mark { height: 36px; }

  .brand-text h1 {
    font-size: 1.05rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .brand-text p { display: none; }

  /* Show hamburger, convert nav to dropdown */
  .nav-toggle { display: flex; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(31, 28, 25, 0.1);
    padding: 6px 24px 14px;
    z-index: 15;
    box-shadow: 0 8px 24px rgba(31, 28, 25, 0.1);
  }

  .site-nav.open { display: flex; }

  .site-nav a {
    padding: 13px 0;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(31, 28, 25, 0.07);
    border-bottom-color: rgba(31, 28, 25, 0.07);
  }

  .site-nav a:last-child { border-bottom: none; }

  /* Hero */
  .hero {
    padding: 28px 0 20px;
    gap: 24px;
  }

  .hero h2 { font-size: 1.6rem; }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions a {
    text-align: center;
    padding: 14px 18px;
  }

  /* Grids */
  .article-grid-fixed { grid-template-columns: 1fr; }
  .gallery-grid-fixed { grid-template-columns: repeat(2, 1fr); }
  .article-grid       { grid-template-columns: 1fr; }

  /* Article */
  .article { padding: 20px 16px; }

  /* Lightbox — bigger touch targets */
  .lightbox-nav { width: 52px; height: 52px; }
  .lightbox-nav.prev { left: 8px; }
  .lightbox-nav.next { right: 8px; }

  /* Gallery */
  .gallery { padding: 16px 0 48px; }
  .filters { gap: 8px; }
  .section-head { margin: 16px 0 12px; }
}
