/* ============================================
   ARTICLE pages (loaded via styles: [article]): comparisons (/comparisons/…), their hub, and
   Velvet Journal posts. Palette + fonts from main.css.
   Readability rules: wide desktop column (text runs as wide as the card grids), Cormorant never
   small or dim, cards keep their decorative gradients (dark behind the text) with high-contrast
   body text.
   ============================================ */

.article-page {
  --a-text: #ddd5cc;          /* body copy on the page and inside cards */
  --a-head: #f3ece4;          /* near-white for titles / names */
  --a-soft: var(--text-soft, #a39990);
  --a-line: rgba(255,255,255,0.1);
  color: var(--a-text);
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(16px, 5vw, 60px);
}

.article-breadcrumb {
  padding-top: 5.5rem;   /* clear the absolute site header */
  font-family: 'Geologica', sans-serif;
  font-size: 0.85rem;
  color: var(--a-soft);
}
.article-breadcrumb a { color: var(--warm); text-decoration: none; }
.article-breadcrumb a:hover { text-decoration: underline; text-underline-offset: 0.18em; }
.article-breadcrumb span { margin: 0 0.4rem; }

.article-head { padding: 1.4rem 0 0.4rem; }
.article-title {
  font-family: 'Cormorant', serif;
  font-weight: normal;
  font-size: clamp(2.3rem, 4.4vw, 3.6rem);
  line-height: 1.06;
  color: var(--a-head);
}
.article-standfirst {
  font-family: 'Geologica', sans-serif;
  font-weight: 300;
  font-size: clamp(1.08rem, 1.4vw, 1.25rem);
  line-height: 1.6;
  color: #d8cfc6;
  margin-top: 0.9rem;
}
.article-meta {
  font-family: 'Geologica', sans-serif;
  font-size: 0.85rem;
  color: var(--a-soft);
  margin-top: 0.6rem;
}

.article-hero { margin: 1.4rem 0 2.3rem; }
.article-hero img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--a-line);
  border-radius: 10px;
}
.article-hero .trailer-facade-poster,
.article-game-summary .trailer-facade-poster {
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  object-fit: cover;
}

/* ---- prose ---- */
.article-body {
  font-family: 'Geologica', sans-serif;
  font-weight: 300;
  font-size: 1.0625rem;
}
.article-body h2 {
  font-family: 'Cormorant', serif;
  font-weight: normal;
  font-size: clamp(1.9rem, 2.7vw, 2.6rem);
  line-height: 1.12;
  color: var(--warm);
  margin: 2.6rem 0 0.9rem;
}
.article-body h3 {
  font-family: 'Geologica', sans-serif;
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--a-head);
  margin: 1.4rem 0 0.6rem;
}
.article-body p, .article-body li { line-height: 1.65; color: var(--a-text); }
.article-body p { margin: 0 0 1.25rem; }
.article-body ul { margin: 0 0 1.4rem 1.2rem; list-style: disc; }
.article-body li { margin-bottom: 0.55rem; }
.article-body li::marker { color: var(--warm); }
.article-body strong { color: var(--a-head); font-weight: 500; }
.article-body a {
  color: var(--link, #e0a064);
  text-decoration: underline;
  text-decoration-color: rgba(224,160,100,0.5);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
  border-bottom: 0;
}
.article-body a:visited { color: #d58f55; }
.article-body a:hover { color: #ffc085; text-decoration-color: #ffc085; }

/* ---- cards: decorative gradients kept low-alpha (≤0.13) so the area under the text stays dark
   (lightest ≈ #37302b; #ddd5cc on it ≈ 8.9:1) ---- */
.article-panel,
.article-game-summary,
.article-cta {
  position: relative;
  border: 1px solid var(--a-line);
  border-radius: 10px;
  background:
    radial-gradient(circle at 50% 0%, rgba(214,182,160,0.13), transparent 42%),
    linear-gradient(145deg, rgba(214,182,160,0.06), rgba(103,55,74,0.085) 58%, rgba(255,255,255,0.02)),
    rgba(255,255,255,0.02);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.055),
    0 14px 34px rgba(0,0,0,0.16);
}
.article-panel {
  background:
    radial-gradient(circle at 16% 0%, rgba(214,182,160,0.11), transparent 36%),
    linear-gradient(145deg, rgba(214,182,160,0.06), rgba(103,55,74,0.075) 58%, rgba(255,255,255,0.02)),
    rgba(255,255,255,0.03);
  margin: 1.8rem 0 2.2rem;
  padding: 1.5rem 1.7rem 1.1rem;
}
.article-panel h2 { margin-top: 0; }
.article-panel-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1rem;
}
.article-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

/* "<game> in short": trailer + pitch side by side on desktop */
.article-game-summary {
  margin: 2.2rem 0 2.6rem;
  padding: 1.6rem 1.7rem 1.7rem;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  grid-template-areas:
    "trailer head"
    "trailer text"
    "trailer actions";
  grid-template-rows: auto auto 1fr;
  column-gap: 2rem;
  align-items: start;
}
.article-game-summary h2 {
  grid-area: head;
  margin: 0 0 0.8rem;
  font-family: 'Cormorant', serif;
  font-weight: normal;
  font-size: clamp(1.8rem, 2.6vw, 2.4rem);
  line-height: 1.1;
  color: var(--warm);
}
.article-summary-trailer { grid-area: trailer; margin: 0; align-self: center; }
.article-summary-trailer .trailer-facade { border-radius: 8px; }
.article-game-summary > p { grid-area: text; margin: 0 0 1.2rem; line-height: 1.65; }
.article-game-summary .article-summary-actions { grid-area: actions; }
.article-game-summary .article-link-row { display: none; }

.article-hero-ctas,
.article-summary-actions {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 0.4rem;
}
.article-hero-ctas { justify-content: center; margin-top: 1rem; }
.article-hero-ctas .vl-cta,
.article-summary-actions .vl-cta {
  flex: 1 1 200px;
  max-width: 280px;
}
.article-hero-ctas .vl-btn,
.article-summary-actions .vl-btn,
.article-cta-row .vl-btn,
.article-panel-ctas .vl-btn {
  width: 100%;
  text-decoration: none;
  text-shadow: none;
}
.article-page .vl-cta-sub { color: var(--a-soft); }

/* ---- figures ---- */
.article-figure { margin: 1.8rem 0; }
.article-figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
}
.article-figure figcaption {
  margin-top: 0.65rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--a-soft);
}
.article-image-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.8rem 0 2.4rem;
}
.article-image-pair figure { margin: 0; }
.article-image-pair img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
}
.article-image-pair figcaption {
  margin-top: 0.55rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--a-soft);
  text-align: center;
}

.article-body .nowrap { white-space: nowrap; }

/* ---- girl profile cards ---- */
.article-girl-profiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 0.9rem;
  margin: 1.4rem 0 2.2rem;
}
.article-body .article-girl-profile {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  padding: 0.9rem 1rem;
  color: var(--a-text);
  text-decoration: none;
  border: 1px solid var(--a-line);
  border-radius: 10px;
  background:
    radial-gradient(circle at 12% 0%, rgba(214,182,160,0.08), transparent 44%),
    rgba(255,255,255,0.025);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.article-body .article-girl-profile:hover,
.article-body .article-girl-profile:focus-visible {
  color: var(--a-text);
  border-color: rgba(212,169,138,0.5);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.22);
}
.article-girl-profile img {
  width: 84px;
  height: 84px;
  object-fit: cover;
  margin: 0;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 50%;
}
.article-girl-profile span,
.article-girl-profile strong,
.article-girl-profile em,
.article-girl-profile small { display: block; }
.article-body .article-girl-profile strong {
  color: var(--a-head);
  font-family: 'Cormorant', serif;
  font-weight: normal;
  font-size: 1.6rem;
  line-height: 1.05;
}
.article-girl-profile em {
  margin-top: 0.15rem;
  color: var(--warm);
  font-size: 0.86rem;
  font-style: normal;
}
.article-girl-profile small {
  margin-top: 0.4rem;
  color: #d2c9c0;
  font-size: 0.92rem;
  line-height: 1.45;
}
.article-girl-profiles + ul { display: none; }

/* ---- comparison table: the Vampire Mistress column (3rd) carries the accent ---- */
.article-body table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1.5rem 0 2.2rem;
  border: 1px solid var(--a-line);
  border-radius: 10px;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.025), rgba(214,182,160,0.055)),
    rgba(255,255,255,0.02);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 16px 34px rgba(0,0,0,0.14);
  overflow: hidden;
}
.article-body thead { background: transparent; }
.article-body th,
.article-body td {
  padding: 1rem 1.1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.article-body th {
  font-weight: 500;
  color: var(--a-head);
  font-size: 1rem;
  letter-spacing: 0.01em;
}
.article-body td {
  color: var(--a-text);
  font-size: 1rem;
  line-height: 1.55;
}
.article-body th:first-child,
.article-body td:first-child {
  width: 22%;
  background: rgba(255,255,255,0.03);
  border-right: 1px solid rgba(255,255,255,0.08);
  color: var(--a-head);
  font-weight: 400;
}
.article-body th:nth-child(3),
.article-body td:nth-child(3) {
  background:
    radial-gradient(circle at 50% 0%, rgba(214,182,160,0.1), transparent 48%),
    rgba(214,182,160,0.035);
}
.article-body th:nth-child(3) { color: var(--warm); }
.article-body tr:last-child td { border-bottom: 0; }

/* ---- FAQ ---- */
.article-faq { margin-top: 2.6rem; }
.article-faq h2 { margin-top: 0; }
.article-faq .faq-item {
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 8px;
  padding: 0;
  margin-bottom: 0.7rem;
  background:
    linear-gradient(135deg, rgba(214,182,160,0.035), rgba(103,55,74,0.045) 58%, rgba(255,255,255,0.014)),
    rgba(255,255,255,0.012);
  overflow: hidden;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}
.article-faq .faq-item:hover,
.article-faq .faq-item[open] {
  border-color: rgba(212,169,138,0.3);
  background:
    linear-gradient(135deg, rgba(214,182,160,0.065), rgba(103,55,74,0.075) 58%, rgba(255,255,255,0.018)),
    rgba(255,255,255,0.018);
  box-shadow: 0 14px 34px rgba(0,0,0,0.14);
}
.article-faq .faq-item summary {
  font-family: 'Geologica', sans-serif;
  font-weight: 400;
  font-size: 1.05rem;
  color: var(--a-head);
  cursor: pointer;
  list-style: none;
  padding: 1rem 1.1rem;
}
.article-faq .faq-item summary::marker,
.article-faq .faq-item summary::-webkit-details-marker { display: none; }
.article-faq .faq-item summary::before {
  content: '+';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.2rem;
  height: 1.2rem;
  margin-right: 0.6rem;
  border-radius: 999px;
  color: var(--warm);
  background: rgba(212,169,138,0.1);
  transition: transform 0.25s, background 0.25s;
}
.article-faq .faq-item[open] summary::before {
  background: rgba(212,169,138,0.18);
  transform: rotate(45deg);
}
.article-faq .faq-item p {
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--a-text);
  margin: 0;
  padding: 0 1.1rem 1.1rem 2.9rem;
}

/* ---- testimonials inside the article column ---- */
.article-body .testimonials { max-width: none; margin: 2.4rem 0 0.6rem; }

/* ---- disclaimer + bottom CTA ---- */
.article-disclaimer {
  margin: 2.2rem auto 0;
  color: var(--a-soft);
  font-family: 'Geologica', sans-serif;
  font-size: 0.85rem;
  line-height: 1.55;
  text-align: center;
}

/* Base (any page, e.g. the archetype guide): a centred card. With the game's cast image
   (`.has-media`, set by _layouts/article.html) it becomes image | copy on wide screens. */
.article-cta {
  margin: 2.6rem 0 4rem;
  padding: 1.7rem;
  text-align: center;
}
.article-cta h2 {
  font-family: 'Cormorant', serif;
  font-weight: normal;
  font-size: clamp(1.9rem, 2.8vw, 2.5rem);
  line-height: 1.1;
  color: var(--warm);
  margin: 0 0 0.8rem;
}
.article-cta-cast {
  display: block;
  width: 100%;
  max-width: 640px;
  height: auto;
  margin: 0 auto 1.2rem;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
}
.article-cta > p {
  margin: 0 auto 1.25rem;
  font-family: 'Geologica', sans-serif;
  font-weight: 300;
  font-size: 1.08rem;
  line-height: 1.6;
  color: var(--a-text);
}
.article-cta-row {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
}
.article-cta-row .vl-cta {
  flex: 1 1 200px;
  max-width: 280px;
}
.article-cta-link {
  display: inline-block;
  margin-top: 1rem;
  font-family: 'Geologica', sans-serif;
  font-size: 0.92rem;
  color: var(--warm);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-decoration-color: rgba(212,169,138,0.45);
}
@media (min-width: 901px) {
  .article-cta.has-media {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    grid-template-areas:
      "image head"
      "image text"
      "image row"
      "image link";
    grid-template-rows: auto auto auto 1fr;
    column-gap: 2rem;
    align-items: start;
    text-align: left;
  }
  .article-cta.has-media h2 { grid-area: head; }
  .article-cta.has-media .article-cta-cast { grid-area: image; align-self: center; max-width: none; margin: 0; }
  .article-cta.has-media > p { grid-area: text; margin: 0 0 1.25rem; }
  .article-cta.has-media .article-cta-row { grid-area: row; justify-content: flex-start; }
  .article-cta.has-media .article-cta-link { grid-area: link; justify-self: start; }
}

/* ---- comparison hub (/comparisons/) ---- */
.cmp-hub { padding-bottom: 4rem; }
.cmp-hub-head { padding-top: 6.5rem; }
.cmp-hub-lead {
  margin-top: 1.1rem;
  font-family: 'Geologica', sans-serif;
  font-weight: 300;
  font-size: clamp(1.06rem, 1.3vw, 1.18rem);
  line-height: 1.7;
  color: var(--a-text);
}
.cmp-hub-product { margin-top: 2.4rem; }
.cmp-hub-product > h2 {
  font-family: 'Cormorant', serif;
  font-weight: normal;
  font-size: clamp(1.9rem, 2.7vw, 2.6rem);
  line-height: 1.1;
}
.cmp-hub-product > h2 a { color: var(--warm); text-decoration: none; }
.cmp-hub-product > h2 a:hover { text-decoration: underline; text-underline-offset: 0.16em; }
.cmp-hub-pitch {
  margin-top: 0.8rem;
  font-family: 'Geologica', sans-serif;
  font-weight: 300;
  font-size: 1.06rem;
  line-height: 1.65;
  color: #d8cfc6;
}
.cmp-hub-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.6rem;
}
.cmp-hub-card {
  position: relative;
  padding: 1.4rem 1.5rem 1.3rem;
  border: 1px solid var(--a-line);
  border-radius: 10px;
  background:
    radial-gradient(circle at 12% 0%, rgba(214,182,160,0.08), transparent 44%),
    rgba(255,255,255,0.025);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.cmp-hub-card:hover,
.cmp-hub-card:focus-within {
  border-color: rgba(212,169,138,0.5);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.22);
}
.cmp-hub-card h3 {
  font-family: 'Cormorant', serif;
  font-weight: normal;
  font-size: clamp(1.5rem, 2vw, 1.8rem);
  line-height: 1.15;
  text-wrap: balance;
}
.cmp-hub-card h3 a { color: var(--warm); text-decoration: none; }
/* whole card is the link */
.cmp-hub-card h3 a::after { content: ''; position: absolute; inset: 0; border-radius: 10px; }
.cmp-hub-card p {
  margin-top: 0.7rem;
  font-family: 'Geologica', sans-serif;
  font-weight: 300;
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--a-text);
}

/* wide screens: slightly larger body text so the long lines still read well */
@media (min-width: 1200px) {
  .article-body { font-size: 1.125rem; }
  .article-standfirst { font-size: 1.28rem; }
}

@media (max-width: 900px) {
  /* stacked: heading → media → text → buttons, centred */
  .article-game-summary {
    display: block;
    text-align: center;
  }
  .article-summary-trailer { max-width: 640px; margin: 0 auto 1.2rem; }
  .article-summary-actions { justify-content: center; }
  .cmp-hub-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .article-body { font-size: 1.02rem; }
  .article-body table {
    display: block;
    overflow-x: auto;
  }
  .article-body th,
  .article-body td { min-width: 200px; }
  .article-body th:first-child,
  .article-body td:first-child { min-width: 130px; }
  /* with JS (layout script adds data-label): each row becomes a small card */
  .article-body table.is-labelled {
    display: block;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: none;
  }
  .article-body table.is-labelled thead { display: none; }
  .article-body table.is-labelled tbody { display: grid; gap: 0.8rem; }
  .article-body table.is-labelled tr {
    display: block;
    border: 1px solid var(--a-line);
    border-radius: 10px;
    background:
      linear-gradient(90deg, rgba(255,255,255,0.025), rgba(214,182,160,0.055)),
      rgba(255,255,255,0.02);
    overflow: hidden;
  }
  .article-body table.is-labelled td {
    display: block;
    width: auto;
    min-width: 0;
    padding: 0.75rem 1rem;
    border: 0;
    background: none;
  }
  .article-body table.is-labelled td:first-child {
    width: auto;
    min-width: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
    font-weight: 500;
  }
  .article-body table.is-labelled td[data-label]::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.2rem;
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--a-soft);
  }
  .article-body table.is-labelled td:nth-child(3) {
    background:
      radial-gradient(circle at 50% 0%, rgba(214,182,160,0.1), transparent 48%),
      rgba(214,182,160,0.035);
  }
  .article-body table.is-labelled td:nth-child(3)::before { color: var(--warm); }
  .article-image-pair,
  .article-girl-profiles { grid-template-columns: 1fr; }
  .article-panel { padding: 1.2rem 1.2rem 0.8rem; }
  .article-game-summary,
  .article-cta { padding: 1.2rem; }
  .article-hero-ctas .vl-cta,
  .article-summary-actions .vl-cta,
  .article-cta-row .vl-cta {
    flex-basis: 100%;
    max-width: 340px;
  }
  .cmp-hub-head { padding-top: 5.5rem; }
}

@media (max-width: 460px) {
  .article-body .article-girl-profile {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 0.8rem;
  }
  .article-girl-profile img { width: 68px; height: 68px; }
}

@media (prefers-reduced-motion: reduce) {
  .article-body .article-girl-profile,
  .cmp-hub-card { transition: none; }
  .article-body .article-girl-profile:hover,
  .cmp-hub-card:hover { transform: none; }
}
