/* Bygglund: design tokens. Every colour, font and spacing value lives here; a full recolour only touches this file.
   The token NAMES come from the Nordic MRO site this one was built from (03.11.2026), so the shared CSS (sider, kortstokk,
   slik, prosjekter) works unchanged; the VALUES are Bygglund's. Read the names as roles: --kalk is the light ground, --betong
   the second light ground, --grafitt the deep blue of the dark rooms and buttons, --fjord the accent on light ground,
   --is the accent on dark ground, --skifer-dyp the deepest blue, --dis the contact section's ground. */

/* General Sans (Indian Type Foundry, ITF Free Font License, fontshare.com): static weights 300, 400, 500, 600 */
@font-face { font-family: "General Sans"; font-style: normal; font-weight: 300; font-display: swap; src: url("../assets/fonts/general-sans-300.woff2") format("woff2"); }
@font-face { font-family: "General Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/general-sans-400.woff2") format("woff2"); }
@font-face { font-family: "General Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../assets/fonts/general-sans-500.woff2") format("woff2"); }
@font-face { font-family: "General Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../assets/fonts/general-sans-600.woff2") format("woff2"); }

:root {
  /* palette «Dyp blå og stein», Sverre's choice of three on 04.11.2026 after the deep green was rejected («Grønt traff ikke
     spottet»): light stone grounds like the travertine tiles in the hero bathroom, a deep blue for the dark rooms and the
     buttons, and Bygglund's own blue from their old site (#2b5672) for small text, numbers and lines on light ground.
     Gold only in the stars. The logo's yellow is not used on the site */
  --kalk: #f5f2ed;            /* stone white: the light ground */
  --betong: #ebe5dc;          /* travertine: the second light ground */
  --betong-2: #ddd4c7;
  --hvit: #ffffff;
  --grafitt: #162b40;         /* deep blue: the dark rooms, buttons */
  --grafitt-2: #1e3651;
  --grafitt-3: #294462;
  --valnott: #dadde0;         /* light grey with a touch of the page's blue: «Slik jobber vi» and the questions (the name is a role, kept from the first brown).
                                 Sverre 07.11.2026: «bytt brunfargen med noe lysegrått!», after walnut #3b2a20, camel #bfa284 and chocolate #664532 */
  --valnott-2: #cdd1d5;
  --valnott-tekst: var(--grafitt);   /* deep blue on the grey: to swap light for dark text, only this block changes */
  --valnott-dempet: rgba(22, 43, 64, 0.82);
  --valnott-linje: rgba(22, 43, 64, 0.2);
  --fjord: #2b5672;           /* Bygglund's blue: the accent on light ground (small text, numbers, lines). 7.0:1 on kalk */
  --fjord-lys: #5a7f9b;
  --is: #a9c4dc;              /* the accent on dark ground: lines, numbers, marks. 8.0:1 on grafitt */
  --is-lys: #d5e2ee;
  --is-strek: #97b3cc;
  --is-glod: rgba(169, 196, 220, 0.45);
  --aksent: var(--fjord);     /* set to var(--is) by every dark section */
  --skifer: #34506a;
  --skifer-2: #29425a;
  --skifer-dyp: #0f2031;      /* the deepest blue: Om oss */
  --kveld: #9fb2c4;
  --lampe: #e9c88a;           /* warm lamp light, not a brand colour */
  --messing: #a8823f;         /* the stars on the reviews only: never a button (Janis 18.10.2026: gold buttons look cheap) */
  --laser: #3b8fd9;           /* the tiler's laser line in the hero */
  --laser-glod: rgba(59, 143, 217, 0.5);

  /* the contact section: a pale sand, with the deep blue as the one deep accent */
  --dis: #e8e1d6;
  --dis-lys: #f2ede5;
  --kort-kald: #fdfcfa;

  /* text on light ground */
  --tekst: #161a20;
  --tekst-dempet: #525a64;    /* 6.3:1 on kalk, 5.6:1 on betong, 5.4:1 on dis */
  --linje: rgba(22, 26, 32, 0.13);
  --linje-sterk: rgba(22, 26, 32, 0.3);

  /* text on dark ground */
  --tekst-lys: #f5f2ed;
  --tekst-lys-dempet: rgba(245, 242, 237, 0.76);
  --linje-lys: rgba(245, 242, 237, 0.16);

  /* veils, shadows, errors, focus */
  --slor: rgba(9, 17, 27, 0.72);
  --skygge: rgba(9, 17, 27, 0.24);
  --feil: #a3341b;
  --meny-matt: rgba(245, 242, 237, 0.92);
  --merknad: rgba(255, 255, 255, 0.9);
  --merknad-skygge: rgba(0, 0, 0, 0.42);
  --fokus: var(--fjord);      /* focus ring on light grounds; dark sections switch it to --is */
  --slor-topp: rgba(8, 14, 22, 0.5);
  --glod-kjerne: rgba(255, 236, 200, 0.95);
  --glod-kant: rgba(233, 200, 138, 0.32);
  --kort-skygge-naer: rgba(9, 17, 27, 0.05); /* the form's cards and tiles: the near shadow */
  --kort-skygge: 0 1px 2px rgba(9, 17, 27, 0.2), 0 12px 26px -12px rgba(9, 17, 27, 0.55);
  --fuge: #e2dacd;            /* the hero's grout and bare wall before the tiles go on */
  --fuge-strek: rgba(43, 86, 114, 0.26);     /* the tile plan drawn on the bare wall */
  --foto-skygge: rgba(8, 14, 22, 0.42);      /* the shade under a caption on a photo */
  /* the hero film: shade under the menu, low on the left under the text, and the glass of the outline button */
  --hero-slor-topp: rgba(8, 14, 22, 0.62);
  --hero-slor-bunn: rgba(8, 14, 22, 0.45);
  --hero-slor-side: rgba(8, 14, 22, 0.66);
  --hero-tekst-skygge: rgba(8, 14, 22, 0.55);
  --hero-knapp-glass: rgba(8, 14, 22, 0.28);
  --hero-slor-topp-svak: rgba(8, 14, 22, 0.28);
  --hero-slor-bunn-dyp: rgba(8, 14, 22, 0.74);
  --hero-strek: rgba(245, 242, 237, 0.34);    /* the line at the hero's foot */
  --hero-knapp-kant: rgba(245, 242, 237, 0.55);
  /* the hero's drawing (v4, 05.11.2026): the paper's grid, the strokes, the tile joints, the copper fittings, the light's edge */
  --hl-rute: rgba(169, 196, 220, 0.05);
  --hl-strek: #d5e2ee;
  --hl-fuge: rgba(169, 196, 220, 0.5);
  --hl-kobber: #dfae86;
  /* hero proposal in Røa's style (22.11.2026): a column of text on the left under a deep blue shade that lets go before the
     shower, round buttons, and a white card at the bottom right. All from the page's own palette (--skifer-dyp, --kalk, --is) */
  --hero-slor-venstre: rgba(15, 32, 49, 0.86);
  --hero-slor-venstre-2: rgba(15, 32, 49, 0.62);
  --hero-slor-fot: rgba(15, 32, 49, 0.5);
  --hero-slor-meny: rgba(15, 32, 49, 0.55);
  --hero-kort: #ffffff;                      /* the project card at the bottom right */
  --hero-kort-skygge: rgba(8, 15, 24, 0.3);
  --hero-knapp-skygge: rgba(4, 10, 18, 0.45);
  --hero-tekst-dempet: rgba(245, 242, 237, 0.88);   /* the ingress on the shade */
  --messing-lys: #cfa65a;                           /* the review star on the deep blue (gold only in the stars) */
  --radius-pille: 999px;                     /* the hero's and the menu's buttons */
  --radius-kort: 14px;                       /* the project card */
  /* the hero with the form (22.11.2026), after Sverre's own picture of it: yellow buttons, a brighter blue in the title's last
     line and the icons, a white form card with blue for the chosen answer, a cool white band at the foot */
  --sol: #f6c230;                            /* the yellow buttons (the hero and the menu on the front page) */
  --sol-lys: #ffd35a;
  --sol-tekst: #10233c;                      /* 10.4:1 on --sol */
  --sol-skygge: rgba(246, 194, 48, 0.55);
  --himmel: #62a8ee;                         /* the title's last line and the icons on the deep blue. 6.4:1 on --skifer-dyp */
  --hero-slor-a: rgba(15, 32, 49, 0.94);
  --hero-slor-b: rgba(15, 32, 49, 0.8);
  --hero-slor-c: rgba(15, 32, 49, 0.4);
  --hero-band: #f4f6f9;
  --hf-flate: #f5f7fa;
  --hf-tekst: #0f2440;
  --hf-tekst-2: #3a4a60;
  --hf-dempet: #5c6b80;
  --hf-kant: #dde3eb;
  --hf-kant-sterk: #b3bfce;
  --hf-kant-lys: rgba(255, 255, 255, 0.7);
  --hf-valgt: #2f7be0;
  --hf-valgt-flate: #edf4fe;
  --hf-merke-flate: #dce8fb;
  --hf-knapp: #0e2a52;
  --hf-knapp-2: #173b6e;
  --hf-skygge: rgba(4, 10, 20, 0.55);
  --hf-feil: #b3261e;
  --stjerne: #f2b01e;
  --ja: #1f8a4c;
  --radius-skjema: 18px;
  --radius-flis: 10px;
  /* the contact section after Sverre's picture (22.11.2026): a cool light ground, a dark glass strip on the photo, large round corners */
  --kt-flate: #edf0f5;
  --kt-glass: rgba(15, 26, 40, 0.62);
  --kt-skygge: rgba(15, 36, 64, 0.45);
  --radius-bilde: 26px;

  /* drawing */
  --strek: #161a20;

  /* type */
  --font: "General Sans", "Helvetica Neue", Helvetica, sans-serif;
  --vekt-tittel: 400;
  --vekt-tekst: 400;
  --vekt-sterk: 500;
  --vekt-merke: 600;
  --sporing-tittel: -0.032em;
  --sporing-merke: 0.14em;
  --str-hero: clamp(2.3rem, 1.2rem + 3.6vw, 4.6rem);
  --str-h2: clamp(2.1rem, 1.2rem + 3vw, 4.1rem);
  --str-h3: clamp(1.3rem, 1.1rem + 0.6vw, 1.6rem);
  --str-ingress: clamp(1.125rem, 1.05rem + 0.35vw, 1.3rem);
  --str-tekst: 1.0625rem;
  --str-merke: 0.78rem;
  --linjehoyde: 1.55;

  /* space */
  --marg: clamp(1.25rem, 0.6rem + 3vw, 3.5rem);
  --maks: 1360px;
  --seksjon-luft: clamp(3.5rem, 2.2rem + 3.6vw, 6rem);
  --rad-luft: clamp(1.25rem, 0.8rem + 1.6vw, 2.25rem);
  --meny-h: 76px;

  /* the map scene (css/omrader.css), after the Janis map */
  --omr-tekst: var(--tekst-lys);
  --omr-demp: rgba(245, 242, 237, 0.74);
  --omr-linje: var(--linje-lys);
  --omr-linje-sterk: rgba(245, 242, 237, 0.3);
  --omr-flate: var(--grafitt-2);     /* the sheet round the map */
  --omr-dyp: var(--skifer-dyp);      /* behind the map before it has loaded */
  --omr-halo: rgba(15, 26, 38, 0.92);   /* behind the names on the map */
  --omr-reise: 2.2;                  /* pinned scroll length, in screen heights: the plan is drawn over the first three quarters, the rest is time to read the names */
  --omr-pre: 0.62;                   /* the plan starts drawing this share of a screen before the pin */
  --omr-innmarg: 0.5rem;             /* the margin inside the frame */
  --omr-strip-h: 2rem;               /* the caption line under the window */
  --omr-band: 1.35rem;               /* the coordinate band above and left of the map */
  --omr-band-smal: 0.5rem;           /* the band below and right: ticks only */
  --omr-ark-andel: 0.62;             /* the sheet's share of the width beside the text */
  --omr-svak: 0.5;                   /* list rows the plan has not reached yet */
  --omr-navn-str: clamp(0.625rem, 0.58rem + 0.14vw, 0.71875rem);   /* the names on the map */
  --omr-hjem-str: clamp(0.75rem, 0.7rem + 0.2vw, 0.875rem);
  --radius: 2px;

  /* motion */
  --mykt: cubic-bezier(0.22, 0.61, 0.36, 1);
  --hero-reise: 1.5;          /* scroll travel of the hero, in scene heights: a third of a screen for the drawing, the rest for the light */
  --sl-reise: 2;              /* scroll travel of the «Slik jobber vi» scene, in screen heights */
}

@media (min-width: 1024px) {
  :root { --str-tekst: 1.125rem; }
}
@media (max-width: 767px) {
  :root { --meny-h: 64px; }
}
@media (pointer: coarse) {
  :root { --hero-reise: 1.2; --sl-reise: 1.6; }
}

/* behind the picture viewer on the projects page. Set on ::backdrop itself: before Chrome 122 and Safari 17.4 it did
   not inherit custom properties from :root */
::backdrop { --lysboks: rgba(8, 14, 21, 0.94); }

@media (max-width: 63.99rem) { :root { --omr-reise: 1.9; } }
@media (min-width: 90rem) { :root { --omr-ark-andel: 0.66; } }
