/* Luxpeptide — Research index + article styles
 * Reuses the tokens/black/gold/beige system. No custom colors here —
 * all palette work flows through tokens.css.
 */

/* ─── INDEX HERO ───────────────────────────────────────── */
.research-hero {
  padding: var(--s-9) var(--gutter) var(--s-7);
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: end; gap: 32px;
  border-bottom: 1px solid var(--rule);
}
.research-hero__num {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--gold-200);
  font-size: 15px;
}
.research-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(60px, 8vw, 134px);
  line-height: 0.9;
  letter-spacing: -0.025em;
  text-align: center;
  color: var(--beige-50);
}
.research-hero__title em { font-style: italic; color: var(--gold-100); }
.research-hero__lede {
  font-size: 15px;
  color: var(--beige-200);
  line-height: 1.85;
  max-width: 36ch;
  justify-self: end;
}
@media (max-width: 900px) {
  .research-hero { grid-template-columns: 1fr; }
  .research-hero__title { text-align: left; }
  .research-hero__lede { justify-self: start; }
}

/* ─── FILTER BAR ───────────────────────────────────────── */
.research-filter { padding: var(--s-6) var(--gutter); border-bottom: 1px solid var(--rule); }
.research-filter__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.research-filter__lbl { color: var(--fg-muted); }
.research-filter__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.research-chip {
  border: 1px solid var(--rule-strong);
  color: var(--fg-muted);
  padding: 12px 16px;
  /* 44px tap target — chips are inline filter controls but still
     primary nav for users browsing the research library. */
  min-height: 44px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  background: transparent;
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease),
              background var(--dur-fast) var(--ease);
}
.research-chip:hover { border-color: var(--gold-300); color: var(--beige-100); }
.research-chip.is-active {
  background: var(--gold-200);
  color: var(--ink-0);
  border-color: var(--gold-200);
}

/* ─── FEATURED ─────────────────────────────────────────── */
.research-featured { padding: var(--s-7) var(--gutter); border-bottom: 1px solid var(--rule); }
.research-featured__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  /* Visual narrower than copy so the page feels editorial, not poster-y.
     Previously 1fr 1fr made the hero block dominate the fold. */
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 48px;
  align-items: center;
}
.research-featured__visual {
  /* Reduced from 4/3 → 16/10 so the visual stays editorial-wide without
     pushing the title below the fold on standard 1366×768 laptops. */
  aspect-ratio: 16 / 10;
  background: var(--ink-2);
  border: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
}
.research-featured__visual::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 60% at 30% 25%, rgba(212, 178, 102, 0.18), transparent 70%),
    radial-gradient(50% 50% at 75% 70%, rgba(184, 145, 73, 0.12), transparent 70%);
  pointer-events: none;
}
.research-featured__monogram {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-style: italic;
  /* Was clamp(120px, 18vw, 240px) — felt like a poster. Scaled to feel
     editorial without dominating the page. */
  font-size: clamp(86px, 11vw, 173px);
  color: var(--gold-400);
  opacity: 0.35;
  user-select: none;
  letter-spacing: -0.04em;
}
.research-featured__visual-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--ink-3) 1px, transparent 1px),
    linear-gradient(to bottom, var(--ink-3) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.4;
  mix-blend-mode: screen;
}
.research-featured__eyebrow {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 16px;
}
.research-featured__eyebrow .line { flex: 0 0 36px; height: 1px; background: var(--gold-400); }
.research-featured__eyebrow span:not(.line) {
  font-size: 12px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--gold-200); font-weight: 500;
}
.research-featured__cat {
  display: inline-block;
  font-size: 12px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold-200);
  margin-bottom: 12px;
}
.research-featured__title {
  font-family: var(--font-serif);
  /* Was clamp(36px, 4vw, 56px). Smaller for hero-as-card density. */
  font-size: clamp(30px, 3vw, 43px);
  line-height: 1.08;
  color: var(--beige-50);
  margin-bottom: 16px;
}
.research-featured__title em { font-style: italic; color: var(--gold-100); }
.research-featured__excerpt {
  color: var(--beige-200);
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 22px;
  max-width: 56ch;
}
.research-featured__meta {
  display: flex; gap: 16px; align-items: center;
  font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 24px;
}
.research-featured__meta .sep { color: var(--rule-strong); }
@media (max-width: 900px) {
  .research-featured__inner { grid-template-columns: 1fr; gap: 32px; }
}

/* ─── INDEX GRID ───────────────────────────────────────── */
.research-grid-wrap { padding: var(--s-8) var(--gutter); }
.research-grid-wrap__head {
  max-width: var(--max-w);
  margin: 0 auto var(--s-6);
  display: flex;
  align-items: baseline;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.research-grid-wrap__title {
  font-family: var(--font-serif);
  font-size: clamp(39px, 4.5vw, 69px);
  line-height: 1.05;
  color: var(--beige-50);
}
.research-grid-wrap__title em { font-style: italic; color: var(--gold-100); }
.research-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
@media (max-width: 1100px) { .research-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px)  { .research-grid { grid-template-columns: 1fr; } }
.research-grid__empty {
  text-align: center;
  color: var(--fg-muted);
  font-style: italic;
  padding: var(--s-7) 0;
  font-family: var(--font-serif);
  font-size: 24px;
}

.research-card {
  background: var(--ink-1);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  transition: background var(--dur-fast) var(--ease);
}
.research-card:hover { background: var(--ink-2); }
.research-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.research-card__num {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--gold-300);
  font-size: 14px;
}
.research-card__cat {
  font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold-200);
}
.research-card__title {
  font-family: var(--font-serif);
  font-size: 28px;
  line-height: 1.15;
  color: var(--beige-50);
  letter-spacing: -0.005em;
}
.research-card:hover .research-card__title { color: var(--gold-100); }
.research-card__excerpt {
  color: var(--beige-300);
  font-size: 15px;
  line-height: 1.75;
  flex: 1;
}
.research-card__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--fg-muted);
}
.research-card__read { color: var(--gold-200); }
.research-card__read::after {
  content: " →";
  transition: margin-left var(--dur-fast) var(--ease);
}
.research-card:hover .research-card__read::after { margin-left: 4px; }

/* ─── DISCLAIMER STRIP ─────────────────────────────────── */
.research-disclaimer {
  padding: var(--s-7) var(--gutter);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--ink-2);
}
.research-disclaimer__inner {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}
.research-disclaimer p {
  font-family: var(--font-serif);
  font-size: clamp(19px, 1.6vw, 24px);
  line-height: 1.65;
  color: var(--beige-200);
  margin-top: 16px;
}
.research-disclaimer em { font-style: italic; color: var(--gold-100); }


/* ─── ARTICLE PAGE ─────────────────────────────────────── */
.research-article {
  display: block;
  padding-bottom: var(--s-8);
}
/* `display: block` above outranks the UA [hidden] rule, so re-assert it
   explicitly for the article and the not-found state. */
.research-article[hidden],
.research-article__missing[hidden],
.research-article__related[hidden] { display: none; }
.research-article__head {
  padding: var(--s-8) var(--gutter) var(--s-6);
  max-width: 880px;
  margin: 0 auto;
  border-bottom: 1px solid var(--rule);
}
.research-article__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.research-article__back {
  font-size: 12px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--fg-muted);
  transition: color var(--dur-fast) var(--ease);
}
.research-article__back:hover { color: var(--gold-100); }
.research-article__cat {
  font-size: 12px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold-200);
  border: 1px solid var(--gold-400);
  padding: 6px 14px;
}
.research-article__title {
  font-family: var(--font-serif);
  font-size: clamp(43px, 5.5vw, 82px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--beige-50);
  margin-bottom: 24px;
}
.research-article__excerpt {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--beige-200);
  font-size: clamp(19px, 1.6vw, 24px);
  line-height: 1.5;
  margin-bottom: 32px;
  max-width: 64ch;
}
.research-article__byline {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--fg-muted);
}
.research-article__author { display: inline-flex; align-items: center; gap: 12px; }
.research-article__initials {
  width: 32px; height: 32px;
  border: 1px solid var(--gold-400);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-serif);
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--gold-100);
}
.research-article__sep { color: var(--rule-strong); }

/* ─── FIGURES (scaffolded — see SEO-AUDIT/figure-insertion-points.md) ───
   Used by editorial figures dropped into research articles. The figure
   itself is invisible until real art exists at the referenced /assets/
   path; alt text + figcaption are always present so screen readers and
   crawlers see the editorial content even pre-art. */
.research-figure {
  margin: 36px 0 32px;
  text-align: center;
}
.research-figure img {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
  background: #F7F5F0;
}
.research-figure figcaption {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.55;
  letter-spacing: 0.01em;
  color: var(--fg-muted);
  margin-top: 10px;
  max-width: 64ch;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

/* ─── ARTICLE BODY ─────────────────────────────────────── */
.research-article__body {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--s-7) var(--gutter) 0;
  font-family: var(--font-serif);
}
.research-article__body p {
  font-family: var(--font-serif);
  font-size: 21px;
  line-height: 1.75;
  color: var(--beige-100);
  margin: 0 0 24px;
  text-wrap: pretty;
}
.research-article__body p:first-of-type::first-letter {
  font-family: var(--font-serif);
  font-size: 4.2em;
  line-height: 0.85;
  float: left;
  margin: 6px 12px 0 0;
  color: var(--gold-100);
  font-weight: 500;
}
.research-article__body h2 {
  font-family: var(--font-serif);
  font-size: clamp(30px, 3vw, 43px);
  line-height: 1.15;
  color: var(--beige-50);
  margin: 56px 0 20px;
  padding-top: 32px;
  border-top: 1px solid var(--gold-400);
  letter-spacing: -0.01em;
}
.research-article__body h2 em { font-style: italic; color: var(--gold-100); }
.research-article__body h3 {
  font-family: var(--font-serif);
  font-size: 26px;
  color: var(--beige-50);
  margin: 36px 0 12px;
}
.research-article__body ul,
.research-article__body ol {
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.7;
  color: var(--beige-100);
  margin: 0 0 28px;
  padding-left: 24px;
}
.research-article__body li { margin-bottom: 12px; }
.research-article__body li::marker { color: var(--gold-300); }
.research-article__body strong { color: var(--beige-50); font-weight: 500; }
.research-article__body em { font-style: italic; }
.research-article__body a,
.research-article__body .research-link {
  color: var(--gold-100);
  border-bottom: 1px solid var(--gold-400);
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.research-article__body a:hover,
.research-article__body .research-link:hover {
  color: var(--beige-50);
  border-color: var(--beige-50);
}

.research-article__body blockquote {
  margin: 40px 0;
  padding: 32px 40px;
  border-left: 2px solid var(--gold-300);
  background: var(--ink-2);
  font-family: var(--font-serif);
}
.research-article__body blockquote p {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--beige-50);
  font-size: 24px;
  line-height: 1.5;
  margin: 0;
}
.research-article__body blockquote p::first-letter { all: unset; }
.research-article__body blockquote cite {
  display: block;
  margin-top: 16px;
  font-style: normal;
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

/* ─── ARTICLE LEGAL FOOTER ─────────────────────────────── */
.research-article__legal {
  max-width: 880px;
  margin: var(--s-7) auto 0;
  padding: var(--s-5) var(--gutter);
  border-top: 1px solid var(--gold-400);
  border-bottom: 1px solid var(--gold-400);
  background: var(--ink-2);
}
.research-article__legal p {
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.75;
  color: var(--beige-300);
  margin: 0;
  letter-spacing: 0.01em;
}
.research-article__legal strong { color: var(--beige-100); font-weight: 500; }

/* ─── RELATED PRODUCTS ─────────────────────────────────── */
.research-article__related {
  max-width: 880px;
  margin: var(--s-8) auto 0;
  padding: var(--s-6) var(--gutter);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.research-article__related-row {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.research-related-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border: 1px solid var(--gold-400);
  color: var(--beige-100);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.research-related-chip:hover { background: var(--gold-200); color: var(--ink-0); border-color: var(--gold-200); }
.research-related-chip__dot {
  width: 6px; height: 6px;
  background: var(--gold-200);
  border-radius: 50%;
}

/* ─── TAGS ─────────────────────────────────────────────── */
.research-article__tags {
  max-width: 880px;
  margin: var(--s-6) auto 0;
  padding: 0 var(--gutter);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.research-tag {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--fg-muted);
  border: 1px solid var(--rule-strong);
  padding: 6px 12px;
}

/* ─── PREV/NEXT NAV ────────────────────────────────────── */
.research-article__nav {
  max-width: 880px;
  margin: var(--s-8) auto 0;
  padding: var(--s-6) var(--gutter) 0;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
@media (max-width: 700px) { .research-article__nav { grid-template-columns: 1fr; } }
.research-nav-link {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  border: 1px solid var(--rule);
  transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.research-nav-link:hover { border-color: var(--gold-300); background: var(--ink-2); }
.research-nav-link.is-next { text-align: right; align-items: flex-end; }
.research-nav-link__lbl {
  font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--gold-200);
}
.research-nav-link__title {
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1.25;
  color: var(--beige-50);
}

/* ─── ARTICLE-NOT-FOUND STATE ──────────────────────────── */
.research-article__missing {
  padding: var(--s-9) var(--gutter);
  text-align: center;
}
.research-article__missing-inner { max-width: 560px; margin: 0 auto; }
.research-article__missing-title {
  font-family: var(--font-serif);
  font-size: clamp(39px, 5vw, 69px);
  line-height: 1.05;
  color: var(--beige-50);
  margin: 16px 0 24px;
}
.research-article__missing-title em { font-style: italic; color: var(--gold-100); }
.research-article__missing p {
  color: var(--beige-200);
  font-size: 16px;
  line-height: 1.85;
  margin-bottom: 32px;
}

/* ─── REFERENCES SECTION (article footer) ─────────────── */
.research-references {
  margin-top: var(--s-7);
  padding-top: var(--s-5);
  border-top: 1px solid var(--rule);
}
.research-references h2 {
  font-family: var(--font-serif);
  font-size: 28px;
  letter-spacing: -0.01em;
  color: var(--beige-50);
  margin-bottom: 16px;
}
.research-references__intro {
  font-size: 15px;
  color: var(--fg-muted);
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 64ch;
}
.research-references__list {
  font-size: 15px;
  line-height: 1.75;
  color: var(--beige-200);
  padding-left: 24px;
  margin: 0;
}
.research-references__list li {
  margin-bottom: 12px;
  padding-left: 4px;
}
.research-references__list em { color: var(--beige-100); }
.research-references__list a {
  color: var(--gold-200);
  border-bottom: 1px solid rgba(212, 175, 96, 0.3);
}
.research-references__list a:hover { color: var(--gold-100); }
.research-references__note {
  font-size: 13px;
  color: var(--fg-muted);
  font-style: italic;
  margin-top: 4px;
  line-height: 1.6;
}
