/* ==========================================================================
   Marek — Article template
   One identical skeleton for every Journal story.
   ========================================================================== */

.article { padding-bottom: var(--space-section); }

/* ---- Back link ---------------------------------------------------------- */
.article__back {
  padding-top: clamp(1.4rem, 1rem + 1.5vw, 2.2rem);
}
.article__back a {
  font-family: var(--font-display); font-weight: 600; font-size: var(--step--1);
  color: var(--muted); display: inline-flex; align-items: center; gap: 0.45rem;
}
.article__back a:hover { color: var(--terracotta-ink); }
.article__back .arrow { transition: transform 0.4s var(--ease-out); }
.article__back a:hover .arrow { transform: translateX(-3px); }

/* ---- Header ------------------------------------------------------------- */
.article__header { padding-top: clamp(1.5rem, 1rem + 2vw, 2.6rem); }
.article__head-inner { width: min(100% - 2 * var(--gutter), 760px); margin-inline: auto; text-align: center; }
.article__title {
  font-size: var(--step-4); line-height: 1.0; letter-spacing: -0.03em;
  margin-top: 1rem;
}
.article__dek {
  font-size: var(--step-1); color: var(--muted); line-height: 1.5;
  margin-top: 1.1rem; max-width: 54ch; margin-inline: auto;
}
.article__meta {
  justify-content: center; margin-top: 1.4rem; padding-top: 1.3rem;
  border-top: 1px solid var(--line);
}
.article__byline { color: var(--ink); font-weight: 600; }

/* ---- Hero image --------------------------------------------------------- */
.article__hero {
  margin-top: clamp(1.8rem, 1.2rem + 2vw, 2.8rem);
}
.article__hero figure { width: min(100% - 2 * var(--gutter), 1100px); margin-inline: auto; }
.article__hero-media {
  border-radius: var(--radius-card); overflow: hidden; background: var(--espresso);
  aspect-ratio: 16 / 9;
}
.article__hero-media img { width: 100%; height: 100%; object-fit: cover; }
.article__hero figcaption {
  font-family: var(--font-display); font-size: var(--step--1); color: var(--muted);
  margin-top: 0.7rem; text-align: center;
}

/* ---- Body prose --------------------------------------------------------- */
.prose {
  width: min(100% - 2 * var(--gutter), var(--measure)); margin-inline: auto;
  margin-top: clamp(2.2rem, 1.5rem + 2.5vw, 3.4rem);
  font-size: 1.15rem; line-height: 1.75;
}
.prose > * + * { margin-top: 1.35rem; }
.prose h2 {
  font-size: var(--step-2); letter-spacing: -0.02em; line-height: 1.1;
  margin-top: 2.6rem; padding-top: 0.3rem;
}
.prose h3 { font-size: var(--step-1); margin-top: 2rem; }
.prose p { color: var(--ink); }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--terracotta); text-decoration-thickness: 1.5px; }
.prose a:hover { text-decoration-color: var(--oxblood); }
.prose strong { font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.3rem; display: grid; gap: 0.5rem; }
.prose li { padding-left: 0.2rem; }
.prose li::marker { color: var(--terracotta); }

.prose .lead-para { font-size: 1.32rem; line-height: 1.55; color: var(--ink); }
.prose .lead-para::first-letter {
  font-family: var(--font-display); font-weight: 700; float: left;
  font-size: 3.6em; line-height: 0.78; padding: 0.06em 0.12em 0 0; color: var(--terracotta);
}

.pull-quote {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem); line-height: 1.2; letter-spacing: -0.02em;
  color: var(--ink); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding-block: 1.5rem; margin-block: 2.6rem !important; text-wrap: balance;
}
.pull-quote .who {
  display: block; font-size: var(--step--1); color: var(--muted); font-weight: 600;
  letter-spacing: 0.02em; margin-top: 0.9rem;
}

/* inline figure inside prose */
.prose figure { margin-block: 2.4rem; }
.prose figure img { border-radius: 12px; width: 100%; }
.prose figcaption { font-family: var(--font-display); font-size: var(--step--1); color: var(--muted); margin-top: 0.6rem; }

/* spec list */
.spec { margin-block: 2rem; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.spec dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; }
.spec div { display: flex; flex-direction: column; gap: 0.2rem; padding: 0.9rem 1.1rem; border-bottom: 1px solid var(--line-soft); }
.spec div:nth-child(odd) { border-right: 1px solid var(--line-soft); }
.spec dt { font-family: var(--font-display); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.spec dd { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--ink); }
@media (max-width: 480px) { .spec dl { grid-template-columns: 1fr; } .spec div:nth-child(odd) { border-right: 0; } }

/* ---- Product callout (the shop CTA payoff) ------------------------------ */
.product {
  width: min(100% - 2 * var(--gutter), 880px); margin-inline: auto;
  margin-top: clamp(2.5rem, 2rem + 2vw, 3.6rem);
  background: var(--espresso); color: var(--espresso-ink);
  border-radius: var(--radius-card); overflow: hidden;
  background-image: radial-gradient(120% 160% at 90% -30%, oklch(0.31 0.05 34) 0%, transparent 55%);
  display: grid; grid-template-columns: 1fr 1.2fr;
}
@media (max-width: 640px) { .product { grid-template-columns: 1fr; } }
.product__media { position: relative; min-height: 240px; background: var(--espresso-2); }
.product__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.product__body { padding: clamp(1.5rem, 1rem + 2vw, 2.4rem); display: flex; flex-direction: column; gap: 0.7rem; }
.product__label {
  font-family: var(--font-display); font-weight: 600; font-size: 0.74rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--terracotta);
}
.product__name { font-size: var(--step-2); line-height: 1.05; letter-spacing: -0.02em; color: var(--espresso-ink); }
.product__desc { color: var(--espresso-muted); font-size: 1rem; line-height: 1.55; }
.product__pricerow { display: flex; align-items: baseline; gap: 0.6rem; margin-top: 0.4rem; }
.product__price { font-family: var(--font-display); font-weight: 700; font-size: 2rem; letter-spacing: -0.02em; color: var(--espresso-ink); }
.product__price s { font-size: 1.1rem; font-weight: 500; color: var(--espresso-muted); margin-right: 0.1rem; }
.product__unit { font-family: var(--font-display); font-size: var(--step--1); color: var(--espresso-muted); }
.product__actions { display: flex; gap: 0.7rem; flex-wrap: wrap; margin-top: 1rem; }

/* ---- Author/end note ---------------------------------------------------- */
.endnote {
  width: min(100% - 2 * var(--gutter), var(--measure)); margin-inline: auto;
  margin-top: clamp(2.5rem, 2rem + 2vw, 3.4rem); padding-top: 1.5rem;
  border-top: 1px solid var(--line); display: flex; gap: 1rem; align-items: center;
}
.endnote__avatar {
  width: 48px; height: 48px; border-radius: 50%; flex: none;
  background: var(--terracotta-wash); color: var(--terracotta-ink);
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 700;
}
.endnote__text { font-family: var(--font-display); font-size: var(--step--1); color: var(--muted); }
.endnote__text strong { color: var(--ink); display: block; font-size: 1rem; }

/* ---- More from the Journal ---------------------------------------------- */
.more { padding-top: var(--space-section); }
.more .section__title { font-size: var(--step-2); }
.more .grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
