/* ============================================================
   WINE GLASS — blog.css
   "The Journal" — an editorial index + reading page over the
   immersive wine backdrop. Built to scale: one featured entry
   now, a grid that grows as posts are added.
   ============================================================ */

.jr-main{ position: relative; z-index: 6; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter) 6rem; }

/* ---------- dreamscape backdrop (Field Notes: “traveled somewhere”) ---------- */
.dream{ position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(120% 78% at 50% 6%, rgba(255,228,240,0.18), transparent 46%),
    radial-gradient(150% 120% at 50% 122%, rgba(120,48,110,0.5), transparent 60%),
    linear-gradient(180deg, #41214a 0%, #2c1234 46%, #190a1c 100%); }
.dream-moon{ position: absolute; top: 5%; left: 50%; transform: translateX(-50%); width: 230px; height: 230px; border-radius: 50%;
  background: radial-gradient(circle at 50% 44%, #fff5f0 0%, #ffe2ee 34%, rgba(244,168,198,0.42) 60%, transparent 73%); opacity: 0.92; }
.dream-moon::after{ content: ""; position: absolute; inset: -70%; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,210,228,0.22), transparent 60%); }
.dream-fog{ position: absolute; left: -12%; right: -12%; height: 44%; filter: blur(var(--bl44)); opacity: 0.5; border-radius: 50%; }
.dream-fog.f1{ top: 26%; background: radial-gradient(60% 100% at 32% 50%, rgba(214,128,188,0.34), transparent 70%); animation: dream-drift 30s ease-in-out infinite; }
.dream-fog.f2{ top: 48%; background: radial-gradient(60% 100% at 68% 50%, rgba(176,128,224,0.3), transparent 70%); animation: dream-drift 38s ease-in-out infinite reverse; }
.dream-bloom{ position: absolute; bottom: -8%; width: 50%; height: 56%; filter: blur(var(--bl34)); opacity: 0.55; }
.dream-bloom.l{ left: -10%; background: radial-gradient(closest-side, rgba(236,130,190,0.5), transparent 72%); }
.dream-bloom.r{ right: -10%; background: radial-gradient(closest-side, rgba(186,128,228,0.46), transparent 72%); }
.dream-vignette{ position: absolute; inset: 0; background: radial-gradient(120% 100% at 50% 38%, transparent 50%, rgba(12,4,18,0.62)); }
#petals{ position: fixed; inset: 0; z-index: 1; pointer-events: none; }
@keyframes dream-drift{ 0%,100%{ transform: translateX(-4%); } 50%{ transform: translateX(6%); } }
/* calmer variant for the reading page */
.dream--calm .dream-moon{ opacity: 0.5; }
.dream--calm .dream-bloom{ opacity: 0.34; }
.dream--calm .dream-fog{ opacity: 0.3; }

/* reading-progress bar */
.read-progress{ position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 50;
  background: linear-gradient(90deg, #f4a8c6, #c8a8f0); box-shadow: 0 0 10px rgba(244,168,198,0.65); transition: width .1s linear; }

/* postcard treatment for the featured photo */
.jr-feature-media.is-postcard{ border: 9px solid #fff6f1; border-radius: 6px; transform: rotate(-1.3deg);
  box-shadow: 0 26px 50px -22px rgba(8,2,6,0.85); }
.jr-feature-media.is-postcard img{ border-radius: 1px; }
.jr-feature:hover .jr-feature-media.is-postcard{ transform: rotate(0deg); transition: transform .6s var(--ease-out-expo); }
.jr-stamp{ position: absolute; bottom: 0.7rem; right: 0.7rem; z-index: 3; font-family: var(--font-ui); font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: #7a2840; background: rgba(255,246,241,0.92); padding: 0.3rem 0.6rem; border-radius: 4px;
  transform: rotate(-1.3deg); }

[data-reveal]{ opacity: 0; transform: translateY(20px); transition: opacity .8s ease, transform .8s var(--ease-out-expo); }
[data-reveal].in{ opacity: 1; transform: none; }

/* ---------- masthead ---------- */
.jr-head{ padding: 9rem 0 3.4rem; max-width: 34ch; }
.jr-title{ font-family: var(--font-display-alt); font-weight: 800; text-transform: lowercase; font-size: clamp(3rem, 8vw, 6rem); line-height: 0.98; margin: 1.1rem 0 1.3rem;
  background: var(--grad-head); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.jr-title em{ font-style: normal; }
.jr-lead{ font-family: var(--font-ui); font-size: var(--t-lead); line-height: 1.6; color: var(--fg-dim); max-width: 48ch; }

/* ---------- featured entry ---------- */
.jr-feature{ display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 2.8rem; align-items: stretch;
  border-top: 1px solid rgba(240,192,204,0.16); padding-top: 3rem; }
.jr-feature-media{ position: relative; border-radius: 18px; overflow: hidden; min-height: 380px;
  border: 1px solid rgba(240,192,204,0.22);
  box-shadow: 0 30px 60px -30px rgba(8,2,6,0.9), inset 0 0 0 1px rgba(255,255,255,0.03);
  background: linear-gradient(150deg,#3a1828,#1a070f); }
.jr-feature-media img{ position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 1s var(--ease-out-expo); }
.jr-feature:hover .jr-feature-media img{ transform: scale(1.045); }
.jr-feature-media::after{ content: ""; position: absolute; inset: 0; background: linear-gradient(200deg, transparent 40%, rgba(20,5,11,0.55)); }
.jr-badge{ position: absolute; top: 1.1rem; left: 1.1rem; z-index: 2; font-family: var(--font-ui); font-size: 0.66rem;
  font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: #fff5f0; padding: 0.4rem 0.8rem;
  border-radius: var(--r-pill); background: rgba(122,40,64,0.6); border: 1px solid rgba(240,192,204,0.4); backdrop-filter: blur(6px); }

.jr-feature-body{ display: flex; flex-direction: column; justify-content: center; gap: 1.1rem; }
.jr-kicker{ font-family: var(--font-ui); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); }
.jr-feature-title{ font-family: var(--font-display-alt); font-weight: 700; text-transform: lowercase; font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.06; margin: 0; }
.jr-feature-title a{ color: var(--fg); text-decoration: none; background-image: linear-gradient(var(--accent), var(--accent)); background-size: 0% 1px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .5s var(--ease-out-expo); }
.jr-feature-title a:hover{ background-size: 100% 1px; color: var(--accent-bright); }
.jr-dek{ font-family: var(--font-ui); font-style: normal; font-size: 1.05rem; line-height: 1.55; color: var(--fg-dim); margin: 0; max-width: 42ch; }
.jr-meta{ display: flex; flex-wrap: wrap; gap: 0.5rem 1.3rem; font-family: var(--font-ui); font-size: 0.82rem; color: var(--fg-faint); align-items: center; }
.jr-meta .dot{ width: 4px; height: 4px; border-radius: 50%; background: var(--accent); opacity: 0.6; }
.jr-tags{ display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 0.4rem 0 0; padding: 0; }
.jr-tag{ font-family: var(--font-ui); font-size: 0.74rem; color: var(--rose-50); padding: 0.28rem 0.8rem; border-radius: var(--r-pill); background: rgba(196,116,139,0.12); border: 1px solid rgba(240,192,204,0.24); }
.jr-read{ margin-top: 0.6rem; display: inline-flex; align-items: center; gap: 0.5rem; width: max-content; font-family: var(--font-ui); font-weight: 600; font-size: 0.95rem; color: var(--accent-bright); text-decoration: none; }
.jr-read svg{ width: 18px; height: 18px; transition: transform .3s var(--ease-out-expo); }
.jr-read:hover svg{ transform: translateX(4px); }

/* ---------- future index grid (empty until more posts) ---------- */
.jr-more{ margin-top: 6rem; }
.jr-more-h{ font-family: var(--font-ui); font-size: 0.74rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--fg-faint); margin: 0 0 1.6rem; }
.jr-grid{ display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.6rem; }
.jr-card{ display: flex; flex-direction: column; gap: 0.7rem; padding: 1.6rem; border-radius: 16px;
  background: rgba(20,5,11,0.4); border: 1px solid rgba(240,192,204,0.14); }
.jr-card .jr-kicker{ font-size: 0.64rem; }
.jr-card-title{ font-family: var(--font-display-alt); font-weight: 600; text-transform: lowercase; font-size: 1.05rem; line-height: 1.2; color: var(--rose-50); margin: 0; }
.jr-card-note{ font-family: var(--font-ui); font-size: 0.9rem; color: var(--fg-faint); margin: 0; line-height: 1.5; }

/* ============================================================
   READING PAGE (article)
   ============================================================ */
.art-main{ position: relative; z-index: 6; max-width: 720px; margin: 0 auto; padding: 7.5rem var(--gutter) 6rem; }
.art-back{ display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--font-ui); font-size: 0.85rem; color: var(--fg-faint); text-decoration: none; margin-bottom: 2.6rem; transition: color .3s ease; }
.art-back svg{ width: 16px; height: 16px; }
.art-back:hover{ color: var(--accent-bright); }
.art-kicker{ font-family: var(--font-ui); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); }
.art-title{ font-family: var(--font-display-alt); font-weight: 800; text-transform: lowercase; font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1.02; margin: 1rem 0 1.6rem;
  background: var(--grad-head); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.art-title em{ font-style: normal; }
.art-meta{ display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.2rem; font-family: var(--font-ui); font-size: 0.84rem; color: var(--fg-faint); padding-bottom: 2rem; border-bottom: 1px solid rgba(240,192,204,0.16); }
.art-meta .dot{ width: 4px; height: 4px; border-radius: 50%; background: var(--accent); opacity: 0.6; }
.art-hero{ width: 100%; border-radius: 16px; margin: 2.4rem 0 0.6rem; aspect-ratio: 16/9; object-fit: cover; display: block;
  border: 1px solid rgba(240,192,204,0.2); box-shadow: 0 30px 60px -34px rgba(8,2,6,0.9); }
.art-cap{ font-family: var(--font-ui); font-size: 0.78rem; color: var(--fg-faint); text-align: center; margin: 0.7rem 0 2.4rem; }
.art-body{ font-family: var(--font-ui); font-size: 1.06rem; line-height: 1.75; color: var(--rose-50); }
.art-body p{ margin: 0 0 1.5rem; }
.art-tags{ display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 2.6rem 0 0; padding: 2.2rem 0 0; border-top: 1px solid rgba(240,192,204,0.16); }
.art-foot{ margin-top: 2.4rem; font-family: var(--font-display-alt); font-weight: 600; text-transform: lowercase; font-style: normal; font-size: 1.05rem; color: var(--accent); }

@media(max-width: 820px){
  .jr-feature{ grid-template-columns: 1fr; gap: 1.6rem; }
  .jr-feature-media{ min-height: 260px; }
  .jr-head{ padding-top: 7rem; }
  .art-body{ font-size: 1.16rem; }
}
@media(prefers-reduced-motion: reduce){
  [data-reveal]{ opacity: 1; transform: none; transition: none; }
}

/* ---------- tracing beam (reading) ---------- */
.tb-rail{ position: absolute; left: -0.4rem; top: 8rem; bottom: 7rem; width: 14px; z-index: 7; pointer-events: none; }
.tb-svg{ display: block; overflow: visible; }
.tb-track{ fill: none; stroke: rgba(240,192,204,0.16); stroke-width: 2; stroke-linecap: round; }
.tb-beam{ fill: none; stroke-width: 2.5; stroke-linecap: round; filter: drop-shadow(0 0 5px rgba(196,116,139,0.65)); transition: stroke-dashoffset .12s linear; }
.tb-top{ fill: #190a1c; stroke: rgba(240,192,204,0.45); stroke-width: 2; transition: fill .4s ease, stroke .4s ease; }
.tb-rail.is-active .tb-top{ fill: #f4a8c6; stroke: #f4a8c6; }
.tb-dot{ fill: #f9d7e6; filter: drop-shadow(0 0 6px rgba(244,168,198,0.95)); opacity: 0; transition: opacity .3s ease; }
.tb-rail.is-active .tb-dot{ animation: tb-pulse 1.8s ease-in-out infinite; }
@keyframes tb-pulse{ 0%,100%{ r: 4.2; } 50%{ r: 6; } }
@media(max-width: 980px){ .tb-rail{ display: none; } }
@media(prefers-reduced-motion: reduce){ .tb-dot{ animation: none; } .tb-beam{ transition: none; } }
