/* ASAProductions · design tokens (round 5: one width, one rhythm)
   The single source of truth: every colour, font, size, space and timing.
   style.css uses only these names.

   The idea (Kris, 2026-11-19): a mix of palominoprod.com (his favourite:
   dark, cinematic, big clean titles, sections that slide over each other,
   film grain), locomotive.ca (playful type, hairline lists, names that open
   a photo on hover) and tamakiyoshida.com (the portfolio: light paper, serif,
   a quiet grid of photos in their own shapes).
   Dark so the photos glow; gold only where something is active. */

:root {
  /* ---------- palette (change these to rebrand) ---------- */
  --palette-black:  #0c0b0a;   /* background, warm black */
  --palette-coal:   #141311;   /* raised surfaces: tiles, service cards */
  --palette-white:  #f1ede6;   /* text on dark */
  --palette-grey:   #8f897f;   /* quiet text on dark */
  --palette-gold:   #d9a94e;   /* the one accent: active, selected, "Скоро" */
  --palette-paper:  #f3f1ec;   /* the portfolio and the footer */
  --palette-ink:    #151310;   /* text on paper */
  --palette-stone:  #6b655c;   /* quiet text on paper */

  /* ---------- roles (dark is the default; [data-theme="paper"] swaps them) ---------- */
  --color-bg:          var(--palette-black);
  --color-surface:     var(--palette-coal);
  --color-text:        var(--palette-white);
  --color-muted:       var(--palette-grey);
  --color-accent:      var(--palette-gold);
  --color-on-accent:   var(--palette-black);
  --color-line:        rgb(241 237 230 / .16);
  --color-line-strong: rgb(241 237 230 / .5);
  --color-field:       rgb(241 237 230 / .07);
  --color-scrim:       rgb(12 11 10 / .55);

  /* ---------- type ----------
     Geist: a clean grotesk close to Palomino's, standard Cyrillic on a
     lang="bg" page, from 400 to 600. Instrument Serif: a narrow display
     serif for accents (Locomotive) and the portfolio (Tamaki Yoshida).
     Both checked on lang="bg" (2026-11-19): no Bulgarian letter forms. */
  --font-sans:  "Geist", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Instrument Serif", "Times New Roman", serif;

  --text-xs:    0.75rem;                                   /* 12: labels */
  --text-sm:    0.875rem;                                  /* 14 */
  --text-base:  1rem;                                      /* 16 */
  --text-lg:    1.1875rem;                                 /* 19 */
  --text-h3:    clamp(1.375rem, 1.15rem + .7vw, 1.875rem); /* 22 to 30 */
  --text-say:   clamp(1.5rem, 1.05rem + 1.45vw, 2.5rem);   /* 24 to 40: statements */
  --text-h2:    clamp(2.25rem, 1.3rem + 3.4vw, 5rem);      /* 36 to 80 */
  --text-list:  clamp(2.75rem, 1rem + 7vw, 8.5rem);        /* the big serif lists */
  --text-page:  clamp(3.5rem, 1rem + 11.5vw, 13.5rem);     /* page titles: РАБОТИ, УСЛУГИ */
  --text-hero:  clamp(3rem, .6rem + 11.2vw, 13rem);        /* the home hero lines */

  --leading-tight: .9;
  --leading-head:  1.02;
  --leading-text:  1.55;
  --tracking-caps: -0.035em;
  --tracking-head: -0.025em;
  --tracking-label: .02em;

  --weight-text: 400;
  --weight-mid:  500;
  --weight-head: 600;

  --measure: 58ch;

  /* ---------- grid and space ---------- */
  /* ONE width for every section, the header and the footer (heroes are full bleed).
     On a phone the content is 90% of the screen: the gutter is 5vw. */
  --cols: 12;
  --container: 1440px;        /* the max width of the content on desktops (Kris: 1400 or 1440) */
  --gutter:  clamp(20px, 4vw, 48px);
  --col-gap: clamp(12px, 1.4vw, 20px);

  /* ONE spacing standard. Sections are --section-gap apart; a section's label or
     heading sits --head-gap above its content; everything smaller uses the scale. */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --section-gap: clamp(96px, 2rem + 8vw, 160px);
  --head-gap: clamp(40px, 1.5rem + 2vw, 64px);

  /* ---------- shape ---------- */
  --radius: 0px;              /* square photos, square buttons */
  --border: 1px solid var(--color-line);
  --border-strong: 1px solid var(--color-line-strong);
  --control-h: 48px;
  --header-h: 84px;            /* room for the header bar; it turns into a pill when you scroll */
  --stack-step: 18px;         /* how much each service card peeks below the one before */
  --grain-opacity: .07;       /* the film grain over everything */

  /* ---------- motion ---------- */
  --ease-out:    cubic-bezier(.16, 1, .3, 1);
  --ease-power4: cubic-bezier(.165, .84, .44, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --duration-fast: .2s;
  --duration-base: .6s;
  --duration-reveal: 1.3s;
}

/* the portfolio and the project pages (Tamaki Yoshida): light paper, ink text */
[data-theme="paper"] {
  --color-bg:          var(--palette-paper);
  --color-surface:     #e8e5de;
  --color-text:        var(--palette-ink);
  --color-muted:       var(--palette-stone);
  --color-line:        rgb(21 19 16 / .14);
  --color-line-strong: rgb(21 19 16 / .45);
  --color-field:       rgb(21 19 16 / .05);
  --color-scrim:       rgb(243 241 236 / .6);
  --grain-opacity: .05;
}
