/* Irish Town blog: builds on styles.css tokens (forest, gold, Playfair + Montserrat) */

/* ---------- Page hero ---------- */
.bl-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(140px, 16vw, 188px) 0 clamp(56px, 7vw, 88px);
  color: var(--off-white);
  background:
    linear-gradient(90deg, rgba(6, 27, 14, 0.92), rgba(6, 27, 14, 0.68) 55%, rgba(6, 27, 14, 0.4)),
    linear-gradient(0deg, rgba(6, 27, 14, 0.55), transparent 50%),
    url("assets/hd/aerial-1600.webp") center / cover no-repeat,
    var(--forest);
}

.bl-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: radial-gradient(circle at 2px 2px, var(--gold) 1px, transparent 0);
  background-size: 40px 40px;
}

.bl-hero .container {
  position: relative;
  z-index: 1;
}

.bl-hero h1 {
  max-width: 900px;
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  line-height: 1.1;
  font-size: clamp(2.2rem, 5vw, 4rem);
}

.bl-hero-post h1 {
  font-size: clamp(1.9rem, 4vw, 3.2rem);
}

.bl-lead {
  max-width: 640px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 1.4vw, 1.14rem);
}

.bl-hero-actions {
  margin-top: 32px;
}

.bl-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.bl-crumbs a:hover {
  color: var(--gold);
}

.bl-crumbs span[aria-current] {
  color: var(--gold);
}

.bl-post-meta,
.bl-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.bl-post-meta {
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.78);
}

.bl-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
}

/* ---------- Listing ---------- */
.bl-listing {
  background: var(--surface);
}

.bl-filters,
.bl-pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.bl-filters {
  margin-bottom: 48px;
}

.bl-pager {
  margin-top: 56px;
}

.bl-chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--off-white);
  color: var(--forest-soft);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.bl-chip:hover {
  border-color: var(--gold);
}

.bl-chip.active {
  background: var(--forest-soft);
  border-color: var(--forest-soft);
  color: var(--off-white);
}

.bl-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.bl-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--off-white);
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bl-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.bl-card-media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-container);
}

.bl-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.bl-card:hover .bl-card-media img {
  transform: scale(1.05);
}

.bl-card-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.bl-card-placeholder img {
  width: 96px;
  height: 96px;
  object-fit: contain;
}

.bl-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 28px 28px 26px;
}

.bl-card-body .eyebrow {
  margin-bottom: 10px;
}

.bl-card-body h2 {
  margin: 0;
  color: var(--forest-soft);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.25;
}

.bl-card-body h2 a:hover {
  color: var(--gold-deep);
}

.bl-excerpt {
  margin: 14px 0 22px;
  color: var(--muted);
  font-size: 0.94rem;
}

.bl-meta {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.bl-more {
  margin-left: auto;
  color: var(--forest-soft);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--gold);
}

.bl-more:hover {
  color: var(--gold-deep);
}

/* Lead article spans the full row */
.bl-card-feature {
  grid-column: 1 / -1;
  flex-direction: row;
}

.bl-card-feature .bl-card-media {
  flex: 1.15;
  aspect-ratio: auto;
  min-height: 380px;
}

.bl-card-feature .bl-card-body {
  flex: 1;
  justify-content: center;
  padding: clamp(32px, 4vw, 56px);
}

.bl-card-feature .bl-card-body h2 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.bl-card-feature .bl-excerpt {
  font-size: 1rem;
}

.bl-card-feature .bl-meta {
  margin-top: 8px;
}

.bl-empty {
  max-width: 560px;
  margin: 0 auto;
  padding: 56px 32px;
  text-align: center;
  background: var(--off-white);
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
}

.bl-empty h2 {
  margin: 0 0 12px;
  color: var(--forest-soft);
  font-family: "Playfair Display", Georgia, serif;
}

.bl-empty p {
  margin: 0 0 24px;
  color: var(--muted);
}

/* ---------- Article ---------- */
.bl-post {
  padding-top: clamp(40px, 5vw, 64px);
  background: var(--surface);
}

.bl-post-wrap {
  max-width: 840px;
}

.bl-post-image {
  margin: 0 0 48px;
  border-top: 2px solid var(--gold);
  box-shadow: var(--shadow);
}

.bl-post-image img {
  width: 100%;
  height: auto;
}

.bl-prose {
  color: #2c322c;
  font-size: 1.06rem;
  line-height: 1.85;
}

.bl-prose > *:first-child {
  margin-top: 0;
}

.bl-prose h2,
.bl-prose h3,
.bl-prose h4 {
  margin: 2.2em 0 0.6em;
  color: var(--forest-soft);
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  line-height: 1.25;
}

.bl-prose h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.bl-prose h3 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); }
.bl-prose h4 { font-size: 1.15rem; }

.bl-prose p {
  margin: 0 0 1.35em;
}

.bl-prose a {
  color: var(--gold-deep);
  text-decoration: underline;
  text-decoration-color: rgba(212, 175, 55, 0.6);
  text-underline-offset: 3px;
}

.bl-prose a:hover {
  color: var(--forest-soft);
}

.bl-prose ul,
.bl-prose ol {
  margin: 0 0 1.5em;
  padding-left: 1.4em;
}

.bl-prose li {
  margin-bottom: 0.5em;
}

.bl-prose li::marker {
  color: var(--gold-deep);
}

.bl-prose blockquote {
  margin: 2em 0;
  padding: 18px 26px;
  background: var(--surface-low);
  border-left: 3px solid var(--gold);
  color: var(--forest-soft);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.2rem;
}

.bl-prose blockquote p:last-child {
  margin-bottom: 0;
}

.bl-prose img {
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 2em auto;
}

.bl-prose table {
  display: block;
  width: 100%;
  margin: 0 0 1.6em;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.bl-prose th,
.bl-prose td {
  padding: 10px 14px;
  border: 1px solid var(--line);
  text-align: left;
}

.bl-prose th {
  background: var(--forest-soft);
  color: var(--off-white);
}

.bl-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}

.bl-tags li {
  padding: 5px 14px;
  background: var(--surface-container);
  color: var(--forest-soft);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.bl-note {
  margin-top: 40px;
  padding: 22px 26px;
  background: var(--off-white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
}

.bl-note .eyebrow {
  margin-bottom: 6px;
}

.bl-note p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.bl-related {
  background: var(--surface-low);
}

/* ---------- Call to action ---------- */
.bl-cta {
  padding-block: clamp(56px, 7vw, 84px);
}

.bl-cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.bl-cta h2 {
  margin: 0 0 12px;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  line-height: 1.15;
}

.bl-cta p:not(.eyebrow) {
  margin: 0;
  max-width: 560px;
  color: rgba(255, 255, 255, 0.82);
}

.bl-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button.bl-btn-gold {
  background: var(--gold);
  color: var(--forest);
}

.button.bl-btn-gold:hover {
  background: #e3c14f;
}

.button.bl-btn-light {
  color: var(--off-white);
  border-color: rgba(255, 255, 255, 0.5);
  background: transparent;
}

.button.bl-btn-light:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .bl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bl-card-feature { flex-direction: column; }
  .bl-card-feature .bl-card-media { flex: none; min-height: 0; aspect-ratio: 16 / 9; }
}

@media (max-width: 640px) {
  .bl-grid { grid-template-columns: 1fr; gap: 24px; }
  .bl-card-body { padding: 22px 20px; }
  .bl-more { margin-left: 0; width: 100%; }
  .bl-prose { font-size: 1rem; }
  .bl-cta-actions .button { width: 100%; }
}
