/* ==========================================================================
   CASE STUDY — Long-Form Newspaper Article Styles (10-Section)
   ========================================================================== */

/* --------------------------------------------------------------------------
   CASE STUDY WRAPPER
   -------------------------------------------------------------------------- */
.case-study-article {
  max-width: 900px;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   COVER STORY (P.01) — Hero Visual & Project Metadata
   -------------------------------------------------------------------------- */
.cs-cover {
  padding-bottom: 32px;
  border-bottom: 1px solid var(--rule-light);
  margin-bottom: 36px;
}

.cs-cover-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.cs-issue-label {
  font-family: var(--font-condensed);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.cs-cover-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.94;
  color: var(--ink-black);
  margin-bottom: 10px;
}

.cs-cover-deck {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-secondary);
  max-width: 640px;
  margin-bottom: 20px;
}

.cs-cover-visual {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: var(--paper-muted);
  margin-bottom: 20px;
}

.cs-cover-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cs-metadata-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 16px 0;
  border-top: 1px dotted var(--rule-dotted);
  border-bottom: 1px dotted var(--rule-dotted);
}

.cs-meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cs-meta-label {
  font-family: var(--font-condensed);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}

.cs-meta-value {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-black);
}

/* --------------------------------------------------------------------------
   ARTICLE SECTIONS (P.02 – P.10) — Reusable Section Layout
   -------------------------------------------------------------------------- */
.cs-section {
  padding: 36px 0;
  border-bottom: 1px solid var(--rule-light);
}

.cs-section:last-child {
  border-bottom: none;
}

.cs-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 2px solid var(--rule-heavy);
  padding-bottom: 6px;
  margin-bottom: 20px;
}

.cs-section-title {
  font-family: var(--font-condensed);
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-black);
}

.cs-section-page {
  font-family: var(--font-condensed);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Two-Column Article Body */
.cs-two-column {
  column-count: 2;
  column-gap: 32px;
  column-rule: 1px solid var(--rule-light);
}

.cs-two-column p {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-body);
  margin-bottom: 14px;
}

/* Single Column Body */
.cs-body-text {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-body);
  max-width: 680px;
  margin-bottom: 16px;
}

/* Pull Quote */
.cs-pullquote {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink-black);
  border-left: 4px solid var(--accent-red);
  padding-left: 16px;
  margin: 24px 0;
  max-width: 600px;
}

/* Oversized Statement Typography */
.cs-oversized-statement {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 900;
  line-height: 1.05;
  color: var(--ink-black);
  margin: 20px 0;
}

/* --------------------------------------------------------------------------
   UI SCREENSHOTS & FIGURES
   -------------------------------------------------------------------------- */
.cs-figure {
  margin: 24px 0;
}

.cs-figure img {
  width: 100%;
  display: block;
  border: 1px solid var(--rule-light);
}

.cs-figure-caption {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-muted);
  margin-top: 6px;
  line-height: 1.4;
}

/* Full-Width Figure */
.cs-figure-full {
  margin: 28px calc(-1 * var(--page-margin));
}

.cs-figure-full img {
  width: 100%;
  border: none;
}

/* Figure Grid (2 or 3 across) */
.cs-figure-grid {
  display: grid;
  gap: 12px;
  margin: 24px 0;
}

.cs-figure-grid.cols-2 {
  grid-template-columns: 1fr 1fr;
}

.cs-figure-grid.cols-3 {
  grid-template-columns: 1fr 1fr 1fr;
}

/* --------------------------------------------------------------------------
   USER FLOW INFOGRAPHIC
   -------------------------------------------------------------------------- */
.cs-flow-diagram {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 24px 0;
  overflow-x: auto;
  flex-wrap: wrap;
  justify-content: center;
}

.cs-flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 100px;
  text-align: center;
}

.cs-flow-step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--ink-black);
  color: var(--paper-white);
  font-family: var(--font-condensed);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cs-flow-step-label {
  font-family: var(--font-condensed);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-charcoal);
}

.cs-flow-arrow {
  font-size: 18px;
  color: var(--ink-muted);
}

/* --------------------------------------------------------------------------
   DESIGN SYSTEM SPREAD
   -------------------------------------------------------------------------- */
.cs-design-system-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 20px 0;
}

.cs-ds-card {
  border: 1px solid var(--rule-light);
  padding: 16px;
}

.cs-ds-card-title {
  font-family: var(--font-condensed);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  margin-bottom: 10px;
  border-bottom: 1px dotted var(--rule-dotted);
  padding-bottom: 6px;
}

/* Color Swatches */
.cs-swatch-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cs-swatch {
  width: 40px;
  height: 40px;
  border-radius: 2px;
  border: 1px solid var(--rule-light);
}

.cs-swatch-label {
  font-family: var(--font-body);
  font-size: 10px;
  color: var(--ink-muted);
  text-align: center;
  margin-top: 2px;
}

/* --------------------------------------------------------------------------
   LIVE PROTOTYPE EMBED
   -------------------------------------------------------------------------- */
.cs-prototype-embed {
  margin: 28px 0;
  background-color: var(--paper-muted);
  padding: 16px;
  border: 1px solid var(--rule-light);
}

.cs-prototype-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.cs-prototype-title {
  font-family: var(--font-condensed);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-black);
}

.cs-prototype-link {
  font-family: var(--font-condensed);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-red);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cs-prototype-iframe {
  width: 100%;
  height: 500px;
  border: 1px solid var(--rule-light);
  background-color: var(--paper-white);
}

/* --------------------------------------------------------------------------
   THE RESULT / RETROSPECTIVE
   -------------------------------------------------------------------------- */
.cs-result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 20px 0;
}

.cs-result-card {
  padding: 16px;
  border: 1px solid var(--rule-light);
}

.cs-result-card-title {
  font-family: var(--font-condensed);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-red);
  margin-bottom: 8px;
}

.cs-result-card p {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-body);
}

/* NEXT STORY Navigation */
.cs-next-story {
  display: flex;
  justify-content: flex-end;
  padding: 28px 0;
  border-top: 1px dotted var(--rule-dotted);
  margin-top: 28px;
}

.cs-next-story-link {
  font-family: var(--font-condensed);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-black);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap var(--duration-hover) var(--ease-editorial);
}

.cs-next-story-link:hover {
  gap: 14px;
}

.cs-back-link {
  font-family: var(--font-condensed);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: color var(--duration-hover) ease, gap var(--duration-hover) ease;
}

.cs-back-link:hover {
  color: var(--ink-black);
  gap: 10px;
}
