/* =============================================
   OperaUSA — Articles
   Editorial, low-noise: one reading column, serif body, a single accent.
   ============================================= */

:root {
  --art-ink: #1c1c28;
  --art-body: #2b2b36;
  --art-muted: #6d6d78;
  --art-faint: #9a9aa4;
  --art-accent: #C8102E;
  --art-rule: #e6e5ea;
  --art-paper: #ffffff;
  --art-measure: 680px;
  --art-wide: 1040px;
  --art-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --art-display: 'Playfair Display', Georgia, serif;
  --art-sans: 'Source Sans Pro', -apple-system, 'Segoe UI', sans-serif;
}

.art { background: var(--art-paper); padding: 72px 16px 96px; overflow-x: hidden; }

/* ---- Header ---- */
.art-head { max-width: var(--art-measure); margin: 0 auto 48px; }
.art-label {
  display: inline-block; font-family: var(--art-sans); font-size: 13px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--art-accent); margin-bottom: 18px;
}
a.art-label:hover { color: var(--art-accent); text-decoration: underline; text-underline-offset: 3px; }
.art-title {
  font-family: var(--art-display); font-weight: 700; font-size: 48px; line-height: 1.12;
  letter-spacing: -.01em; color: var(--art-ink); margin: 0 0 18px; text-wrap: balance;
}
.art-dek {
  font-family: var(--art-serif); font-size: 21px; line-height: 1.5; color: var(--art-muted);
  margin: 0 0 32px; text-wrap: pretty;
}
.art-byline { display: flex; align-items: center; gap: 12px; padding-top: 24px; border-top: 1px solid var(--art-rule); }
.art-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: top center; }
.art-byline-name { font-family: var(--art-sans); font-weight: 600; font-size: 15.5px; color: var(--art-ink); }
.art-byline-meta { font-family: var(--art-sans); font-size: 14px; color: var(--art-muted); }

/* ---- Cover ---- */
.art-cover { max-width: var(--art-wide); margin: 0 auto 56px; }
.art-cover img { width: 100%; display: block; aspect-ratio: 20 / 9; object-fit: cover; }

/* ---- Captions & credits (shared) ---- */
.art figcaption, .art-lightbox figcaption {
  font-family: var(--art-sans); font-size: 14px; line-height: 1.5; color: var(--art-muted); padding-top: 10px;
}
.art-cover figcaption { max-width: var(--art-measure); margin: 0 auto; }
.art-cap-site { color: var(--art-ink); font-weight: 600; margin-right: 4px; }
.art-cap-site::after { content: '.'; }
.art-credit { color: var(--art-faint); margin-left: 6px; white-space: nowrap; }
.art-credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* ---- Body ---- */
.art-body {
  max-width: var(--art-measure); margin: 0 auto;
  font-family: var(--art-serif); font-size: 20px; line-height: 1.7; color: var(--art-body);
}
.art-body h2 {
  font-family: var(--art-display); font-weight: 700; font-size: 28px; line-height: 1.25;
  color: var(--art-ink); margin: 56px 0 16px;
}
.art-body h2:first-child { margin-top: 0; }
.art-body p { margin: 0 0 24px; }
.art-body a { color: var(--art-ink); text-decoration: underline; text-decoration-color: var(--art-accent); text-underline-offset: 3px; }
.art-body a:hover { color: var(--art-accent); }
.art-body ul { margin: 0 0 24px; padding-left: 1.2em; }
.art-body li { margin-bottom: 10px; padding-left: 4px; }
.art-body li::marker { color: var(--art-accent); }

/* Break out of the reading column */
.art-wide { width: min(var(--art-wide), calc(100vw - 32px)); margin-left: 50%; transform: translateX(-50%); }

/* ---- Gallery ---- */
.art-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 20px; margin-top: 32px; margin-bottom: 48px; }
.art-gallery-item { margin: 0; }
.art-gallery-item--lead { grid-column: 1 / -1; }
.art-gallery-open { display: block; width: 100%; padding: 0; border: 0; background: #f1f0f3; cursor: zoom-in; aspect-ratio: 3 / 2; overflow: hidden; }
.art-gallery-item--lead .art-gallery-open { aspect-ratio: 20 / 9; }
.art-gallery-open img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .2s; }
.art-gallery-open:hover img { opacity: .92; }
.art-gallery-open:focus-visible { outline: 2px solid var(--art-accent); outline-offset: 3px; }

/* ---- Video ---- */
.art-video { margin: 0 auto 48px; }
.art-video--portrait { max-width: 340px; }
.art-video-frame { position: relative; aspect-ratio: 16 / 9; background: #111; overflow: hidden; }
.art-video--portrait .art-video-frame { aspect-ratio: 9 / 16; }
.art-video-frame iframe, .art-video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.art-video-play { position: absolute; inset: 0; width: 100%; border: 0; padding: 0; cursor: pointer; background: #1a1a24 center / cover no-repeat; }
.art-video-btn {
  position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px;
  border-radius: 50%; background: rgba(255,255,255,.92);
}
.art-video-btn::after {
  content: ''; position: absolute; left: 26px; top: 21px;
  border-style: solid; border-width: 11px 0 11px 17px; border-color: transparent transparent transparent var(--art-ink);
}

/* Ambient (silent loop) figure, floated beside the text */
.art-body h2 { clear: both; }
.art-video--ambient { float: right; width: 260px; margin: 6px 0 16px 32px; }
.art-video--ambient .art-video-frame { aspect-ratio: 4 / 5; background: #dfe6ee; }
.art-video--ambient video { cursor: pointer; }
.art-video--ambient figcaption { font-size: 13px; }
@media (min-width: 1100px) { .art-video--ambient { margin-right: -96px; } }

/* ---- Lightbox ---- */
.art-lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(12,12,18,.96); display: flex; align-items: center; justify-content: center; padding: 56px 80px; }
.art-lightbox[hidden] { display: none; }
.art-lb-figure { margin: 0; display: flex; flex-direction: column; align-items: center; max-width: 100%; }
.art-lb-figure img { max-width: 100%; max-height: calc(100vh - 160px); object-fit: contain; }
.art-lightbox figcaption { color: #c9c9d1; text-align: center; max-width: 720px; }
.art-lightbox .art-cap-site { color: #fff; }
.art-lightbox .art-credit { color: #8a8a96; }
.art-lb-close, .art-lb-prev, .art-lb-next {
  position: absolute; background: none; border: 0; color: rgba(255,255,255,.75); cursor: pointer;
  font-family: var(--art-sans); font-weight: 300; line-height: 1; padding: 8px 14px;
}
.art-lb-close:hover, .art-lb-prev:hover, .art-lb-next:hover { color: #fff; }
.art-lb-close { top: 12px; right: 12px; font-size: 40px; }
.art-lb-prev, .art-lb-next { top: 50%; transform: translateY(-50%); font-size: 56px; }
.art-lb-prev { left: 12px; }
.art-lb-next { right: 12px; }
.art-lb-count { position: absolute; top: 24px; left: 28px; color: #8a8a96; font-family: var(--art-sans); font-size: 14px; }

/* ---- Footer of the article ---- */
.art-foot { max-width: var(--art-measure); margin: 56px auto 0; border-top: 1px solid var(--art-rule); padding-top: 32px; font-family: var(--art-sans); }
.art-author { display: flex; align-items: center; gap: 16px; margin-bottom: 32px; }
.art-author-photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: top center; flex-shrink: 0; }
.art-author-name { font-weight: 600; font-size: 17px; color: var(--art-ink); }
.art-author-post { font-size: 15px; color: var(--art-muted); }
.art-author .art-credit { margin-left: 0; font-size: 12.5px; }
.art-actions { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-bottom: 28px; }
.art-actions a { font-size: 16px; font-weight: 600; color: var(--art-ink); border-bottom: 1.5px solid var(--art-accent); padding-bottom: 2px; }
.art-actions a::after { content: ' \2192'; color: var(--art-accent); }
.art-actions a:hover { text-decoration: none; color: var(--art-accent); }
.art-share { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; font-size: 14px; color: var(--art-muted); }
.art-share span { font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: 12px; margin-right: 2px; }
.art-share a, .art-share button { color: var(--art-muted); background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.art-share a:hover, .art-share button:hover { color: var(--art-ink); text-decoration: underline; text-underline-offset: 3px; }
.art-share button.is-copied { color: #1e7a46; }
.art-more { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--art-rule); }
.art-more .art-label { margin-bottom: 10px; }
.art-more-link { display: block; font-family: var(--art-display); font-size: 21px; color: var(--art-ink); margin-bottom: 6px; }

/* ---- Articles index ---- */
.art-index { max-width: var(--art-measure); margin: 0 auto; }
.art-index-head { margin-bottom: 40px; }
.art-index-head .art-title { font-size: 44px; }
.art-entry { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 28px 0; border-top: 1px solid var(--art-rule); color: inherit; }
.art-entry:hover { text-decoration: none; color: inherit; }
.art-entry:hover h2 { color: var(--art-accent); }
.art-entry-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.art-entry-media .art-credit { display: block; margin: 6px 0 0; font-family: var(--art-sans); font-size: 12px; }
.art-entry h2 { font-family: var(--art-display); font-size: 25px; line-height: 1.25; color: var(--art-ink); margin: 0 0 8px; transition: color .15s; }
.art-entry p { font-family: var(--art-serif); font-size: 17px; line-height: 1.55; color: var(--art-body); margin: 0 0 10px; }
.art-entry-meta { font-family: var(--art-sans); font-size: 14px; color: var(--art-muted); }

/* ---- Home: feature + hero link ---- */
.home-journal { background: #f8f8fc; padding: 80px 0; }
.home-journal-card { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; max-width: 1040px; margin: 0 auto; color: inherit; }
.home-journal-card:hover { text-decoration: none; color: inherit; }
.home-journal-card:hover h2 { color: var(--art-accent); }
.home-journal-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.home-journal-media .art-credit { display: block; margin: 8px 0 0; font-size: 12.5px; }
.home-journal-body .art-label { margin-bottom: 14px; }
.home-journal-body h2 { font-family: var(--art-display); font-size: 34px; line-height: 1.18; color: var(--art-ink); margin: 0 0 14px; transition: color .15s; }
.home-journal-body p { font-size: 18px; line-height: 1.6; color: #4a4a55; margin: 0 0 18px; }
.home-journal-meta { font-size: 14.5px; color: var(--art-muted); margin-bottom: 20px; }
.home-journal-more { font-size: 16px; font-weight: 600; color: var(--art-ink); border-bottom: 1.5px solid var(--art-accent); padding-bottom: 2px; }
.home-journal-more::after { content: ' \2192'; color: var(--art-accent); }

.hero-article-link {
  display: inline-block; margin: 2px 0 22px; font-size: 15px; color: rgba(255,255,255,.8);
  border-bottom: 1px solid rgba(255,255,255,.3); padding-bottom: 2px;
}
.hero-article-link strong { color: #FFD700; font-weight: 600; margin-right: 6px; }
.hero-article-link:hover { color: #fff; text-decoration: none; border-bottom-color: #fff; }

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .home-journal-card { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 640px) {
  .art { padding-top: 40px; }
  .art-title { font-size: 34px; }
  .art-dek { font-size: 18.5px; }
  .art-cover { margin-bottom: 40px; margin-left: -16px; margin-right: -16px; }
  .art-cover img { aspect-ratio: 4 / 3; }
  .art-cover figcaption { padding-left: 16px; padding-right: 16px; }
  .art-body { font-size: 18.5px; }
  .art-body h2 { font-size: 24px; margin-top: 44px; }
  .art-gallery { grid-template-columns: 1fr; gap: 28px; }
  .art-video--ambient { float: none; width: auto; max-width: 300px; margin: 0 auto 28px; }
  .art-gallery-item--lead .art-gallery-open { aspect-ratio: 3 / 2; }
  .art-lightbox { padding: 56px 8px 72px; }
  .art-lb-prev, .art-lb-next { top: auto; bottom: 8px; transform: none; font-size: 44px; }
  .art-entry { grid-template-columns: 1fr; gap: 14px; }
  .home-journal { padding: 56px 0; }
  .home-journal-body h2 { font-size: 27px; }
}
@media (prefers-reduced-motion: reduce) { .art-gallery-open img { transition: none; } }
