/* ═══════════════════════════════════════════════════
   EURO POLO · journal.css
   Shared styles for the Journal hub (blog.html) and every article page.
   Both are generated by scripts/build-journal.js, so this file is the one
   place their look is defined — nothing is copy-pasted per article.

   Loaded after style.css and products.css; relies on the design tokens
   declared in style.css (:root) and on .breadcrumb from products.css.
═══════════════════════════════════════════════════ */

/* ═══════════ ARTICLE PAGE ═══════════
   Long-form typography. Mirrors the .policy-section scale used on the
   policy pages (0.9rem / 1.85 line-height / var(--mid)) at a wider measure. */

.article-page { padding-top: var(--nav-h); background: var(--white); }

.article-head { background: var(--prestige); padding: 4.5rem 0 3.5rem; text-align: center; }
.article-head__inner { max-width: 760px; margin: 0 auto; padding: 0 1.5rem; }
.article-head__eyebrow { font-family: var(--font-sans); font-size: .65rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.article-head__title { font-family: var(--font-serif); font-size: clamp(1.9rem,4.4vw,2.9rem); font-weight: 400; color: var(--white); line-height: 1.18; }

/* When the hero artwork already carries the title, the <h1> would render it
   twice. Hide it visually but keep it in the accessibility tree and for
   crawlers — clipped, not display:none, which would drop it from both.
   This is the standard clip-rect + clip-path pair. Set per article with
   `titleInHero: true`. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.article-head__sub { font-family: var(--font-serif); font-style: italic; font-size: clamp(1rem,2vw,1.2rem); color: rgba(255,255,255,.62); margin-top: 1rem; line-height: 1.6; }
.article-meta { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .6rem; margin-top: 1.6rem; font-family: var(--font-sans); font-size: .68rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.45); }
.article-meta__dot { color: var(--gold); }

.article-hero-img { max-width: 760px; margin: -2rem auto 0; padding: 0 1.5rem; position: relative; z-index: 2; }
.article-hero-img img { width: 100%; height: auto; display: block; border-radius: 6px; box-shadow: 0 18px 50px rgba(0,0,0,.13); background: var(--white); }
.article-hero-img figcaption { font-size: .7rem; color: var(--muted); text-align: center; margin-top: .8rem; letter-spacing: .04em; }

.article-body { max-width: 760px; margin: 0 auto; padding: 3rem 1.5rem 4rem; }
.article-body h2 { font-family: var(--font-serif); font-size: clamp(1.35rem,2.6vw,1.7rem); font-weight: 400; color: var(--charcoal); margin: 2.75rem 0 .9rem; line-height: 1.3; }
.article-body h2:first-child { margin-top: 0; }
.article-body h3 { font-family: var(--font-serif); font-size: clamp(1.12rem,2vw,1.32rem); font-weight: 500; color: var(--charcoal); margin: 2rem 0 .7rem; line-height: 1.35; }
.article-body h4 { font-family: var(--font-sans); font-size: .82rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--charcoal); margin: 1.8rem 0 .6rem; }
.article-body p { font-size: .95rem; color: var(--mid); line-height: 1.9; margin-bottom: 1.1rem; }
.article-body strong { color: var(--charcoal); font-weight: 600; }
.article-body em { font-style: italic; }
/* Inline prose links only. Scoped to p/li so it cannot reach the CTA
   button, the share icons or the back link — a gold label on a gold
   button renders invisible. */
.article-body p a, .article-body li a { color: var(--gold); border-bottom: 1px solid var(--gold-pale); transition: border-color .2s ease; }
.article-body p a:hover, .article-body li a:hover { border-bottom-color: var(--gold); }
.article-body ul, .article-body ol { margin: .6rem 0 1.4rem 1.35rem; }
.article-body li { font-size: .95rem; color: var(--mid); line-height: 1.9; margin-bottom: .6rem; }
.article-body li::marker { color: var(--gold); }

.article-lead { font-size: 1.05rem !important; color: var(--charcoal) !important; line-height: 1.85 !important; }

/* Pull-out boxes for "rule of thumb" asides — written as `> …` in the source. */
.article-note { background: #F7F5F0; border-left: 2px solid var(--gold); border-radius: 0 6px 6px 0; padding: 1.15rem 1.4rem; margin: 1.6rem 0 1.8rem; }
.article-note p { margin-bottom: 0; font-size: .92rem; }
.article-note p + p { margin-top: .7rem; }

.article-divider { border: none; border-top: 1px solid var(--border); margin: 3rem 0 0; }

/* Closing CTA */
.article-cta { background: var(--cream); border: 1px solid var(--border); border-radius: 8px; padding: 2.25rem 1.75rem; text-align: center; margin-top: 3rem; }
.article-cta h3 { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 400; color: var(--charcoal); margin-bottom: .7rem; }
.article-cta p { max-width: 460px; margin: 0 auto 1.6rem; font-size: .92rem; }

/* Share + back nav */
.article-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.25rem; margin-top: 3rem; padding-top: 1.75rem; border-top: 1px solid var(--border); }
.article-back { font-family: var(--font-sans); font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--charcoal); transition: color .2s ease; }
.article-back:hover { color: var(--gold); }
.article-share { display: flex; align-items: center; gap: .7rem; }
.article-share__label { font-family: var(--font-sans); font-size: .68rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.article-share a { width: 34px; height: 34px; border: 1px solid var(--border); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--mid); transition: all .2s ease; }
.article-share a:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-pale); }
.article-share svg { width: 15px; height: 15px; fill: currentColor; }

/* ═══════════ SHOP THIS GUIDE ═══════════
   Product cards inside an article. Name, price and image are baked in at
   build time from data/product-data.json — the same catalogue the storefront
   renders from — and each card links to the product page, which is where
   variants, live stock and Add to Cart live. */

.shop-guide { margin: 2.75rem 0 2.5rem; padding: 1.9rem 1.6rem 2rem; background: var(--cream); border: 1px solid var(--border); border-radius: 8px; }
.shop-guide__eyebrow { font-family: var(--font-sans); font-size: .62rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: .55rem; }
.shop-guide__title { font-family: var(--font-serif); font-size: clamp(1.3rem,2.4vw,1.6rem); font-weight: 400; color: var(--charcoal); margin: 0 0 .5rem; line-height: 1.3; }
.shop-guide__intro { font-size: .9rem; color: var(--mid); line-height: 1.8; margin: 0 0 1.5rem; max-width: 56ch; }
.shop-guide__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1.1rem; }

.shop-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--border); border-radius: 6px; overflow: hidden; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.shop-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0,0,0,.08); border-color: var(--gold-pale); }
.shop-card__media { display: block; aspect-ratio: 1 / 1; background: #f7f6f4; overflow: hidden; }
.shop-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.shop-card:hover .shop-card__media img { transform: scale(1.04); }
.shop-card__body { display: flex; flex-direction: column; flex: 1; padding: .9rem 1rem 1.05rem; }
.shop-card__kicker { font-family: var(--font-sans); font-size: .58rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: .4rem; }
.shop-card__name { font-family: var(--font-serif); font-size: 1rem; font-weight: 400; color: var(--charcoal); line-height: 1.35; margin: 0 0 .55rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.shop-card:hover .shop-card__name { color: var(--gold); }
.shop-card__price { font-family: var(--font-sans); font-size: .82rem; font-weight: 600; color: var(--charcoal); margin-top: auto; }
.shop-card__cta { font-family: var(--font-sans); font-size: .62rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: .55rem; transition: color .2s ease; }
.shop-card:hover .shop-card__cta { color: var(--gold); }

/* ═══════════ ARTICLE FAQ ═══════════ */

.article-faq { margin: 2.75rem 0 0; }
.article-faq__title { font-family: var(--font-serif); font-size: clamp(1.35rem,2.6vw,1.7rem); font-weight: 400; color: var(--charcoal); margin: 0 0 1.2rem; line-height: 1.3; }
.faq-item { border-top: 1px solid var(--border); padding: 1.15rem 0; }
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-item__q { font-family: var(--font-sans); font-size: .92rem; font-weight: 600; color: var(--charcoal); line-height: 1.55; margin: 0 0 .5rem; }
.faq-item__a p { margin-bottom: .7rem; }
.faq-item__a p:last-child { margin-bottom: 0; }

/* ═══════════ RELATED ARTICLES ═══════════ */

.article-related { background: var(--cream); border-top: 1px solid var(--border); padding: clamp(2.75rem, 5vw, 4rem) clamp(1.25rem, 4vw, 3rem); }
.article-related__inner { max-width: 1080px; margin: 0 auto; }
.article-related__head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.75rem; }
.article-related__title { font-family: var(--font-serif); font-size: clamp(1.4rem,2.8vw,1.85rem); font-weight: 400; color: var(--charcoal); margin: 0; }
.article-related__all { font-family: var(--font-sans); font-size: .68rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--charcoal); border-bottom: 1px solid var(--gold); padding-bottom: 2px; transition: color .2s ease; }
.article-related__all:hover { color: var(--gold); }

/* ═══════════ JOURNAL HUB ═══════════
   .journal-card is the repeatable unit, shared by the hub and by the
   related-articles block. */

.journal-list {
  max-width: 1080px;
  margin: 0 auto;
  padding: var(--section-py) clamp(1.25rem, 4vw, 3rem);
}
.journal-cats {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.journal-cats__chip {
  font-family: var(--font-sans);
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--mid);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: .55rem 1.05rem;
  transition: all .2s ease;
}
.journal-cats__chip:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-pale); }
.journal-cats__chip--count { color: var(--muted); font-weight: 500; }

.journal-section { margin-bottom: clamp(2.5rem, 5vw, 4rem); scroll-margin-top: calc(var(--nav-h) + 1rem); }
.journal-section:last-child { margin-bottom: 0; }
.journal-section__head { margin-bottom: 1.5rem; }
.journal-section__title {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.8vw, 1.85rem);
  font-weight: 400;
  color: var(--charcoal);
  margin: 0;
  padding-bottom: .7rem;
  border-bottom: 1px solid var(--border);
}
.journal-section__blurb { font-size: .88rem; color: var(--mid); line-height: 1.8; margin: .85rem 0 0; max-width: 62ch; }

.journal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: clamp(1.75rem, 3vw, 2.75rem);
}
.journal-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.journal-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,.09);
  border-color: var(--gold-pale);
}
.journal-card__media {
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--cream);
}
.journal-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.journal-card:hover .journal-card__media img { transform: scale(1.04); }
.journal-card__body { padding: 1.5rem 1.6rem 1.75rem; display: flex; flex-direction: column; flex: 1; }
.journal-card__meta {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-sans);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .75rem;
}
.journal-card__meta span.sep { color: var(--gold); }
.journal-card__tag { color: var(--gold); }
.journal-card__title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--charcoal);
  line-height: 1.35;
  margin-bottom: .7rem;
}
.journal-card:hover .journal-card__title { color: var(--gold); }
.journal-card__excerpt {
  font-size: .88rem;
  color: var(--mid);
  line-height: 1.8;
  margin-bottom: 1.35rem;
  flex: 1;
}
.journal-card__more {
  font-family: var(--font-sans);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--charcoal);
  align-self: flex-start;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
  transition: color .2s ease;
}
.journal-card:hover .journal-card__more { color: var(--gold); }

@media (max-width: 600px) {
  .article-head { padding: 3.25rem 0 2.75rem; }
  .article-hero-img { margin-top: -1.25rem; }
  .article-body { padding: 2.25rem 1.25rem 3rem; }
  .article-foot { flex-direction: column; align-items: flex-start; }
  .shop-guide { padding: 1.5rem 1.15rem 1.6rem; }
  .shop-guide__grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .85rem; }
  .journal-grid { grid-template-columns: 1fr; }
}
