/* sprada.pl · shared stylesheet for the main page and the recommendations page. Two reading modes: business and engineering. Mobile-first. */
/* fonts: served from this site (SIL Open Font License). Variable fonts; Newsreader carries the optical-size axis, which the browser picks automatically. */
@font-face {
  font-family: 'Azeret Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(assets/fonts/azeret-mono-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: 'Azeret Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(assets/fonts/azeret-mono-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: 'Newsreader';
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url(assets/fonts/newsreader-italic-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: 'Newsreader';
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url(assets/fonts/newsreader-italic-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: 'Newsreader';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(assets/fonts/newsreader-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: 'Newsreader';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(assets/fonts/newsreader-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;
}

:root {
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --mono: "Azeret Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --cobalt: #1E4BD8;
  --gutter: 18px;
  --wrap: 1120px;
}
html[data-mode="biz"] { --bg: #FBFBFD; --fg: #0B1B3F; --muted: #56627C; --line: #DCE2EE; --accent: #1E4BD8; --font: var(--serif); }
html[data-mode="eng"] { --bg: #1E4BD8; --fg: #FFFFFF; --muted: rgba(255, 255, 255, .8); --line: rgba(255, 255, 255, .28); --accent: #FFD166; --font: var(--mono); }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; background: var(--bg); transition: background-color .45s ease; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font); font-size: 19px; line-height: 1.55; -webkit-font-smoothing: antialiased; transition: background-color .45s ease, color .45s ease; }
html[data-mode="eng"] body { font-size: 14.5px; line-height: 1.7; font-variant-ligatures: none; }
[data-mode="biz"] .e, [data-mode="eng"] .b { display: none; }
img { display: block; max-width: 100%; }
/* link rule: a link keeps the text color and gets an accent underline; a control that switches the mode is set in the accent color; the two e-mail links use a 2px accent rule */
a, .hint button { color: inherit; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .24em; text-decoration-skip-ink: none; }
a:hover { text-decoration-thickness: 2px; }
.name, .skip { text-decoration: none; }
/* the big e-mail link: same rule, one step thicker; thinner in Engineering mode because the mono face is smaller (decided) */
.mail { text-decoration-thickness: 2px; text-underline-offset: .2em; }
.mail:hover { text-decoration-thickness: 3px; }
html[data-mode="eng"] .mail { text-decoration-thickness: 1.5px; text-underline-offset: .22em; }
html[data-mode="eng"] .mail:hover { text-decoration-thickness: 2.5px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 40; padding: 10px 14px; border-radius: 10px; background: var(--fg); color: var(--bg); font: 500 13px/1 var(--mono); text-decoration: none; }
.skip:focus { top: 12px; }
.meta, .kicker, .switch, figcaption, .log__meta, .rule__n, .tools, .car__count, .more { font-family: var(--mono); font-variant-ligatures: none; }

/* header + switch */
.top { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); transition: background-color .45s ease; }
.top__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; }
.name { font-size: 20px; font-weight: 600; letter-spacing: -.01em; text-decoration: none; white-space: nowrap; }
html[data-mode="eng"] .name { font-size: 14px; }
.switch { display: none; align-items: center; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.js .switch { display: inline-flex; }
.switch button { appearance: none; padding: 7px 12px; border: 0; border-radius: 999px; background: transparent; color: var(--fg); font: 500 12px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; cursor: pointer; transition: background-color .25s, color .25s; }
.switch button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }

/* hero */
.hero { padding: 26px 0 48px; }
.hero__grid { display: grid; gap: 28px; }
.kicker { margin: 0 0 18px; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.kicker .nw { white-space: nowrap; }
@media (max-width: 899.98px) { .kicker .sep { display: none; } .kicker .nw { display: block; margin-top: 2px; } }
.hero h1 { margin: 0 0 18px; font-weight: 440; font-size: clamp(36px, 9.4vw, 70px); line-height: 1.06; letter-spacing: -.015em; text-wrap: balance; }
html[data-mode="eng"] .hero h1 { font-weight: 500; font-size: clamp(22px, 5.8vw, 38px); line-height: 1.32; letter-spacing: -.02em; }
.avail { margin: 0 0 14px; font-size: 19px; line-height: 1.5; }
.avail a { white-space: nowrap; }
html[data-mode="eng"] .avail { font-size: 14.5px; }
html[data-mode="eng"] .avail .e > span { color: var(--accent); }
.hint { display: none; margin: 0; font-size: 16px; color: var(--muted); }
.js .hint { display: block; }
html[data-mode="eng"] .hint { font-size: 13px; }
.hint button { appearance: none; padding: 0; border: 0; background: none; color: var(--accent); font: inherit; font-weight: 600; cursor: pointer; }
.hint button:hover { text-decoration-thickness: 2px; }
.photo { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 14px; background: var(--cobalt); }
.photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
html[data-mode="eng"] .photo img { filter: grayscale(1) contrast(1.2) brightness(1.04); mix-blend-mode: screen; }

/* sections */
.section { padding: 52px 0; border-top: 1px solid var(--line); }
.two { display: grid; gap: 16px; }
.h2 { margin: 0; font-size: 28px; font-weight: 600; line-height: 1.15; letter-spacing: -.01em; text-wrap: balance; }
html[data-mode="eng"] .h2 { text-wrap: nowrap; white-space: nowrap; }
.lede, .offer li, .offer__how, .log p, figcaption, .meta, .brands__note, .rule__t, .rule__d, blockquote { text-wrap: pretty; }
html[data-mode="eng"] .h2 { font-size: 18px; font-weight: 500; color: var(--accent); letter-spacing: 0; }
.lede { margin: 0; font-size: 22px; line-height: 1.5; }
html[data-mode="eng"] .lede { font-size: 15px; line-height: 1.75; }

/* brands: business */
/* isolation keeps Safari clipping the rounded corners while a tile turns */
.brands { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 22px 0 0; padding: 0; list-style: none; overflow: hidden; isolation: isolate; background: var(--line); border: 1px solid var(--line); border-radius: 14px; }
/* iOS Safari passes a tap on to the document click handler only when the tile shows a pointer cursor */
.brands li { position: relative; min-width: 0; min-height: 86px; padding: 0; overflow: hidden; background: var(--bg); perspective: 600px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
/* each tile is a small cube: the front face holds the logo, the back face the logo in white with a note; the tile never changes size */
/* --z is half the tile height: the cube sits that far back, so the face you see lies exactly in the tile plane and is not enlarged by the perspective */
.cube { --z: 43px; position: relative; width: 100%; height: 86px; transform: translateZ(calc(-1 * var(--z))); transform-style: preserve-3d; transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
.face { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 14px 16px; -webkit-backface-visibility: hidden; backface-visibility: hidden; background: var(--bg); }
.face--front { transform: translateZ(var(--z)); transition: opacity 0s linear 0s; }
.face--back { transform: rotateX(90deg) translateZ(var(--z)); padding: 10px 12px; background: var(--fg); color: var(--bg); font-family: var(--mono); font-size: 11px; line-height: 1.4; letter-spacing: .02em; text-align: center; }
.face--back .logo { color: var(--bg); height: 22px; max-width: 84px; margin-bottom: 6px; }
.back__cat, .back__country { display: block; }
.back__country { opacity: .75; }
.brands li.is-open .cube { transform: translateZ(calc(-1 * var(--z))) rotateX(-90deg); }
.brands li.is-open .face--front { opacity: 0; transition-delay: .32s; }
@media (hover: hover) {
  .brands li:hover .cube { transform: translateZ(calc(-1 * var(--z))) rotateX(-90deg); }
  .brands li:hover .face--front { opacity: 0; transition-delay: .32s; }
}
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.logo { display: block; width: 100%; max-width: 132px; height: 40px; background: currentColor; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.logo--tall { max-width: 60px; height: 60px; }
@media (forced-colors: active) { .logo { forced-color-adjust: none; background: CanvasText; } .face--back { forced-color-adjust: none; background: Canvas; color: CanvasText; border: 1px solid CanvasText; } .switch button[aria-pressed="true"] { forced-color-adjust: none; background: Highlight; color: HighlightText; } .car__dot::before { forced-color-adjust: none; background: GrayText; opacity: 1; } .car__dot[aria-current="true"]::before { background: Highlight; } .brands { border: 1px solid CanvasText; } .brands li { outline: 1px solid GrayText; } }
@media (max-width: 359.98px) { .top__row { gap: 8px; } .name { font-size: 16px; } .switch button { padding: 7px 6px; font-size: 10.5px; letter-spacing: .02em; } }
.shipped-b { margin: 18px 0 0; font-size: 18px; line-height: 1.55; }
.shipped-b b { font-weight: 600; white-space: nowrap; }
.brands__note { margin: 14px 0 0; font-size: 17px; color: var(--muted); }
.tools { margin: 10px 0 0; font-size: 12px; line-height: 1.7; letter-spacing: .02em; color: var(--fg); opacity: .8; }

/* stack: engineering */
.stack { margin: 22px 0 0; border-top: 1px solid var(--line); }
.stack div { display: grid; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.stack dt { font-size: 12px; color: var(--accent); }
.stack dd { margin: 0; }
.shipped { margin: 18px 0 0; font-size: 13px; line-height: 1.7; }
.shipped span { color: var(--accent); }

/* track record */
.log { margin: 0; padding: 0; list-style: none; }
.log li { padding: 18px 0; border-top: 1px solid var(--line); }
.log li:first-child { padding-top: 4px; border-top: 0; }
.log__meta { margin: 0 0 6px; font-size: 12px; letter-spacing: .02em; color: var(--muted); }
.log__meta b { font-weight: 600; color: var(--fg); }
@media (max-width: 699.98px) { .log__meta .sep { display: none; } .log__meta .role { display: block; } }
.now__meta { margin: 0 0 6px; }
.log p:not(.log__meta) { margin: 0; }

/* offer */
.offer { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.offer li { display: grid; grid-template-columns: 30px 1fr; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 20px; line-height: 1.4; }
.offer li b { font-weight: 600; }
.offer__n { font-family: var(--mono); font-size: 12px; color: var(--accent); }
.offer__how { margin: 14px 0 0; font-size: 17px; color: var(--muted); }
html[data-mode="eng"] .offer li { font-size: 14.5px; line-height: 1.7; }
html[data-mode="eng"] .offer li b { color: var(--accent); font-weight: 500; }
html[data-mode="eng"] .offer__how { font-size: 13px; }

/* principles */
.rules { display: grid; gap: 26px; margin: 22px 0 0; padding: 0; list-style: none; }
.rule { padding: 18px 0 0; border-top: 2px solid var(--accent); }
.rule__n { display: block; margin: 0 0 12px; font-size: 12px; color: var(--accent); }
.rule p { margin: 0; }
.rule__t { font-size: 27px; font-weight: 500; line-height: 1.22; letter-spacing: -.01em; }
.rule__d { margin-top: 10px !important; font-size: 17px; line-height: 1.5; color: var(--muted); }
html[data-mode="eng"] .rule__t { font-size: 16px; line-height: 1.6; font-weight: 500; }
html[data-mode="eng"] .rule__d { font-size: 13px; }

/* recommendations carousel */
.car__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 0 0 22px; }
.car__nav { display: flex; align-items: center; gap: 12px; }
.car__btn { display: none; }
.car__count { min-width: 44px; text-align: center; font-size: 12px; color: var(--muted); }
.car__count b { color: var(--fg); font-weight: 600; }
.car__count i { font-style: normal; }
.car__pause { appearance: none; padding: 0 10px; height: 44px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--fg); font: 500 12px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; cursor: pointer; }
.car__pause:hover { border-color: var(--fg); }
.car__btn { appearance: none; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--fg); font: 500 18px/1 var(--mono); cursor: pointer; transition: border-color .2s, background-color .2s; }
.car__btn:hover { border-color: var(--fg); }
.car__track { display: grid; grid-auto-flow: column; grid-auto-columns: 88%; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.car__track::-webkit-scrollbar { display: none; }
.car__slide { display: flex; flex-direction: column; justify-content: space-between; gap: 22px; min-height: 280px; margin: 0; padding: 24px 22px; scroll-snap-align: start; border: 1px solid var(--line); border-radius: 16px; }
.car__slide blockquote { margin: 0; font-size: 22px; font-style: italic; line-height: 1.4; }
html[data-mode="eng"] .car__slide blockquote { font-size: 14.5px; font-style: normal; line-height: 1.65; }
.car__slide figcaption { font-size: 12px; line-height: 1.5; color: var(--muted); }
.nw { white-space: nowrap; }
.car__slide figcaption b { display: block; margin: 0 0 2px; font-size: 12px; font-weight: 600; color: var(--fg); }
.car__dots { display: flex; gap: 2px; margin: 14px 0 0 -2px; }
.car__dot { appearance: none; display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 0; background: none; cursor: pointer; }
.car__dot::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: var(--muted); opacity: .55; transition: width .25s, background-color .25s, opacity .25s; }
.car__dot[aria-current="true"]::before { width: 22px; background: var(--fg); opacity: 1; }
.more { display: inline-block; margin-top: 16px; font-size: 13px; color: var(--fg); }

/* contact */
.contact { padding: 60px 0 44px; border-top: 1px solid var(--line); }
.contact .lede { margin: 16px 0 22px; }
.mail { display: inline-block; font-size: clamp(32px, 9.2vw, 64px); line-height: 1.1; letter-spacing: -.015em; }
html[data-mode="eng"] .mail { font-size: clamp(22px, 6.4vw, 40px); letter-spacing: -.03em; }
.meta { margin: 22px 0 0; font-size: 12px; line-height: 1.8; color: var(--muted); }
.meta a { color: var(--fg); }
.meta a:hover { color: var(--fg); }
.foot { padding-top: 20px; padding-bottom: 30px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { html, body, .top, .switch button, .car__dot::before, .cube, .face--front { transition: none; } html, .car__track { scroll-behavior: auto; } }

/* tablet, portrait */
@media (min-width: 700px) and (max-width: 899.98px) {
  :root { --gutter: 32px; }
  .hero { padding: 40px 0 56px; }
  .hero__grid { grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: start; }
  .hero h1 { font-size: clamp(36px, 6vw, 54px); }
  .photo { max-width: 360px; justify-self: end; }
  .brands { grid-template-columns: repeat(5, 1fr); }
  .brands li:nth-child(14) { grid-column: span 2; }
  .rule__t { font-size: 22px; }
  .rules { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .car__track { grid-auto-columns: 100%; }
  .car__slide { min-height: 0; padding: 36px 40px; }
  .car__slide blockquote { font-size: 28px; line-height: 1.3; }
  html[data-mode="eng"] .car__slide blockquote { font-size: 17px; }
  .car__btn { display: grid; }
  html[data-mode="eng"] .hero h1 { font-size: clamp(24px, 3.6vw, 30px); }
}

/* desktop */
@media (min-width: 900px) {
  :root { --gutter: 40px; }
  .top__row { height: 72px; }
  .hero { padding: 64px 0 80px; }
  .hero h1 { font-size: clamp(48px, 5.6vw, 70px); }
  html[data-mode="eng"] .hero h1 { font-size: clamp(30px, 2.8vw, 38px); }
  .hero__grid { grid-template-columns: 1.3fr .7fr; gap: 64px; align-items: start; }
  .section { padding: 80px 0; }
  .contact { padding-top: 80px; }
  .two { grid-template-columns: 240px 1fr; gap: 56px; }
  .brands { grid-template-columns: repeat(7, 1fr); }
  .brands li { min-height: 104px; }
  .cube { --z: 52px; height: 104px; }
  .face--back { font-size: 12px; }
  .logo { max-width: 124px; height: 42px; }
  .logo--tall { max-width: 64px; height: 64px; }
  .face--back .logo { height: 26px; max-width: 92px; }
  .stack div { grid-template-columns: 150px 1fr; gap: 24px; }
  .rules { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .rule__t { font-size: 30px; }
  .car__btn { display: grid; }
  .offer li { grid-template-columns: 34px 1fr; font-size: 24px; }
  html[data-mode="eng"] .h2 { font-size: 22px; }
  .car__track { grid-auto-columns: calc((100% - 28px) / 3); }
  .car__slide { scroll-snap-align: none; }
  .car__slide:nth-child(3n + 1) { scroll-snap-align: start; }
  .car__slide { min-height: 0; padding: 28px 26px; }
  .car__slide blockquote { font-size: 22px; line-height: 1.4; }
  html[data-mode="eng"] .car__slide blockquote { font-size: 14.5px; }
}
