/* Forelead site system: tokens, type, buttons, navigation, section bands, contact, footer, legal pages,
   and the interface fragments drawn from the app (web/src/index.css). Every page loads this file.
   Page compositions live beside it: front.css (home), pages.css (how it works, security). */
@font-face{font-family:Schibsted;src:url('/assets/schibsted.woff2') format('woff2');font-style:normal;font-weight:100 900;font-display:swap}

:root{
  /* Brand */
  --ink:#14181c;--ink-2:#353d45;--muted:#505a64;
  --blue:#2a3ccc;--blue-dark:#1f2da8;--blue-tint:#eceefb;--blue-light:#aab4ff;
  --orange:#ff914d;--orange-text:#a84300;--orange-tint:#fff1e6;
  --paper:#eef0f2;--paper-2:#e2e6ea;--white:#fff;
  --on-dark:#c9cfd6; /* secondary text on ink, 10:1 */
  /* The app's own tokens: only inside [data-ui] fragments */
  --ui-line:#d8dde2;--ui-control:#7c858e;
  --ui-lead:#1a7a4a;--ui-lead-tint:#e6f4ec;
  --ui-risk:#c4242a;--ui-risk-tint:#fdecea;
  --ui-radius:8px;--ui-sheet-radius:16px;

  /* Frame */
  --m:clamp(20px,2.8vw,40px);   /* the one outer margin */
  --gap:24px;                   /* grid gutter */
  --section:clamp(72px,8vw,120px); /* padding above and below each band */

  /* Five page sizes */
  --t-h1:clamp(2rem,3.3vw,3rem);    /* 48 at 1440 */
  --t-h2:clamp(1.5rem,2vw,1.75rem); /* 28 */
  --t-h3:1.25rem;                   /* 20 */
  --t-body:1.0625rem;               /* 17 */
  --t-small:.875rem;                /* 14 */
  /* names pages.css still uses */
  --t-display:var(--t-h1);--t-lead:var(--t-h3);

  --ease-out:cubic-bezier(.22,1,.36,1);
  --focus:var(--blue);
}

*,*::before,*::after{box-sizing:border-box}
[hidden]{display:none!important}
html{scroll-behavior:smooth;scroll-padding-top:16px}
body{margin:0;background:var(--white);color:var(--ink);font-family:Schibsted,Arial,sans-serif;font-size:var(--t-body);line-height:1.55;-webkit-font-smoothing:antialiased}
h1,h2,h3,h4,p,ol,ul,dl,dd,figure{margin:0;padding:0}
ol,ul{list-style:none}
img,svg{display:block}
a{color:inherit}
button{font:inherit;color:inherit;cursor:pointer}
h1,h2,h3,h4{font-weight:650;text-wrap:balance}
h1{font-size:var(--t-h1);line-height:1.04;letter-spacing:-.035em}
h2{font-size:var(--t-h2);line-height:1.15;letter-spacing:-.025em}
h3{font-size:var(--t-h3);line-height:1.3;letter-spacing:-.015em}
p{text-wrap:pretty}
code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.92em}
:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
.skip-link{position:absolute;left:16px;top:-80px;z-index:10;padding:12px 20px;background:var(--ink);color:var(--white);font-weight:650;text-decoration:none}
.skip-link:focus{top:12px}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

/* Buttons and links: square, flat, one fill */
.button{display:inline-flex;align-items:center;justify-content:center;min-height:52px;padding:0 26px;background:var(--blue);color:var(--white);font-weight:650;text-decoration:none;white-space:nowrap;transition:background-color 180ms ease,transform 140ms var(--ease-out)}
.button:hover{background:var(--blue-dark)}
.button:active{transform:scale(.98)}
.button-small{min-height:44px;padding:0 18px;font-size:var(--t-small)}
.button-ink{background:var(--ink)}
.button-ink:hover{background:var(--ink-2)}
.button-white{background:var(--white);color:var(--blue)}
.button-white:hover{background:var(--paper)}
.text-link{display:inline-flex;align-items:center;min-height:44px;font-weight:600;text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:6px;transition:color 180ms ease}
.text-link:hover{color:var(--blue)}

/* Navigation: one plain row. Below 860px the links take a second row, all still visible. */
.top{display:flex;flex-wrap:wrap;align-items:center;gap:0 32px;min-height:76px;padding:0 var(--m);background:var(--white)}
.top-brand{display:inline-flex;align-items:center;min-height:44px}
.top-nav{display:flex;flex-wrap:wrap;gap:0 28px;margin-left:auto;font-size:15px}
.top-nav a{display:inline-flex;align-items:center;min-height:44px;font-weight:550;text-decoration:none;transition:color 180ms ease}
.top-nav a:hover{color:var(--blue);text-decoration:underline;text-underline-offset:6px}
.top-nav a[aria-current=page]{color:var(--blue)}

/* Section bands: a section changes its whole field, never fades into the next */
.band{padding:var(--section) var(--m)}
.band-paper{background:var(--paper)}
.band-dark{background:var(--ink);color:var(--white);--focus:var(--orange)}
.band-dark .text-link:hover{color:var(--blue-light)}
.band-blue{background:var(--blue);color:var(--white);--focus:var(--white)}
.band-blue .text-link:hover{color:var(--white);text-decoration-thickness:3px}
.grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:var(--gap)}
.lede{font-size:var(--t-h3);line-height:1.5;max-width:52ch}
.more{margin-top:32px}

/* Contact: shared by every page that has one */
.contact{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:var(--gap);align-items:start;padding:var(--section) var(--m);background:var(--blue);color:var(--white);--focus:var(--white)}
.contact-top,.contact-mail,.contact-foot{grid-column:1/7}
.contact-top p{margin-top:20px;max-width:52ch}
.contact-mail{display:flex;flex-wrap:wrap;align-items:center;gap:12px 20px;margin-top:28px}
.contact-email{display:inline-flex;align-items:center;min-height:44px;font-size:var(--t-h2);font-weight:650;letter-spacing:-.02em;text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:7px;overflow-wrap:anywhere}
.copy-email{min-height:44px;padding:0 16px;border:2px solid var(--white);background:transparent;color:var(--white);font-weight:600;transition:background-color 150ms ease,color 150ms ease}
.copy-email:hover{background:var(--white);color:var(--blue)}
.contact-foot{display:grid;gap:28px;margin-top:40px}
.founder{max-width:56ch;padding-top:20px;position:relative}
.founder::before{content:"";position:absolute;left:0;top:0;width:40px;height:4px;background:var(--orange)}
.founder-name{font-weight:650}
.contact-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px 20px}
.contact-actions .button{background:var(--white);color:var(--blue)}
.contact-actions .button:hover{background:var(--paper)}
/* Pages without the mail sheet put the founder and the action in the right half */
.contact:not(:has(.contact-sheet)) .contact-foot{grid-column:8/-1;grid-row:1/span 2;margin-top:0}

/* Footer: a plain close */
.foot{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:8px 32px;padding:48px var(--m) 32px;font-size:16px}
.foot-brand{display:inline-flex;align-items:center;min-height:44px}
.foot-mail{font-weight:650;color:var(--blue);text-decoration:none}
.foot-mail:hover{text-decoration:underline;text-underline-offset:5px}
.foot-links{display:flex;flex-wrap:wrap;gap:0 24px;justify-self:end}
.foot-links a,.foot-mail,.foot-legal a{display:inline-flex;align-items:center;min-height:44px}
.foot-links a{font-weight:550;text-decoration:none}
.foot-links a:hover{color:var(--blue);text-decoration:underline;text-underline-offset:5px}
.foot-legal{grid-column:1/-1;display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:4px 24px;margin-top:12px;font-size:var(--t-small);color:var(--muted)}
.foot-legal a{color:var(--ink)}
.foot-legal p{max-width:64ch}

/* Legal and utility pages: the title on the left, one readable column of text on the right */
.legal{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:var(--gap);padding:72px var(--m) 120px}
.legal-head{grid-column:1/5}
.legal-body{grid-column:5/12}
.legal .legal-date{margin-top:12px;font-size:var(--t-small);color:var(--muted)}
.legal h2{font-size:var(--t-h3);margin-top:40px}
.legal-body p,.legal-body ul{margin-top:14px;line-height:1.7;max-width:68ch}
.legal-body>:first-child{margin-top:0}
.legal ul{padding-left:22px;list-style:disc}
.legal li+li{margin-top:6px}
.legal p a:not(.button),.legal li a{color:var(--blue);text-decoration:underline;text-underline-offset:4px}
.legal .button{margin-top:12px}

/* ---------- Interface fragments: the product's own look (web/src/index.css), scoped to [data-ui] ---------- */
[data-ui]{font-size:15px;line-height:22px;color:var(--ink);--focus:var(--blue)}
[data-ui] code{font-size:13px;letter-spacing:.01em}
/* Sheet: the app's white page surface */
.sheet{background:var(--white);border-radius:var(--ui-sheet-radius);color:var(--ink)}
.sheet-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:4px 16px;font-size:13px;line-height:18px;color:var(--muted)}
.sheet-kind{font-weight:600;color:var(--ink-2)}
.sheet-title{font-size:20px;line-height:28px;font-weight:650;letter-spacing:-.025em}
.sheet-note{font-size:13px;line-height:18px;color:var(--muted)}
/* Row list: the app's list card, one row per item */
.rows{background:var(--white);border-radius:var(--ui-radius)}
.rows>li,.rows>div{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:4px 16px;min-height:48px;padding:10px 16px;border-bottom:1px solid var(--ui-line)} /* taste-skill-ignore: inside a data-ui fragment, the app's own divider (web/src/index.css) */
.rows>li:last-child,.rows>div:last-child{border-bottom:0}
.rows dt{color:var(--muted);font-size:13px}
.rows dd{font-weight:550}
.row-name{font-weight:600}
/* Status chip: pill, tinted, words always present (web/src/ui/Chip.tsx tones) */
.chip{display:inline-flex;align-items:center;gap:6px;min-height:22px;padding:0 9px;border:1px solid var(--ui-line);border-radius:999px;background:var(--paper-2);color:var(--ink-2);font-size:13px;line-height:18px;font-weight:600;white-space:nowrap} /* taste-skill-ignore: inside a data-ui fragment, the app's chip border (web/src/ui/Chip.tsx) */
.chip-flag{border-color:rgb(255 145 77 / .5);background:var(--orange-tint);color:var(--orange-text)}
.chip-sig{border-color:rgb(42 60 204 / .3);background:var(--blue-tint);color:var(--blue)}
.chip-lead{border-color:rgb(26 122 74 / .3);background:var(--ui-lead-tint);color:var(--ui-lead)}
.chip-risk{border-color:rgb(196 36 42 / .3);background:var(--ui-risk-tint);color:var(--ui-risk)}
.chip-info{border-style:dashed;border-color:#5c6773;background:#f2f4f6;color:#5c6773}
/* App buttons are pills, unlike the page's square ones */
.ui-button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 20px;border:1px solid var(--ui-control);border-radius:999px;background:var(--white);color:var(--ink);font-size:15px;font-weight:600;white-space:nowrap;text-decoration:none;transition:background-color 150ms ease,transform 150ms var(--ease-out)} /* taste-skill-ignore: inside a data-ui fragment, the app's outlined button (web/src/ui/Button.tsx) */
button.ui-button:hover,a.ui-button:hover{background:var(--paper)}
button.ui-button:active,a.ui-button:active{transform:scale(.97)}
.ui-primary{background:var(--blue);border-color:var(--blue);color:var(--white)}
a.ui-primary:hover,button.ui-primary:hover{background:var(--blue-dark)}
/* Signature line: printed name, date, what is signed */
.sigline{display:flex;flex-wrap:wrap;gap:2px 0;padding:12px 16px;border-radius:var(--ui-radius);background:var(--blue-tint);font-size:13px;line-height:18px;color:var(--ink-2)}
.sigline>span+span::before{content:"·";margin:0 8px;color:var(--muted)}
.sigline b{font-weight:650;color:var(--blue)}
/* Sign bar: the signing sentence, the signature line and the one primary button (web/src/pages/SignBar.tsx) */
.signbar{display:flex;align-items:center;justify-content:space-between;gap:16px 24px;padding:16px 20px;border:1px solid var(--ui-line);border-radius:var(--ui-radius);background:var(--white)} /* taste-skill-ignore: inside a data-ui fragment, the app's sign bar edge (web/src/pages/SignBar.tsx) */
.signbar-sentence{font-weight:650}
.signbar-line{font-size:13px;line-height:18px;color:var(--muted)}
.signbar-line b{color:var(--ink-2);font-weight:650}
/* "On the record" panel */
.onrec{padding:16px;border-radius:var(--ui-sheet-radius);background:var(--paper)}
.onrec-title{padding:0 4px 10px;font-size:13px;line-height:18px;font-weight:650;color:var(--ink-2)}
.onrec .rows>li{grid-template-columns:auto minmax(0,1fr);min-height:44px}
.onrec .rows>li::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--ui-lead)}
.onrec-chips .rows>li{grid-template-columns:auto minmax(0,1fr) auto}
.onrec .rows>li.is-planned::before{background:transparent;border:2px solid var(--ui-control)} /* hollow: planned, not built */
.row-sub{display:block;font-size:13px;line-height:18px;font-weight:400;color:var(--muted)}
/* Board: lanes of cards, as the app's Board (web/src/pages/Board.tsx) */
.board{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;padding:16px;border-radius:var(--ui-sheet-radius);background:var(--paper)}
.lane-head{display:flex;align-items:center;gap:8px;padding:4px 8px 12px;font-size:16px;line-height:24px;letter-spacing:-.01em}
.lane-n{display:inline-flex;align-items:center;justify-content:center;min-width:24px;height:22px;padding:0 7px;border-radius:999px;background:var(--white);color:var(--ink-2);font-size:13px;font-weight:600;letter-spacing:0}
.lane ul{display:grid;gap:10px}
.bcard{padding:14px 16px;border:1px solid var(--ui-line);border-radius:var(--ui-radius);background:var(--white)} /* taste-skill-ignore: inside a data-ui fragment, the app's card edge (web/src/ui/Card.tsx) */
.bcard h4{font-size:16px;line-height:24px;letter-spacing:-.01em;margin-bottom:4px}
.bcard p{color:var(--ink-2)}

/* ---------- Widths ---------- */
@media (max-width:1100px){
  .contact-top,.contact-mail,.contact-foot,.contact:not(:has(.contact-sheet)) .contact-foot{grid-column:1/-1;grid-row:auto}
  .contact:not(:has(.contact-sheet)) .contact-foot{margin-top:40px}
  .board{grid-template-columns:1fr 1fr}
  .board .lane:last-child{grid-column:1/-1}
  .board .lane:last-child ul{grid-template-columns:1fr 1fr}
}
@media (max-width:900px){
  .legal-head,.legal-body{grid-column:1/-1}
  .legal-body{margin-top:32px}
}
@media (max-width:860px){
  .top{padding-top:8px;padding-bottom:4px;gap:0 16px}
  .top-action{margin-left:auto}
  .top-nav{order:3;width:100%;margin:0;gap:0 20px}
  .foot{grid-template-columns:1fr;gap:0}
  .foot-links{justify-self:start}
}
@media (max-width:640px){
  .top-nav{display:grid;grid-template-columns:1fr 1fr}
  .button{width:100%}
  .top .button{width:auto}
  .legal{padding-block:40px 64px}
  .board{grid-template-columns:1fr;padding:10px}
  .board .lane:last-child{grid-column:auto}
  .board .lane:last-child ul{grid-template-columns:1fr}
  .signbar{flex-direction:column;align-items:stretch}
  .sigline{display:grid}
  .sigline>span+span::before{content:none}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{transition-duration:0ms!important;animation:none!important}
}
@media print{.top-nav,.top-action,.copy-email{display:none}}
