/* ============================================================
   COMPLICE — Colors & Type
   映像制作チーム COMPLICE / Cinematic editorial portfolio
   Base: ink + paper (monochrome) · Accent: signal red
   Type: serif display × grotesque sans × mono (timecode)
   ============================================================ */

/* ---- Webfonts (Google Fonts) ----
   EN serif display : Instrument Serif
   EN sans/UI       : Space Grotesk
   Mono / timecode  : Space Mono
   JP serif display : Zen Old Mincho
   JP sans/UI       : Zen Kaku Gothic New
   Substitution note: these are the brand's chosen faces. If the
   real COMPLICE brand owns licensed fonts, swap the @import + vars. */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Space+Grotesk:wght@300;400;500;600;700&family=Space+Mono:ital,wght@0,400;0,700;1,400&family=Zen+Kaku+Gothic+New:wght@300;400;500;700&family=Zen+Old+Mincho:wght@400;500;600;700&display=swap');

:root {
  /* ---------- CORE PALETTE ---------- */
  --ink:        #0C0C0D;   /* near-black, primary dark ground */
  --ink-2:      #141416;   /* raised dark surface (cards) */
  --ink-3:      #1E1E21;   /* hover / inset dark surface */
  --ink-4:      #2A2A2E;   /* hairline-on-dark fills */

  --paper:      #F4F2EC;   /* warm off-white, primary light ground */
  --paper-2:    #ECE9E1;   /* raised light surface */
  --paper-3:    #E1DDD2;   /* inset / hover light surface */

  /* ---------- GREY RAMP (neutral, slightly warm) ---------- */
  --grey-100:   #EDEBE4;
  --grey-200:   #CFCCC3;
  --grey-300:   #A8A59C;
  --grey-400:   #807D75;
  --grey-500:   #5C5A54;
  --grey-600:   #3D3C38;
  --grey-700:   #282724;

  /* ---------- ACCENT — SIGNAL RED ---------- */
  --signal:        #E5342B;   /* cinema red, primary accent */
  --signal-bright: #FF463C;   /* hover / glow */
  --signal-press:  #C1281F;   /* pressed */
  --signal-dim:    rgba(229,52,43,0.16); /* tint wash */

  /* ---------- FOREGROUND (on dark) ---------- */
  --fg-1:  #F4F2EC;   /* primary text on ink */
  --fg-2:  #ADABA3;   /* secondary / captions */
  --fg-3:  #6E6C66;   /* tertiary / disabled */

  /* ---------- FOREGROUND (on paper) ---------- */
  --on-paper-1: #0C0C0D;
  --on-paper-2: #4A4843;
  --on-paper-3: #807D75;

  /* ---------- LINES & HAIRLINES ---------- */
  --line-dark:   rgba(244,242,236,0.14);
  --line-dark-2: rgba(244,242,236,0.08);
  --line-light:  rgba(12,12,13,0.14);
  --line-light-2:rgba(12,12,13,0.07);

  /* ---------- FONT FAMILIES ---------- */
  --font-serif: 'Instrument Serif', 'Zen Old Mincho', ui-serif, Georgia, serif;
  --font-sans:  'Space Grotesk', 'Zen Kaku Gothic New', ui-sans-serif, system-ui, sans-serif;
  --font-mono:  'Space Mono', 'Zen Kaku Gothic New', ui-monospace, 'SFMono-Regular', monospace;

  /* ---------- TYPE SCALE (fluid-ish, px base) ---------- */
  --t-hero:   clamp(64px, 11vw, 168px); /* full-bleed display */
  --t-d1:     clamp(48px, 6.5vw, 104px);
  --t-d2:     clamp(36px, 4.5vw, 68px);
  --t-h1:     40px;
  --t-h2:     30px;
  --t-h3:     22px;
  --t-body-l: 19px;
  --t-body:   16px;
  --t-small:  14px;
  --t-micro:  12px;   /* mono labels / timecodes */

  /* ---------- TRACKING ---------- */
  --track-label: 0.22em;   /* uppercase mono labels */
  --track-tight: -0.02em;  /* large serif display */
  --track-sans:  -0.01em;

  /* ---------- SPACING (8pt base) ---------- */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px;
  --sp-9: 96px; --sp-10: 128px; --sp-11: 192px;

  /* ---------- RADII (minimal — film is rectilinear) ---------- */
  --r-xs: 2px;
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;
  --r-pill: 999px;

  /* ---------- SHADOWS / ELEVATION ---------- */
  --shadow-card:  0 1px 2px rgba(0,0,0,0.30), 0 12px 40px rgba(0,0,0,0.34);
  --shadow-lift:  0 24px 80px rgba(0,0,0,0.48);
  --shadow-modal: 0 40px 120px rgba(0,0,0,0.62);
  --shadow-paper: 0 1px 2px rgba(12,12,13,0.06), 0 10px 30px rgba(12,12,13,0.08);

  /* ---------- MOTION (cinematic — slow, weighted) ---------- */
  --ease-cine: cubic-bezier(0.16, 1, 0.30, 1);  /* big slow settle */
  --ease-out:  cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur-fast:  220ms;
  --dur-med:   460ms;
  --dur-slow:  900ms;
  --dur-reveal:1200ms;
}

/* ============================================================
   SEMANTIC ELEMENT STYLES
   Apply .cmp-scope (or use on body) to opt into base styles.
   ============================================================ */

.cmp-display-hero {
  font-family: var(--font-serif);
  font-size: var(--t-hero);
  line-height: 0.92;
  letter-spacing: var(--track-tight);
  font-weight: 400;
}
.cmp-d1 {
  font-family: var(--font-serif);
  font-size: var(--t-d1);
  line-height: 0.98;
  letter-spacing: var(--track-tight);
  font-weight: 400;
}
.cmp-d2 {
  font-family: var(--font-serif);
  font-size: var(--t-d2);
  line-height: 1.02;
  letter-spacing: var(--track-tight);
  font-weight: 400;
}
.cmp-h1 { font-family: var(--font-sans); font-size: var(--t-h1); line-height: 1.1; letter-spacing: var(--track-sans); font-weight: 600; }
.cmp-h2 { font-family: var(--font-sans); font-size: var(--t-h2); line-height: 1.15; letter-spacing: var(--track-sans); font-weight: 600; }
.cmp-h3 { font-family: var(--font-sans); font-size: var(--t-h3); line-height: 1.25; letter-spacing: var(--track-sans); font-weight: 500; }

.cmp-body-l { font-family: var(--font-sans); font-size: var(--t-body-l); line-height: 1.6; font-weight: 300; }
.cmp-body   { font-family: var(--font-sans); font-size: var(--t-body);   line-height: 1.65; font-weight: 400; }
.cmp-small  { font-family: var(--font-sans); font-size: var(--t-small);  line-height: 1.5;  font-weight: 400; }

/* Mono label / timecode / credit — the signature "film" motif */
.cmp-label {
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  font-weight: 400;
}
.cmp-timecode {
  font-family: var(--font-mono);
  font-size: var(--t-small);
  letter-spacing: 0.04em;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

/* Accent helpers */
.cmp-signal { color: var(--signal); }
.cmp-serif  { font-family: var(--font-serif); }
.cmp-sans   { font-family: var(--font-sans); }
.cmp-mono   { font-family: var(--font-mono); }
