:root {
  --cream: #FAF6F1;
  --ink: #2C1A0E;
  --ink-muted: #7A5C48;
  --ink-faint: #B89A86;
  --accent: #C0390E;
  --accent-light: #FDEEE9;
  --accent-mid: #E8724A;
  --border: rgba(44,26,14,0.12);
  --card-bg: #FFFFFF;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: 'Libre Baskerville', serif;
  font-weight: 400;
  min-height: 100vh;
}

/* ── Header ── */
header {
  background: var(--ink);
  color: var(--cream);
  padding: 3.5rem 2rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 40px,
    rgba(255,255,255,0.015) 40px,
    rgba(255,255,255,0.015) 80px
  );
}

.header-eyebrow {
  font-family: 'League Spartan', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-mid);
  margin-bottom: 1rem;
}

header h1 {
  font-family: 'League Spartan', sans-serif;
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

header h1 em {
  font-style: normal;
  color: var(--accent-mid);
}

.header-meta {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.header-pill {
  font-size: 12px;
  font-weight: 400;
  color: rgba(247,243,236,0.6);
  border: 0.5px solid rgba(247,243,236,0.2);
  padding: 5px 14px;
  border-radius: 100px;
}

.header-desc {
  font-size: 15px;
  color: rgba(247,243,236,0.65);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Nav / Filter ── */
.filter-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(250,246,241,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 0.5px solid var(--border);
  padding: 0.75rem 2rem;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.filter-btn {
  font-family: 'League Spartan', sans-serif;
  font-size: 12px;
  font-weight: 400;
  padding: 6px 16px;
  border-radius: 100px;
  border: 0.5px solid var(--border);
  background: transparent;
  color: var(--ink-muted);
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.02em;
}

.filter-btn:hover { background: rgba(44,26,14,0.06); color: var(--ink); }

.filter-btn.active {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

/* ── Grid ── */
.grid-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.days-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* ── Day card ── */
.day-card {
  background: var(--card-bg);
  border: 0.5px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.day-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(44,26,14,0.1);
}

.day-card.hidden { display: none; }

.card-photo {
  width: 100%;
  height: 190px;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.4;
}

.photo-placeholder svg { width: 28px; height: 28px; }
.photo-placeholder span { font-size: 11px; color: var(--accent); }

.card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }

.card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.day-num {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--accent-light);
  color: var(--accent);
  padding: 4px 10px;
  border-radius: 100px;
}

.card-title {
  font-family: 'League Spartan', sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 6px;
}

.card-location {
  font-size: 12px;
  color: var(--ink-faint);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.loc-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-mid);
  flex-shrink: 0;
}

.card-excerpt {
  font-family: 'Libre Baskerville', serif;
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink-muted);
  flex: 1;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 14px;
}

.tag {
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 100px;
  border: 0.5px solid var(--border);
  color: var(--ink-faint);
}

.card-photo-strip {
  display: flex;
  gap: 4px;
  margin-top: 14px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.strip-slot {
  flex-shrink: 0;
  width: 76px;
  height: 76px;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 6px;
  cursor: pointer;
  transition: opacity 0.15s;
}

.strip-slot:hover { opacity: 0.82; }

.strip-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.strip-slot svg {
  width: 16px;
  height: 16px;
  opacity: 0.25;
  color: var(--accent);
}

/* ── Full entry modal ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(44,26,14,0.6);
  z-index: 100;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem 1rem;
  overflow-y: auto;
}

.modal-overlay.open { display: flex; }

.modal {
  background: var(--cream);
  border-radius: 20px;
  max-width: 660px;
  width: 100%;
  margin: auto;
  overflow: hidden;
  position: relative;
  animation: modalIn 0.25s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-photo {
  width: 100%;
  height: 260px;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-photo img { width: 100%; height: 100%; object-fit: cover; }

.modal-photo .photo-placeholder { opacity: 0.35; }

.modal-content { padding: 2rem 2rem 2.5rem; }

.modal-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 1rem;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.modal-title {
  font-family: 'League Spartan', sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.modal-location {
  font-size: 13px;
  color: var(--ink-faint);
  margin-bottom: 1.75rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.modal-divider {
  width: 40px;
  height: 1px;
  background: var(--accent-mid);
  margin-bottom: 1.75rem;
}

.modal-body {
  font-family: 'Libre Baskerville', serif;
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink);
}

.modal-body p { margin-bottom: 1.2rem; }

.pull-quote {
  border-left: 2px solid var(--accent-mid);
  padding-left: 1.25rem;
  margin: 1.75rem 0;
  font-style: italic;
  font-size: 17px;
  color: var(--ink-muted);
  line-height: 1.7;
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 0.5px solid var(--border);
}

.close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(44,26,14,0.5);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  line-height: 1;
  transition: background 0.15s;
  z-index: 1;
}

.close-btn:hover { background: rgba(44,26,14,0.8); }

/* ── Footer ── */
footer {
  text-align: center;
  padding: 2.5rem 1rem;
  font-size: 12px;
  color: var(--ink-faint);
  border-top: 0.5px solid var(--border);
  letter-spacing: 0.05em;
}

/* ── Lightbox ── */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 200;
  align-items: center;
  justify-content: center;
}

.lightbox-overlay.open { display: flex; }

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 6px;
  display: block;
  animation: modalIn 0.2s ease;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  line-height: 1;
  transition: background 0.15s;
  z-index: 1;
}

.lightbox-close:hover { background: rgba(255,255,255,0.3); }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 28px;
  line-height: 1;
  transition: background 0.15s;
}

.lightbox-nav:hover { background: rgba(255,255,255,0.3); }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

/* ── Modal gallery ── */
.modal-gallery {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 0.5px solid var(--border);
}

.gallery-label {
  font-family: 'League Spartan', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 1rem;
}

.gallery-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.gallery-thumb {
  flex-shrink: 0;
  width: 130px;
  height: 100px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: opacity 0.15s;
}

.gallery-thumb:hover { opacity: 0.82; }

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 600px) {
  .days-grid { grid-template-columns: 1fr; }
  header { padding: 2.5rem 1.25rem 2rem; }
}
