/* Author page of Kacper Drozd. The Mono system of synapsite.pl (styles/01-tokens.css), cut down to one page.
   Geist: SIL Open Font License 1.1, fonts/LICENSE-Geist.txt. */
@font-face { font-family: Geist; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/geist-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: Geist; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/geist-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; }
/* the same metrics as the font, so nothing moves when Geist arrives */
@font-face { font-family: 'Geist Fallback'; src: local(Arial); ascent-override: 95.94%; descent-override: 28.16%; line-gap-override: 0%; size-adjust: 104.76%; }

:root {
  --bg: #f6f5f3;
  --surface: #fff;
  --panel: #e8e6e2;
  --ink: #1d1c1a;
  --ink-2: #43413e;
  --muted: #6c6a66;
  --quiet: #8b8884;          /* the grey half of a two-tone headline, large type only */
  --line: color-mix(in srgb, #1d1c1a 10%, transparent);
  --night: #161513;
  --on-night: #f6f5f3;
  --on-night-2: #a8a5a0;
  --r-lg: 26px;
  --r-xl: 34px;
  --gutter: max(16px, env(safe-area-inset-left, 0px) + 12px, env(safe-area-inset-right, 0px) + 12px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.55 Geist, 'Geist Fallback', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2 { margin: 0; font-weight: 600; letter-spacing: -0.03em; line-height: 1.08; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: color-mix(in srgb, var(--ink) 14%, transparent); }
:focus-visible { outline: 2.5px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.tile--dark :focus-visible { outline-color: var(--on-night); }

.page { width: min(100% - 2 * var(--gutter), 1760px); margin-inline: auto; padding-block: 24px 16px; display: grid; gap: 12px; }

.intro { display: grid; gap: 12px; }
.intro__text { display: grid; align-content: center; gap: 22px; padding: 32px 22px; border-radius: var(--r-xl); background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.h1 { font-size: clamp(2.3rem, 10vw, 4.75rem); line-height: 1; letter-spacing: -0.045em; }
.quiet { color: var(--quiet); }
.nw { white-space: nowrap; }
.lead { max-width: 36em; font-size: 1.1rem; line-height: 1.55; color: var(--ink-2); }
.lead a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }

.btn { display: inline-flex; align-items: center; gap: 14px; min-height: 52px; padding: 7px 7px 7px 24px; border-radius: 999px; background: var(--ink); color: var(--on-night); font-size: 0.97rem; font-weight: 550; letter-spacing: -0.01em; text-decoration: none; transition: background-color 0.3s var(--ease); }
.btn:hover { background: #000; }
.btn__ico { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 999px; background: color-mix(in srgb, var(--on-night) 12%, transparent); }
.btn--light { padding-inline: 24px; background: color-mix(in oklab, var(--ink) 7%, transparent); color: var(--ink); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 18%, transparent); }
.btn--light:hover { background: color-mix(in oklab, var(--ink) 11%, transparent); }

.photo { margin: 0; border-radius: var(--r-xl); overflow: hidden; background: var(--panel); aspect-ratio: 1; }
.photo img { width: 100%; height: 100%; object-fit: cover; }

.tiles { display: grid; gap: 12px; }
.duo { display: grid; gap: 12px; }
.tile--bio .bio { display: grid; gap: 12px; max-width: 42em; font-size: 1.05rem; line-height: 1.6; color: var(--ink-2); }
.tile { display: grid; align-content: start; gap: 16px; padding: 26px 22px; border-radius: var(--r-lg); background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.tile h2 { font-size: 1.35rem; }
.tile--dark { background: var(--night); color: var(--on-night); box-shadow: none; }
.list { display: grid; gap: 10px; color: var(--ink-2); line-height: 1.5; }
.list li { padding-top: 10px; border-top: 1px solid var(--line); }
.list li:first-child { padding-top: 0; border-top: 0; }
.list a, .more a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); transition: text-decoration-color 0.2s var(--ease); }
.list a:hover, .more a:hover { text-decoration-color: currentColor; }
/* a whole row is the link: at least 24 px tall to tap */
.list--links a { display: inline-block; padding-block: 2px; }
.tile--dark .list { color: var(--on-night); }
.tile--dark .list li { border-top-color: color-mix(in srgb, var(--on-night) 14%, transparent); }
.more { font-weight: 550; }

.foot { width: min(100% - 2 * var(--gutter), 1760px); margin: 0 auto; padding: 8px 4px calc(28px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 4px; font-size: 0.84rem; color: var(--muted); }

@media (min-width: 700px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .page { padding-top: 32px; }
  .intro { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .intro__text { padding: clamp(36px, 4vw, 64px); }
  .photo { aspect-ratio: auto; min-height: 100%; }
  .duo { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .duo .tile { padding: clamp(28px, 3vw, 44px); }
}
/* wider screens get more columns, never longer lines */
@media (min-width: 1280px) {
  .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tile { padding: 30px 28px; }
}

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