/* ============================================================
   case-study.css — shared styles for all work/* pages
   ============================================================ */

/* ── TOP NAV ── */
.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 80px;
}

.back-link {
  font-size: 13px;
  color: var(--accent);
  text-decoration: underline;
  display: flex;
  align-items: center;
  gap: 6px;
}
.back-link:hover { opacity: 0.75; }

.nav-name {
  font-size: 13px;
  color: var(--mid);
}
.nav-name:hover { color: var(--ink); }

/* ── HEADER ── */
.cs-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  margin-bottom: 80px;
  align-items: end;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--border);
}

.cs-index {
  font-size: 10px;
  color: var(--mid);
  margin-bottom: 14px;
}

.cs-title {
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
}

.cs-meta-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cs-meta-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.meta-label {
  font-size: 14px;
  color: var(--mid);
}

.meta-value {
  font-size: 14px;
  font-weight: 300;
  color: var(--ink);
  line-height: 1.5;
}

.meta-tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 2px;
}

/* ── DRAWING HERO ── */
.cs-drawing {
  width: 100%;
  max-width: 560px;
  margin: 0 auto 80px;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cs-drawing svg {
  width: 100%;
  height: 100%;
  opacity: 0.5;
}

.cs-drawing svg line,
.cs-drawing svg rect,
.cs-drawing svg circle,
.cs-drawing svg path,
.cs-drawing svg polyline,
.cs-drawing svg ellipse {
  stroke: var(--ink);
}

/* ── BODY SECTIONS ── */
.cs-section {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 56px;
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}

.cs-section:first-of-type { border-top: 1px solid var(--border); }

.cs-section-label {
  font-size: 14px;
  color: var(--mid);
  padding-top: 4px;
}

.cs-section-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.cs-section-body p {
  font-size: clamp(14px, 1.55vw, 16px);
  line-height: 1.75;
  font-weight: 300;
  color: var(--ink);
}

[data-theme="dark"] .cs-section-body p { color: var(--mid); }

.cs-section-body p a {
  color: var(--accent);
  text-decoration: underline;
}
.cs-section-body p a:hover { opacity: 0.75; }

/* ── CALLOUT ── */
.callout {
  border-left: 2px solid var(--border);
  padding: 4px 0 4px 16px;
  font-size: clamp(15px, 1.7vw, 18px);
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink) !important;
}

/* ── IMAGE PLACEHOLDERS (swap for <img> tags) ── */
.img-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.img-placeholder-label {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid);
}

.img-caption {
  font-size: 11px;
  font-style: italic;
  color: var(--mid);
  margin-top: 10px;
}

.img-2up {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ── NEXT PROJECT ── */
.next-project {
  padding: 56px 0 0;
}

.next-label {
  font-size: 10px;
  color: var(--mid);
  margin-bottom: 10px;
}

.next-title {
  font-size: clamp(16px, 2.2vw, 24px);
  font-weight: 400;
  color: var(--accent);
  text-decoration: underline;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.next-title:hover { opacity: 0.75; }

.next-arrow {
  font-size: 18px;
  color: var(--mid);
}

/* ── RESPONSIVE ── */
@media (max-width: 700px) {
  .cs-header { grid-template-columns: 1fr; gap: 32px; }
  .cs-section { grid-template-columns: 1fr; gap: 12px; }
  .img-2up    { grid-template-columns: 1fr; }
  .top-nav    { margin-bottom: 48px; }
}
