/* =====================================================================
   Out & About NYC Magazine — Stories archive (blog.html) + single story (post.html)
   Builds on style.css tokens: ink / red / gold, Playfair Display + Inter.
   ===================================================================== */

/* ---------- breadcrumbs ---------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-family: var(--title); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.crumbs a { color: rgba(255,255,255,.85); transition: color .2s; }
.crumbs a:hover { color: var(--gold-soft); }
.crumbs span[aria-hidden] { color: rgba(255,255,255,.35); }
.crumbs #crumb-current, .crumbs > span:last-child:not([aria-hidden]) { color: var(--gold-soft); }

/* ---------- archive hero ---------- */
.page-hero { position: relative; overflow: hidden; color: #fff; background:
  radial-gradient(900px 340px at 85% -10%, rgba(215,38,30,.55), transparent 60%),
  radial-gradient(600px 300px at 0% 120%, rgba(238,177,42,.22), transparent 60%), var(--ink); }
.page-hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--red) 0 60%, var(--gold) 60% 100%); }
.page-hero__inner { padding-top: clamp(36px, 5vw, 64px); padding-bottom: clamp(40px, 5vw, 64px); }
.page-hero__kicker { margin: 22px 0 10px; font-family: var(--title); font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.page-hero__kicker::before { content: ''; display: inline-block; width: 28px; height: 2px; margin-right: 10px; vertical-align: middle; background: var(--red); }
.page-hero__title { font-family: var(--serif); font-weight: 900; font-size: clamp(36px, 5.4vw, 68px); line-height: 1.02; letter-spacing: -.02em; max-width: 18ch; overflow-wrap: anywhere; }
.page-hero__lede { margin-top: 16px; max-width: 60ch; font-size: clamp(15px, 1.4vw, 17px); line-height: 1.6; color: rgba(255,255,255,.75); }
.page-search { position: relative; display: flex; gap: 8px; max-width: 560px; margin-top: 28px; }
.page-search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: #9a948c; pointer-events: none; }
.page-search input { flex: 1; min-width: 0; height: 50px; padding: 0 16px 0 46px; border: 1px solid rgba(255,255,255,.18); border-radius: 6px; background: rgba(255,255,255,.96);
  font: 500 15px var(--title); color: #111; outline: none; transition: box-shadow .2s; }
.page-search input:focus { box-shadow: 0 0 0 3px rgba(238,177,42,.55); }
.page-search .btn { height: 50px; padding: 0 24px; border-radius: 6px; }

/* ---------- category chips ---------- */
.chips { position: relative; display: flex; gap: 8px; overflow-x: auto; padding: 22px 2px 8px; margin-bottom: 30px; scrollbar-width: none; scroll-behavior: smooth;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border: 1px solid #e4e4e4; border-radius: 999px; background: #fff;
  font: 600 13px var(--title); color: #222; white-space: nowrap; transition: border-color .2s, background .2s, color .2s, box-shadow .2s; }
.chip span { font-size: 11px; font-weight: 600; color: #8a8a8a; transition: color .2s; }
.chip:hover { border-color: var(--red); color: var(--red); }
.chip.is-active { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 10px 20px -12px rgba(215,38,30,.9); }
.chip.is-active span { color: rgba(255,255,255,.8); }
.chip--sm { height: 30px; padding: 0 12px; font-size: 12px; }

/* ---------- featured story ---------- */
.feature { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 36px); align-items: center; margin-bottom: 52px; padding-bottom: 44px; border-bottom: 1px solid #ececec; }
.feature__media { border-radius: 10px; }
.feature__media .media { aspect-ratio: 4 / 3; }
.feature__media img, .card__media img { transition: transform .7s var(--ease); }
.feature:hover .feature__media img, .card:hover .card__media img { transform: scale(1.04); }
.feature__kicker, .card__kicker { font-family: var(--title); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.feature__title { margin: 12px 0 14px; font-family: var(--serif); font-weight: 800; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.12; letter-spacing: -.01em; color: #111; }
.feature__title a { background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 3px no-repeat; transition: background-size .5s var(--ease); }
.feature__title a:hover { background-size: 100% 3px; }
.feature__excerpt { margin-bottom: 16px; font-size: 15.5px; line-height: 1.7; color: #4a4a4a; }
.feature__more { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; padding: 12px 20px; border-radius: 6px; background: var(--ink); color: #fff;
  font: 700 13px var(--title); letter-spacing: .04em; text-transform: uppercase; transition: background .2s, gap .2s; }
.feature__more:hover { background: var(--red); gap: 12px; }

/* ---------- archive bar + grid ---------- */
.blog-bar { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 28px; border-bottom: 2px solid var(--ink); --block: var(--ink); }
.blog-bar[hidden] { display: none; }
.blog-bar__count { padding-bottom: 8px; font-size: 12.5px; color: var(--gray); }
.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; transition: opacity .25s; }
.blog-grid.is-switching { opacity: .4; }
.blog-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { display: flex; flex-direction: column; min-width: 0; }
.card__media { border-radius: 8px; }
.card__media .media { aspect-ratio: 3 / 2; }
.card__body { display: flex; flex-direction: column; gap: 8px; padding-top: 16px; }
.card__title { font-family: var(--title); font-size: 18px; font-weight: 600; line-height: 1.32; color: #111; }
.card__title a { transition: color .2s; }
.card__title a:hover { color: var(--red); }
.card__excerpt { font-size: 14px; line-height: 1.6; color: #5a5a5a; }
.empty-state { grid-column: 1 / -1; padding: 48px 24px; border: 1px dashed #ddd; border-radius: 10px; text-align: center; color: var(--gray); }
.empty-state__title { margin-bottom: 6px; font-family: var(--serif); font-size: 26px; font-weight: 800; color: #111; }
.empty-state a { color: var(--red); font-weight: 600; text-decoration: underline; }
.page--blog .pagination { padding-top: 26px; border-top: 1px solid #ececec; }

/* =====================================================================
   Single story
   ===================================================================== */
.read-progress { position: fixed; top: 0; left: 0; right: 0; z-index: 200; height: 3px; pointer-events: none; }
.read-progress span { display: block; height: 100%; transform: scaleX(0); transform-origin: 0 50%; background: linear-gradient(90deg, var(--red), var(--gold)); }

.article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 26px; font-family: var(--title); font-size: 13px; color: rgba(255,255,255,.75); }
.article__meta a { color: var(--gold-soft); text-decoration: underline; }
.article__author { display: inline-flex; align-items: center; gap: 12px; }
.article__author img { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--gold); background: #fff; object-fit: cover; }
.article__author small { display: block; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.article__author strong { font-size: 14px; font-weight: 700; color: #fff; }
.article__facts { display: inline-flex; align-items: center; gap: 12px; }
.article__facts span { display: inline-flex; align-items: center; gap: 6px; }
.article__dot { width: 4px; height: 4px; border-radius: 50%; background: var(--red); }


/* ---------- split banner: solid panel (left) + featured image (right) ---------- */
.article__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin-bottom: 56px; background: var(--ink); color: #fff; }
.article__head--solo { grid-template-columns: minmax(0, 1fr); min-height: 0; }
.article__panel { position: relative; display: flex; align-items: center; overflow: hidden;
  background: radial-gradient(520px 320px at 0% 100%, rgba(215,38,30,.35), transparent 70%), var(--ink); }
.article__panel::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--red) 0 60%, var(--gold) 60% 100%); }
/* left edge lines up with the page content (.wrap) */
.article__panel-inner { width: 100%; padding: clamp(28px, 3vw, 48px) clamp(28px, 4vw, 64px) clamp(32px, 3.2vw, 52px)
  max(var(--gutter), calc(100% - var(--wrap) / 2 + var(--gutter))); } /* 100% = panel = half the page width */
.article__head--solo .article__panel-inner { padding-left: max(var(--gutter), calc(50% - var(--wrap) / 2 + var(--gutter))); padding-right: max(var(--gutter), calc(50% - var(--wrap) / 2 + var(--gutter))); }
.back-btn { display: inline-flex; align-items: center; gap: 12px; height: 48px; padding: 0 22px 0 18px; border: 1px solid rgba(255,255,255,.22); border-radius: 8px;
  font: 700 16px var(--title); color: #fff; transition: border-color .2s, background .2s, gap .2s; }
.back-btn:hover { border-color: var(--gold); background: rgba(255,255,255,.06); gap: 16px; }
.back-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.article__date { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: clamp(26px, 3vw, 44px); font: 500 15px var(--title); color: rgba(255,255,255,.88); }
.article__date a { color: var(--gold-soft); font-weight: 600; transition: color .2s; }
.article__date a:hover { color: #fff; }
.article__series { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.article__title { margin-top: 20px; padding: 4px 0 4px clamp(24px, 2.8vw, 42px); border-left: 2px solid rgba(255,255,255,.75);
  font-family: var(--serif); font-weight: 500; font-size: clamp(28px, 2.7vw, 44px); line-height: 1.2; letter-spacing: .01em; overflow-wrap: anywhere; }
.article__head .article__meta { margin-top: 24px; }
.article__media { position: relative; margin: 0; overflow: hidden; background: #1b1917; }
/* blurred, darkened copy of the photo fills the space around the uncropped image */
.article__media::before { content: ""; position: absolute; inset: -40px; background: var(--hero-bg) center / cover no-repeat; filter: blur(30px) brightness(.55) saturate(1.1); transform: scale(1.08); }
.article__media .media { position: absolute; inset: 0; z-index: 1; aspect-ratio: auto; height: 100%; background: transparent; }
.article__media .media img { height: 100%; object-fit: contain; object-position: center; filter: drop-shadow(0 18px 40px rgba(0,0,0,.45)); }
.article__media .skel__img { position: absolute; inset: 0; aspect-ratio: auto; }
.article__media::after { content: ""; display: block; padding-top: min(calc(var(--hero-hw, .625) * 100%), 640px); }

@media (max-width: 899px) {
  .article__head { grid-template-columns: minmax(0, 1fr); min-height: 0; margin-bottom: 40px; }
  .article__media { order: -1; }
  .article__media::after { padding-top: min(calc(var(--hero-hw, .625) * 100%), 120vw); }
  .article__panel-inner { padding: 32px var(--gutter) 40px; }
  .article__date { margin-top: 34px; }
  .back-btn { height: 46px; font-size: 14px; }
}

.article__grid { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 28px; }
.share { display: flex; align-items: center; gap: 8px; }
.share--rail { position: sticky; top: 110px; align-self: start; flex-direction: column; }
.share__label { margin-bottom: 4px; font: 700 10px var(--title); letter-spacing: .14em; text-transform: uppercase; color: var(--gray); writing-mode: vertical-rl; transform: rotate(180deg); }
.share__btn { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid #e6e6e6; border-radius: 50%; background: #fff; color: #222; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s; }
.share__btn:hover { transform: translateY(-2px); color: #fff; border-color: transparent; }
.share__btn--facebook:hover { background: #1877f2; }
.share__btn--x:hover { background: #111; }
.share__btn--whatsapp:hover { background: #25d366; }
.share__btn--mail:hover, .share__btn--link:hover { background: var(--red); }
.share__btn.is-copied { background: var(--gold); border-color: var(--gold); color: #111; }

/* article typography */
.prose { max-width: 720px; font-size: 18px; line-height: 1.8; color: #222; }
.prose > * + * { margin-top: 1.25em; }
.prose__lead { font-family: var(--serif); font-size: clamp(20px, 2vw, 24px); line-height: 1.6; color: #1a1a1a; }
.prose > p:first-child::first-letter { float: left; margin: 6px 12px 0 0; font-family: var(--serif); font-weight: 900; font-size: 4.2em; line-height: .8; color: var(--red); }
.prose h2, .prose h3 { margin-top: 1.8em; font-family: var(--serif); font-weight: 800; line-height: 1.2; color: #111; }
.prose h2 { font-size: 30px; } .prose h3 { font-size: 24px; }
.prose a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.prose img { max-width: 100%; height: auto; border-radius: 8px; }
.prose blockquote { padding: 6px 0 6px 24px; border-left: 4px solid var(--gold); font-family: var(--serif); font-size: 1.2em; font-style: italic; color: #333; }
.prose ul, .prose ol { padding-left: 1.4em; } .prose ul { list-style: disc; } .prose ol { list-style: decimal; }
.prose figure figcaption, .prose .wp-caption-text { margin-top: 8px; font-size: 13px; color: var(--gray); }
.embed { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #000; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.article__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; max-width: 720px; margin-top: 40px; padding-top: 24px; border-top: 1px solid #ececec; }
.article__tags:empty { display: none; }
.article__tags-label { margin-right: 4px; font: 700 11px var(--title); letter-spacing: .14em; text-transform: uppercase; color: var(--gray); }
.share--bar { flex-wrap: wrap; justify-content: space-between; gap: 14px 20px; max-width: 720px; margin-top: 28px; padding: 22px 24px; border-radius: 12px;
  background: linear-gradient(135deg, #fff7f6, #fdf1dc); border: 1px solid #f3e1d6; }
.share--bar p { font-family: var(--serif); font-size: 19px; font-weight: 700; color: #111; }
.share__row { display: flex; gap: 8px; }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 720px; margin-top: 36px; }
.post-nav__item { display: flex; align-items: center; gap: 14px; padding: 14px; border: 1px solid #ececec; border-radius: 10px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.post-nav__item:hover { border-color: var(--red); box-shadow: 0 16px 30px -22px rgba(0,0,0,.35); }
.post-nav__item--next { flex-direction: row-reverse; text-align: right; }
.post-nav__thumb { flex: none; width: 72px; height: 72px; border-radius: 8px; overflow: hidden; }
.post-nav__thumb .media { aspect-ratio: 1; height: 100%; }
.post-nav__item small { display: block; margin-bottom: 4px; font: 700 10.5px var(--title); letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.post-nav__item strong { font-family: var(--title); font-size: 14px; font-weight: 600; line-height: 1.35; color: #111; }

.related { margin-top: 64px; padding-bottom: 8px; --block: var(--ink); }

/* ---------- responsive ---------- */
@media (max-width: 1279px) { .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1079px) { .blog-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) {
  .feature { grid-template-columns: minmax(0, 1fr); }
  .article__grid { grid-template-columns: minmax(0, 1fr); }
  .share--rail { display: none; }
  .post-nav { grid-template-columns: minmax(0, 1fr); }
  .prose { font-size: 17px; }
}
@media (max-width: 560px) {
  .blog-grid, .blog-grid--3 { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .page-search { flex-wrap: wrap; }
  .page-search .btn { width: 100%; }
  .share--bar { padding: 18px; }
}
@media (max-width: 560px) { .page-search svg { top: 25px; } }
@media (min-width: 768px) { .chips { flex-wrap: wrap; overflow: visible; -webkit-mask-image: none; mask-image: none; } }
.article__title--long { font-size: clamp(26px, 2.25vw, 37px); }
.article__title--xlong { font-size: clamp(24px, 1.95vw, 32px); }
@media (max-width: 899px) { .article__title--long, .article__title--xlong { font-size: clamp(26px, 7vw, 34px); } }
