@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600&family=Bebas+Neue&display=swap');

/*
 * Depth of Q — Design Tokens
 * colors_and_type.css
 *
 * Load this file first in any Depth of Q artifact.
 * Oswald + Bebas Neue load via @import above (Google Fonts).
 * Work Sans loads via @font-face below from the local fonts/ directory.
 */

/* ─── @FONT-FACE ────────────────────────────────────────────── */

@font-face {
  font-family: 'Work Sans';
  src: url('./fonts/WorkSans-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Work Sans';
  src: url('./fonts/WorkSans-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}


/* ─── BASE COLOR TOKENS ─────────────────────────────────────── */

:root {

  /* Palette — Signature */
  --color-ink:        #0b0a08;   /* Primary background */
  --color-ink-2:      #141210;   /* Raised surfaces */
  --color-ink-deep:   #07060c;   /* Projector section midpoint */
  --color-bone:       #ebe5d6;   /* Primary text */
  --color-bone-soft:  #c9c2b1;   /* Secondary text */
  --color-red:       #c0392b;   /* Primary accent (Red) */
  --color-red-soft:  #c0392b;   /* Alt accent / projector card bg (Red-soft) */
  --color-rust:       #7a3a22;   /* Italic accent — projector card only */
  --color-gray:       #6e6a62;   /* Tertiary / muted */
  --color-gray-2:     #2a2724;   /* Dark muted surface */

  /* Hairlines */
  --color-hairline:   rgba(235, 229, 214, 0.12);
  --color-hairline-2: rgba(235, 229, 214, 0.22);

  /* ─── SEMANTIC COLOR TOKENS ─────────────────────────────── */

  /* Backgrounds */
  --bg-primary:       var(--color-ink);
  --bg-raised:        var(--color-ink-2);
  --bg-projector:     var(--color-ink-deep);

  /* Foreground / Text */
  --fg-primary:       var(--color-bone);       /* Body text */
  --fg-display:       var(--color-bone);      /* Display/headline text */
  --fg-secondary:     var(--color-bone-soft);  /* Captions, lede, meta */
  --fg-accent:        var(--color-red);       /* Italic accents, labels, hover */
  --fg-accent-alt:    var(--color-red-soft);  /* Alt accent (Red-soft) */
  --fg-rust:          var(--color-rust);       /* Projector card italic only */

  /* Borders */
  --border-hairline:  var(--color-hairline);
  --border-subtle:    var(--color-hairline-2);

  /* Selection */
  --selection-bg:     var(--color-red);
  --selection-fg:     var(--color-ink);

  /* ─── LIGHT / "BONE" MODE ───────────────────────────────── */
  /* Inverse palette for light surfaces — favicons on white, print,
   * light application contexts. Apply by setting these on a wrapper
   * (e.g. [data-mode="bone"]) or use the raw values directly. */
  --bone-bg:          #f5f2ed;   /* Light page background */
  --bone-surface:     #eae7e0;   /* Light raised surface */
  --bone-fg:          var(--color-ink);   /* Primary text on light */
  --bone-fg-soft:     #5c574d;   /* Secondary text on light */
  --bone-line:        rgba(11, 10, 8, 0.10);  /* Hairline on light */
  --bone-line-2:      rgba(11, 10, 8, 0.18);  /* Stronger border on light */
  /* Red accent is unchanged across both modes (var(--color-red)). */

  /* ─── LAYOUT TOKENS ─────────────────────────────────────── */

  --nav-h:            72px;                      /* @kind spacing */
  --gutter:           clamp(1.25rem, 4vw, 3rem); /* @kind spacing */
  --max-w:            1680px;                    /* @kind spacing */
  --section-pad:      clamp(6rem, 12vh, 10rem);  /* @kind spacing */
  --section-head-pad: clamp(5rem, 10vh, 9rem);   /* @kind spacing */

  /* ─── BORDER RADIUS ─────────────────────────────────────── */

  --radius-pill:      999px;   /* CTAs, nav button */
  --radius-bezel-top: 8px;     /* Projector bezel top */
  --radius-card:      4px;     /* Projector slide card bottom */
  --radius-none:      0;       /* Everything else */

  /* ─── SHADOW SYSTEM ─────────────────────────────────────── */

  /* Only used on the projector card */
  --shadow-projector: 0 18px 60px rgba(0,0,0,0.65), 0 4px 16px rgba(0,0,0,0.4);

  /* ─── ANIMATION / EASING TOKENS ─────────────────────────── */

  --ease-reveal:       cubic-bezier(0.16, 1, 0.3, 1); /* @kind other */
  --ease-tile:         cubic-bezier(0.2, 0.8, 0.2, 1); /* @kind other */
  --duration-reveal:   1.1s;   /* @kind other */
  --duration-tile:     1.1s;   /* @kind other */
  --duration-tile-in:  1.4s;   /* @kind other */
  --duration-nav:      0.4s;   /* @kind other */
  --duration-cta:      0.25s;  /* @kind other */
  --glitch-duration:   280ms;  /* @kind other */

  /* ─── OPACITY SCALE ─────────────────────────────────────── */

  --opacity-eyebrow:     0.55; /* @kind other */
  --opacity-nav-link:    0.78; /* @kind other */
  --opacity-meta:        0.70; /* @kind other */
  --opacity-hero-tag:    0.85; /* @kind other */
  --opacity-tile-corner: 0.55; /* @kind other */
  --opacity-tile-num:    0.60; /* @kind other */

  /* ─── FONT FAMILY TOKENS ─────────────────────────────────── */

  --font-display:      'Oswald', sans-serif;          /* Headlines */
  --font-accent:       'Bebas Neue', sans-serif;       /* Accent / decorative */
  --font-italic:       'Bebas Neue', sans-serif;       /* Italic accents — always red */
  --font-body:         'Work Sans', sans-serif;        /* Body / UI / eyebrows */
  --font-wordmark:     'Oswald', 'Work Sans', sans-serif; /* Logo wordmark */

  /* ─── FONT SIZE SCALE ────────────────────────────────────── */

  --text-hero:         clamp(4.5rem, 14vw, 14rem);
  --text-contact:      clamp(3.5rem, 11vw, 11rem);
  --text-section-h2:   clamp(2.25rem, 5vw, 4rem);
  --text-manifesto:    clamp(1.75rem, 3.4vw, 3.1rem);
  --text-editorial-h3: clamp(2rem, 4.5vw, 3.5rem);
  --text-service-h4:   clamp(1.5rem, 2.4vw, 2rem);
  --text-tile:         clamp(1.5rem, 2.6vw, 2.5rem);
  --text-hero-tag:     clamp(1.25rem, 1.8vw, 1.65rem);
  --text-marquee:      clamp(2rem, 5vw, 4.5rem);
  --text-body:         0.92rem;
  --text-meta:         0.70rem;
  --text-eyebrow:      0.68rem;
  --text-nav:          0.72rem;
  --text-tile-tag:     0.62rem;
  --text-tile-corner:  0.60rem;
  --text-footer:       0.65rem;

  /* ─── LINE HEIGHT SCALE ──────────────────────────────────── */

  --lh-display-hero:   0.86; /* @kind other */
  --lh-display-tight:  0.92; /* @kind other */
  --lh-display-normal: 0.95; /* @kind other */
  --lh-display-loose:  1.18; /* @kind other */
  --lh-body:           1.65; /* @kind other */
  --lh-italic:         1.45; /* @kind other */

  /* ─── LETTER SPACING ─────────────────────────────────────── */

  --ls-display-tight:  -0.025em;
  --ls-display:        -0.015em;
  --ls-display-loose:  -0.01em;
  --ls-italic:         0.005em;
  --ls-nav:            0.18em;
  --ls-eyebrow:        0.28em;
  --ls-meta:           0.22em;
  --ls-footer:         0.22em;

}


/* ─── TYPE PRIMITIVES ───────────────────────────────────────── */

/* Display — Oswald. All headlines. */
.t-display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: var(--ls-display);
  line-height: var(--lh-display-tight);
  color: var(--fg-display);
}

/* Accent — Bebas Neue. Always red. */
.t-italic {
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 600;
  letter-spacing: var(--ls-italic);
  color: var(--fg-accent);
}

/* Eyebrow — Work Sans uppercase, tracked */
.t-eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-eyebrow);
  font-weight: 400;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--fg-primary);
  opacity: var(--opacity-eyebrow);
}

/* Meta — Work Sans uppercase, slightly larger */
.t-meta {
  font-family: var(--font-body);
  font-size: var(--text-meta);
  letter-spacing: var(--ls-meta);
  text-transform: uppercase;
  color: var(--fg-secondary);
}

/* Body */
.t-body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: var(--lh-body);
  color: var(--fg-secondary);
}

/* ─── SEMANTIC TYPE — HEADINGS ───────────────────────────────── */

/* h1 — Hero display */
h1, .h1 {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  line-height: var(--lh-display-hero);
  letter-spacing: var(--ls-display-tight);
  color: var(--fg-display);
  font-weight: 400;
}

/* h2 — Section heading */
h2, .h2 {
  font-family: var(--font-display);
  font-size: var(--text-section-h2);
  line-height: var(--lh-display-normal);
  letter-spacing: var(--ls-display);
  color: var(--fg-display);
  font-weight: 400;
}

/* h3 — Editorial / sub-section */
h3, .h3 {
  font-family: var(--font-display);
  font-size: var(--text-editorial-h3);
  line-height: 1;
  letter-spacing: var(--ls-display-loose);
  color: var(--fg-display);
  font-weight: 400;
}

/* h4 — Service / card heading */
h4, .h4 {
  font-family: var(--font-display);
  font-size: var(--text-service-h4);
  line-height: 1;
  letter-spacing: var(--ls-display-loose);
  color: var(--fg-display);
  font-weight: 400;
}

/* p — Body paragraph */
p, .p {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--lh-body);
  color: var(--fg-secondary);
  max-width: 32ch;
}

/* .lede — Section intro text (slightly larger body) */
.lede {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--lh-body);
  color: var(--fg-secondary);
  max-width: 32ch;
}

/* Italic accent within headings */
.it {
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 600;
  color: var(--fg-accent);
}

/* Rust italic — projector card only */
.it-rust {
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 600;
  color: var(--fg-rust);
}


/* ─── GLOBAL RESET (optional — include if no other reset) ─── */

/*
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg-primary);
  color: var(--fg-primary);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--selection-bg); color: var(--selection-fg); }
*/
