/* case-study.css — design project detailed layout (v1)
   loaded only by static design project pages generated from data.js */

.cs-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3rem var(--pad) 2rem;
}

/* prev/next inside any case-study wrap (illustration + design) — 2rem above
   the top hairline, 2rem padding inside, mirrors the bottom-side rhythm. */
.cs-wrap .project-prevnext {
  margin-top: 2rem;
  padding: 2rem 0;
}
@media (max-width: 700px) {
  .cs-wrap .project-prevnext { margin-top: 1.5rem; padding: 1.5rem 0; }
}

.cs-wrap .project-prevnext--top {
  margin-top: -0.5rem;
  margin-bottom: 1rem;
  border-top: 1px solid rgba(14,13,11,0.08);
  padding: 0.75rem 0;
}
@media (max-width: 700px) {
  .cs-wrap .project-prevnext--top { padding: 0.75rem 0; margin-bottom: 1rem; }
}

.cs-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(14,13,11,0.55);
  margin-bottom: 0.75rem;
}

.cs-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1;
  margin-bottom: 0.5rem;
  overflow-wrap: anywhere;
}

.cs-meta {
  font-size: 0.85rem;
  color: rgba(14,13,11,0.6);
  margin-bottom: 2rem;
}

.cs-meta span + span::before { content: ' \B7  '; opacity: 0.5; }

.cs-meta--has-series { margin-bottom: 0.25rem !important; }
.cs-meta-series {
  font-size: 0.85rem;
  color: rgba(14,13,11,0.6);
  margin-bottom: 2rem;
}
.cs-meta-series .cs-meta-series-label { font-weight: 600; color: rgba(14,13,11,0.8); margin-right: 0.35rem; }

/* title header */
.cs-header { margin-bottom: 2rem; }

.cs-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

.cs-header-mark {
  width: 180px;
  height: auto;
  opacity: 0.9;
  flex-shrink: 0;
}

@media (max-width: 700px) {
  .cs-wrap { padding: 1.5rem var(--pad) 1.5rem; }
  .cs-title-row { gap: 1rem; align-items: center; }
  .cs-title { font-size: 1.75rem; }
  .cs-header-mark { width: 90px; }
  .cs-meta { margin-bottom: 1.5rem; }
  .cs-meta-series { margin-bottom: 1.5rem; }
  .cs-header { margin-bottom: 1.5rem; }
  .cs-hero { margin-bottom: 1.5rem; }
}

/* color concept caption */
.cs-color-concept {
  font-size: 0.78rem;
  line-height: 1.55;
  color: rgba(14,13,11,0.7);
  margin-top: 1.1rem;
  max-width: 28ch;
}

/* hero */
.cs-hero {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  margin-bottom: 2rem;
}

/* core identity panel */
.cs-core {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr;
  gap: 0;
  background: var(--paper);
  border-top: 1px solid rgba(14,13,11,0.12);
  border-bottom: 1px solid rgba(14,13,11,0.12);
  margin-bottom: 2rem;
}
@media (max-width: 700px) {
  .cs-core { margin-bottom: 1.5rem; }
}

.cs-core > * {
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
}

.cs-core-spacer { flex: 1; }

.cs-core-footer {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(14,13,11,0.4);
  padding-top: 1.25rem;
  border-top: 1px solid rgba(14,13,11,0.08);
}

.cs-core > * + * {
  border-left: 1px solid rgba(14,13,11,0.08);
}

.cs-core h2 {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.cs-core-text p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(14,13,11,0.78);
  margin-bottom: 1rem;
}

.cs-typo-row {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  margin-bottom: 0.4rem;
}

.cs-typo-sample {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.cs-typo-sample.serif {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
}

.cs-typo-meta {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(14,13,11,0.55);
}

.cs-palette {
  display: flex;
  gap: 6px;
}

.cs-swatch {
  width: 40px;
  height: 40px;
}

.cs-palette-bar {
  display: flex;
  height: 14px;
  margin-top: 1.75rem;
  width: 100%;
}

.cs-palette-bar > div { height: 100%; }

.cs-palette-caption {
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(14,13,11,0.5);
  margin-top: 0.6rem;
}

.cs-typo-sample-block {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(14,13,11,0.1);
}

.cs-wordmark {
  font-size: 1.35rem;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1;
}

.cs-wordmark-caret { display: inline-block; transform: translateY(-0.05em); }

.cs-tagline {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 0.95rem;
  font-style: italic;
  line-height: 1.35;
  color: rgba(14,13,11,0.7);
  margin-top: 0.9rem;
  max-width: 20ch;
}

/* image strips */
.cs-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.cs-strip > div {
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  cursor: zoom-in;
}

/* format + context */
.cs-aside {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding: 2.5rem 0 0;
  border-top: 1px solid rgba(14,13,11,0.12);
  margin-top: 2rem;
}

.cs-aside h3 {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(14,13,11,0.5);
  margin-bottom: 0.6rem;
}

.cs-aside p {
  font-size: 0.88rem;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .cs-core { grid-template-columns: 1fr; }
  .cs-core > * + * { border-left: 0; border-top: 1px solid rgba(14,13,11,0.08); }
  .cs-strip { grid-template-columns: 1fr; }
  .cs-aside { grid-template-columns: 1fr; gap: 2rem; }
}
