/* ==========================================================================
   Monolith — Koffein case study (light page)
   Overrides site.css's dark defaults for nav/footer, then lays out the
   case-study specific structure (hero, figures, two-col sections, the
   off-grid cup/street compositions, the ligature specimen and the
   receipt-styled results card).
   ========================================================================== */

body { background: #E4E3E0; color: #1A1A1A; }
::selection { background: #1A1A1A; color: #4F7A14; }

/* ============ nav / footer overrides (light theme) ============ */
header.mono-nav { background: rgba(228,227,224,0.92); border-bottom: 1px solid rgba(26,26,26,0.08); }
.mono-word { color: #6A6A6A; }
.mono-word:hover { color: #1A1A1A; }
header.mono-nav nav a, footer.mono-foot nav a { color: #6A6A6A; }
header.mono-nav nav a:hover, footer.mono-foot nav a:hover { color: #1A1A1A; }
header.mono-nav nav a.is-current { color: #1A1A1A; }
footer.mono-foot { border-top: 1px solid #DFDDD4; }
footer.mono-foot nav a { color: #747474; }
.mono-foot-brand span { color: #6A6A6A; }
.mono-foot-copy { color: #747474; }

/* ============ hero ============ */
.cs-hero { max-width: 1440px; margin: 0 auto; padding: 120px 80px 96px; box-sizing: border-box; }
.cs-hero-head { display: flex; flex-direction: column; gap: 40px; }
.cs-kicker { font-family: 'VCR OSD Mono', monospace; font-size: 13px; letter-spacing: 0.12em; color: #747474; text-transform: uppercase; }
.cs-kicker a { color: #747474; text-decoration: none; transition: color 0.2s ease; }
.cs-kicker a:hover { color: #4F7A14; }
.cs-title { margin: 0; font-weight: 400; font-size: clamp(56px, 9vw, 140px); line-height: 0.98; letter-spacing: -0.04em; color: #1A1A1A; }
.cs-dek { margin: 0; max-width: 560px; font-size: 21px; line-height: 1.4; color: #6A6A6A; }
.cs-meta { margin-top: 88px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; border-top: 1px solid #DFDDD4; padding-top: 28px; }
.cs-meta-item { display: flex; flex-direction: column; gap: 10px; }
.cs-meta-label { font-family: 'VCR OSD Mono', monospace; font-size: 11px; letter-spacing: 0.14em; color: #8F8F8F; text-transform: uppercase; }
.cs-meta-value { font-size: 15px; color: #3D3D3D; }

/* ============ figures ============ */
.cs-figure { margin: 0; padding: 0 0 8px; }
.cs-figure--gap { padding-top: 96px; }
.cs-figure img { display: block; width: 100%; max-width: 1400px; margin: 0 auto; height: auto; }
.cs-figcaption { max-width: 1440px; margin: 0 auto; padding: 16px 80px 0; box-sizing: border-box; display: flex; justify-content: space-between; gap: 24px; font-family: 'VCR OSD Mono', monospace; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: #8F8F8F; }
.cs-figcaption .fig-num { color: #747474; }

/* ============ two-column narrative sections ============ */
.cs-section { max-width: 1440px; margin: 0 auto; padding: 152px 80px 120px; box-sizing: border-box; }
.cs-section-grid { display: grid; grid-template-columns: minmax(240px, 0.8fr) 1.6fr; gap: 64px; align-items: start; }
.cs-section-head { position: sticky; top: 100px; display: flex; align-items: baseline; gap: 14px; }
.cs-section-num { font-family: 'VCR OSD Mono', monospace; font-size: 13px; color: #747474; }
.cs-section-title { margin: 0; font-weight: 400; font-size: clamp(34px, 3.6vw, 54px); letter-spacing: -0.03em; line-height: 1; color: #1A1A1A; }
.cs-section-copy { display: flex; flex-direction: column; gap: 24px; max-width: 620px; }
.cs-lead { margin: 0; font-size: 24px; line-height: 1.35; color: #3D3D3D; }
.cs-lead em, .cs-body em { font-style: normal; color: #1A1A1A; }
.cs-body { margin: 0; font-size: 18px; line-height: 1.55; color: #555555; }

/* ============ off-grid cup (Fig. 02) ============ */
.k-cup-section { padding: 24px 0 0; overflow: hidden; }
.k-cup-grid { position: relative; margin: 0 auto; max-width: 1440px; padding: 0 0 0 80px; box-sizing: border-box; display: grid; grid-template-columns: minmax(200px, 0.7fr) 1.7fr; gap: clamp(24px, 3vw, 48px); align-items: end; }
.k-cup-aside { display: flex; flex-direction: column; gap: 32px; padding-bottom: 44px; }
.k-cup-num { font-family: 'VCR OSD Mono', monospace; font-size: clamp(56px, 7vw, 110px); line-height: 1; color: #C9C8C5; }
.k-cup-note { display: flex; align-items: flex-start; gap: 18px; }
.k-cup-note-label { writing-mode: vertical-rl; transform: rotate(180deg); font-family: 'VCR OSD Mono', monospace; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: #4F7A14; }
.k-cup-note-copy { margin: 0; max-width: 260px; font-size: 15px; line-height: 1.55; color: #555555; }
.k-cup-imgwrap { position: relative; }
.k-cup-imgwrap img { display: block; width: 100%; height: auto; }
.k-cup-tag { position: absolute; left: clamp(14px, 2vw, 28px); bottom: clamp(12px, 2vw, 24px); font-family: 'VCR OSD Mono', monospace; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(26,26,26,0.55); }

/* ============ ligature specimen plate (Fig. 03) ============ */
.k-specimen { padding: 0 0 8px; }
.k-specimen-bg { background: #201F1F; }
.k-specimen-inner { position: relative; max-width: 1400px; margin: 0 auto; }
.k-specimen-inner > img { display: block; width: 100%; height: auto; }
.k-specimen-label { position: absolute; font-family: 'VCR OSD Mono', monospace; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.4); }
.k-specimen-label.tl { left: clamp(16px, 4vw, 64px); top: clamp(14px, 2.5vw, 32px); }
.k-specimen-label.br { right: clamp(16px, 4vw, 64px); bottom: clamp(14px, 2.5vw, 32px); }
.k-specimen-rule { position: absolute; left: 0; right: 0; height: 1px; background: rgba(255,255,255,0.16); }
.k-specimen-rule.ligature { top: 38.4%; }
.k-specimen-rule.xheight { top: 45.5%; }
.k-specimen-rule.baseline { top: 53.8%; }
.k-specimen-rulelabel { position: absolute; right: clamp(16px, 4vw, 64px); transform: translateY(-130%); font-family: 'VCR OSD Mono', monospace; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.45); white-space: nowrap; }
.k-specimen-rulelabel.ligature { top: 38.4%; }
.k-specimen-rulelabel.xheight { top: 45.5%; }
.k-specimen-rulelabel.baseline { top: 53.8%; }
/* Marker sits directly under the SECOND F's stem — measured from the actual
   ligature.png pixel data (second F spans x≈812–853 of 1672, baseline y≈506 of 941). */
.k-specimen-mark { position: absolute; left: 48.6%; top: 54.6%; width: 2.5%; height: 2px; background: #4F7A14; box-shadow: 0 0 10px rgba(79,122,20,0.55); }
.k-specimen-marklabel { position: absolute; left: 48.6%; top: 62%; font-family: 'VCR OSD Mono', monospace; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: #4F7A14; white-space: nowrap; }
.k-specimen-loupe { position: absolute; left: clamp(16px, 5vw, 84px); top: 50%; transform: translateY(-50%); width: clamp(120px, 16vw, 230px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 1px solid rgba(255,255,255,0.28); box-shadow: 0 0 0 6px rgba(0,0,0,0.25); }
/* Zoom-lens crop centered on the second F + its tilde (source crop ~170px square
   centered at x=832,y=433 of the 1672x941 source), scaled up to fill the loupe. */
/* max-width:none overrides site.css's global img{max-width:100%}, which would
   otherwise clamp this zoomed copy back down to the loupe's own width. */
.k-specimen-loupe img { position: absolute; width: 983%; max-width: none; height: auto; left: -439%; top: -205%; }
.k-specimen-loupelabel { position: absolute; left: clamp(16px, 5vw, 84px); top: calc(50% + clamp(60px, 8vw, 115px) + 12px); font-family: 'VCR OSD Mono', monospace; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.45); white-space: nowrap; }

/* ============ results receipt ============ */
.k-receipt { margin-top: 40px; align-self: flex-start; width: min(400px, 100%); background: #FCFBF7; box-shadow: 0 24px 60px rgba(0,0,0,0.14), 0 2px 6px rgba(0,0,0,0.08); transform: rotate(1.6deg); padding: 30px 28px 36px; box-sizing: border-box; font-family: 'VCR OSD Mono', monospace; color: #2B2B2B; }
.k-receipt-title { text-align: center; font-size: 13px; letter-spacing: 0.18em; }
.k-receipt-sub { text-align: center; font-size: 10px; letter-spacing: 0.14em; color: #8F8F8F; margin-top: 8px; }
.k-receipt-rule { margin-top: 20px; border-top: 1px dashed #C9C6BC; }
.k-receipt-row { display: flex; justify-content: space-between; gap: 16px; font-size: 12px; letter-spacing: 0.06em; padding: 10px 0 0; }
.k-receipt-row:first-of-type { padding-top: 12px; }
.k-receipt-row:last-of-type { padding-bottom: 14px; }
.k-receipt-row .label { color: #6A6A6A; }
.k-receipt-total { display: flex; justify-content: space-between; gap: 16px; font-size: 13px; letter-spacing: 0.06em; padding: 14px 0 20px; }
.k-receipt-total .value { color: #4F7A14; }
.k-receipt-barcode { height: 36px; background: repeating-linear-gradient(90deg, #1A1A1A 0 2px, transparent 2px 5px, #1A1A1A 5px 6px, transparent 6px 11px, #1A1A1A 11px 14px, transparent 14px 18px); }
.k-receipt-thanks { text-align: center; font-size: 10px; letter-spacing: 0.16em; color: #8F8F8F; margin-top: 12px; }

/* ============ off-grid street (Fig. 06) ============ */
.k-street { max-width: 1440px; margin: 0 auto; padding: 0 80px 48px; box-sizing: border-box; }
.k-street-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(36px, 5vw, 80px); align-items: start; }
.k-street-figure { position: relative; margin: clamp(-140px, -9vw, -48px) 0 0; }
.k-street-figure img { display: block; width: 100%; height: auto; }
.k-street-tag { position: absolute; left: clamp(14px, 2vw, 24px); bottom: clamp(12px, 2vw, 22px); font-family: 'VCR OSD Mono', monospace; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: #F5F4F0; background: rgba(26,26,26,0.72); padding: 6px 10px; }
.k-street-cap { padding: 16px 0 0; display: flex; justify-content: space-between; gap: 24px; font-family: 'VCR OSD Mono', monospace; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: #8F8F8F; }
.k-street-side { position: sticky; top: 120px; display: flex; flex-direction: column; gap: 40px; padding-top: clamp(32px, 5vw, 88px); }
.k-street-coords { font-family: 'VCR OSD Mono', monospace; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: #4F7A14; }
.k-street-quote { margin: 0; font-size: clamp(26px, 2.6vw, 38px); line-height: 1.25; letter-spacing: -0.02em; color: #1A1A1A; }
.k-street-note { margin: 0; max-width: 420px; font-size: 16px; line-height: 1.6; color: #555555; }

/* ============ next / CTA ============ */
.cs-cta { position: relative; max-width: 1440px; margin: 0 auto; padding: 160px 80px 140px; box-sizing: border-box; }
.cs-cta-eyebrow { display: block; font-family: 'VCR OSD Mono', monospace; font-size: 13px; letter-spacing: 0.12em; color: #747474; text-transform: uppercase; }
.cs-cta-link { display: inline-block; margin-top: 32px; font-family: 'VCR OSD Mono', monospace; font-size: clamp(28px, 5vw, 72px); color: #1A1A1A; text-decoration: none; text-transform: uppercase; line-height: 1.1; }
.cs-cta-link:hover { color: #4F7A14; }
.cs-cta-foot { margin-top: 72px; border-top: 1px solid #DFDDD4; padding-top: 28px; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cs-cta-foot a { font-family: 'VCR OSD Mono', monospace; font-size: 13px; letter-spacing: 0.08em; color: #6A6A6A; text-decoration: none; }
.cs-cta-foot a:hover { color: #1A1A1A; }

/* ============ mobile ============ */
@media (max-width: 760px) {
  .cs-hero, .cs-section, .cs-cta, .k-street { padding-left: 22px !important; padding-right: 22px !important; }
  .cs-figcaption { padding-left: 22px !important; padding-right: 22px !important; }
  .cs-meta { grid-template-columns: 1fr 1fr !important; gap: 24px !important; }
  .cs-section-grid, .k-street-grid { grid-template-columns: 1fr !important; gap: 32px !important; }
  .cs-section-head, .k-street-side { position: static !important; top: auto !important; padding-top: 0 !important; }
  .k-cup-grid { grid-template-columns: 1fr !important; padding-left: 22px !important; padding-right: 22px !important; }
  .k-cup-aside { padding-bottom: 24px !important; }
  .k-street-figure { margin-top: 0 !important; }
  .k-specimen-loupe { display: none !important; }
  .k-specimen-loupelabel { display: none !important; }
  .cs-figure--gap { padding-top: 56px !important; }
}
