/* QuickJob — strona firmowa. Jedna czcionka, dwa kolory, zero bibliotek. */

@font-face {
  font-family: "Space Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/space-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+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Space Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/space-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+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: "Space Mono";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/space-mono-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+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Space Mono";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/space-mono-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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;
}

:root {
  color-scheme: dark;
  --bg: #0a0a0b;
  --fg: #f4f4f2;
  --muted: #8d8d93;   /* 6.3:1 na --bg, WCAG AA z zapasem */
  --line: #26262a;
  --pad: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }

html, body { margin: 0; background: var(--bg); color: var(--fg); }

body {
  font: 15px/1.6 "Space Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  -webkit-font-smoothing: antialiased;
  padding: var(--pad);
  padding-top: max(var(--pad), env(safe-area-inset-top));
  padding-bottom: max(var(--pad), env(safe-area-inset-bottom));
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: clamp(28px, 5vh, 64px);
}

::selection { background: var(--fg); color: var(--bg); }

a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--muted); transition: border-color .15s; }
a:hover, a:focus-visible { border-bottom-color: var(--fg); outline: none; }

/* ---- nagłówek ---- */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px 24px;
  flex-wrap: wrap;
  padding-bottom: clamp(16px, 2.5vh, 24px);
  border-bottom: 1px solid var(--line);
}

.brand {
  font-weight: 700;
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1;
  letter-spacing: .02em;
  display: inline-flex;
  align-items: center;
}
/* Kursor-blok zamiast logotypu: jedyny „znak graficzny" na stronie. */
.brand::after {
  content: "";
  width: .5em;
  height: .82em;
  margin-left: .14em;
  background: var(--fg);
  animation: blink 1.1s steps(1) infinite;
}

.clock {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .12em;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: .6em;
}
.clock time { color: var(--fg); font-variant-numeric: tabular-nums; }
.clock .sep { opacity: .5; }
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 1px solid var(--muted);
}
.clock.is-open .dot { background: var(--fg); border-color: var(--fg); animation: pulse 2.4s ease-out infinite; }
.clock.is-open [data-state] { color: var(--fg); }

/* ---- treść ---- */
main {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 96px);
  align-content: center;
}

.tag {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .12em;
}

h1 {
  position: relative;
  margin: 0 0 22px;
  font-size: clamp(28px, 4.2vw, 56px);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -.01em;
  white-space: pre-line;
}
h1 .ghost { visibility: hidden; }
h1 .typed { position: absolute; inset: 0; }
.caret {
  display: inline-block;
  width: .08em;
  height: .9em;
  margin-left: .06em;
  vertical-align: -.1em;
  background: var(--fg);
  animation: blink 1.1s steps(1) infinite;
}

.lead p { margin: 0 0 14px; max-width: 58ch; }

/* „Od pracowników dla pracowników, od pracodawców dla pracodawców" — dwie linie, jeden rytm. */
.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 58ch;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.pair p { margin: 0; font-weight: 700; line-height: 1.45; }
.pair .k {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-weight: 400;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.pair .k::before { content: "> "; }

/* Etykiety numerowane 01–05: rytm formularza, nie dekoracja. */
.contact {
  counter-reset: field;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 20px;
  align-self: center;
  padding-left: clamp(0px, 3vw, 40px);
  border-left: 1px solid var(--line);
}
.contact dl { margin: 0; counter-increment: field; }
.contact dt {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 6px;
}
.contact dt::before { content: counter(field, decimal-leading-zero) "  "; white-space: pre; opacity: .55; }
.contact dd { margin: 0; }
.contact dd.strong { font-weight: 700; letter-spacing: .04em; }
.contact .wide { grid-column: 1 / -1; }

/* ---- stopka ---- */
footer {
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  gap: 12px 32px;
  flex-wrap: wrap;
}
footer p { margin: 0; }
footer nav a { margin-left: 20px; }

@keyframes blink { 50% { opacity: 0; } }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(244, 244, 242, .45); }
  70%  { box-shadow: 0 0 0 7px rgba(244, 244, 242, 0); }
  100% { box-shadow: 0 0 0 0 rgba(244, 244, 242, 0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---- telefon: jedna kolumna, przewijanie dozwolone ---- */
@media (max-width: 760px) {
  body { gap: 32px; }
  header { align-items: flex-start; flex-direction: column; }
  main { grid-template-columns: 1fr; gap: 32px; }
  .pair { grid-template-columns: 1fr; gap: 16px; }
  .contact { grid-template-columns: 1fr; gap: 18px; padding-left: 0; border-left: 0; padding-top: 24px; border-top: 1px solid var(--line); }
  footer { flex-direction: column; }
  footer nav a { margin: 0 20px 0 0; }
}
