/* Koščák Labs — shared foundations and components for the portfolio and its products. */
@font-face {
  font-family: Lab Inter;
  src: url(fonts/inter-latin-ext-wght-normal.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+1D00-1DBF,
    U+1E00-1E9F, U+2020, U+20A0-20AB, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: Lab Inter;
  src: url(fonts/inter-latin-wght-normal.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+2074, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Lab Mono;
  src: url(fonts/jetbrains-mono-latin-wght-normal.woff2) format("woff2");
  font-weight: 100 800;
  font-display: swap;
}
:root {
  --lab-black: #090b08;
  --lab-panel: #12150f;
  --lab-white: #fafbf5;
  --lab-paper: #f0f2e9;
  --lab-ink: #12160e;
  --lab-muted: #4e5848;
  --lab-soft: #bac1b2;
  --lab-green: #78bc00;
  --lab-leaf: #a5e529;
  --lab-flare: #d8ff72;
  --lab-deep: #3c6205;
  --lab-rule: #ced4c3;
  --lab-dark-rule: #384030;
  --lab-gradient: linear-gradient(112deg, #dcff80 2%, #a5e529 55%, #7dbb16);
  --lab-font: "Lab Inter", Inter, Arial, sans-serif;
  --lab-mono: "Lab Mono", ui-monospace, monospace;
  --lab-gutter: clamp(20px, 5.6vw, 94px);
  --lab-width: 1376px;
  --lab-space: clamp(60px, 7.3vw, 116px);
  --lab-display: clamp(3.7rem, 7.65vw, 7.85rem);
  --lab-title: clamp(2.55rem, 5.15vw, 5.25rem);
  --lab-radius: 12px;
  --lab-pill: 999px;
}
.lab-frame {
  width: min(calc(100% - 2 * var(--lab-gutter)), var(--lab-width));
  margin-inline: auto;
}
.lab-black {
  background: var(--lab-black);
  color: var(--lab-white);
}
.lab-white {
  background: var(--lab-white);
  color: var(--lab-ink);
}
.lab-display,
.lab-title {
  font-family: var(--lab-font);
  font-weight: 650;
  letter-spacing: -0.064em;
  line-height: 0.96;
  margin: 0;
  text-wrap: balance;
}
.lab-display {
  font-size: var(--lab-display);
}
.lab-title {
  font-size: var(--lab-title);
  line-height: 1.02;
}
.lab-spectrum {
  color: var(--lab-leaf);
  background: var(--lab-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.lab-kicker {
  font: 550 0.75rem/1.5 var(--lab-mono);
  letter-spacing: 0.055em;
  margin: 0 0 1.15rem;
  color: var(--lab-deep);
}
.lab-black .lab-kicker {
  color: #bde97c;
}
.lab-pair {
  display: flex;
  gap: 14px 24px;
  align-items: center;
  flex-wrap: wrap;
}
.lab-btn,
.lab-link {
  font: 620 0.95rem/1.3 var(--lab-font);
  text-decoration: none;
  cursor: pointer;
}
.lab-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--lab-pill);
  background: var(--lab-gradient);
  color: #142005;
}
.lab-btn:hover {
  filter: brightness(1.07);
}
.lab-link {
  display: inline-flex;
  gap: 7px;
  align-items: baseline;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-color: color-mix(in srgb, currentColor 44%, transparent);
}
.lab-link:hover {
  text-decoration-thickness: 2px;
}
.lab-head,
.lab-foot {
  box-sizing: border-box;
  font-family: var(--lab-font);
}
.lab-head {
  background: var(--lab-black);
  color: var(--lab-white);
  border-bottom: 1px solid var(--lab-dark-rule);
  position: relative;
  z-index: 2;
}
.lab-bar {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.lab-wordmark {
  font: 650 1.27rem/1 var(--lab-font);
  letter-spacing: -0.064em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  white-space: nowrap;
}
.lab-wordmark img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: block;
}
.lab-breadcrumb {
  display: inline-flex;
  gap: 13px;
  align-items: center;
}
.lab-product {
  color: var(--lab-soft);
  font: 500 0.9rem/1.2 var(--lab-font);
  text-decoration: none;
  border-left: 1px solid #526047;
  padding-left: 13px;
}
.lab-nav {
  display: flex;
  align-items: center;
  gap: clamp(15px, 2.6vw, 38px);
}
.lab-nav a,
.lab-foot a:not(.lab-wordmark) {
  font: 550 0.89rem/1.4 var(--lab-font);
  text-decoration: none;
  color: inherit;
}
.lab-nav a,
.lab-product {
  padding-block: 9px;
}
.lab-nav a:hover,
.lab-product:hover,
.lab-foot a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.lab-nav .lab-nav-action {
  border: 1px solid #4f5b45;
  border-radius: var(--lab-pill);
  padding: 8px 16px;
}
.lab-foot {
  background: var(--lab-white);
  color: var(--lab-ink);
  border-top: 1px solid var(--lab-rule);
}
.lab-foot .lab-bar {
  min-height: 86px;
}
.lab-foot nav {
  display: flex;
  gap: clamp(14px, 2.5vw, 36px);
  flex-wrap: wrap;
}
.lab-skip {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 10;
  background: var(--lab-white);
  color: var(--lab-ink);
  padding: 12px;
}
.lab-skip:focus {
  top: 8px;
}
:where(.lab-head, .lab-foot, .lab-body, .lab-black, .lab-white) :focus-visible {
  outline: 3px solid #5f9815;
  outline-offset: 4px;
}
.lab-black :focus-visible,
.lab-head :focus-visible {
  outline-color: var(--lab-flare);
}
@media (max-width: 650px) {
  .lab-bar {
    min-height: 60px;
  }
  .lab-wordmark {
    font-size: 1.13rem;
    gap: 7px;
  }
  .lab-wordmark img {
    width: 27px;
    height: 27px;
  }
  .lab-nav {
    gap: 14px;
  }
  .lab-nav a {
    font-size: 0.82rem;
  }
  .lab-nav .lab-nav-action {
    padding: 6px 10px;
  }
  .lab-nav .wide-nav {
    display: none;
  }
  .lab-breadcrumb {
    gap: 8px;
  }
  .lab-product {
    padding-left: 8px;
    font-size: 0.79rem;
  }
  .lab-foot .lab-bar {
    flex-wrap: wrap;
    padding-block: 20px;
    gap: 15px;
  }
  .lab-kicker {
    font-size: 0.7rem;
  }
}
@media (forced-colors: active) {
  .lab-spectrum {
    background: none;
    color: CanvasText;
    -webkit-text-fill-color: CanvasText;
  }
  .lab-btn {
    border: 1px solid ButtonText;
  }
}

@media (max-width: 380px) {
  .lab-head .lab-bar {
    gap: 6px;
  }
  .lab-head .lab-nav {
    gap: 8px;
  }
  .lab-head .lab-breadcrumb {
    gap: 6px;
  }
  .lab-head .lab-product {
    padding-left: 6px;
  }
  .lab-head .lab-nav-action {
    padding-inline: 8px;
  }
}
