/* ============================================================
   Northstar 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: #86BC25;
  --case-soft: #E7F0D2;
}

/* 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.image {
  position: relative; overflow: hidden; padding: 0; display: block;
}
.case-photo.image img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.case-hero .case-photo.image,
.case-photo.image.framed {
  aspect-ratio: auto; background: var(--case-soft);
  padding: 48px; display: flex; align-items: center; justify-content: center;
}
.case-hero .case-photo.image img,
.case-photo.image.framed img {
  height: auto; object-fit: contain; border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.case-photo.image.framed { margin-bottom: 48px; }

/* 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); }
section.block > p:last-child { margin-bottom: 0; }

/* Task sections */
.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;
}

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

.close-quote {
  font-family: var(--sans); font-size: 18px;
  line-height: 1.75; max-width: 60ch; margin: 0; 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; }
}
