/* ─────────────────────────────────────────────────────────────
   shared.css — Christine Fok portfolio
   Shared tokens, layout, and components across all case studies
   ───────────────────────────────────────────────────────────── */

/* ─── Tokens ─────────────────────────────────────────────── */
:root {
  --primary-dark:  #320707;
  --primary-light: #ffd7ef;
  --ink:           #320707;
  --ink-mid:       #5C2C2C;
  --ink-light:     #A07878;
  --cream:         #FDF7F5;
  --cream-deep:    #F5EBEB;
  --paper:         #FFFBFA;
  --accent:        #ffd7ef;
  --accent-pale:   #FFE8F4;
  --border:        #E8D4D4;
  --white-text:    #FFF5F9;
  --white-mid:     #CCAAB8;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;
  --max-w:  780px;
  --pad-x:  clamp(1.5rem, 5vw, 3.5rem);
}

/* ─── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; border-radius: 6px; }

/* ─── Nav ────────────────────────────────────────────────── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--ink);
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
nav .inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 0 var(--pad-x);
  display: flex; justify-content: space-between; align-items: center;
}
nav .back {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--white-mid); transition: color 0.2s;
}
nav .back:hover { color: var(--white-text); }
nav .back svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }
nav .project-label {
  font-size: 0.75rem; color: var(--white-mid);
  letter-spacing: 0.04em;
}

/* ─── Hero ───────────────────────────────────────────────── */
.cs-hero {
  background: var(--ink);
  padding: clamp(4rem, 10vw, 7rem) 0 0;
  overflow: hidden;
}
.cs-hero-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 0 var(--pad-x);
}
.cs-tag {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.6875rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1.5rem;
}
.cs-tag::before {
  content: ''; display: block; width: 1.5rem;
  height: 1px; background: var(--accent);
}
.cs-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 6vw, 4rem);
  font-weight: 400; line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--white-text);
  margin-bottom: 1.25rem;
  max-width: 640px;
}
.cs-hero h1 em { font-style: italic; color: var(--accent); }
.cs-hero-sub {
  font-size: clamp(0.9375rem, 1.5vw, 1.0625rem);
  font-weight: 300; line-height: 1.8;
  color: var(--white-mid); max-width: 520px;
  margin-bottom: 3rem;
}

/* ─── Hero meta ──────────────────────────────────────────── */
.cs-meta-item { display: flex; flex-direction: column; gap: 0.25rem; }
.cs-meta-label {
  font-size: 0.625rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--white-mid);
}
.cs-meta-value {
  font-size: 0.875rem; font-weight: 400;
  color: var(--white-text);
}

/* ─── Hero image ─────────────────────────────────────────── */
.cs-hero-img {
  width: 100%;
  background: #ffffff;
  padding: 2.5rem var(--pad-x) 0;
}
.img-full {
  max-width: var(--max-w);
  margin: 0 auto;
  display: block;
  width: 100%;
}
.img-full img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
}

/* ─── Content layout ─────────────────────────────────────── */
.cs-body {
  max-width: var(--max-w); margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* ─── Sections ───────────────────────────────────────────── */
.cs-section { padding: clamp(3rem, 6vw, 5rem) 0; border-bottom: 1px solid var(--border); }
.cs-section:last-child { border-bottom: none; }

.section-label {
  font-size: 0.625rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-light); margin-bottom: 1.5rem;
}
.cs-section h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 400; line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink); margin-bottom: 1.25rem;
}
.cs-section h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-weight: 400; line-height: 1.3;
  color: var(--ink); margin-bottom: 0.75rem;
}
.cs-section p {
  font-size: clamp(0.9375rem, 1.4vw, 1rem);
  font-weight: 300; line-height: 1.85;
  color: var(--ink-mid); margin-bottom: 1.25rem;
}
.cs-section p:last-child { margin-bottom: 0; }
.cs-section p strong { font-weight: 500; color: var(--ink); }
.cs-section strong { color: var(--ink); font-weight: 500; }
.cs-section ul {
  list-style: none; display: grid; gap: 0.625rem;
  margin-bottom: 1.25rem;
}
.cs-section ul li {
  display: flex; gap: 0.75rem; align-items: baseline;
  font-size: 0.9375rem; font-weight: 300;
  line-height: 1.7; color: var(--ink-mid);
}
.cs-section ul li::before {
  content: '';
  display: block;
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--accent-pale);
  border: 1.5px solid var(--accent);
  margin-top: 0.1rem;
}

/* ─── Pull quote ─────────────────────────────────────────── */
.pull-quote {
  margin: 2rem 0;
  padding: 1.5rem 2rem;
  background: var(--cream-deep);
  border-left: 3px solid var(--primary-dark);
  border-radius: 0 4px 4px 0;
}
.pull-quote p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.0625rem, 2vw, 1.25rem) !important;
  color: var(--ink) !important; font-weight: 400 !important;
  line-height: 1.65 !important; margin: 0 !important;
}
.pull-quote cite {
  display: block; margin-top: 0.75rem;
  font-size: 0.75rem; font-style: normal;
  color: var(--ink-light); letter-spacing: 0.04em;
}

/* ─── Image blocks ───────────────────────────────────────── */
.img-block {
  margin: 2rem 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--paper);
}
.img-block img {
  width: 100%; height: auto;
  display: block; border-radius: 0;
}
.img-block figcaption {
  padding: 0.875rem 1.25rem;
  font-size: 0.75rem; color: var(--ink-light);
  border-top: 1px solid var(--border);
  letter-spacing: 0.02em;
}

/* ─── Image placeholder ──────────────────────────────────── */
.img-placeholder {
  background: var(--cream-deep);
  aspect-ratio: 16/9;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0.5rem;
}
.img-placeholder.tall { aspect-ratio: 4/5; }
.img-placeholder svg {
  width: 2rem; height: 2rem;
  stroke: var(--ink-light); fill: none; stroke-width: 1.5;
}
.img-placeholder span {
  font-size: 0.6875rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-light);
}

/* ─── Hero metrics (shared — used in both case study heroes) */
.cs-metrics {
  display: flex;
  gap: 3rem;
  margin-bottom: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.cs-metric .metric-num {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 400;
  color: var(--white-text);
  line-height: 1;
  margin-bottom: 0.375rem;
}
.cs-metric .metric-label {
  font-size: 0.75rem;
  color: var(--white-mid);
  letter-spacing: 0.04em;
  line-height: 1.4;
}
@media (max-width: 560px) {
  .cs-metrics { flex-direction: column; gap: 1.5rem; }
}

/* ─── Footer nav ─────────────────────────────────────────── */
.cs-footer-nav {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem;
}
.footer-nav-link {
  display: inline-flex; flex-direction: column; gap: 0.25rem;
}
.footer-nav-link .nav-dir {
  font-size: 0.625rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-light);
}
.footer-nav-link .nav-title {
  font-size: 0.9375rem; font-weight: 500;
  color: var(--ink); transition: color 0.2s;
}
.footer-nav-link:hover .nav-title { color: var(--ink-mid); }
.footer-nav-link.next { text-align: right; }

/* ─── Footer ─────────────────────────────────────────────── */
footer {
  background: var(--ink);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 1.75rem 0;
}
footer .inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 0 var(--pad-x);
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 1rem;
}
footer .foot-copy {
  font-size: 0.75rem; color: var(--white-mid);
}
footer .foot-links {
  display: flex; gap: 1.5rem; list-style: none;
}
footer .foot-links a {
  font-size: 0.75rem; color: var(--white-mid); transition: color 0.2s;
}
footer .foot-links a:hover { color: var(--white-text); }
