/**
 * list.css — Harbour Brief archive wall
 */

:root {
  --hb-cream: #FAF6F0;
  --hb-paper: #F3EBE0;
  --hb-ink: #1A1612;
  --hb-muted: #5C534A;
  --hb-terracotta: #C4654A;
  --hb-forest: #2D4A3E;
  --hb-gold: #B8956B;
  --hb-radius: 14px;
  --hb-font-display: 'Playfair Display', Georgia, serif;
  --hb-font-body: 'Source Serif 4', Georgia, serif;
  --hb-font-ui: 'DM Sans', system-ui, sans-serif;
  --hb-max: 1240px;
  --hb-radius-sm: 6px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

.hb-sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

body.hb-body,
body.hb-body--list,
body.hb-body--legal {
  font-family: var(--hb-font-body);
  background: var(--hb-cream);
  color: var(--hb-ink);
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }

.hb-card-link { text-decoration: none; color: inherit; display: block; }

/* —— Site chrome (shared with index) —— */
.hb-site-header {
  position: static;
  top: auto;
  z-index: 100;
  background: rgba(250, 246, 240, 0.82);
  backdrop-filter: blur(14px) saturate(1.08);
  -webkit-backdrop-filter: blur(14px) saturate(1.08);
  border-bottom: 1px solid rgba(26, 22, 18, 0.07);
}

.hb-site-header__inner {
  max-width: var(--hb-max);
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hb-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  margin-right: auto;
}

.hb-brand__name {
  font-family: var(--hb-font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--hb-forest);
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.hb-edition-bar {
  max-width: var(--hb-max);
  margin: 0 auto;
  padding: 0.45rem 1.5rem 0.65rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid rgba(26, 22, 18, 0.06);
  font-family: var(--hb-font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--hb-muted);
}

.hb-edition-bar__tagline {
  text-transform: uppercase;
  font-weight: 500;
}

.hb-edition-bar__date {
  font-variant-numeric: tabular-nums;
}

.hb-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(26, 22, 18, 0.12);
  border-radius: var(--hb-radius-sm);
  background: var(--hb-paper);
  cursor: pointer;
}

.hb-nav-toggle__bar {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: var(--hb-ink);
  margin: 0 auto;
  box-shadow: 0 5px 0 var(--hb-ink), 0 -5px 0 var(--hb-ink);
}

.hb-site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.1rem;
  font-family: var(--hb-font-ui);
  font-size: 0.875rem;
  font-weight: 500;
}

.hb-site-nav a {
  text-decoration: none;
  padding: 0.25rem 0;
  color: var(--hb-muted);
  transition: color 0.2s;
}

.hb-site-nav a:hover { color: var(--hb-terracotta); }

.hb-site-nav a[aria-current="page"] {
  color: var(--hb-terracotta);
}

.hb-search {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid rgba(26, 22, 18, 0.1);
  border-radius: 999px;
  padding: 0.2rem 0.3rem 0.2rem 1rem;
  min-width: 210px;
}

.hb-search input {
  border: none;
  background: transparent;
  flex: 1;
  font-family: var(--hb-font-ui);
  font-size: 0.875rem;
  outline: none;
  min-width: 0;
}

.hb-search button {
  border: none;
  background: var(--hb-forest);
  color: var(--hb-cream);
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hero */
.hb-list-hero-wrap {
  background: var(--hb-forest);
  color: var(--hb-cream);
  padding: 2.5rem 1.25rem;
}

.hb-list-hero-link { max-width: var(--hb-max); margin: 0 auto; }

.hb-list-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.hb-list-hero-grid img {
  border-radius: var(--hb-radius);
  aspect-ratio: 16/10;
  object-fit: cover;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}

.hb-list-hero-copy h1 {
  font-family: var(--hb-font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  line-height: 1.2;
  margin: 0.5rem 0 0.75rem;
}

.hb-kicker {
  font-family: var(--hb-font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hb-gold);
}

.hb-meta {
  font-family: var(--hb-font-ui);
  font-size: 0.85rem;
  opacity: 0.85;
}

/* Archive wall */
.hb-archive-section {
  max-width: var(--hb-max);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
}

.hb-archive-head {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--hb-terracotta);
}

.hb-archive-head h1 {
  font-family: var(--hb-font-display);
  font-size: 2rem;
  color: var(--hb-forest);
}

.hb-archive-head p {
  font-family: var(--hb-font-ui);
  color: var(--hb-muted);
  margin-top: 0.35rem;
}

.hb-archive-wall {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.hb-archive-card {
  background: #fff;
  border-radius: var(--hb-radius);
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(26, 22, 18, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hb-archive-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(26, 22, 18, 0.1);
}

.hb-archive-img img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.hb-archive-body {
  padding: 1rem 1.1rem 1.2rem;
}

.hb-archive-body h2 {
  font-family: var(--hb-font-display);
  font-size: 1.05rem;
  line-height: 1.3;
  margin: 0.4rem 0 0.5rem;
}

/* Search */
.hb-search-results {
  max-width: var(--hb-max);
  margin: 1rem auto;
  padding: 0 1.25rem;
}

.hb-search-hit {
  background: #fff;
  border-radius: var(--hb-radius);
  margin-bottom: 0.75rem;
}

.hb-search-hit .hb-card-link {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1rem;
  padding: 0.75rem;
}

.hb-search-hit img {
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 8px;
}

.hb-empty {
  text-align: center;
  padding: 2rem;
  font-family: var(--hb-font-ui);
  color: var(--hb-muted);
}

/* Footer */
.hb-footer {
  background: var(--hb-ink);
  color: rgba(250, 246, 240, 0.88);
  padding: 2.5rem 1.5rem 1.5rem;
  margin-top: 1rem;
}

.hb-footer__top {
  max-width: var(--hb-max);
  margin: 0 auto 2rem;
  display: grid;
  grid-template-columns: 1.1fr 2fr;
  gap: 2rem;
}

.hb-footer__brand {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.hb-footer__name {
  font-family: var(--hb-font-display);
  font-size: 1.25rem;
  color: var(--hb-cream);
  margin-bottom: 0.35rem;
}

.hb-footer__tagline {
  font-family: var(--hb-font-ui);
  font-size: 0.875rem;
  opacity: 0.75;
  line-height: 1.55;
}

.hb-footer__nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  font-family: var(--hb-font-ui);
  font-size: 0.875rem;
}

.hb-footer__col h3 {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--hb-gold);
  margin-bottom: 0.75rem;
}

.hb-footer__col ul { list-style: none; }

.hb-footer__col a {
  color: rgba(250, 246, 240, 0.78);
  text-decoration: none;
  display: block;
  padding: 0.2rem 0;
  line-height: 1.45;
}

.hb-footer__col a:hover { color: var(--hb-terracotta); }

.hb-footer__bottom {
  max-width: var(--hb-max);
  margin: 0 auto;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-family: var(--hb-font-ui);
  font-size: 0.8125rem;
}

.hb-footer__disclaimer { opacity: 0.55; }

@media (max-width: 960px) {
  .hb-archive-wall { grid-template-columns: repeat(2, 1fr); }
  .hb-list-hero-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hb-nav-toggle { display: flex; }

  .hb-site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    padding: 0.25rem 0 0.75rem;
  }

  .hb-site-nav.is-open { display: flex; }

  .hb-search {
    width: 100%;
    order: 3;
  }

  .hb-footer__top { grid-template-columns: 1fr; }
  .hb-footer__nav { grid-template-columns: 1fr 1fr; }
  .hb-edition-bar { flex-direction: column; gap: 0.25rem; }
}

@media (max-width: 560px) {
  .hb-archive-wall { grid-template-columns: 1fr; }
  .hb-footer__nav { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .hb-archive-card { transition: none; }
}
