/* ============================================================
   PG Shop case study — page-specific styles
   Shared reset/tokens/header/footer live in assets/css/style.css.
   This file only adds this page's own accent tokens and layout.
   ============================================================ */

:root {
  --case: #003DA5;
  --case-soft: #CFE0F5;
}

/* This case study runs a narrower column than the home page */
.wrap { max-width: 720px; }
.header-inner { max-width: 720px; }
footer.site { max-width: 720px; }

/* Hero */
.case-hero { padding: 64px 0 8px; }
.case-eyebrow {
  font-size: 14px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--case); margin: 0 0 18px;
}
.case-hero h1 {
  font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 6vw, 54px);
  line-height: 1.1; margin: 0 0 18px;
}
.case-hero .dek {
  font-family: var(--sans); font-weight: 400; font-size: clamp(17px, 2vw, 19px);
  color: var(--muted); max-width: 42ch; margin: 0 0 48px; line-height: 1.5;
}

.meta-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px 32px;
  padding: 32px 0 40px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  margin-bottom: 56px;
}
.meta-item .label {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--muted); margin: 0 0 6px;
}
.meta-item .value { font-size: 15px; margin: 0; }

.case-photo {
  width: 100%; aspect-ratio: 16/9;
  background: repeating-linear-gradient(135deg, var(--case-soft), var(--case-soft) 10px, var(--bg) 10px, var(--bg) 20px);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 14px; text-align: center; padding: 24px;
  margin-bottom: 64px;
}
.case-photo.small { aspect-ratio: 16/9; margin-bottom: 48px; }

.case-photo.photo-filled {
  background: none; padding: 0; overflow: hidden; border-radius: 4px;
}
.case-photo.photo-filled img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

.case-photo.photo-filled.tint-yellow {
  background: #F6EAC2;
  display: flex; align-items: center; justify-content: center;
}
.case-photo.photo-filled.tint-yellow img {
  width: auto; height: auto; max-width: 100%; max-height: 100%;
  object-fit: contain; margin: 0 auto;
}

.case-photo.photo-filled.fit-contain {
  display: flex; align-items: center; justify-content: center;
}
.case-photo.photo-filled.fit-contain img {
  width: auto; height: auto; max-width: 100%; max-height: 100%;
  object-fit: contain; margin: 0 auto;
}

.photo-block { margin-bottom: 64px; }
.photo-block.small { margin-bottom: 48px; }
.photo-block .case-photo { margin-bottom: 0; }
.photo-caption {
  font-family: var(--serif); font-style: italic; font-size: 14px;
  color: var(--muted); margin: 20px 0 0; line-height: 1.5;
}

/* Prose sections */
section.block { padding-bottom: 64px; }
section.block h2.section-title {
  font-family: var(--serif); font-weight: 400; font-size: 28px; margin: 0 0 24px;
}
section.block p { margin: 0 0 18px; max-width: 62ch; }
section.block p.muted { color: var(--muted); }

/* Sub-block pattern (reused for feature / research sub-units) */
.task {
  padding: 56px 0; border-top: 1px solid var(--line);
}
.task:first-of-type { border-top: none; padding-top: 0; }
.task-label {
  font-family: var(--serif); font-style: italic; font-size: 22px;
  color: var(--text); margin: 0 0 32px;
}
.task-label span { color: var(--case); font-style: normal; font-weight: 600; font-size: 14px; letter-spacing: 0.03em; text-transform: uppercase; display: block; margin-bottom: 10px; }

.subhead {
  font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--muted); margin: 0 0 14px; display: flex; align-items: center; gap: 10px;
}
.subhead::before { content: ""; width: 14px; height: 1px; background: var(--case); display: inline-block; }
.task-part { margin-bottom: 36px; }
.task-part p { max-width: 62ch; margin: 0 0 16px; }
.task-part p:last-child { margin-bottom: 0; }

.task-part.decision {
  border-left: 2px solid var(--case); padding-left: 24px;
}

.task:not(:last-child) > *:last-child { margin-bottom: 0; }
.task:last-child { padding-bottom: 0; }

/* Research sub-unit (lighter weight than .task, no border rule) */
.subsection { margin-bottom: 48px; }
.subsection:last-child { margin-bottom: 0; }
.subsection-title {
  font-family: var(--serif); font-style: italic; font-size: 20px;
  color: var(--text); margin: 0 0 18px;
}

/* Persona grid */
.persona-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin: 0 0 18px;
}
.persona-card {
  background: var(--surface); border-radius: 2px; padding: 22px 20px;
}
.persona-card .persona-name {
  font-family: var(--serif); font-size: 18px; margin: 0 0 4px;
}
.persona-card .persona-meta {
  font-size: 13px; color: var(--muted); margin: 0 0 12px;
}
.persona-card .persona-note {
  font-size: 14px; margin: 0; line-height: 1.5;
}
@media (max-width: 640px) {
  .persona-grid { grid-template-columns: 1fr; }
}

/* Stat strip */
.stat-strip {
  display: flex; gap: 32px; flex-wrap: wrap;
  padding: 24px 0; margin-bottom: 8px;
}
.stat-strip .stat .num {
  font-family: var(--serif); font-size: 30px; color: var(--case); display: block; line-height: 1;
  margin-bottom: 6px;
}
.stat-strip .stat .lbl {
  font-size: 13px; color: var(--muted);
}

/* Impact + close */
.impact-block {
  background: var(--surface); border-radius: 2px; padding: 40px 40px;
  margin: 8px 0 18px;
}
.impact-block p { max-width: 62ch; margin: 0; }

.close-quote {
  font-family: var(--sans); font-size: 18px;
  line-height: 1.75; max-width: 60ch; margin: 0 0 64px; color: var(--text);
}

/* Nav footer accent */
.case-nav a:hover { color: var(--case); }

@media (max-width: 640px) {
  .case-hero { padding: 40px 0 8px; }
  .meta-grid { grid-template-columns: 1fr 1fr; gap: 20px 20px; }
  .impact-block { padding: 28px 24px; }
  .task-part.decision { padding-left: 18px; }
  .stat-strip { gap: 24px; }
}
