/* ══════════════════════════════════════════
   TAGS
══════════════════════════════════════════ */
.tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.65rem;
  border-radius: 20px;
  background: rgba(201,146,42,0.1);
  border: 1px solid rgba(201,146,42,0.25);
  color: var(--cream-dim);
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
}
.tag:hover { background: rgba(201,146,42,0.2); border-color: var(--gold); color: var(--gold-light); }
.tag-sm { font-size: 0.7rem; padding: 0.15rem 0.5rem; }
.tag-category { border-color: var(--gold); font-weight: 600; }

/* Filter buttons */
.tag-filter {
  cursor: pointer;
  font-family: var(--font-body);
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: var(--cream-dim);
}
.tag-filter:hover { border-color: var(--gold); color: var(--gold-light); background: rgba(201,146,42,0.08); }
.tag-filter.is-active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
  font-weight: 600;
}

/* ══════════════════════════════════════════
   COLLECTION INDEX
══════════════════════════════════════════ */
.collection-section { background: var(--navy); }

.collection-filter {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.collection-filter-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.collection-filter-label {
  min-width: 4.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

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

.collection-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
}
.collection-card:hover {
  border-color: var(--border);
  transform: translateY(-3px);
  background: rgba(255,255,255,0.05);
}

.collection-card-media {
  display: block;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.collection-card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.collection-card:hover .collection-card-media img { transform: scale(1.03); }

.collection-card-media.is-placeholder {
  background: linear-gradient(135deg, var(--navy-mid), var(--navy-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  text-decoration: none;
}

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

.collection-card-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-bottom: 0.6rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
}
.meta-sep { opacity: 0.4; }

.collection-card-title {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
  line-height: 1.3;
}
.collection-card-title a {
  color: var(--cream);
  text-decoration: none;
}
.collection-card-title a:hover { color: var(--gold-light); }

.collection-card-excerpt {
  font-size: 0.9rem;
  color: var(--cream-dim);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1rem;
}

.collection-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: auto;
}

/* List view (one line per entry) */
.collection-list { border-top: 1px solid rgba(255,255,255,0.07); }

.collection-row {
  display: grid;
  grid-template-columns: 8.5rem 1fr auto;
  align-items: baseline;
  gap: 1.5rem;
  padding: 0.9rem 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: background var(--transition);
}
.collection-row:hover { background: rgba(255,255,255,0.03); }

.collection-row-date {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.collection-row-title {
  font-size: 1.05rem;
  line-height: 1.3;
  margin: 0;
}
.collection-row-title a { color: var(--cream); text-decoration: none; }
.collection-row-title a:hover { color: var(--gold-light); }
.collection-row-location {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.collection-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 4rem 0;
  font-style: italic;
}

.collection-clear {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--gold-light);
  text-decoration: underline;
  cursor: pointer;
}

/* State */
.is-hidden { display: none; }

/* ══════════════════════════════════════════
   POST PAGE
══════════════════════════════════════════ */
.post-hero {
  position: relative;
  padding: 8rem 1.5rem 4rem;
  overflow: hidden;
}
.post-hero.has-image { padding: 10rem 1.5rem 5rem; }
.post-hero.has-image .post-hero-content { position: relative; z-index: 1; }

.post-hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 60%, var(--navy-light) 0%, var(--navy) 70%);
  z-index: 0;
}
.post-hero-bg.is-plain::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent, transparent 40px,
    rgba(201,146,42,0.025) 40px,
    rgba(201,146,42,0.025) 41px
  );
}
.post-hero.has-image .post-hero-bg {
  background-size: cover;
  background-position: center;
  filter: brightness(0.35) saturate(0.8);
}
.post-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(13,31,53,0.3) 0%, rgba(13,31,53,0.85) 100%);
  z-index: 0;
}
.post-hero-content { position: relative; z-index: 1; max-width: var(--max-w); margin: 0 auto; }

.post-breadcrumb {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.post-breadcrumb a { color: var(--gold); text-decoration: none; }
.post-breadcrumb a:hover { color: var(--gold-light); }

.post-title {
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  margin-bottom: 0.8rem;
  line-height: 1.15;
}
.post-deck {
  font-size: 1.1rem;
  color: var(--cream-dim);
  max-width: 640px;
  line-height: 1.6;
  margin-bottom: 1.2rem;
}
.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.post-author { color: var(--gold); font-weight: 500; }
.post-location { color: var(--cream-dim); }
.post-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }

/* Post body prose */
.post-body-wrap {
  padding-top: 3.5rem;
  padding-bottom: 5rem;
}
.post-body {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--cream-dim);
}
.post-body h2 {
  font-size: 1.5rem;
  color: var(--cream);
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}
.post-body h3 {
  font-size: 1.15rem;
  color: var(--cream);
  margin: 2rem 0 0.6rem;
}
.post-body h4 { color: var(--gold-light); margin: 1.5rem 0 0.4rem; }
.post-body p { margin-bottom: 1.4rem; }
.post-body a { color: var(--gold-light); }
.post-body a:hover { color: var(--gold); }
.post-body strong { color: var(--cream); font-weight: 600; }
.post-body em { color: var(--gold-light); }
.post-body ul, .post-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1.4rem;
}
.post-body li { margin-bottom: 0.4rem; }
.post-body blockquote {
  border-left: 3px solid var(--gold);
  margin: 2rem 0;
  padding: 0.8rem 0 0.8rem 1.5rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--cream);
  background: rgba(201,146,42,0.05);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.post-body hr {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin: 2.5rem 0;
}
.post-body img {
  max-width: 100%;
  border-radius: var(--radius);
  margin: 1.5rem 0;
}
.post-body code {
  font-family: 'Courier New', monospace;
  font-size: 0.88em;
  background: rgba(255,255,255,0.07);
  padding: 0.15em 0.4em;
  border-radius: 3px;
  color: var(--gold-light);
}
.post-body pre {
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 1.2rem;
  overflow-x: auto;
  margin-bottom: 1.4rem;
}
.post-body pre code {
  background: none;
  padding: 0;
  font-size: 0.9rem;
}

/* Prev / Next nav */
.post-nav {
  max-width: 720px;
  margin: 3rem auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.post-nav-link {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1rem 1.2rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  text-decoration: none;
  transition: all var(--transition);
}
.post-nav-link:hover { border-color: var(--border); background: rgba(255,255,255,0.06); }
.post-nav-next { text-align: right; }
.post-nav-label { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.post-nav-title { font-family: var(--font-display); font-size: 0.95rem; color: var(--cream); line-height: 1.3; }

.post-back-link {
  max-width: 720px;
  margin: 1.5rem auto 0;
  font-size: 0.85rem;
}
.post-back-link a { color: var(--gold); }
.post-back-link a:hover { color: var(--gold-light); }

/* ── Responsive ── */
@media (max-width: 640px) {
  .l-grid { grid-template-columns: 1fr; }
  .collection-row { grid-template-columns: 1fr; gap: 0.2rem; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav-next { text-align: left; }
}
