/* rj2.pl — styles. Fonts: IBM Plex (SIL OFL 1.1, fonts/OFL.txt), served from this site. */
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/plex-mono-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-20C4, 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("fonts/plex-mono-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: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/plex-mono-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/plex-mono-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: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/plex-sans-var-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/plex-sans-var-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 Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/plex-sans-var-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/plex-sans-var-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 Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/plex-sans-var-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/plex-sans-var-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: "Spectral"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/spectral-latin-ext-500-normal.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Spectral"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/spectral-latin-500-normal.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; }

/* Layout: wide page (72.5rem), numbered sections, a figures strip under the introduction and a dark Experience band.
   Headings in Spectral (SIL OFL 1.1), body in IBM Plex Sans, labels in IBM Plex Mono — all served from this site. */
:root {
  --bg: #f3f4f6;
  --surface: #ebedf0;
  --ink: #15181d;
  --text: #3e444d;
  --muted: #5a616c;
  --faint: #9aa0a9;
  --line: #d7dae0;
  --line-strong: #c9cdd4;
  --accent: #7b2d30;
  --band-bg: #15181d;
  --band-ink: #f3f4f6;
  --band-text: #c3c8d0;
  --band-line: #353b45;
  --band-accent: #d9a3a3;
  --font-display: "Spectral", Georgia, "Times New Roman", serif;
  --font-body: "IBM Plex Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --gutter: clamp(16px, 4vw, 40px);
  --section-pad: clamp(3.5rem, 8vw, 7rem);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121417; --surface: #191c21; --ink: #e9ebee; --text: #c3c8d0; --muted: #9aa0a9; --faint: #6b7280;
    --line: #2a2f37; --line-strong: #353b45; --accent: #d9a3a3;
    --band-bg: #0b0c0e; --band-ink: #e9ebee; --band-text: #b4bac3; --band-line: #2a2f37; --band-accent: #d9a3a3;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121417; --surface: #191c21; --ink: #e9ebee; --text: #c3c8d0; --muted: #9aa0a9; --faint: #6b7280;
  --line: #2a2f37; --line-strong: #353b45; --accent: #d9a3a3;
  --band-bg: #0b0c0e; --band-ink: #e9ebee; --band-text: #b4bac3; --band-line: #2a2f37; --band-accent: #d9a3a3;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg);
}
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
p { margin: 0; }
dl, dd { margin: 0; }
h1, h2, h3 { text-wrap: pretty; }

.wrap {
  max-width: 72.5rem;
  margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

/* top bar */
.bar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.bar .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1.75rem; padding-block: 1.1rem; }
.mark { font-family: var(--font-mono); font-weight: 500; font-size: 0.875rem; letter-spacing: 0.04em; }
.nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; margin-left: auto; font-size: 0.875rem; }
.nav a { color: var(--muted); }
.nav a:hover { color: var(--accent); }
.nav .nav-contact { color: var(--ink); font-weight: 500; border-bottom: 1px solid var(--ink); }
.lang { margin-left: auto; font-family: var(--font-mono); font-size: 0.8125rem; letter-spacing: 0.06em; color: var(--muted); }
.lang:hover { color: var(--accent); }
.nav + .lang { margin-left: 0; }

/* introduction */
.hero .wrap {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr));
  gap: 2.5rem clamp(2rem, 6vw, 6rem); align-items: end;
  padding-block: clamp(3rem, 8vw, 6.5rem) clamp(2.5rem, 6vw, 4.5rem);
}
.hero-text { display: flex; flex-direction: column; gap: 1.75rem; min-width: 0; }
.kicker {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1rem;
  font-family: var(--font-mono); font-size: 0.8125rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent);
}
.kicker .dot { color: var(--faint); }
h1 {
  margin: 0; font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2.375rem, 5.2vw, 4rem); line-height: 1.08; letter-spacing: -0.015em;
}
.lead { max-width: 35rem; font-size: clamp(1.0625rem, 1.4vw, 1.25rem); color: var(--text); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.button {
  display: inline-flex; align-items: center; min-height: 3rem; padding: 0 1.5rem; border-radius: 2px;
  background: var(--ink); color: var(--bg); font-weight: 500; font-size: 0.9375rem;
}
.button:hover { background: var(--accent); color: var(--bg); }
.link-button {
  display: inline-flex; align-items: center; min-height: 3rem; padding: 0 0.375rem;
  font-weight: 500; font-size: 0.9375rem; border-bottom: 1px solid var(--ink);
}
.person { margin: 0; justify-self: end; width: 100%; max-width: 26.25rem; display: flex; flex-direction: column; gap: 1.1rem; }
.portrait { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; background: var(--surface); }
.person figcaption { display: flex; flex-direction: column; gap: 0.125rem; }
.person-name { font-family: var(--font-display); font-size: 1.375rem; font-weight: 500; }
.person-role { font-size: 0.875rem; color: var(--muted); }

/* figures strip */
.facts { background: var(--surface); border-block: 1px solid var(--line); }
.facts .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13.75rem), 1fr)); }
.facts .wrap > div { display: flex; flex-direction: column; gap: 0.375rem; padding: 1.75rem 1.5rem 1.75rem 0; }
.facts .wrap > div + div { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.facts dt { font-family: var(--font-display); font-size: 2.25rem; line-height: 1; font-weight: 500; }
.facts dd { font-size: 0.875rem; color: var(--muted); }

/* sections */
section { padding-block: var(--section-pad); scroll-margin-top: 4rem; }
section + section { border-top: 1px solid var(--line); }
.split { display: flex; flex-wrap: wrap; gap: 2.5rem clamp(2rem, 6vw, 6rem); }
.section-head { display: flex; flex-direction: column; gap: 1rem; flex: 1 1 18.75rem; max-width: 26.25rem; }
.section-head.wide { max-width: 45rem; margin-bottom: 3rem; }
.eyebrow { font-family: var(--font-mono); font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
h2 {
  margin: 0; font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.15; letter-spacing: -0.01em;
}
h2.big { font-size: clamp(1.875rem, 4vw, 3.25rem); line-height: 1.1; letter-spacing: -0.015em; }
.intro-text { color: var(--text); max-width: 26.25rem; }
.section-head.wide .intro-text { max-width: 45rem; }
h3 { margin: 0; font-size: 1.0625rem; font-weight: 600; }

.services {
  flex: 2 1 30rem; min-width: 0; align-self: start;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16.25rem), 1fr));
  gap: 0 2.5rem; border-top: 1px solid var(--line);
}
.services > div { display: flex; flex-direction: column; gap: 0.5rem; padding-block: 1.5rem; border-bottom: 1px solid var(--line); }
.services p { font-size: 0.9375rem; color: var(--muted); }

/* dark Experience band */
.band { background: var(--band-bg); color: var(--band-ink); }
section.band, section.band + section { border-top: 0; }
.band .eyebrow { color: var(--band-accent); }
.band a { color: var(--band-ink); border-bottom: 1px solid #6b7280; }
.band a:hover { color: var(--band-accent); }
.sectors { border-top: 1px solid var(--band-line); }
.sectors > div { display: flex; flex-wrap: wrap; gap: 0.5rem 2.5rem; padding-block: 1.75rem; border-bottom: 1px solid var(--band-line); }
.sectors dt { flex: 1 1 12.5rem; max-width: 16.25rem; font-family: var(--font-display); font-size: 1.375rem; font-weight: 500; line-height: 1.3; }
.sectors dd { flex: 3 1 20rem; min-width: 0; color: var(--band-text); line-height: 1.6; }
.band-foot { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; align-items: center; justify-content: space-between; margin-top: 3rem; font-size: 0.9375rem; }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; font-family: var(--font-mono); font-size: 0.78rem; color: var(--band-text); }
.tags li { padding: 0.375rem 0.625rem; border: 1px solid var(--band-line); border-radius: 2px; }

/* case studies */
.case {
  border-top: 2px solid var(--ink); padding-top: 1.75rem;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18.75rem), 1fr));
  gap: 2rem clamp(2rem, 6vw, 6rem);
}
.case + .case { margin-top: 3rem; }
.case-text { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.case-text p { color: var(--text); }
.case-text a { border-bottom: 1px solid var(--faint); }
.case-meta { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--muted); }
.case-text .case-meta { color: var(--muted); }
.case h3 { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.2; }
.case-text .role-note { font-size: 0.875rem; color: var(--muted); border-left: 2px solid var(--accent); padding-left: 0.875rem; }
.spec { border-top: 1px solid var(--line); align-self: start; min-width: 0; }
.spec > div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1rem; padding-block: 1.125rem; border-bottom: 1px solid var(--line); font-size: 0.9375rem; }
.spec dt { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); padding-top: 0.2rem; }
.spec dd { color: var(--text); }

/* how I work */
.tint { background: var(--surface); }
.terms {
  flex: 2 1 30rem; min-width: 0; align-self: start;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1.5rem 2.5rem;
}
.terms > div { display: flex; flex-direction: column; gap: 0.5rem; border-top: 1px solid var(--line-strong); padding-top: 1rem; }
.terms dt { font-weight: 600; }
.terms dd { font-size: 0.9375rem; color: var(--muted); }

/* contact */
.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16.25rem), 1fr)); gap: 0 2.5rem; border-top: 1px solid var(--line); }
.contact > div { display: flex; flex-direction: column; gap: 0.375rem; padding-block: 1.25rem; border-bottom: 1px solid var(--line); }
.contact dt { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.contact dd { font-size: 1.0625rem; font-weight: 500; overflow-wrap: anywhere; }

footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 0.8125rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; padding-block: 1.5rem; }
footer p { margin: 0; }
footer a { color: var(--muted); border-bottom: 1px solid var(--line-strong); }
footer a:hover { color: var(--accent); }

/* preview banner (nowa.rj2.pl only — remove before rj2.pl switches to this site) */

/* privacy page */
.doc { border-top: 0; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.doc .wrap { max-width: 46rem; }
.doc h1 { font-size: clamp(1.75rem, 3vw, 2.5rem); margin-bottom: 1.5rem; }
.doc h3 { margin-top: 1.75rem; margin-bottom: 0.25rem; }
.doc p { max-width: 68ch; color: var(--text); margin-bottom: 1rem; }
.doc a { color: var(--accent); }
.doc .note { margin-top: 2rem; color: var(--muted); font-size: 0.875rem; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

@media (max-width: 640px) {
  .nav { display: none; }
  .nav + .lang { margin-left: auto; }
  .person { justify-self: start; max-width: 13rem; order: -1; }
  .facts .wrap > div, .facts .wrap > div + div { padding: 1.25rem 0; border-left: 0; }
  .facts .wrap > div + div { border-top: 1px solid var(--line); }
  .spec > div { grid-template-columns: 1fr; gap: 0.25rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
