/* ==========================================================================
   Fashion Beyond (zine) — project-specific art direction
   Loaded only by /work/zine/ (inside the akhilj.ca V3 frame).
   The zine's own palette and type, sampled from the design:
   Taupe #7E6C59 · Sand #EFDAC4 · Terracotta #C65347 · Mist #EAEAEA · White
   Inria Serif (headlines) · Open Sans (body) · Play (folios)
   Motifs: offset colour blocks, white-framed photos, vertical headlines,
   terracotta folio boxes. The AkhilJ wine accent is not used here.
   ========================================================================== */

.project-zn {
  --zn-taupe: #7E6C59;
  --zn-taupe-2: #5E4F41;
  --zn-sand: #EFDAC4;
  --zn-sand-50: #F8EEE3;
  --zn-red: #C65347;
  --zn-mist: #EAEAEA;
  --zn-ink: #2B2621;
  --zn-ink-2: #574D44;
  --zn-muted: #85786C;
  --zn-line: rgba(94, 79, 65, 0.18);
  --zn-serif: "Inria Serif", Georgia, serif;
  --zn-sans: "Open Sans", "Instrument Sans", system-ui, sans-serif;
}
.project-zn main { font-family: var(--zn-sans); background: #fff; color: var(--zn-ink-2); --focus: var(--zn-red); }
.project-zn main h1, .project-zn main h2, .project-zn main h3 { font-family: var(--zn-serif); font-weight: 700; color: var(--zn-taupe); letter-spacing: -0.01em; }

.zn-wrap { width: min(100% - (var(--gutter) * 2), 1200px); margin-inline: auto; }
.zn-section { padding-block: clamp(84px, 9vw, 136px); }
.zn-section--sand { background: var(--zn-sand-50); }
.zn-section--mist { background: var(--zn-mist); }
.zn-label { display: inline-flex; align-items: center; gap: 12px; font-family: "Play", var(--zn-sans); font-size: 0.875rem; color: var(--zn-red); letter-spacing: 0.02em; }
.zn-label::after { content: ""; width: 56px; height: 1px; background: var(--zn-taupe); }
.zn-head { max-width: 760px; margin-bottom: clamp(36px, 4vw, 60px); }
.zn-head h2 { margin-top: 18px; font-size: clamp(2.1rem, 1.3rem + 2.4vw, 3.5rem); line-height: 1.05; }
.zn-head p { margin-top: 18px; font-size: 1.0625rem; line-height: 1.75; max-width: 60ch; }
.zn-caption { margin-top: 14px; font-size: 0.875rem; color: var(--zn-muted); }

/* ---------- Hero ---------- */
.zn-hero { position: relative; overflow: hidden; padding: clamp(28px, 3vw, 40px) 0 clamp(72px, 8vw, 120px); background: linear-gradient(90deg, var(--zn-sand) 0 43%, #fff 43%); }
.zn-hero::after { content: ""; position: absolute; right: 0; top: 0; width: 18%; height: 46%; background: var(--zn-mist); z-index: 0; }
.zn-hero > * { position: relative; z-index: 1; }
.zn-hero__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 4vw, 64px); align-items: center; margin-top: clamp(28px, 4vw, 56px); }
.zn-kicker { font-family: "Play", var(--zn-sans); font-size: 0.875rem; color: var(--zn-red); letter-spacing: 0.02em; }
.zn-hero h1 { margin-top: 14px; font-size: clamp(3rem, 1.4rem + 5.6vw, 6.4rem); line-height: 0.92; color: var(--zn-taupe); }
.zn-hero h1 span { display: block; }
.zn-rule { width: 72%; height: 2px; margin-top: 22px; background: var(--zn-taupe); }
.zn-hero__intro { margin-top: 24px; font-size: 1.0938rem; line-height: 1.7; max-width: 40ch; color: var(--zn-ink-2); }
.zn-dots { display: flex; gap: 12px; margin-top: 28px; padding: 14px 18px; width: max-content; background: #fff; }
.zn-dots i { width: 26px; height: 26px; border-radius: 50%; background: var(--c); }
.zn-book { position: relative; padding: 4% 2% 6%; }
.zn-book__back { position: absolute; right: -4%; top: 0; width: 70%; rotate: 4deg; opacity: 0.9; }
.zn-book__front { position: relative; rotate: -2deg; }

/* A printed spread: photo with centre fold shading and soft paper shadow */
.zn-spread { position: relative; margin: 0; background: #fff; box-shadow: 0 1px 2px rgba(43, 38, 33, 0.08), 0 30px 60px -24px rgba(43, 38, 33, 0.35); }
.zn-spread img { display: block; width: 100%; height: auto; }
.zn-spread::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0) 44%, rgba(0, 0, 0, 0.05) 48.5%, rgba(0, 0, 0, 0.16) 49.9%, rgba(255, 255, 255, 0.18) 50.2%, rgba(0, 0, 0, 0.04) 52%, rgba(0, 0, 0, 0) 56%);
}

/* ---------- Facts ---------- */
.zn-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--zn-taupe); }
.zn-facts > div { padding: 20px 22px 0 0; }
.zn-facts > div + div { padding-left: 22px; border-left: 1px solid var(--zn-line); }
.zn-facts dt { font-family: "Play", var(--zn-sans); font-size: 0.8125rem; color: var(--zn-red); }
.zn-facts dd { margin-top: 6px; font-size: 0.9688rem; line-height: 1.5; font-weight: 600; color: var(--zn-ink); }

/* ---------- Voice (the headlines as a manifesto) ---------- */
.zn-voice { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.zn-lines { display: grid; }
.zn-lines li { display: grid; grid-template-columns: 2.4em 1fr; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--zn-line); font-family: var(--zn-serif); font-weight: 700; font-size: clamp(1.35rem, 1rem + 1.2vw, 2.1rem); line-height: 1.15; color: var(--zn-taupe); }
.zn-lines li:nth-child(3n + 2) { color: var(--zn-red); }
.zn-lines li span { font-family: "Play", var(--zn-sans); font-weight: 400; font-size: 0.8125rem; color: var(--zn-muted); }

/* ---------- System ---------- */
.zn-system { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; }
.zn-card { padding: 28px; background: #fff; box-shadow: 0 0 0 1px var(--zn-line); }
.zn-card h3 { font-family: "Play", var(--zn-sans); font-weight: 400; font-size: 0.875rem; color: var(--zn-red); letter-spacing: 0.02em; }
.zn-card--palette { grid-column: span 5; }
.zn-card--type { grid-column: span 7; }
.zn-card--moves { grid-column: 1 / -1; }
.zn-swatches { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
.zn-sw { display: grid; gap: 8px; }
.zn-sw i { display: block; aspect-ratio: 3 / 4; background: var(--c); box-shadow: inset 0 0 0 1px var(--zn-line); }
.zn-sw b { font-size: 0.8125rem; font-weight: 600; color: var(--zn-ink); }
.zn-sw span { font-family: var(--font-mono); font-size: 0.7rem; color: var(--zn-muted); }
.zn-type { display: grid; gap: 18px; margin-top: 20px; }
.zn-type > div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 16px; align-items: baseline; padding-bottom: 16px; border-bottom: 1px solid var(--zn-line); }
.zn-type > div:last-child { border-bottom: 0; padding-bottom: 0; }
.zn-type small { font-size: 0.8125rem; color: var(--zn-muted); }
.zn-moves { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 22px; }
.zn-move { display: grid; gap: 12px; align-content: start; }
.zn-move p { font-size: 0.9375rem; line-height: 1.6; }
.zn-move b { display: block; font-family: var(--zn-serif); font-size: 1.125rem; color: var(--zn-taupe); }
.zn-diagram { aspect-ratio: 4 / 3; background: var(--zn-sand-50); position: relative; overflow: hidden; }
.zn-diagram i { position: absolute; display: block; }

/* ---------- Spread viewer ---------- */
.zn-viewer { display: grid; gap: 22px; }
.zn-stage { position: relative; }
.zn-viewer [role="tabpanel"][hidden] { display: none; }
.zn-viewer [role="tabpanel"] { animation: zn-fade 450ms var(--ease-out); }
@keyframes zn-fade { from { opacity: 0; } }
.zn-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.zn-arrows { display: flex; gap: 8px; }
.zn-arrows button { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1px var(--zn-line); color: var(--zn-taupe); transition: background-color 300ms var(--ease), color 300ms var(--ease); }
.zn-arrows button:hover { background: var(--zn-taupe); color: #fff; }
.zn-arrows svg { width: 18px; height: 18px; }
.zn-thumbs { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; }
.zn-thumbs button { position: relative; padding: 0; background: none; opacity: 0.55; transition: opacity 300ms var(--ease); }
.zn-thumbs button:hover { opacity: 0.85; }
.zn-thumbs button[aria-selected="true"] { opacity: 1; }
.zn-thumbs button[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 2px; background: var(--zn-red); }
.zn-thumbs img { display: block; width: 100%; height: auto; box-shadow: 0 0 0 1px var(--zn-line); }
.zn-count { font-family: "Play", var(--zn-sans); font-size: 0.9375rem; color: var(--zn-taupe); }
.zn-count b { color: var(--zn-red); font-weight: 400; }

.zn-note { max-width: 70ch; margin-top: 28px; padding: 16px 20px; border-left: 3px solid var(--zn-red); background: var(--zn-sand-50); font-size: 0.9375rem; line-height: 1.6; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .zn-hero { background: linear-gradient(180deg, var(--zn-sand) 0 44%, #fff 44%); }
  .zn-hero::after { display: none; }
  .zn-hero__grid, .zn-voice { grid-template-columns: minmax(0, 1fr); }
  .zn-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .zn-facts > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .zn-facts > div:nth-child(n + 3) { margin-top: 18px; border-top: 1px solid var(--zn-line); }
  .zn-system > * { grid-column: 1 / -1 !important; }
  .zn-moves { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .zn-thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 16px; }
}
@media (max-width: 600px) {
  .zn-facts { grid-template-columns: 1fr; }
  .zn-facts > div, .zn-facts > div + div { padding: 16px 0 0; border-left: 0; margin-top: 16px; border-top: 1px solid var(--zn-line); }
  .zn-moves { grid-template-columns: 1fr; }
  .zn-swatches { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
  .zn-type > div { grid-template-columns: 1fr; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .zn-viewer [role="tabpanel"] { animation: none; }
}

/* ---------- Live copy layer ----------
   Body copy drafted in 2026 replaces the original placeholder text. Each block is
   positioned in the spread's own 1190 × 842 design units (1em = 1 design px) and
   sits on the spread, whose placeholder text was erased from the image (inpainted
   from the rows between lines) when it was rendered from the PDF. */
.zn-spread { container-type: inline-size; }
.zn-copy { position: absolute; inset: 0; z-index: 1; font-size: calc(100cqw / 1190); pointer-events: none; }
.zn-b { position: absolute; overflow: hidden; padding: 2em 4em 0; }
.zn-b p { margin: 0; font-family: "Open Sans", sans-serif; font-size: 11em; line-height: 1.4545; color: #4B4B4B; letter-spacing: 0; }
.zn-b--toc { display: flex; align-items: center; padding: 0 4em; }
.zn-b--toc p { font-size: 11.5em; line-height: 1.2; }
.zn-h { position: absolute; white-space: nowrap; }
.zn-h p { margin: 0; font-family: "Inria Serif", Georgia, serif; font-weight: 700; font-size: 40em; line-height: 1.2125; color: #7E6C59; letter-spacing: 0; }
