/* jurczak.app - hand-written CSS, no external resources, no JavaScript.

   CONCEPT: "INDEKS". A personal index of a developer: a cool light grey page (or near-black at night),
   one oversized name, hairline ledger rules, mono labels. The three projects are full-bleed
   colour doors (each with its own colour and mark): SOVA OS navy + owl eyes, Osiadam amber + pin,
   Grosno green + "gr" tile. Everything else is plain type on the page so the doors stand out.
   Type: Archivo (variable weight) for text and display, JetBrains Mono 500 for labels.
   Motion: the name slides in once on load, View Transitions between PL/EN, hover on the doors.
   No scroll-triggered animation. Everything is readable without animation and with prefers-reduced-motion. */

@font-face { font-family: "Archivo"; src: url("/assets/fonts/archivo-latin-ext.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  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: "Archivo"; src: url("/assets/fonts/archivo-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  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: "JB Mono"; src: url("/assets/fonts/jbmono-latin-ext-500.woff2") format("woff2"); font-weight: 500; font-display: swap;
  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: "JB Mono"; src: url("/assets/fonts/jbmono-latin-500.woff2") format("woff2"); font-weight: 500; font-display: swap;
  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; }

:root {
  color-scheme: light dark;
  --paper: #f3f5f7;
  --ink: #0f1216;
  --mute: #4b535d;      /* 7.2:1 on paper */
  --sig: #bf2f18;       /* signal red, 5.1:1 on paper */
  --rule: color-mix(in srgb, var(--ink) 28%, transparent);
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "JB Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --pad: clamp(1rem, 4vw, 3rem);
  --ease: cubic-bezier(.2, .8, .2, 1);
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #0e1013; --ink: #e8ebef; --mute: #9aa3ad; --sig: #ff7d5c; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 4.5rem; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 clamp(1rem, .95rem + .25vw, 1.125rem)/1.55 var(--sans); font-kerning: normal; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .22em; }
a:hover { color: var(--sig); }
:focus-visible { outline: 3px solid var(--sig); outline-offset: 3px; border-radius: 2px; }
.wrap { width: 100%; max-width: 90rem; margin-inline: auto; padding-inline: var(--pad); }
.mono { font-family: var(--mono); font-weight: 500; font-size: .8125rem; letter-spacing: .04em; text-transform: uppercase; }
.skip { position: absolute; left: var(--pad); top: -4rem; background: var(--ink); color: var(--paper); padding: .75rem 1rem; z-index: 20; }
.skip:focus { top: .75rem; }

/* ---------- bar ---------- */
.bar { position: sticky; top: 0; z-index: 10; background: var(--paper); border-bottom: 1px solid var(--rule); }
.bar .wrap { display: flex; align-items: center; gap: 1.25rem; min-height: 3.5rem; }
.brand { display: flex; align-items: center; gap: .65rem; font-weight: 700; text-decoration: none; letter-spacing: -.01em; margin-right: auto; min-height: 44px; }
.brand img { width: 28px; height: 28px; }
.bar nav ul { display: flex; gap: 1.5rem; }
.bar nav a, .lang a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.bar nav a:hover, .lang a:hover { text-decoration: underline; }
.lang { display: flex; gap: .15rem; border: 1px solid var(--rule); border-radius: 2px; padding: 2px; }
.lang a, .lang span { min-width: 2.75rem; min-height: 2.25rem; justify-content: center; align-items: center; display: inline-flex; border-radius: 1px; }
.lang [aria-current] { background: var(--ink); color: var(--paper); }
@media (max-width: 47.99rem) { .bar nav li:not(.keep) { display: none; } }

/* ---------- hero ---------- */
.hero { padding-block: clamp(1.5rem, 3.5vw, 3.5rem) clamp(2rem, 4vw, 3.5rem); }
.name { font-weight: 800; font-size: min(24rem, calc((100vw - 2 * var(--pad)) / 3.75)); line-height: .86; letter-spacing: -.055em; margin-left: -.04em; view-transition-name: name; }
.name .ln { display: flex; align-items: flex-start; justify-content: space-between; overflow: hidden; padding-bottom: .09em; margin-bottom: -.09em; }
.name .ln > span:first-child { display: block; }
.name .tag { font: 500 .8125rem/1.5 var(--mono); letter-spacing: .04em; text-transform: uppercase; margin-top: .6rem; text-align: right; padding-right: .25rem; color: var(--mute); display: none; }
@media (min-width: 48rem) { .name .tag { display: block; font-size: clamp(.8125rem, 1.35vw, 1.25rem); } }
.hero-foot { display: grid; gap: 2rem; margin-top: clamp(2rem, 4vw, 3.5rem); padding-top: 1.25rem; border-top: 2px solid var(--ink); }
.lede { font-size: clamp(1.35rem, 1rem + 1.6vw, 2.5rem); line-height: 1.18; font-weight: 500; letter-spacing: -.015em; word-spacing: .08em; max-width: 30ch; text-wrap: balance; }
.lede b { font-weight: 800; }
.idx { display: grid; align-content: end; }
.idx li { border-top: 1px solid var(--rule); }
.idx li:first-child { border-top: 0; }
.idx a { display: grid; grid-template-columns: 1.5rem 1fr auto; align-items: center; gap: .5rem; min-height: 3rem; text-decoration: none; font-weight: 600; font-size: 1.125rem; transition: padding-left .35s var(--ease), color .2s; }
.idx a:hover { padding-left: .75rem; color: var(--sig); }
.idx .mono { color: var(--mute); text-transform: none; }
.idx .dot { width: .7rem; height: .7rem; border-radius: 50%; }
@media (min-width: 60rem) { .hero-foot { grid-template-columns: 1.4fr 1fr; gap: 4rem; } }

/* ---------- section scaffolding ---------- */
.sec { padding-block: clamp(3.5rem, 9vw, 8rem); }
.sec-h { margin-bottom: clamp(1.75rem, 4vw, 3.5rem); border-top: 2px solid var(--ink); padding-top: 1rem; }
.sec-h h2 { font-size: clamp(2.25rem, 1.2rem + 5vw, 6rem); line-height: .95; font-weight: 800; letter-spacing: -.04em; }

/* ---------- projects: full-bleed colour doors ---------- */
.projects { padding-top: clamp(3rem, 7vw, 6rem); }
.projects > .wrap { margin-bottom: 0; }
.proj { --bg: #333; --fg: #fff; --line: color-mix(in srgb, var(--fg) 38%, transparent); position: relative; background: var(--bg); color: var(--fg); overflow: clip; isolation: isolate; }
.proj .wrap { display: grid; gap: 1.5rem; padding-block: clamp(1.75rem, 4vw, 3.5rem) clamp(2rem, 5vw, 4.5rem); min-height: min(88vh, 48rem); grid-template-columns: minmax(0, 1fr); }
.proj .body { display: grid; gap: 1.5rem; align-content: end; position: relative; }
.proj h3 { font-weight: 800; font-size: clamp(3.5rem, 1rem + 14vw, 12.5rem); line-height: .86; letter-spacing: -.055em; margin-left: -.04em; }
.proj .what { font-size: clamp(1.1rem, 1rem + .6vw, 1.5rem); line-height: 1.35; max-width: 34ch; font-weight: 500; }
.proj dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr)); max-width: 40rem; border-top: 1px solid var(--line); }
.proj dl div { padding: .7rem 1rem .7rem 0; border-bottom: 1px solid var(--line); }
.proj dt { opacity: .78; font-size: .75rem; }
.proj dd { font-weight: 700; margin-top: .15rem; }
.go { display: inline-flex; align-items: center; font-weight: 800; text-decoration-thickness: .1em; text-underline-offset: .2em; font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); letter-spacing: -.02em; min-height: 44px; width: fit-content; }
.go:hover { color: inherit; text-decoration-thickness: .2em; }
.go::after { content: ""; position: absolute; inset: 0; z-index: 3; }
.go:focus-visible { outline: none; }
.go:focus-visible::after { outline: 4px solid currentColor; outline-offset: -10px; }
.soon { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; font-size: clamp(1.1rem, 1rem + .6vw, 1.4rem); border-bottom: 2px dashed currentColor; width: fit-content; }
.mark { position: absolute; z-index: -1; right: calc(var(--pad) * -.5); top: 2rem; width: min(56vw, 22rem); transition: transform .8s var(--ease); }
.mark img, .mark svg { width: 100%; height: auto; }
.proj:hover .mark { transform: scale(1.03); }
@media (min-width: 60rem) {
  .proj .wrap { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); column-gap: 3rem; }
  .proj .body { grid-column: 1; }
  .proj h3 { font-size: clamp(3.5rem, 1rem + 9.5vw, 11rem); }
  .mark { position: relative; z-index: 0; grid-column: 2; grid-row: 1; align-self: center; justify-self: center; right: auto; top: auto; width: min(34vw, 30rem); }
}
@media (max-width: 59.99rem) { .proj .body { padding-top: min(52vw, 15rem); } .proj .what { max-width: 30ch; } }
.c-sova { background: #3f96e6; } .c-osiadam { background: #f0b429; } .c-grosno { background: #1f6f4a; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.p-sova { --bg: #1d2a3d; --fg: #f0f4f8; }
.p-osiadam { --bg: #f0b429; --fg: #1b2330; }
.p-grosno { --bg: #1f6f4a; --fg: #ffffff; }
.eye { transform-box: fill-box; transform-origin: center; }
.iris { transition: translate .6s var(--ease); }
.proj:hover .iris { translate: 1.8px -.9px; }

/* ---------- ledger: what I help with, how I work ---------- */
.ledger li { display: grid; gap: .5rem 2rem; padding-block: 1.35rem; border-top: 1px solid var(--rule); }
.ledger li:last-child { border-bottom: 1px solid var(--rule); }
.ledger h3 { font-weight: 800; font-size: clamp(1.6rem, 1rem + 2.6vw, 3.25rem); line-height: 1; letter-spacing: -.035em; transition: translate .4s var(--ease); }
.ledger p { color: var(--mute); max-width: 52ch; }
.ledger li:hover h3 { translate: .6rem 0; }
@media (min-width: 60rem) { .ledger li { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: baseline; padding-block: 1.75rem; } }

/* ---------- contact (inverted) ---------- */
.contact { background: var(--ink); color: var(--paper); padding-block: clamp(3.5rem, 9vw, 8rem) clamp(3rem, 7vw, 6rem); }
.contact h2 { font-size: clamp(2.25rem, 1.2rem + 5vw, 6rem); font-weight: 800; letter-spacing: -.04em; line-height: .95; margin-block: 0 2rem; max-width: 18ch; text-wrap: balance; }
.mail { display: block; font-weight: 800; font-size: clamp(1.45rem, .4rem + 6.1vw, 6.75rem); letter-spacing: -.045em; line-height: 1; overflow-wrap: anywhere; text-decoration-thickness: .06em; text-underline-offset: .12em; }
.contact a:hover { color: var(--paper); text-decoration-style: wavy; }
.contact :focus-visible { outline-color: var(--paper); }
.contact .note { margin-top: 1.5rem; max-width: 46ch; opacity: .85; }

/* ---------- footer ---------- */
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 2rem; padding-block: 1.25rem 2rem; }
.foot p, .foot nav { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; align-items: center; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- documents (privacy, 404) ---------- */
.doc { padding-block: clamp(3rem, 8vw, 7rem); }
.doc h1 { font-weight: 800; font-size: clamp(3rem, 1rem + 9vw, 9rem); line-height: .9; letter-spacing: -.05em; margin-bottom: 2rem; }
.doc h2 { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; margin-top: 2.25rem; margin-bottom: .5rem; }
.doc p, .doc li { max-width: 62ch; margin-top: .6rem; }
.doc .lead { font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); line-height: 1.3; font-weight: 500; letter-spacing: -.015em; }
.doc ul { padding-left: 1.25rem; list-style: square; }

/* ---------- motion: only when allowed ---------- */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .4s; }
  .bar { view-transition-name: bar; }

  .name .ln > span:first-child { animation: up .7s var(--ease) both; }
  .name .ln:nth-child(2) > span:first-child { animation-delay: .08s; }
  @keyframes up { from { translate: 0 105%; } }
}

@media print { .bar, .skip { display: none; } .contact { background: none; color: #000; } }
