/* Tab Kwizin — design tokens. Geometry is relative to the column, not the window. */

:root {
  /* Color */
  --formica:            #D2171F;
  --ink:                #FFFFFF;
  --ink-menu:           #FFFFFF;   /* open item: comps read ≈ #E4F7F6 */

  /* Texture */
  --scratch-density:    70;        /* curves per million px² */
  --scratch-stroke-min: .35px;
  --scratch-stroke-max: .75px;
  --scratch-alpha-min:  .04;
  --scratch-alpha-max:  .14;
  --mottle-amplitude:   .03;       /* ± luminance */

  /* Column & photo */
  --col:                min(100vw, 30rem);
  --photo-w:            calc(var(--col) * .75);
  --photo-h:            calc(var(--photo-w) * 2 / 3);
  --photo-overlap:      .375rem;   /* photo bottom into date line */

  /* Layout */
  --roundel-d:          calc(var(--col) * .59);
  --hero-gap:           calc(var(--col) * .04);   /* roundel → tagline (was .07; measured against comps) */
  --entry-lead:         0px;                      /* raised by JS assertion if needed */
  --entry-pitch:        calc(var(--col) * 1.05);
  --line-gap:           calc(var(--col) * .01);

  /* Type */
  --f-display:          "Bild", system-ui, sans-serif;
  --f-date:             "Thow Mono", ui-monospace, monospace;
  --w-display:          900;
  --w-menu:             400;
  --fs-display:         calc(var(--col) * .064);  /* tagline, series no. (was .077; measured against comps) */
  --fs-menu:            calc(var(--col) * .0615); /* was .075; measured against comps */
  --fs-date:            calc(var(--col) * .058);
  --fs-colophon:        calc(var(--col) * .034);
  --track-date:         .06em;                    /* comps: date runs ~10% wider than untracked */
  --lh-tagline:         1.2;                      /* comps: 34.8px pitch at 29px */
}

/* Swing constants (read by geometry.js via getComputedStyle) */
:root {
  --home-x-min:         .25;
  --home-x-max:         .75;
  --home-rot-max:       3;         /* deg, ± */
  --stack-below:        .33;       /* × photo height, below viewport bottom */
  --stack-x-min:        -.2;
  --stack-x-max:        1.2;
  --arc-setter-t:       .25;       /* fraction from A.y toward S.y */
  --sweep-min:          8;         /* deg */
  --sweep-max:          35;        /* deg */
  --swing-samples:      24;
}
