/* Travenza · page-blog.css — blog index, archives, search and single posts (rendered by index.php).
   Uses the shared tokens/utilities in style.css (--gutter, --section-y, .container-wide, .section-label …). */

.blog-page {
  --tz-ink: var(--orange-ink, #a85f1b);  /* deeper orange for small text on light surfaces: eyebrows, dates, links (AA on ivory and white) */
  --tz-muted: #66665e;   /* secondary text that still passes AA on ivory and white */
  --blog-top: calc(var(--nav-h) + clamp(32px, 6vw, 84px));
  background: var(--ivory);
  color: var(--black);
}
.blog-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* A gentle load-in that needs no JS and is switched off by prefers-reduced-motion (global rule in style.css) */
@keyframes blogRise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.blog-hero .section-label,
.blog-hero__title,
.blog-hero__intro,
.blog-back,
.blog-single__meta,
.blog-single__title { animation: blogRise .8s var(--ease-out) both; }
.blog-hero__title,
.blog-single__meta { animation-delay: .08s; }
.blog-hero__intro,
.blog-single__title { animation-delay: .16s; }

/* ── Index / archive header ── */
.blog-hero { padding: var(--blog-top) 0 clamp(28px, 4.5vw, 56px); }
.blog-hero .section-label { margin-bottom: 14px; }
.blog-hero__title {
  font-family: var(--f-display); font-weight: 900; color: var(--black);
  font-size: clamp(38px, 6.4vw, 76px); line-height: 1.08; letter-spacing: -1px;
  max-width: 16ch;
}
.blog-hero__title em, .blog-single__title em { font-style: italic; color: var(--orange); }
.blog-hero__intro { margin-top: 18px; max-width: 56ch; font-size: clamp(15px, 1.4vw, 17px); line-height: 1.7; color: var(--tz-muted); }

/* ── Card grid: 3 → 2 → 1 ── */
.blog-list { padding: 0 0 calc(var(--section-y) * .6); }  /* the footer adds its own --section-y on top */
.blog-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.6vw, 36px);
}
@media (max-width: 1100px) { .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px)  { .blog-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; } .blog-card__media { aspect-ratio: 16 / 9; } }
/* Two columns and an odd last card: it spans the row as a wide image-left card instead of sitting alone beside a blank cell */
@media (min-width: 561px) and (max-width: 1100px) {
  .blog-grid > .blog-card:last-child:nth-child(odd) { grid-column: 1 / -1; flex-direction: row; }
  .blog-grid > .blog-card:last-child:nth-child(odd) .blog-card__media { flex: 0 0 46%; aspect-ratio: auto; min-height: 260px; }
  .blog-grid > .blog-card:last-child:nth-child(odd) .blog-card__body { justify-content: center; }
  .blog-grid > .blog-card:last-child:nth-child(odd) .blog-card__more { margin-top: 4px; }
}

.blog-card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid rgba(26,26,26,.06); border-radius: var(--radius-card);
  overflow: hidden; box-shadow: 0 2px 14px rgba(0,0,0,.04);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.blog-card:focus-within { box-shadow: 0 0 0 2px var(--orange), 0 18px 48px rgba(0,0,0,.1); }
@media (hover: hover) {
  .blog-card:hover { transform: translateY(-6px); box-shadow: 0 24px 56px rgba(0,0,0,.12); }
  .blog-card:hover .blog-card__img { transform: scale(1.05); }
}
.blog-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--orange-pale); }
.blog-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s var(--ease-out); }

.blog-card__body { display: flex; flex-direction: column; flex: 1; padding: clamp(20px, 2.2vw, 28px); }
.blog-card__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-bottom: 12px;
  font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--tz-ink);
}
.blog-card__dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.blog-card__title {
  font-family: var(--f-display); font-weight: 900; font-size: clamp(21px, 1.9vw, 26px);
  line-height: 1.22; letter-spacing: -.3px; margin-bottom: 12px; color: var(--black); text-wrap: pretty;
}
.blog-card__link { color: inherit; text-decoration: none; }
.blog-card__link::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: inherit; } /* whole card is the tap target */
.blog-card__link:focus-visible { outline: none; }
.blog-card__excerpt {
  font-size: 15px; line-height: 1.65; color: var(--tz-muted); margin-bottom: 18px; text-wrap: pretty;
}
.blog-card__more {
  margin-top: auto; display: inline-flex; align-items: center; align-self: flex-start; min-height: 44px;
  font-size: 13px; font-weight: 700; letter-spacing: .2px; color: var(--tz-ink); text-decoration: none;
  transition: transform .3s var(--ease-out), color .2s;
}
/* a real link (coming-soon cards point at the trip planner), kept above the card-wide title link */
a.blog-card__more { position: relative; z-index: 2; }
a.blog-card__more:hover { color: var(--black); }
a.blog-card__more:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
@media (hover: hover) { .blog-card:hover .blog-card__more { transform: translateX(4px); } }

/* ── "Coming soon" stories: photo under the brand scrim + a status pill, so an unwritten article reads as deliberate ── */
.blog-card__media--photo::after, .blog-single__frame.has-photo::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; background-image: var(--scrim-card);
}
.blog-soon-row { position: absolute; left: clamp(14px, 2vw, 22px); right: clamp(14px, 2vw, 22px); bottom: clamp(14px, 2vw, 22px); z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; pointer-events: none; }
.blog-soon-tag {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 12px; border-radius: 60px;
  background: rgba(18,18,16,.72); border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(10px) saturate(140%); backdrop-filter: blur(10px) saturate(140%);
  font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: #fff; line-height: 1;
}
.blog-soon-tag__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 3px rgba(213,142,74,.28); flex: none; }
.blog-soon-place { font-size: 13px; font-weight: 600; letter-spacing: .3px; color: #fff; text-shadow: 0 1px 10px rgba(0,0,0,.5); }

/* ── Pagination (44px targets). Own markup: WP's .nav-links class would collide with the header nav. ── */
.blog-pagination { margin-top: clamp(36px, 5vw, 64px); }
.blog-pagination ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; }
.blog-pagination a.page-numbers, .blog-pagination span.page-numbers {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 44px; min-height: 44px; padding: 0 16px; border-radius: 60px;
  background: #fff; border: 1.5px solid var(--gray-light);
  font-size: 14px; font-weight: 600; color: var(--black); text-decoration: none;
  transition: border-color .25s, color .25s, background .25s;
}
.blog-pagination a.page-numbers:hover { border-color: var(--orange); color: var(--tz-ink); }
.blog-pagination span.page-numbers.current { background: var(--orange); border-color: var(--orange); color: #fff; }
.blog-pagination span.page-numbers.dots { background: none; border-color: transparent; min-width: 24px; padding: 0; }

/* ── Empty states ── */
.blog-empty { text-align: center; padding: clamp(24px, 5vw, 56px) 0; }
.blog-empty__title { font-variant-numeric: lining-nums; font-family: var(--f-display); font-weight: 900; font-size: clamp(24px, 4vw, 36px); line-height: 1.2; margin-bottom: 28px; color: var(--black); }
.blog-empty__code { font-variant-numeric: lining-nums; font-family: var(--f-display); font-weight: 900; font-size: clamp(96px, 22vw, 180px); line-height: .95; color: var(--orange); }
.blog-empty--page { padding: var(--blog-top) var(--gutter) var(--section-y); min-height: 60svh; display: flex; flex-direction: column; align-items: center; justify-content: center; }

/* ══════════ Single post ══════════ */
.blog-narrow { width: 100%; max-width: 820px; margin-inline: auto; padding-inline: var(--gutter); }
.blog-single__head { padding: var(--blog-top) 0 clamp(24px, 4vw, 44px); }
.blog-back {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin: 0 0 6px -2px;
  font-size: 13px; font-weight: 700; letter-spacing: .2px; color: var(--tz-ink); text-decoration: none;
}
.blog-back:hover { color: var(--black); }
.blog-single__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-bottom: 16px;
  font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--tz-ink);
}
.blog-single__meta a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; min-height: 32px; }
.blog-single__meta a:hover { color: var(--black); }
.blog-single__title {
  font-family: var(--f-display); font-weight: 900; color: var(--black);
  font-size: clamp(32px, 5.2vw, 58px); line-height: 1.12; letter-spacing: -.8px;
}

.blog-single__hero { width: 100%; max-width: 1040px; margin: 0 auto clamp(28px, 4vw, 52px); padding-inline: var(--gutter); }
.blog-single__frame { position: relative; overflow: hidden; border-radius: clamp(16px, 2.4vw, 28px); box-shadow: 0 18px 50px rgba(0,0,0,.12); background: var(--orange-pale); }
.blog-single__img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
@media (max-width: 560px) { .blog-single__img { aspect-ratio: 4 / 3; } }

.blog-single__body { padding-bottom: clamp(40px, 6vw, 72px); }

/* Status note on a coming-soon story: the stored message, set as a calm callout rather than loose body copy */
.blog-soon-note {
  display: flex; align-items: flex-start; gap: clamp(14px, 2vw, 22px);
  padding: clamp(20px, 2.8vw, 32px); background: #fff; border: 1px solid rgba(26,26,26,.06); border-left: 4px solid var(--orange);
  border-radius: var(--radius-card); box-shadow: 0 2px 14px rgba(0,0,0,.04);
}
.blog-soon-note__icon { flex: none; width: 48px; height: 48px; border-radius: 14px; background: var(--orange-pale); color: var(--orange-ink); display: inline-flex; align-items: center; justify-content: center; }
.blog-soon-note .tz-prose { flex: 1; min-width: 0; font-size: clamp(16px, .3vw + 15px, 18px); }
.blog-soon-note .tz-prose a { display: inline-block; padding: 12px 2px; margin: -12px -2px; } /* 44px-tall tap area without changing the line height */
@media (max-width: 560px) { .blog-soon-note { flex-direction: column; gap: 14px; } }

/* End-of-article call to action: the shared green .enquiry-strip band with two pills */
.blog-cta h2 { font-size: clamp(30px, 4.4vw, 52px); }
.blog-cta p { max-width: 52ch; margin-inline: auto; margin-bottom: 32px; }
.blog-cta__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.blog-cta__btns .btn-primary, .blog-cta__btns .btn-outline-light { justify-content: center; min-height: 52px; }
@media (max-width: 480px) { .blog-cta__btns { flex-direction: column; align-items: stretch; max-width: 340px; margin-inline: auto; } }

.blog-pagelinks { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 32px; font-size: 14px; color: var(--tz-muted); }
.blog-pagelinks > a, .blog-pagelinks > .post-page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; border-radius: 50%; border: 1.5px solid var(--gray-light); background: #fff; color: var(--black); text-decoration: none; font-weight: 600; }

.blog-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--gray-light); }
.blog-tags a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 60px; background: var(--orange-pale); color: var(--tz-ink); font-size: 13px; font-weight: 600; text-decoration: none; transition: background .25s, color .25s; }
.blog-tags a:hover { background: var(--orange); color: #fff; }

/* Previous / next story */
.blog-adjacent { border-top: 1px solid var(--gray-light); background: var(--ivory-2); padding: clamp(32px, 5vw, 64px) 0; }
.blog-adjacent__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.blog-adjacent__grid.is-single { grid-template-columns: minmax(0, 1fr); }
.blog-adjacent__grid.is-single .blog-adjacent__item.is-next { text-align: left; align-items: flex-start; } /* a lone card reads left to right, like the phone layout */
.blog-adjacent__item {
  display: flex; flex-direction: column; gap: 8px; padding: clamp(18px, 2.4vw, 26px); min-height: 44px;
  background: #fff; border: 1px solid rgba(26,26,26,.06); border-radius: var(--radius-card);
  text-decoration: none; color: var(--black);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .25s;
}
.blog-adjacent__item.is-next { text-align: right; align-items: flex-end; }
.blog-adjacent__item:hover { border-color: rgba(213,142,74,.5); box-shadow: 0 16px 40px rgba(0,0,0,.08); }
@media (hover: hover) { .blog-adjacent__item:hover { transform: translateY(-3px); } }
.blog-adjacent__label { font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--tz-ink); }
.blog-adjacent__title { font-family: var(--f-display); font-weight: 700; font-size: clamp(17px, 1.7vw, 21px); line-height: 1.3; font-variant-numeric: lining-nums; } /* "10" must not read as "1o" (the global h1-h4 rule does not reach spans) */
@media (max-width: 640px) {
  .blog-adjacent__grid { grid-template-columns: minmax(0, 1fr); }
  .blog-adjacent__item.is-next { text-align: left; align-items: flex-start; }
}

/* ══════════ Readable article typography (shared look with .tz-prose in page-misc.css) ══════════ */
.tz-prose { font-size: clamp(16px, .3vw + 15px, 18px); line-height: 1.75; color: var(--black-soft); overflow-wrap: break-word; }
.tz-prose > * + * { margin-top: 1.25em; }
.tz-prose > :first-child { margin-top: 0; }
.tz-prose h2, .tz-prose h3, .tz-prose h4 { color: var(--black); }
.tz-prose h2 { font-family: var(--f-display); font-weight: 900; font-size: clamp(26px, 3.4vw, 36px); line-height: 1.2; letter-spacing: -.5px; margin-top: 2em; }
.tz-prose h3 { font-family: var(--f-display); font-weight: 700; font-size: clamp(21px, 2.4vw, 26px); line-height: 1.28; margin-top: 1.8em; }
.tz-prose h4 { font-size: 1.05em; font-weight: 700; line-height: 1.4; margin-top: 1.6em; }
.tz-prose h2 + *, .tz-prose h3 + *, .tz-prose h4 + * { margin-top: .6em; }
.tz-prose p, .tz-prose li { overflow-wrap: break-word; }
.tz-prose a { color: var(--tz-ink); text-decoration: underline; text-decoration-color: rgba(213,142,74,.55); text-decoration-thickness: 1.5px; text-underline-offset: 3px; transition: color .2s, text-decoration-color .2s; }
.tz-prose a:hover { color: var(--black); text-decoration-color: var(--orange); }
.tz-prose strong, .tz-prose b { font-weight: 700; color: var(--black); }
.tz-prose ul, .tz-prose ol { padding-left: 1.35em; }
.tz-prose li + li { margin-top: .5em; }
.tz-prose li::marker { color: var(--orange); font-weight: 700; }
.tz-prose blockquote { border-left: 3px solid var(--orange); padding: .3em 0 .3em 1.2em; font-family: var(--f-display); font-style: italic; font-size: 1.18em; line-height: 1.55; color: var(--black); }
.tz-prose blockquote p + p { margin-top: .8em; }
.tz-prose blockquote cite { display: block; margin-top: .8em; font-family: var(--f-body); font-style: normal; font-size: .72em; letter-spacing: 1px; text-transform: uppercase; color: var(--tz-muted); }
.tz-prose hr { border: 0; height: 1px; background: var(--gray-light); margin: 2.4em 0; }
.tz-prose img, .tz-prose video { max-width: 100%; height: auto; border-radius: 16px; }
.tz-prose figure, .tz-prose .wp-caption { margin: 2em 0; max-width: 100%; }
.tz-prose figure img, .tz-prose .wp-caption img { display: block; width: 100%; }
.tz-prose figcaption, .tz-prose .wp-caption-text { margin-top: .7em; font-size: 13.5px; line-height: 1.5; text-align: center; color: var(--tz-muted); }
.tz-prose iframe, .tz-prose embed, .tz-prose object { max-width: 100%; border: 0; border-radius: 16px; }
.tz-prose iframe[src*="youtube"], .tz-prose iframe[src*="youtu.be"], .tz-prose iframe[src*="vimeo"],
.tz-prose .wp-block-embed iframe, .tz-prose .wp-has-aspect-ratio iframe { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.tz-prose .alignwide, .tz-prose .alignfull { width: 100%; max-width: 100%; margin-inline: 0; }
.tz-prose .aligncenter { display: block; margin-inline: auto; }
.tz-prose .alignleft  { float: left;  margin: .4em 1.5em 1em 0; max-width: 50%; }
.tz-prose .alignright { float: right; margin: .4em 0 1em 1.5em; max-width: 50%; }
@media (max-width: 560px) { .tz-prose .alignleft, .tz-prose .alignright { float: none; display: block; margin: 1.6em auto; max-width: 100%; } }
.tz-prose::after { content: ''; display: table; clear: both; }
.tz-prose code, .tz-prose kbd { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .86em; padding: .15em .45em; border-radius: 6px; background: var(--orange-pale); color: var(--black); }
.tz-prose pre { overflow-x: auto; padding: 1.1em 1.3em; border-radius: 14px; background: var(--black); color: #f3f1e8; font-size: 14px; line-height: 1.65; -webkit-overflow-scrolling: touch; }
.tz-prose pre code { padding: 0; background: none; color: inherit; font-size: inherit; }
.tz-prose table { width: 100%; border-collapse: collapse; font-size: .92em; line-height: 1.5; }
.tz-prose th, .tz-prose td { padding: .75em 1em; text-align: left; border-bottom: 1px solid var(--gray-light); vertical-align: top; }
.tz-prose thead th { font-weight: 700; color: var(--black); background: var(--ivory-2); border-bottom-color: var(--ivory-3); }
.tz-table-wrap {
  max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
  background:
    linear-gradient(to right, var(--ivory) 30%, rgba(253,253,243,0)) 0 0 / 36px 100% no-repeat local,
    linear-gradient(to left, var(--ivory) 30%, rgba(253,253,243,0)) 100% 0 / 36px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, rgba(26,26,26,.16), rgba(26,26,26,0)) 0 0 / 14px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, rgba(26,26,26,.16), rgba(26,26,26,0)) 100% 0 / 14px 100% no-repeat scroll;
}
.tz-table-wrap table { min-width: calc(var(--tz-cols, 3) * 6.5rem); }
@media (min-width: 821px) { .tz-table-wrap table { min-width: 0; } }
