/**
 * UFOREA Journal styles — archive grid, single post, end-of-post CTA,
 * and the wonderland 404 page (winding-path hero + "where to go" grid + search).
 *
 * Ported from /design-v2/journal/index.html, /design-v2/journal/{post}/index.html,
 * and /design-v2/404.html. Depends on tokens.css + components.css being loaded
 * first (the shared design tokens + utility primitives live there).
 *
 * @package UforeaChild
 */

/* ─────────── Crumb (also used outside journal but local copy is harmless) ─────────── */
.crumb { padding: 18px 0 0; font-size: 13px; color: var(--mute); }
.crumb a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--uforea-yellow); text-underline-offset: 3px; text-decoration-thickness: 2px; }
.crumb a:hover { color: var(--gold-text); text-decoration-color: var(--gold-text); }
.crumb .sep { font-family: 'Italianno', cursive; color: var(--uforea-yellow); font-size: 22px; line-height: 1; vertical-align: middle; margin: 0 6px; display: inline-block; transform: translateY(-2px); }
.crumb .here { color: var(--ink-strong); font-weight: 600; }

/* ─────────── Journal archive hero ─────────── */
.j-hero {
  position: relative;
  padding: var(--hero-top) 0 var(--hero-bottom);
  background: var(--paper);
  overflow: hidden;
}
.j-hero::before {
  content: ""; position: absolute;
  width: 60vw; height: 60vw; max-width: 700px; max-height: 700px;
  top: -100px; right: -100px;
  background: radial-gradient(closest-side, var(--yellow-soft), transparent 70%);
  z-index: 0; opacity: .6;
}
.j-hero::after {
  content: ""; position: absolute;
  bottom: -80px; left: -80px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--mint), transparent 70%);
  opacity: .55; z-index: 0;
}
.j-hero .container { position: relative; z-index: 2; max-width: 820px; text-align: center; }
.j-hero h1 { margin-top: 6px; }
.j-hero .lede { margin: 18px auto 0; }

/* ─────────── Filter chips (visual only) ─────────── */
.j-filters {
  display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: center;
  margin-top: 32px;
  position: relative; z-index: 2;
}
.j-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--uforea-yellow);
  font-size: 13px; font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: background .2s, color .2s;
}
.j-chip.is-active {
  background: var(--uforea-yellow);
  color: var(--ink-strong);
}
.j-chip:hover { background: var(--yellow-soft); }
.j-chip.is-active:hover { background: var(--uforea-yellow); }

/* ─────────── Archive grid ─────────── */
.j-grid-section {
  padding: var(--section-y) 0;
  background: var(--cream);
}
.j-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 1000px) { .j-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .j-grid { grid-template-columns: 1fr; } }

.j-card {
  background: var(--paper);
  border: var(--card-frame);
  border-radius: var(--r-card);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.j-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -22px rgba(63,63,63,.20); }
.j-card .pic {
  aspect-ratio: 16/10;
  border-radius: 10px;
  overflow: hidden;
  border: 1.5px solid var(--uforea-yellow);
  background: var(--cream);
  position: relative;
}
.j-card .pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.j-card .meta { padding: 4px 4px 10px; display: flex; flex-direction: column; flex-grow: 1; }
.j-card .top-line {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.j-card .pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 12px;
  font-size: 10.5px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  border-radius: 4px;
  position: relative;
}
.j-card .pill::before {
  content: ""; display: inline-block; width: 14px; height: 1px;
  background: var(--uforea-yellow);
}
.j-card .date {
  font-size: 12px;
  color: var(--mute);
}
.j-card h3 { margin-bottom: 10px; }
.j-card .excerpt {
  color: var(--mute);
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0 0 16px;
  flex-grow: 1;
}
.j-card .read-more {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--ink-strong); font-weight: 600; font-size: 13px;
  margin-top: auto;
}
.j-card .read-more svg { transition: transform .2s ease; }
.j-card:hover .read-more svg { transform: translateX(4px); }

/* ─────────── Single post hero ─────────── */
.post-hero { position: relative; padding: var(--hero-top) 0 var(--hero-bottom); background: var(--paper); overflow: hidden; }
.post-hero::before { content: ""; position: absolute; width: 60vw; height: 60vw; max-width: 700px; max-height: 700px; top: -120px; right: -120px; background: radial-gradient(closest-side, var(--mint), transparent 70%); z-index: 0; opacity: .55; }
.post-hero .container { position: relative; z-index: 2; max-width: 820px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin-bottom: 14px; font-size: 13px; color: var(--mute); }
.post-meta .pill { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; border-radius: 4px; background: var(--mint); color: var(--generous-text); position: relative; }
.post-meta .pill::before { content: ""; display: inline-block; width: 14px; height: 1px; background: var(--uforea-yellow); }
.post-meta .byline { font-weight: 600; color: var(--ink); }
.post-hero h1 { margin-top: 6px; }
/* Article title: was inheriting the 84px/1.02 homepage marquee, whose tight leading made long
   wrapped post titles overlap. Article-appropriate size + looser line-height. */
.post-hero .h1 { font-size: clamp(34px, 4.8vw, 56px); line-height: 1.14; }
.post-hero .lede { margin-top: 18px; }

.feature-photo { margin: 32px 0 0; border-radius: var(--r-photo); outline: 1.5px solid var(--uforea-yellow); outline-offset: 8px; box-shadow: 0 24px 60px rgba(63,63,63,.12); overflow: hidden; aspect-ratio: 16/9; position: relative; }
.feature-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ─────────── Article body typography ─────────── */
.article-body { background: var(--paper); padding: 50px 0 30px; }
.article-body .container { max-width: 720px; }
.article-body p, .article-body ul, .article-body ol { font-size: 17px; line-height: 1.75; color: var(--ink); margin: 0 0 22px; }
.article-body ul, .article-body ol { padding-left: 22px; }
.article-body li { margin-bottom: 10px; }
.article-body p strong { color: var(--ink-strong); font-weight: 700; }
.article-body h2 { font-family: 'Playfair Display', serif; font-weight: 700; font-size: clamp(26px, 3.2vw, 34px); line-height: 1.12; letter-spacing: -0.015em; color: var(--ink-strong); margin: 50px 0 18px; }
.article-body h3 { font-family: 'Playfair Display', serif; font-weight: 700; font-size: clamp(20px, 2.2vw, 24px); line-height: 1.2; color: var(--ink-strong); margin: 34px 0 12px; }
.article-body h2 .h-num { font-family: 'Italianno', cursive; color: var(--uforea-yellow); font-size: 1.1em; line-height: 1; margin-right: 8px; vertical-align: -.05em; font-weight: 400; }
.article-body a.inline-link { color: var(--ink-strong); text-decoration: underline; text-decoration-color: var(--uforea-yellow); text-underline-offset: 3px; text-decoration-thickness: 2px; font-weight: 500; }
.article-body a.inline-link:hover { text-decoration-color: var(--gold-text); }

/* Per-post in-article components: venue-pick (rainy-day post), theme-block (birthday post), zone-pick + age-band (zones-by-age) */
.venue-pick { background: var(--cream); border: var(--card-frame); border-radius: var(--r-card); padding: 24px 26px; margin: 24px 0; }
.venue-pick.featured { background: linear-gradient(135deg, var(--yellow-soft) 0%, var(--cream) 100%); border-width: 1.5px; box-shadow: 0 12px 30px rgba(255, 186, 1, .14); }
.venue-pick .num { font-family: 'Italianno', cursive; color: var(--uforea-yellow); font-size: 44px; line-height: 1; display: inline-block; margin-bottom: 0; }
.venue-pick.featured .num { color: var(--gold-text); }
.venue-pick h3 { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 22px; line-height: 1.18; color: var(--ink-strong); margin: 4px 0 6px; }
.venue-pick .where { font-size: 13px; color: var(--mute); margin: 0 0 12px; letter-spacing: .04em; }
.venue-pick p { font-size: 16px; line-height: 1.7; margin: 0 0 12px; color: var(--ink); }
.venue-pick p:last-child { margin-bottom: 0; }
.venue-pick .top-sticker { display: inline-block; background: var(--passion); color: var(--paper); font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; margin-bottom: 8px; }

.callout { background: var(--yellow-soft); border-left: 4px solid var(--uforea-yellow); padding: 18px 22px; border-radius: 0 12px 12px 0; margin: 28px 0; }
.callout p { margin: 0; font-size: 15.5px; line-height: 1.65; }
.callout h3 { font-family: 'Playfair Display', serif; font-size: 18px; margin: 0 0 8px; color: var(--ink-strong); }
.callout ul { margin: 0; padding-left: 20px; }
.callout li { margin-bottom: 6px; font-size: 15px; line-height: 1.6; }

/* Birthday-themes post: theme-block side-by-side cards */
.theme-block { margin: 40px 0 12px; padding: 0; }
.theme-block .theme-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px; align-items: center; }
@media (max-width: 800px) { .theme-block .theme-grid { grid-template-columns: 1fr; gap: 24px; } }
.theme-photo { position: relative; border-radius: var(--r-photo); outline: 1.5px solid var(--uforea-yellow); outline-offset: 6px; overflow: hidden; aspect-ratio: 4/3; box-shadow: 0 16px 40px rgba(63,63,63,.10); }
.theme-photo img { width: 100%; height: 100%; object-fit: cover; }
.theme-sticker { position: absolute; top: 14px; right: -8px; padding: 6px 12px; border-radius: 4px; font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; transform: rotate(3deg); box-shadow: 0 6px 14px rgba(63,63,63,.10); z-index: 4; }
.theme-meta h2 { margin: 0 0 8px !important; }
.theme-meta .theme-tag { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; border-radius: 4px; background: var(--cream); color: var(--ink-strong); position: relative; margin-bottom: 10px; }
.theme-meta .theme-tag::before { content: ""; display: inline-block; width: 14px; height: 1px; background: var(--uforea-yellow); }
.theme-meta .price-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 10px 0 14px; font-family: 'Playfair Display', serif; }
.theme-meta .price-row .from { font-family: 'Poppins', sans-serif; font-size: 13px; color: var(--mute); letter-spacing: .04em; text-transform: uppercase; font-weight: 500; }
.theme-meta .price-row .price { font-size: 28px; color: var(--ink-strong); font-weight: 700; line-height: 1; }
.theme-meta .price-row .range { font-size: 14px; color: var(--mute); font-family: 'Poppins', sans-serif; }
.theme-meta p { font-size: 16.5px; line-height: 1.7; color: var(--ink); margin: 0 0 14px; }
.theme-meta .includes-label { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); margin: 4px 0 6px; font-weight: 600; }
.theme-meta ul { padding-left: 18px; margin: 0 0 16px; }
.theme-meta ul li { font-size: 15px; line-height: 1.6; margin-bottom: 4px; color: var(--ink); }
.theme-meta .ideal { font-size: 14px; color: var(--mute); font-style: italic; }

.compare-callout { background: var(--cream); border: var(--card-frame); border-radius: var(--r-card); padding: 28px; margin: 36px 0 12px; }
.compare-callout h3 { font-family: 'Playfair Display', serif; font-size: 22px; margin: 0 0 12px; color: var(--ink-strong); }
.compare-callout p { font-size: 16px; line-height: 1.7; margin: 0 0 10px; color: var(--ink); }
.compare-callout p:last-child { margin-bottom: 0; }

/* Zones-by-age post: age-band hero + zone-pick row */
.age-band {
  background: var(--cream);
  border: 1px solid var(--uforea-yellow);
  border-radius: 16px;
  padding: 32px 28px;
  margin: 36px 0 26px;
  position: relative;
}
.age-band .band-eyebrow { font-family: 'Italianno', cursive; color: var(--gold-text); font-size: clamp(28px, 3.4vw, 42px); line-height: 1; display: inline-block; margin-bottom: 4px; }
.age-band h2 { margin-top: 0 !important; margin-bottom: 8px !important; }
.age-band .band-summary { color: var(--mute); font-size: 15px; margin: 0 0 4px; font-style: italic; }

.zone-pick {
  background: var(--paper);
  border: 1px solid rgba(255, 186, 1, 0.55);
  border-radius: 12px;
  padding: 20px 22px;
  margin: 18px 0;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  align-items: flex-start;
}
.zone-pick .badge { width: 56px; height: 56px; border-radius: 999px; background: var(--yellow-soft); display: grid; place-items: center; font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 700; color: var(--ink-strong); }
.zone-pick h3 { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 19px; line-height: 1.2; color: var(--ink-strong); margin: 0 0 6px; }
.zone-pick p { font-size: 15.5px; line-height: 1.65; margin: 0; color: var(--ink); }
.zone-pick p strong { color: var(--ink-strong); }

/* ─────────── End-of-post CTA module ─────────── */
.cta-module { padding: var(--section-y) 0; background: var(--mint); } /* align with site-wide cta-module (was 80) */
.cta-module.cta-blush { background: var(--blush); }
.cta-card { text-align: center; max-width: 680px; margin: 0 auto; padding: 36px 24px; }
.cta-card h2 { margin-bottom: 14px; }
.cta-card p { color: var(--ink); font-size: 16px; line-height: 1.65; margin: 0 0 28px; }
.cta-card .cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ─────────── Social-follow band (shared between archive + posts) ───────────
   The fake newsletter form was replaced by the social-follow panel (2026-07);
   .social-row / .social-ic / .social-ring / .social-label / .social-handle
   come from components.css (site-wide). This block keeps the yellow band. */
.newsletter { background: var(--uforea-yellow); padding: var(--section-y) 0; position: relative; overflow: hidden; }
.newsletter::before, .newsletter::after { content: ""; position: absolute; width: 220px; height: 220px; background: radial-gradient(closest-side, rgba(255,255,255,.4), transparent 70%); border-radius: 50%; }
.newsletter::before { top: -80px; left: -60px; }
.newsletter::after  { bottom: -100px; right: -80px; }
.newsletter .container { position: relative; z-index: 1; max-width: 720px; text-align: center; }
.newsletter .eyebrow-script { color: var(--ink-strong); }
.newsletter .eyebrow-script::after { background: var(--ink-strong); }
.newsletter h2 { color: var(--ink-strong); margin: 12px 0 28px; }

/* ─────────── 404 page (wonderland-themed not-found) ─────────── */
.lost-hero {
  position: relative;
  padding: var(--hero-top) 0 var(--hero-bottom);
  background: var(--paper);
  overflow: hidden;
  text-align: center;
}
.lost-hero::before {
  content: ""; position: absolute;
  width: 70vw; height: 70vw; max-width: 800px; max-height: 800px;
  top: -10%; left: 50%; transform: translateX(-50%);
  background: radial-gradient(closest-side, var(--yellow-soft), transparent 70%);
  z-index: 0; opacity: .7;
}
.lost-hero::after {
  content: ""; position: absolute;
  bottom: -160px; right: -120px;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--blush), transparent 70%);
  opacity: .55; z-index: 0;
}
.lost-hero .container { position: relative; z-index: 2; max-width: 760px; }

.lost-illustration {
  margin: 8px auto 28px;
  width: min(560px, 92%);
  position: relative;
}
.lost-illustration svg { width: 100%; height: auto; display: block; }
@keyframes path-dash { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: no-preference) {
  .lost-illustration .path-trail {
    stroke-dasharray: 8 8;
    stroke-dashoffset: 240;
    animation: path-dash 14s linear infinite;
  }
}

.lost-hero h1 { margin-top: 6px; }
.lost-hero .lede { margin: 18px auto 28px; }
.lost-hero .lede strong { color: var(--ink-strong); }
.lost-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.where {
  padding: var(--section-y) 0;
  background: var(--cream);
  position: relative;
}
.where .section-head { text-align: center; margin-bottom: 36px; }
.where h2 { margin-top: 6px; }

.where-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  max-width: 1100px;
  margin: 0 auto;
}
.where-card {
  background: var(--paper);
  border: var(--card-frame);
  border-radius: var(--r-card);
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform .2s ease, box-shadow .2s ease;
  position: relative;
}
.where-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(63,63,63,.10); }
.where-card .where-ring {
  width: 42px; height: 42px;
  border-radius: 999px;
  display: grid; place-items: center;
  background: var(--card-tint, var(--yellow-soft));
  margin-bottom: 4px;
}
.where-card h3 { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 19px; color: var(--ink-strong); margin: 0; }
.where-card p { color: var(--mute); font-size: 14.5px; line-height: 1.6; margin: 0; }
.where-card .step-in {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: auto; padding-top: 8px;
  font-size: 13px; font-weight: 600; color: var(--ink-strong);
}

.search-strip {
  padding: var(--section-y) 0;
  background: var(--paper);
  text-align: center;
}
.search-strip .container { max-width: 640px; }
.search-strip h2 { margin: 6px 0 12px; }
.search-strip p { color: var(--mute); font-size: 15px; margin: 0 0 22px; }
.search-form {
  display: flex; gap: 10px;
  max-width: 540px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}
.search-form input {
  flex: 1; min-width: 220px; min-height: 52px;
  padding: 0 22px;
  border: 1.5px solid var(--ink-strong);
  border-radius: 999px;
  background: var(--paper);
  font: inherit;
  color: var(--ink-strong);
}
.search-form input:focus { outline: 2px solid var(--uforea-yellow); outline-offset: 2px; }
.search-form input::placeholder { color: var(--mute); }
.search-form button {
  background: var(--ink-strong); color: var(--paper);
  padding: 0 28px; min-height: 52px;
  border-radius: 999px;
  font-weight: 600;
  border: 0;
}
.search-form button:hover { background: var(--ink-strong); }
.search-helper { margin-top: 14px; font-size: 12.5px; color: var(--mute); }
.search-helper a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--uforea-yellow); text-underline-offset: 3px; text-decoration-thickness: 2px; }

/* sparkles — same as zone.css / home; redefining here keeps journal/404 standalone if zone CSS isn't loaded */
.sparkle { position: absolute; pointer-events: none; }
@keyframes drift { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-10px) rotate(8deg); } }
@keyframes drift2 { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(8px) rotate(-6deg); } }
@keyframes twinkle { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
.float-a { animation: drift 7s ease-in-out infinite; }
.float-b { animation: drift2 9s ease-in-out infinite; }
.twinkle { animation: twinkle 4s ease-in-out infinite; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ════════════ Mobile rhythm (2026-07) ════════════
   Compress this file's 80–100px section bands to ~56px on small screens. */
@media (max-width: 720px) {
  .j-grid-section { padding: var(--section-y) 0; }
  .cta-module { padding: var(--section-y) 0; }
  .newsletter { padding: var(--section-y) 0; }
  .where { padding: var(--section-y) 0; }
  .search-strip { padding: var(--section-y) 0; }
}

/* 404 "where to go" cards: 5 cards balance instead of a 4+1 orphan row */
.error404 .where-grid { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
