/* stanek.design – styl E „Kapsle“, verze 2
   Písmo: IBM Plex Sans (texty, kapsle), IBM Plex Mono (popisky).
   Kontrast (WCAG 2.x, relativní luminance), text vždy inkoust #141414:
   na papíru #F8F8F6 17,3 : 1 · korál #FF6B4A 6,5 : 1 · limeta #C9E26B 12,8 : 1
   fialová #C17BFF 6,6 : 1 · levandule #DDB8FF 10,9 : 1 · papír na inkoustu 17,3 : 1
   Barevné plochy nikdy nenesou informaci samy, vždy je u nich text. */

/* Písma hostovaná lokálně (IBM Plex, SIL OFL 1.1, viz fonts/OFL.txt). Žádné externí požadavky. */
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/fonts/plex-sans-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 700; font-display: swap; src: url("/fonts/plex-sans-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: 400; font-display: swap; src: url("/fonts/plex-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: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/plex-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; }

:root {
  --paper: #F8F8F6;
  --ink: #141414;
  --coral: #FF6B4A;
  --lime: #C9E26B;
  --violet: #C17BFF;
  --lavender: #DDB8FF;
  --line: 2px solid var(--ink);
  --sans: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --cap: clamp(1.5rem, 4.4vw, 4.5rem);   /* písmo v kapslích */
  --gap: clamp(12px, 2vw, 24px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.55;
}

.page {
  max-width: 1440px;
  margin: 0 auto;
  padding: 16px clamp(16px, 2.5vw, 32px) 64px;
  display: flex; flex-direction: column; gap: var(--gap);
}

/* --- přístupnost --- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -100px; z-index: 10;
  background: var(--ink); color: var(--paper); padding: 8px 16px; border-radius: 999px;
}
.skip:focus { top: 8px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

a { color: var(--ink); text-underline-offset: 4px; }

/* --- kapsle: základní tvar --- */
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  border: var(--line); border-radius: 999px;
  min-height: 44px; padding: 0 22px;
  text-decoration: none; color: var(--ink); background: transparent;
  white-space: nowrap;
}
.pill--ink { background: var(--ink); color: var(--paper); font-weight: 600; }
.pill--coral { background: var(--coral); }
.pill--lime { background: var(--lime); }
.pill--violet { background: var(--violet); }
.pill--lavender { background: var(--lavender); }
a.pill:hover { background: var(--ink); color: var(--paper); }
a.pill--ink:hover { background: var(--lime); color: var(--ink); }

/* --- hlavička --- */
.site-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; }
.site-head .pill { min-height: 56px; font-size: 1.125rem; }
.brand { gap: 16px; }
.brand b { font-weight: 700; }
.brand span { text-transform: uppercase; letter-spacing: .02em; }
.site-head nav { flex: 1 1 320px; }
.site-head nav ul {
  list-style: none; margin: 0; padding: 0 22px; height: 100%; min-height: 56px;
  border: var(--line); border-radius: 999px;
  display: flex; align-items: center; justify-content: center; gap: 8px 32px; flex-wrap: wrap;
}
.site-head nav a { text-decoration: none; padding: 8px 0; }
.site-head nav a:hover { text-decoration: underline; }

/* --- úvodní plocha z kapslí --- */
.hero {
  border: var(--line); border-radius: clamp(28px, 4vw, 56px);
  padding: clamp(48px, 8vw, 120px) clamp(10px, 1.5vw, 22px) clamp(10px, 1.5vw, 22px);
}
.hero h1 {
  margin: 0; font-weight: 400; font-size: var(--cap); line-height: 1;
  text-transform: uppercase; letter-spacing: .01em;
  display: flex; flex-direction: column;
}
.row { display: flex; flex-wrap: wrap; align-items: center; }
.cap, .tog {
  height: 1.78em; border: var(--line); border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 .55em; flex: 0 0 auto;
}
.tog { width: 3.1em; position: relative; padding: 0; }
.tog::after {
  content: ""; position: absolute; top: -2px; width: 1.78em; height: 1.78em;
  border: var(--line); border-radius: 50%; background: var(--paper);
}
.tog--r::after { right: -2px; }
.tog--l::after { left: -2px; }
.tog--dot::after { right: .5em; background: var(--coral); }
.cap--tilt { font-size: .72em; transform: rotate(-24deg); margin-left: .3em; background: var(--paper); }
.sp { margin-left: .33em; }

/* --- velké tlačítko --- */
.bar {
  display: flex; min-height: clamp(88px, 11vw, 168px); text-decoration: none; color: var(--paper);
}
.bar__arrow {
  flex: 0 0 30%; border: var(--line); border-radius: 999px; background: var(--paper);
  display: flex; align-items: center; justify-content: center; position: relative; z-index: 1;
}
.bar__arrow svg { width: 55%; height: auto; }
.bar__label {
  flex: 1 1 auto; margin-left: calc(-1 * clamp(44px, 5.5vw, 84px));
  padding: 0 24px 0 clamp(56px, 7vw, 100px);
  background: var(--ink); border-radius: 0 999px 999px 0;
  display: flex; align-items: center; justify-content: center;
  font-size: var(--cap); line-height: 1; text-transform: uppercase; text-align: center;
}
.bar:hover .bar__arrow { background: var(--lime); }

/* --- výrok --- */
.claim {
  margin: 16px 0 0; max-width: 34em;
  font-size: clamp(1.5rem, 3.6vw, 3.25rem); line-height: 1.2; letter-spacing: -.01em;
}
.claim strong { font-weight: 700; }

/* --- sekce --- */
.section {
  margin-top: clamp(48px, 7vw, 96px); border-top: var(--line); padding-top: 24px;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 24px;
}
.section > .label { grid-column: 1 / span 3; margin: 0; font-family: var(--mono); font-size: .9375rem; font-weight: 400; }
.section > .body { grid-column: 4 / span 9; min-width: 0; }
.body h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 600; line-height: 1.2; margin: 1.5em 0 .5em; }
.body p { margin: 0 0 1em; max-width: 62ch; }

/* řádky projektů */
.works { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.work {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 20px;
  min-height: 96px; border: var(--line); border-radius: 999px; padding-right: 12px;
  font-size: clamp(1.25rem, 2.4vw, 2rem); line-height: 1.15;
}
.work__no {
  width: 92px; height: 92px; margin: -2px 0 -2px -2px; border: var(--line); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 1.125rem;
}
.work__meta { font-size: 1rem; min-height: 56px; padding: 0 20px; text-align: center; }
.work__title { padding: 12px 0; }

/* štítky */
.tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 24px; padding: 0; list-style: none; }
.tags .pill { font-size: 1rem; }

.how { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 20px; }
.how li { max-width: 62ch; }
.how strong { font-weight: 700; }

.contact { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; padding: 0; list-style: none; }
.contact .pill { min-height: 64px; font-size: 1.25rem; padding: 0 28px; }

.site-foot { margin-top: 48px; font-family: var(--mono); font-size: .9375rem; }

/* --- mobil --- */
@media (max-width: 760px) {
  .section > .label, .section > .body { grid-column: 1 / -1; }
  .cap--tilt { display: none; }
  .work { grid-template-columns: auto minmax(0, 1fr); border-radius: 48px; padding: 0 16px 0 0; }
  .work__no { width: 72px; height: 72px; }
  .work__meta { grid-column: 2; justify-self: start; margin-bottom: 14px; min-height: 40px; font-size: .9375rem; }
  .bar__arrow { flex-basis: 34%; }
}
@media (max-width: 480px) {
  .tog--hide-s { display: none; }
}
