/* ============================================================
   News article — LORENZO Colorlab editorial article layout.
   Tokens reused from colors_and_type.css / styles.css.
   ============================================================ */

.article-root {
  background: var(--bg);
  color: var(--fg);
}

/* ---------- Header ---------- */
.article-header {
  padding: clamp(140px, 16vh, 200px) var(--page-gutter) clamp(40px, 5vw, 64px);
}
/* ---------- Header inner width — matches the wider shell ---------- */
.article-header-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.article-back {
  font-family: var(--font-body); font-weight: 300;
  font-size: 9.5px; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--fg-muted);
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none;
  transition: color .3s var(--ease-out), gap .3s var(--ease-out);
  align-self: flex-start;
}
.article-back:hover { color: var(--fg); gap: 16px; }
.article-back-arrow {
  font-family: var(--font-display); font-weight: 700;
  font-size: 14px; line-height: 1;
}

.article-title {
  margin: 32px auto 36px;
  font-size: clamp(34px, 4.8vw, 78px);
  line-height: 0.96;
  text-transform: none;
  letter-spacing: -0.02em;
  max-width: 20ch;
  text-align: center;
}
.article-title em {
  font-style: italic; font-weight: 300;
  color: var(--fg-muted);
}

/* Meta line — slim, no rules. */
.article-meta {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding: 18px 0 0;
  font-family: var(--font-body); font-weight: 300;
  font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--fg-muted);
}
.article-meta-cat {
  font-family: var(--font-display); font-weight: 700;
  font-size: 10px; letter-spacing: 0.22em;
  padding: 6px 12px;
  border: 1px solid var(--rule-strong);
  color: var(--fg);
}
.article-meta-sep { color: var(--fg-faint); }
.article-meta-author,
.article-meta-date,
.article-meta-read { color: var(--fg-muted); }

.article-lede {
  margin: clamp(28px, 3vw, 44px) auto 0;
  font-family: var(--font-body); font-weight: 300;
  font-size: clamp(16px, 1.35vw, 21px);
  line-height: 1.75;
  color: var(--fg);
  max-width: 99ch;
  text-align: justify;
  text-justify: inter-word;
  -webkit-hyphens: auto;
  hyphens: auto;
  text-wrap: pretty;
}

/* ---------- Cover ---------- */
.article-cover {
  padding: 0 var(--page-gutter);
  margin: clamp(28px, 4vw, 56px) 0 clamp(56px, 7vw, 96px);
}
.article-cover img {
  display: block;
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  background: #0a0a0a;
  border: 1px solid var(--rule);
}

/* ---------- Article shell — wide editorial column ---------- */
.article-shell {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 var(--page-gutter);
  display: flex;
  flex-direction: column;
  gap: clamp(56px, 6.5vw, 96px);
}

.article-prose {
  max-width: 105ch;
  margin: 0 auto;
}
.article-prose p {
  font-family: var(--font-body); font-weight: 300;
  font-size: clamp(15px, 1.15vw, 17.5px);
  line-height: 1.9;
  color: var(--fg-muted);
  margin: 0 0 24px;
  text-align: justify;
  text-justify: inter-word;
  -webkit-hyphens: auto;
  hyphens: auto;
  text-wrap: pretty;
}
.article-prose p:last-child { margin-bottom: 0; }
.article-prose p em,
.article-prose em {
  font-style: italic; font-weight: 300;
  color: var(--fg);
}

/* ---------- Video embed ---------- */
.article-video { margin: 0; }
.article-video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg-sunk);
  border: 1px solid var(--rule);
  overflow: hidden;
}
.article-video-frame iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* Facade — official poster + play button; loads the real player on click */
.article-video-facade {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  padding: 0; margin: 0;
  border: 0; cursor: pointer;
  background: var(--bg-sunk);
  display: block;
}
.article-video-facade img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.72;
  filter: contrast(1.05) saturate(1.06);
  transition: opacity .5s var(--ease-out), transform .7s var(--ease-out);
}
.article-video-facade:hover img { opacity: 0.85; transform: scale(1.02); }
.article-video-facade::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(7,7,7,0.55) 0%, rgba(7,7,7,0.05) 50%, rgba(7,7,7,0.2) 100%);
}
.article-video-play {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(64px, 6vw, 88px);
  height: clamp(64px, 6vw, 88px);
  border-radius: var(--r-full);
  border: 1px solid rgba(240, 237, 232, 0.5);
  background: rgba(7, 7, 7, 0.32);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  color: var(--bone);
  z-index: 1;
  transition: background .35s var(--ease-out), border-color .35s var(--ease-out), transform .35s var(--ease-out);
}
.article-video-facade:hover .article-video-play {
  background: var(--bone);
  color: var(--bg);
  border-color: var(--bone);
  transform: translate(-50%, -50%) scale(1.04);
}
.article-video-play svg { width: 38%; height: 38%; margin-left: 8%; }
.article-video-facade-label {
  position: absolute;
  left: 50%; bottom: clamp(18px, 2.4vw, 30px);
  transform: translateX(-50%);
  z-index: 1;
  font-family: var(--font-display); font-weight: 700;
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--bone);
}
.article-video-caption {
  margin-top: 18px;
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px;
  text-align: center;
  font-family: var(--font-body); font-weight: 300;
  font-size: 10.5px; letter-spacing: 0.20em; text-transform: uppercase;
  color: var(--fg-subtle);
}
.article-video-yt {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-display); font-weight: 700;
  font-size: 9.5px; letter-spacing: 0.20em; text-transform: uppercase;
  color: var(--fg-muted); text-decoration: none;
  transition: color .3s var(--ease-out);
}
.article-video-yt svg { width: 12px; height: 12px; transition: transform .3s var(--ease-out); }
.article-video-yt:hover { color: var(--fg); }
.article-video-yt:hover svg { transform: translate(2px, -2px); }

/* ---------- Pull quote ---------- */
.article-pullquote {
  padding: clamp(32px, 4vw, 64px) 0;
  display: flex; flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
}
.article-pullquote blockquote {
  margin: 0 auto;
  max-width: 24ch;
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(22px, 2.4vw, 36px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--fg);
  text-wrap: balance;
}
.article-pullquote cite {
  font-family: var(--font-body); font-weight: 300;
  font-style: normal;
  font-size: 10.5px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--fg-subtle);
}

/* ---------- Article sections ---------- */
.article-intro {
  display: flex; flex-direction: column;
  align-items: center;
}
.article-section {
  display: flex; flex-direction: column;
  align-items: center;
  gap: clamp(28px, 3vw, 44px);
}
.article-section-title {
  margin: 0 auto;
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(22px, 2.1vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--fg);
  text-wrap: balance;
  text-align: center;
  max-width: 26ch;
}

/* Subsections inside a section (h3 + prose) */
.article-subsection {
  width: 100%;
  max-width: 105ch;
  margin: clamp(8px, 1vw, 16px) auto 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: center;
}
.article-subsection-title {
  margin: 0;
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(16px, 1.35vw, 21px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.article-subsection .article-prose { margin: 0 auto; }
.article-subsection .article-prose p { text-align: justify; }

/* Bullet list inside a section */
.article-list {
  width: 100%;
  max-width: 105ch;
  margin: clamp(4px, 0.6vw, 10px) auto 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.article-list li {
  position: relative;
  padding-left: 28px;
  font-family: var(--font-body); font-weight: 300;
  font-size: clamp(15px, 1.15vw, 17.5px);
  line-height: 1.8;
  color: var(--fg-muted);
  text-align: left;
  text-wrap: pretty;
}
.article-list li::before {
  content: "//";
  position: absolute;
  left: 0; top: 0;
  font-family: var(--font-display); font-weight: 700;
  font-size: 12px; letter-spacing: 0.06em;
  line-height: 1.9;
  color: var(--fg-faint);
}
.article-list li em {
  font-style: italic; font-weight: 300;
  color: var(--fg);
}

/* Looping local video figure (camera tests) */
.article-loop {
  width: 100%;
  margin: clamp(20px, 2.4vw, 40px) auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.article-loop-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg-sunk);
  border: 1px solid var(--rule);
  overflow: hidden;
}
.article-loop-frame video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.article-loop figcaption {
  margin-top: 16px;
  width: 100%;
  display: flex; align-items: baseline; justify-content: center; flex-wrap: wrap;
  font-family: var(--font-body); font-weight: 300;
  font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase;
  line-height: 1.7;
  color: var(--fg-subtle);
  text-align: center;
}

/* Inline figures inside a section */
.article-inline-figure {
  width: 100%;
  margin: clamp(20px, 2.4vw, 40px) auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.article-inline-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  background: var(--bg-sunk);
}
.article-inline-figure.is-portrait img {
  max-width: 660px;
}
.article-inline-figure figcaption {
  margin-top: 16px;
  width: 100%;
  display: flex; align-items: baseline; justify-content: center; flex-wrap: wrap;
  font-family: var(--font-body); font-weight: 300;
  font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase;
  line-height: 1.7;
  color: var(--fg-subtle);
  text-align: center;
}
.article-inline-figure.is-portrait figcaption {
  max-width: 660px;
}

/* ---------- Closing ---------- */
.article-closing {
  display: flex; flex-direction: column;
  align-items: center;
  padding-top: clamp(16px, 2vw, 24px);
}
.article-closing p {
  font-family: var(--font-body); font-weight: 300;
  font-size: clamp(15px, 1.15vw, 17.5px);
  line-height: 1.9;
  color: var(--fg-muted);
  margin: 0 auto;
  max-width: 90ch;
  text-align: center;
  text-wrap: pretty;
}

/* ---------- Tags ---------- */
.article-tags {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding-top: clamp(8px, 1.2vw, 16px);
}
.article-tags-label {
  font-family: var(--font-body); font-weight: 300;
  font-size: 9px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--fg-faint);
}
.article-tags-list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.article-tag a {
  display: inline-block;
  padding: 8px 14px;
  font-family: var(--font-body); font-weight: 300;
  font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--fg-muted);
  border: 1px solid var(--rule);
  text-decoration: none;
  transition: color .3s var(--ease-out), border-color .3s var(--ease-out), background .3s var(--ease-out);
}
.article-tag a:hover {
  color: var(--fg);
  border-color: var(--rule-strong);
  background: rgba(240, 237, 232, 0.04);
}


/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
}
@media (max-width: 760px) {
  .article-title { font-size: clamp(28px, 8vw, 44px); }
  .article-meta { font-size: 9.5px; gap: 10px; }
  .article-meta-sep { display: none; }
  .article-tags { grid-template-columns: 1fr; gap: 14px; }
  .article-cover img { max-height: 60vh; }
}


/* Masthead header (matches the Noticias index page) replaces the site nav */
.news-mast + .article-root .article-header {
  padding-top: clamp(44px, 6vh, 78px);
}
