/* Slow Down Slussen / Sakta Ner Slussen
   Brand tokens and parts. The design profile (index.html) reads this file,
   and the campaign site will read it too. Change a value here and both follow.
   The profile page overrides some tokens from its top bar while choices are still open. */

:root{
  /* colour: paper, ink, one accent, and one extra that is a darker version of the accent or of the ink */
  --paper:#F4EEE2;
  --ink:#151412;
  --ink-2:#5A554C;            /* captions and small print */
  --accent:#EB3555;           /* the road, the dot, one word or number per view */
  --shade:#A61635;            /* the one extra: the top of a cliff, a shaded side */
  --ink-face:color-mix(in srgb,var(--ink) 76%,var(--paper));  /* the lit side of a cliff: ink thinned a little, not a new colour */
  --paper-2:color-mix(in srgb,var(--paper) 93%,var(--ink));
  --rule:color-mix(in srgb,var(--ink) 18%,transparent);

  /* type */
  --display:"Archivo","Arial Narrow",Impact,sans-serif;   /* Archivo Extra Condensed Black: width 62, weight 900 */
  --display-weight:900;
  --display-stretch:62%;
  --display-track:0em;
  --display-word:.08em;       /* Archivo's word space is tight at this weight */
  --r-pill:999px;             /* ends of buttons, tags and bars: 999px round, 0 square */
  --dz:1;                     /* size factor, so the candidate title fonts look equally big */
  --capshift:-.015;           /* centres capitals and numbers in circles and buttons. This is Archivo's value; the profile page measures it again for the font being tried */
  --text:"Familjen Grotesk",system-ui,-apple-system,"Segoe UI",sans-serif;
}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--text);font-size:17px;line-height:1.55;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
p{margin:0 0 .8em}
img,svg{max-width:100%}

/* ---------- type ---------- */
.display{font-family:var(--display);font-weight:var(--display-weight);font-stretch:var(--display-stretch);letter-spacing:var(--display-track);word-spacing:var(--display-word);text-transform:uppercase;font-size:calc(var(--s,48px)*var(--dz));line-height:1.12;margin:0}
@supports(height:1cap){.display{line-height:calc(1cap*1.4)}}  /* room for the ring and dots of Å, Ä, Ö under the line above */
.label{font:700 12px/1.25 var(--text);letter-spacing:.14em;text-transform:uppercase;margin:0}
.lead{font-size:clamp(19px,2vw,23px);line-height:1.42}
.small{font-size:13.5px;line-height:1.45;color:var(--ink-2)}
.accent{color:var(--accent)}

/* ---------- wordmark ---------- */
.wm{display:inline-block;font-family:var(--display);font-weight:var(--display-weight);font-stretch:var(--display-stretch);letter-spacing:var(--display-track);word-spacing:var(--display-word);text-transform:uppercase;white-space:nowrap;line-height:.92;color:inherit;text-decoration:none}
@supports(height:1cap){.wm{line-height:calc(1cap*1.13)}}
.wm .l{display:block}
.dot,.wm .sym{display:inline-block;width:.72em;height:.72em;margin-left:.09em;vertical-align:baseline}
.dot{border-radius:50%;background:var(--dot,var(--accent))}
@supports(height:1cap){.dot,.wm .sym{width:1cap;height:1cap}}
.wm--line .sym{margin:0 .26em 0 0}
.sym{display:inline-block;width:1em;height:1em;vertical-align:middle}

/* ---------- buttons and tags ---------- */
.btn{display:inline-block;font-family:var(--display);font-weight:var(--display-weight);font-stretch:var(--display-stretch);letter-spacing:.03em;word-spacing:var(--display-word);text-transform:uppercase;font-size:calc(19px*var(--dz));line-height:1;padding:calc(.8em - var(--capshift)*1em) 1.5em calc(.8em + var(--capshift)*1em);border-radius:var(--r-pill);border:2px solid var(--ink);background:var(--ink);color:var(--paper);text-decoration:none;cursor:pointer;white-space:nowrap}
.btn--accent{background:var(--accent);border-color:var(--accent);color:var(--ink)}
.btn--ghost{background:transparent;color:var(--ink)}
.btn--s{font-size:calc(15px*var(--dz))}
.tag{display:inline-block;font:700 11.5px/1 var(--text);letter-spacing:.12em;text-transform:uppercase;padding:.55em .9em;border-radius:var(--r-pill);border:1.5px solid currentColor}
.tag--fill{background:var(--ink);border-color:var(--ink);color:var(--paper)}

/* ---------- the sign: a number in a ring ---------- */
.sign{--d:96px;display:inline-grid;place-items:center;width:var(--d);height:var(--d);border-radius:50%;border:calc(var(--d)*.115) solid var(--ring,var(--accent));background:var(--paper);color:var(--ink);font-family:var(--display);font-weight:var(--display-weight);font-stretch:var(--display-stretch);font-size:calc(var(--d)*.44*var(--dz));line-height:1;flex:none}
.vc{display:block;line-height:1;transform:translateY(calc(var(--capshift)*-1em))}

/* ---------- a figure: big number, one line, source ---------- */
.stat b{display:block;font-family:var(--display);font-weight:var(--display-weight);font-stretch:var(--display-stretch);letter-spacing:var(--display-track);font-size:calc(clamp(64px,8.4vw,116px)*var(--dz));line-height:.95;white-space:nowrap}
@supports(height:1cap){.stat b{line-height:calc(1cap*1.2)}}
.stat b small{font-size:.42em;margin-left:.12em;letter-spacing:.02em;line-height:0}
.stat p{margin:8px 0 6px;font-weight:500;line-height:1.35;max-width:26ch}
.stat span{display:block;font-size:12.5px;line-height:1.35;color:var(--ink-2)}

/* ---------- quote ---------- */
.quote{margin:0}
.quote blockquote{margin:0 0 14px;font-size:clamp(21px,2.5vw,29px);line-height:1.3;font-weight:500;letter-spacing:-.01em}
.quote figcaption{font-size:13.5px;color:var(--ink-2)}
.quote figcaption::before{content:"";display:inline-block;width:.72em;height:.72em;border-radius:50%;background:var(--accent);margin-right:.6em}

/* ---------- the chicane rule: a line that steps aside ---------- */
.chicane{display:flex;height:30px;color:var(--ink)}
.chicane i{flex:0 0 40px;height:3px;background:currentColor}
.chicane i:last-child{flex:1;align-self:flex-end}
.chicane svg{flex:none;width:120px;height:30px;display:block;overflow:visible}

/* ---------- text inside drawings ---------- */
.svg-d{font-family:var(--display);font-weight:var(--display-weight);font-stretch:var(--display-stretch);letter-spacing:var(--display-track);text-anchor:middle}
