/* WarsawIQ — warsawiq.com
   Palette shared with karol.chlasta.pl: navy #143a72 on white, lightened to
   #86abe9 on dark. The two sites are deliberately one visual family.
   Type: Barlow, a DIN-lineage grotesque matching the Bahnschrift wordmark in
   the logo. Self-hosted fonts, no third-party requests. */

/* ---------- fonts ---------- */

@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/barlow-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/barlow-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/assets/fonts/barlow-500-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/assets/fonts/barlow-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/assets/fonts/barlow-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/assets/fonts/barlow-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/assets/fonts/barlow-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/assets/fonts/barlow-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/ibm-plex-mono-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- tokens ---------- */

:root {
  --paper:   #ffffff;
  --surface: #ffffff;
  --panel:   #f3f6fa;
  --ink:     #0d1420;
  --ink-soft:#2b3648;
  --muted:   #59647a;
  --hair:    #e1e7ef;

  --navy:    #143a72;
  --gold:    #9c7222;
  --accent:  #143a72;
  --accent-weak: #e8eef8;

  --sans: "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;

  --s--2: 0.75rem;  --s--1: 0.875rem; --s-0: 1.0625rem; --s-1: 1.25rem;
  --s-2:  1.5rem;   --s-3:  2rem;     --s-4: 2.75rem;   --s-5: clamp(2.5rem, 6vw, 4rem);

  --measure: 62ch;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --page: 68rem;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:   #0d1218;
    --surface: #151d28;
    --panel:   #151d28;
    --ink:     #e6eaf1;
    --ink-soft:#c2cbdb;
    --muted:   #8593a8;
    --hair:    #222c39;
    --navy:    #86abe9;
    --gold:    #d3a24a;
    --accent:  #86abe9;
    --accent-weak: #16233a;
    color-scheme: dark;
  }
  :root:not([data-theme="light"]) .brand .logo-light { display: none; }
  :root:not([data-theme="light"]) .brand .logo-dark  { display: block; }
}
:root[data-theme="dark"] {
  --paper:   #0d1218;
  --surface: #151d28;
  --panel:   #151d28;
  --ink:   #e6eaf1;
  --ink-soft:#c2cbdb;
  --muted:   #8593a8;
  --hair:  #222c39;
  --navy:  #86abe9;
  --gold:  #d3a24a;
  --accent:  #86abe9;
  --accent-weak: #16233a;
  color-scheme: dark;
}
:root[data-theme="dark"] .brand .logo-light { display: none; }
:root[data-theme="dark"] .brand .logo-dark  { display: block; }
:root[data-theme="light"] {
  --paper:   #ffffff;
  --surface: #ffffff;
  --panel:   #f3f6fa;
  --ink:     #0d1420;
  --ink-soft:#2b3648;
  --muted:   #59647a;
  --hair:    #e1e7ef;
  --navy:    #143a72;
  --gold:    #9c7222;
  --accent:  #143a72;
  --accent-weak: #e8eef8;
  color-scheme: light;
}
:root[data-theme="light"] .brand .logo-light { display: block; }
:root[data-theme="light"] .brand .logo-dark  { display: none; }

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--s-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.015em; text-wrap: balance; margin: 0; }
p { margin: 0; }
img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.16em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: var(--page); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3rem, 8vw, 5.5rem); }
.section + .section { border-top: 1px solid var(--hair); }

.skip {
  position: absolute; left: -9999px;
  background: var(--surface); color: var(--ink); padding: 0.6rem 1rem; z-index: 50;
}
.skip:focus { left: var(--gutter); top: 0.6rem; }

.eyebrow {
  font-family: var(--mono); font-size: var(--s--2);
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
  margin: 0 0 0.75rem;
}

/* ---------- nav ---------- */

.nav { border-bottom: 1px solid var(--hair); background: var(--surface); }
.nav .wrap { display: flex; align-items: center; gap: 1.25rem; min-height: 4rem; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: inherit; margin-right: auto; }
.brand img { height: 2.6rem; width: auto; object-fit: contain; }
/* The wordmark inside the logo is black, so it needs a light-on-dark twin.
   Switched the same three ways as the colour tokens, so the manual toggle
   works as well as the OS preference. */
.brand .logo-dark { display: none; }

.nav ul { display: flex; gap: 1.1rem; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.nav a { color: var(--ink-soft); text-decoration: none; font-size: var(--s--1); font-weight: 500; }
.nav a:hover { color: var(--accent); }


/* ---------- hero ---------- */

.hero { position: relative; overflow: hidden; background: var(--panel); }
.hero video, .hero .poster {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(105deg,
    rgb(13 20 32 / 0.94) 0%, rgb(13 20 32 / 0.86) 42%, rgb(13 20 32 / 0.55) 100%);
}
.hero .wrap { position: relative; z-index: 2; padding-block: clamp(4rem, 12vw, 7.5rem); }
.hero-inner { max-width: 40rem; }
.hero .eyebrow { color: #9dbdf0; }
.hero h1 {
  font-size: clamp(2.1rem, 6vw, 3.4rem); font-weight: 700; color: #ffffff;
  margin-bottom: 1.1rem;
}
.hero h1 em { font-style: normal; color: #9dbdf0; }
.hero p { color: #cfdde3; font-size: var(--s-1); max-width: 34rem; }

.cta { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.8rem; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: var(--s--1);
  padding: 0.65rem 1.25rem; border-radius: 3px;
  background: var(--navy); color: #ffffff; border: 1px solid var(--navy);
}
.btn:hover { background: #1b4a8f; border-color: #1b4a8f; }
.btn--ghost { background: transparent; color: #ffffff; border-color: rgb(255 255 255 / 0.4); }
.btn--ghost:hover { background: rgb(255 255 255 / 0.1); border-color: #ffffff; }

/* ---------- proof strip ---------- */

.proof { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); margin: 0; }
.proof > div { padding: 1.4rem 0; }
.proof > div + div { border-left: 1px solid var(--hair); padding-left: 1.4rem; }
.proof dt { font-size: var(--s-3); font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.proof dd { margin: 0.15rem 0 0; font-size: var(--s--2); color: var(--muted); line-height: 1.4; }

/* ---------- generic blocks ---------- */

.sechead { font-size: var(--s-4); font-weight: 700; margin-bottom: 0.5rem; }
.lede { color: var(--muted); max-width: var(--measure); margin-bottom: 2rem; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1rem; }
.card {
  background: var(--surface); border: 1px solid var(--hair);
  border-radius: 5px; padding: 1.5rem;
  border-top: 3px solid var(--navy);
}
.card h3 { font-size: var(--s-1); font-weight: 600; margin-bottom: 0.55rem; }
.card p { color: var(--muted); font-size: var(--s--1); }
.card ul { margin: 0.9rem 0 0; padding-left: 1.05rem; font-size: var(--s--1); color: var(--ink-soft); }
.card li { margin-bottom: 0.3rem; }
.card li::marker { color: var(--accent); }

.pubs { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
.pubs li {
  padding-left: 1rem; border-left: 2px solid var(--hair);
  font-size: var(--s--1); color: var(--ink-soft);
}
.pubs cite { font-style: italic; color: var(--ink); }
.pubs .year { font-family: var(--mono); font-size: var(--s--2); color: var(--muted); }

.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.5rem; }
.person img {
  width: 4.5rem; height: 4.5rem; border-radius: 50%; object-fit: cover;
  margin-bottom: 0.8rem; border: 2px solid var(--hair);
}
.person h3 { font-size: var(--s-0); font-weight: 600; margin-bottom: 0.1rem; }
.person .degree {
  display: block; font-family: var(--mono); font-size: var(--s--2);
  color: var(--muted); margin-bottom: 0.15rem;
}
.person .role { font-family: var(--mono); font-size: var(--s--2); color: var(--accent); display: block; margin-bottom: 0.5rem; }
.person p { font-size: var(--s--1); color: var(--muted); }

.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.5rem; margin: 0; }
.contact dt { font-weight: 600; margin-bottom: 0.2rem; }
.contact dd { margin: 0; font-size: var(--s--1); color: var(--muted); }

footer.site {
  border-top: 1px solid var(--hair); background: var(--surface);
  font-size: var(--s--2); color: var(--muted);
}
footer.site .wrap { padding-block: 1.6rem; display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; }

@media (max-width: 40rem) {
  .proof > div + div { border-left: 0; padding-left: 0; border-top: 1px solid var(--hair); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ---------- prose pages (privacy, security) ---------- */

.prose { max-width: 44rem; }
.prose h1 { font-size: var(--s-4); font-weight: 700; margin-bottom: 0.4rem; }
.prose h2 {
  font-size: var(--s-1); font-weight: 600; margin: 2.2rem 0 0.6rem;
  padding-top: 1.4rem; border-top: 1px solid var(--hair);
}
.prose h2:first-of-type { border-top: 0; padding-top: 0; }
.prose p { margin-bottom: 0.9rem; color: var(--ink-soft); }
.prose ul { margin: 0 0 1rem; padding-left: 1.1rem; color: var(--ink-soft); }
.prose li { margin-bottom: 0.4rem; }
.prose li::marker { color: var(--accent); }
.prose .lead {
  font-size: var(--s-1); color: var(--ink); border-left: 3px solid var(--accent);
  padding-left: 1rem; margin-bottom: 2rem;
}
.prose .back { display: inline-block; margin-top: 2.5rem; font-size: var(--s--1); }
.prose table { border-collapse: collapse; width: 100%; margin-bottom: 1.2rem; font-size: var(--s--1); }
.prose th, .prose td { text-align: left; padding: 0.5rem 0.8rem; border-bottom: 1px solid var(--hair); vertical-align: top; }
.prose th { font-family: var(--mono); font-size: var(--s--2); text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-weight: 500; }
.tablewrap { overflow-x: auto; }
