@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/ibm-plex-sans-latin-ext-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/ibm-plex-sans-latin-ext-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-latin-ext-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --wm-color__bg: #FAF7EE;
  --wm-color__surface: #F2ECDB;
  --wm-color__panel: #26221A;
  --wm-color__panel-fg: #F5EFDF;
  --wm-color__panel-muted: #9A907B;
  --wm-color__panel-soft: #C9BFA8;
  --wm-color__panel-line: #3D372B;
  --wm-color__text: #26221A;
  --wm-color__text-muted: #6C6453;
  --wm-color__line: #E1D9C4;
  --wm-color__field-border: #94896C;
  --wm-color__field-bg: #FDFBF4;
  --wm-color__primary: #E4C258;
  --wm-color__primary-strong: #CFAC38;
  --wm-color__primary-edge: #8A6F1D;
  --wm-color__primary-soft: #F5E8BC;
  --wm-color__link: #77621B;
  --wm-color__link-hover: #4F420F;
  --wm-color__link-visited: #6D5A34;
  --wm-color__icon: #26221A;
  --wm-color__focus: #26221A;
  --wm-color__error: #A4432C;
  --wm-color__success: #4A5A2A;
  --wm-color__done-bg: #E3EAD3;
  --wm-color__progress-fg: #6E5716;

  --wm-font-family__base: "IBM Plex Sans", "Segoe UI", Arial, sans-serif;
  --wm-font-family__mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --wm-font-size__h1: clamp(3.6rem, 2.6rem + 2.2vw, 5.4rem);
  --wm-font-size__h2: clamp(2.6rem, 2.1rem + 1.1vw, 3.6rem);
  --wm-font-size__h3: clamp(1.9rem, 1.75rem + 0.35vw, 2.2rem);
  --wm-font-size__lead: clamp(1.8rem, 1.7rem + 0.25vw, 2rem);
  --wm-font-size__base: 1.7rem;
  --wm-font-size__sm: 1.5rem;
  --wm-font-size__xs: 1.3rem;
  --wm-font-size__mono: 1.4rem;

  --wm-line-height__base: 1.6;
  --wm-line-height__heading: 1.12;
  --wm-line-height__mono: 1.9;

  --wm-space__5: 5px;
  --wm-space__10: 10px;
  --wm-space__15: 15px;
  --wm-space__20: 20px;
  --wm-space__30: 30px;
  --wm-space__40: 40px;
  --wm-space__60: 60px;
  --wm-space__80: 80px;
  --wm-space__120: 120px;
  --wm-space__section: 120px;

  --wm-radius__sm: 4px;
  --wm-radius__md: 10px;
  --wm-shadow__window: 0 24px 48px -32px rgba(38, 34, 26, 0.4);

  --wm-icon-size__sm: 1.6rem;
  --wm-icon-size__md: 2rem;
  --wm-icon-size__lg: 2.4rem;

  --wm-layout__container: 1160px;
  --wm-layout__content: 720px;
  --wm-layout__pad: 40px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --wm-color__bg: #1D1A13;
  --wm-color__surface: #252115;
  --wm-color__panel: #14110B;
  --wm-color__text: #EDE7D6;
  --wm-color__text-muted: #A89D85;
  --wm-color__line: #393426;
  --wm-color__field-border: #6F6550;
  --wm-color__field-bg: #211D14;
  --wm-color__primary-soft: #3E361D;
  --wm-color__link: #D9BC66;
  --wm-color__link-hover: #EED892;
  --wm-color__link-visited: #B4A377;
  --wm-color__icon: #EDE7D6;
  --wm-color__focus: #E4C258;
  --wm-color__error: #E08A70;
  --wm-color__success: #A9C285;
  --wm-color__done-bg: #2B331E;
  --wm-color__progress-fg: #E8CC72;
  --wm-shadow__window: 0 24px 48px -32px rgba(0, 0, 0, 0.65);
}

/* tlačítka zůstávají žlutá s inkoustovým textem v obou módech */
:root[data-theme="dark"] .wm-button {
  --btn-fg: #26221A;
  --btn-border: #26221A;
}

:root[data-theme="dark"] .wm-button--ghost {
  --btn-fg: inherit;
  --btn-border: currentColor;
}

:root[data-theme="dark"] .wm-button[disabled] {
  --btn-fg: var(--wm-color__text-muted);
  --btn-border: transparent;
}

:root[data-theme="dark"] .sg-toc a,
:root[data-theme="dark"] .sg-note {
  color: #9FB8CC;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 62.5%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: var(--wm-font-family__base);
  font-size: var(--wm-font-size__base);
  line-height: var(--wm-line-height__base);
  background: var(--wm-color__bg);
  color: var(--wm-color__text);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

::selection {
  background: var(--wm-color__primary-soft);
}

h1,
h2,
h3,
h4 {
  font-weight: 600;
  line-height: var(--wm-line-height__heading);
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 { font-size: var(--wm-font-size__h1); }
h2 { font-size: var(--wm-font-size__h2); }
h3 { font-size: var(--wm-font-size__h3); }

p {
  text-wrap: pretty;
}

strong,
b {
  font-weight: 600;
}

a {
  color: var(--wm-color__link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:visited {
  color: var(--wm-color__link-visited);
}

a:hover {
  color: var(--wm-color__link-hover);
  text-decoration-thickness: 2px;
}

a:active {
  color: var(--wm-color__text);
}

:focus-visible {
  outline: 2px solid var(--wm-color__focus);
  outline-offset: 2px;
}

code {
  font-family: var(--wm-font-family__mono);
  font-size: 0.92em;
  background: var(--wm-color__surface);
  padding: 2px 6px;
  border-radius: var(--wm-radius__sm);
}

blockquote {
  border-left: 3px solid var(--wm-color__primary);
  padding: var(--wm-space__5) 0 var(--wm-space__5) 25px;
  font-size: var(--wm-font-size__lead);
  max-width: 60ch;
}

blockquote cite {
  display: block;
  margin-top: var(--wm-space__10);
  font-style: normal;
  font-size: var(--wm-font-size__sm);
  color: var(--wm-color__text-muted);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--wm-font-size__sm);
  font-variant-numeric: tabular-nums;
}

caption {
  text-align: left;
  font-family: var(--wm-font-family__mono);
  font-size: var(--wm-font-size__xs);
  color: var(--wm-color__text-muted);
  padding-bottom: var(--wm-space__15);
}

th,
td {
  text-align: left;
  padding: var(--wm-space__10) var(--wm-space__15);
  border-bottom: 1px solid var(--wm-color__line);
}

thead th {
  font-family: var(--wm-font-family__mono);
  font-weight: 400;
  font-size: var(--wm-font-size__xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--wm-color__text-muted);
}

tbody th {
  font-weight: 600;
}

.u-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.u-skip {
  position: fixed;
  top: var(--wm-space__15);
  left: var(--wm-space__15);
  z-index: 100;
  padding: var(--wm-space__10) var(--wm-space__20);
  background: var(--wm-color__panel);
  color: var(--wm-color__panel-fg);
  border-radius: var(--wm-radius__sm);
  text-decoration: none;
  transform: translateY(-500%);
}

.u-skip:visited {
  color: var(--wm-color__panel-fg);
}

.u-skip:focus {
  transform: none;
}

.wm-icon {
  width: var(--wm-icon-size__md);
  height: var(--wm-icon-size__md);
  flex-shrink: 0;
}

.wm-icon--sm {
  width: var(--wm-icon-size__sm);
  height: var(--wm-icon-size__sm);
}

.wm-icon--lg {
  width: var(--wm-icon-size__lg);
  height: var(--wm-icon-size__lg);
}

.wm-button {
  --btn-bg: var(--wm-color__primary);
  --btn-fg: var(--wm-color__text);
  --btn-border: var(--wm-color__text);
  /* spodní hrana z barvy plochy tlačítka, ať je plasticita čitelná i na tmavém panelu */
  --btn-edge: var(--wm-color__primary-edge);
  --btn-shadow: 0 3px 0 var(--btn-edge);
  display: inline-flex;
  align-items: center;
  gap: var(--wm-space__10);
  padding: var(--wm-space__10) var(--wm-space__20);
  min-height: 44px;
  border: 1px solid var(--btn-border);
  border-radius: var(--wm-radius__sm);
  background: var(--btn-bg);
  color: var(--btn-fg);
  box-shadow: var(--btn-shadow);
  font-weight: 600;
  font-size: 1.6rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.1s ease, transform 0.1s ease;
}

.wm-button:visited {
  color: var(--btn-fg);
}

.wm-button:hover {
  --btn-bg: var(--wm-color__primary-strong);
  color: var(--btn-fg);
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--btn-edge);
}

.wm-button:active {
  transform: translateY(3px);
  box-shadow: 0 0 0 var(--btn-edge);
}

.wm-button--ghost {
  --btn-bg: transparent;
  --btn-fg: inherit;
  --btn-border: currentColor;
  --btn-edge: currentColor;
}

.wm-button--ghost:hover {
  --btn-bg: var(--wm-color__surface);
}

.wm-button--sm {
  padding: var(--wm-space__5) var(--wm-space__15);
  min-height: 36px;
  font-size: var(--wm-font-size__sm);
}

.wm-button[disabled] {
  --btn-bg: var(--wm-color__line);
  --btn-fg: var(--wm-color__text-muted);
  --btn-border: var(--wm-color__field-border);
  --btn-shadow: none;
  cursor: not-allowed;
}

.wm-button[disabled]:hover,
.wm-button[disabled]:active {
  transform: none;
  box-shadow: none;
}

.wm-badge {
  display: inline-block;
  padding: 3px var(--wm-space__10);
  border-radius: var(--wm-radius__sm);
  font-family: var(--wm-font-family__mono);
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--wm-color__surface);
  color: var(--wm-color__text-muted);
  white-space: nowrap;
}

.wm-badge--done {
  background: var(--wm-color__done-bg);
  color: var(--wm-color__success);
}

.wm-badge--progress {
  background: var(--wm-color__primary-soft);
  color: var(--wm-color__progress-fg);
}

.wm-list {
  display: grid;
  gap: var(--wm-space__10);
}

.wm-list li {
  position: relative;
  padding-left: 24px;
}

.wm-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--wm-color__primary-strong);
}

.wm-list--ordered {
  counter-reset: li;
}

.wm-list--ordered li::before {
  counter-increment: li;
  content: counter(li) ".";
  font-family: var(--wm-font-family__mono);
  font-size: 0.9em;
  color: var(--wm-color__text-muted);
}

.wm-form {
  display: grid;
  gap: 25px;
  max-width: 480px;
}

.wm-field {
  display: grid;
  gap: var(--wm-space__5);
}

.wm-field__label {
  font-weight: 600;
  font-size: var(--wm-font-size__sm);
}

.wm-field__input {
  width: 100%;
  padding: var(--wm-space__10) var(--wm-space__15);
  border: 1px solid var(--wm-color__field-border);
  border-radius: var(--wm-radius__sm);
  background: var(--wm-color__field-bg);
}

.wm-field__input:focus-visible {
  border-color: var(--wm-color__text);
}

textarea.wm-field__input {
  min-height: 110px;
  resize: vertical;
}

.wm-field__hint {
  font-size: var(--wm-font-size__xs);
  color: var(--wm-color__text-muted);
}

.wm-field__msg {
  font-size: var(--wm-font-size__xs);
}

.wm-field--error .wm-field__input {
  border-color: var(--wm-color__error);
}

.wm-field--error .wm-field__msg {
  color: var(--wm-color__error);
}

.wm-field--success .wm-field__input {
  border-color: var(--wm-color__success);
}

.wm-field--success .wm-field__msg {
  color: var(--wm-color__success);
}

.wm-field--check {
  display: flex;
  align-items: center;
  gap: var(--wm-space__10);
}

.wm-field--check input {
  width: 18px;
  height: 18px;
  accent-color: var(--wm-color__text);
}

.wm-field--check .wm-field__label {
  font-weight: 400;
  font-size: var(--wm-font-size__base);
}

.wm-header__inner,
.wm-hero__inner,
.wm-apps__inner,
.wm-about__inner,
.wm-story__inner,
.wm-gallery__inner,
.wm-cta__inner,
.wm-opensource__inner,
.wm-footer__inner,
.wm-prose__inner {
  max-width: var(--wm-layout__container);
  margin-inline: auto;
  padding-inline: var(--wm-layout__pad);
}

.wm-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--wm-color__bg);
  border-bottom: 1px solid var(--wm-color__line);
}

.wm-header__inner {
  display: flex;
  align-items: center;
  gap: var(--wm-space__30);
  min-height: 70px;
}

.wm-header__brand {
  display: flex;
  align-items: center;
  gap: var(--wm-space__10);
  text-decoration: none;
}

.wm-header__brand,
.wm-header__brand:visited,
.wm-header__brand:hover {
  color: var(--wm-color__text);
}

.wm-header__logo {
  width: 30px;
  height: 30px;
}

.wm-header__name {
  font-size: 1.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.wm-header__nav {
  margin-left: auto;
}

.wm-header__menu {
  display: flex;
  gap: var(--wm-space__5);
}

.wm-header__menu a {
  display: block;
  padding: var(--wm-space__5) var(--wm-space__15);
  font-size: var(--wm-font-size__sm);
  text-decoration: none;
  border-radius: var(--wm-radius__sm);
}

.wm-header__menu a,
.wm-header__menu a:visited {
  color: var(--wm-color__text);
}

.wm-header__menu a:hover {
  background: var(--wm-color__surface);
  color: var(--wm-color__text);
}

.wm-header__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid var(--wm-color__line);
  border-radius: var(--wm-radius__sm);
  cursor: pointer;
}

.wm-header__icon-close {
  display: none;
}

.wm-header__theme {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: none;
  border: 1px solid var(--wm-color__line);
  border-radius: var(--wm-radius__sm);
  color: var(--wm-color__text);
  cursor: pointer;
}

.wm-header__theme:hover {
  background: var(--wm-color__surface);
}

.wm-header__icon-light {
  display: none;
}

:root[data-theme="dark"] .wm-header__icon-dark {
  display: none;
}

:root[data-theme="dark"] .wm-header__icon-light {
  display: block;
}

.wm-header--open .wm-header__icon-menu {
  display: none;
}

.wm-header--open .wm-header__icon-close {
  display: block;
}

.wm-hero {
  position: relative;
  background: var(--wm-color__panel);
  color: var(--wm-color__panel-fg);
  --wm-color__focus: var(--wm-color__primary);
}

.wm-hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

.wm-hero__shade {
  position: absolute;
  inset: 0;
  background: rgba(20, 17, 11, 0.62);
  pointer-events: none;
}

.wm-hero__inner {
  position: relative;
  display: grid;
  gap: 25px;
  justify-items: start;
  align-content: center;
  min-height: min(78vh, 720px);
  padding-block: var(--wm-space__80);
}

.wm-hero__eyebrow,
.wm-hero__title,
.wm-hero__perex,
.wm-hero__meta {
  text-shadow: 0 1px 8px rgba(20, 17, 11, 0.55);
}

.wm-hero__eyebrow {
  font-family: var(--wm-font-family__mono);
  font-size: 1.4rem;
  letter-spacing: 0.06em;
  color: var(--wm-color__primary);
}

.wm-hero__title {
  max-width: 20ch;
  color: var(--wm-color__panel-fg);
}

.wm-hero__perex {
  font-size: var(--wm-font-size__lead);
  color: var(--wm-color__panel-soft);
  max-width: 54ch;
}

.wm-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--wm-space__15);
  margin-top: var(--wm-space__10);
}

.wm-hero .wm-button--ghost {
  --btn-fg: var(--wm-color__panel-fg);
}

.wm-hero .wm-button--ghost:hover {
  --btn-bg: var(--wm-color__panel-line);
}

.wm-hero__meta {
  font-family: var(--wm-font-family__mono);
  font-size: var(--wm-font-size__xs);
  color: var(--wm-color__panel-muted);
  text-shadow: 0 0 2px rgba(20, 17, 11, 1), 0 1px 4px rgba(20, 17, 11, 1), 0 2px 16px rgba(20, 17, 11, 0.95);
}

.wm-apps {
  padding-block: var(--wm-space__section);
}

.wm-apps__title {
  max-width: 26ch;
}

.wm-apps__perex {
  color: var(--wm-color__text-muted);
  max-width: 60ch;
  margin-top: var(--wm-space__15);
}

.wm-apps__grid {
  margin-top: var(--wm-space__40);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--wm-space__30);
}

.wm-apps__item {
  display: flex;
  flex-direction: column;
  gap: var(--wm-space__15);
  padding: var(--wm-space__30);
  background: var(--wm-color__bg);
  border: 1px solid var(--wm-color__line);
  border-radius: var(--wm-radius__md);
  transition: border-color 0.15s ease;
}

.wm-apps__item:hover {
  border-color: var(--wm-color__field-border);
}

.wm-apps__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--wm-space__15);
}

.wm-apps__icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: var(--wm-color__primary-soft);
  border-radius: var(--wm-radius__sm);
}

.wm-apps__item > p {
  font-size: var(--wm-font-size__sm);
  color: var(--wm-color__text-muted);
  max-width: 52ch;
}

.wm-apps__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--wm-space__10);
}

.wm-apps__tags li {
  font-family: var(--wm-font-family__mono);
  font-size: 1.2rem;
  color: var(--wm-color__text-muted);
  border: 1px solid var(--wm-color__line);
  border-radius: var(--wm-radius__sm);
  padding: 3px var(--wm-space__10);
}

.wm-apps__actions {
  margin-top: auto;
  padding-top: var(--wm-space__10);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--wm-space__15) 25px;
}

.wm-apps__repo {
  font-size: var(--wm-font-size__sm);
}

.wm-about {
  background: var(--wm-color__surface);
  padding-block: var(--wm-space__section);
}

.wm-about__inner {
  display: grid;
  gap: var(--wm-space__40);
}

.wm-about__inner:has(.wm-about__media) {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 70px;
  align-items: center;
}

.wm-about__title {
  margin-bottom: 25px;
}

.wm-about__copy {
  display: grid;
  gap: var(--wm-space__15);
  max-width: 58ch;
}

.wm-about__media img {
  width: 100%;
  border: 1px solid var(--wm-color__line);
  border-radius: var(--wm-radius__md);
}

.wm-story {
  padding-block: var(--wm-space__section);
}

.wm-story__title {
  margin-bottom: var(--wm-space__15);
}

.wm-story__perex {
  color: var(--wm-color__text-muted);
  max-width: 60ch;
}

.wm-story__word {
  margin-top: var(--wm-space__40);
  font-weight: 600;
  font-size: clamp(6.4rem, 2.4rem + 12vw, 16rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

.wm-story__m {
  text-decoration: underline;
  text-decoration-color: var(--wm-color__primary);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.08em;
}

.wm-story__ai {
  background: var(--wm-color__primary-soft);
  color: inherit;
  border-radius: var(--wm-radius__sm);
  padding: 0 0.06em;
}

.wm-story__legend {
  margin-top: var(--wm-space__60);
  padding-top: var(--wm-space__30);
  border-top: 1px solid var(--wm-color__line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--wm-space__30);
}

.wm-story__legend > div {
  display: grid;
  gap: var(--wm-space__10);
  align-content: start;
}

.wm-story__legend dt {
  font-family: var(--wm-font-family__mono);
  font-size: var(--wm-font-size__xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--wm-color__link);
}

.wm-story__legend dd {
  font-size: var(--wm-font-size__sm);
  color: var(--wm-color__text-muted);
  max-width: 40ch;
}

.wm-gallery {
  background: var(--wm-color__surface);
  padding-block: var(--wm-space__section);
}

.wm-gallery__title {
  max-width: 26ch;
}

.wm-gallery__grid {
  margin-top: var(--wm-space__40);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--wm-space__20);
}

.wm-gallery__item {
  grid-column: span 2;
}

.wm-gallery__item--wide {
  grid-column: span 3;
}

.wm-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  border-radius: var(--wm-radius__sm);
}

.wm-gallery__item--wide img {
  aspect-ratio: 3 / 2;
}

.wm-gallery__note {
  margin-top: var(--wm-space__20);
  font-family: var(--wm-font-family__mono);
  font-size: var(--wm-font-size__xs);
  color: var(--wm-color__text-muted);
}

.wm-cta {
  --cta-bg: var(--wm-color__bg);
  --cta-fg: var(--wm-color__text);
  --cta-muted: var(--wm-color__text-muted);
  background: var(--cta-bg);
  color: var(--cta-fg);
  padding-block: var(--wm-space__section);
}

.wm-cta__inner {
  max-width: 840px;
  display: grid;
  gap: var(--wm-space__30);
  justify-items: center;
  text-align: center;
}

.wm-cta__title {
  max-width: 22ch;
}

.wm-cta__perex {
  color: var(--cta-muted);
  max-width: 54ch;
}

.wm-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--wm-space__15);
}

.wm-cta--inverse {
  --cta-bg: var(--wm-color__panel);
  --cta-fg: var(--wm-color__panel-fg);
  --cta-muted: var(--wm-color__panel-muted);
  --wm-color__focus: var(--wm-color__primary);
}

.wm-cta--inverse .wm-button--ghost:hover {
  --btn-bg: var(--wm-color__panel-line);
}

.wm-cta--banner {
  padding-block: 70px;
}

.wm-cta--banner .wm-cta__inner {
  gap: var(--wm-space__20);
}

.wm-opensource {
  padding-block: var(--wm-space__section);
}

.wm-opensource__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 70px;
  align-items: start;
}

.wm-opensource__copy {
  display: grid;
  gap: var(--wm-space__15);
  justify-items: start;
}

.wm-opensource__copy p {
  color: var(--wm-color__text-muted);
  max-width: 48ch;
}

.wm-opensource__copy .wm-button {
  margin-top: var(--wm-space__15);
}

.wm-opensource__repos {
  border-top: 1px solid var(--wm-color__line);
}

.wm-opensource__repos li {
  display: grid;
  gap: var(--wm-space__5);
  padding: var(--wm-space__20) 0;
  border-bottom: 1px solid var(--wm-color__line);
}

.wm-opensource__repo {
  display: inline-flex;
  align-items: center;
  gap: var(--wm-space__10);
  width: fit-content;
  font-family: var(--wm-font-family__mono);
  font-size: 1.6rem;
  text-decoration: none;
}

.wm-opensource__repo,
.wm-opensource__repo:visited {
  color: var(--wm-color__text);
}

.wm-opensource__repo:hover {
  color: var(--wm-color__link-hover);
  text-decoration: underline;
  text-decoration-color: var(--wm-color__primary-strong);
  text-decoration-thickness: 2px;
}

.wm-opensource__repos p {
  font-size: var(--wm-font-size__sm);
  color: var(--wm-color__text-muted);
  max-width: 60ch;
}

.wm-footer {
  border-top: 1px solid var(--wm-color__line);
  padding-block: 50px;
}

.wm-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--wm-space__20) var(--wm-space__40);
}

.wm-footer__brand {
  display: flex;
  align-items: center;
  gap: var(--wm-space__10);
  font-weight: 600;
  font-size: 1.7rem;
  text-decoration: none;
}

.wm-footer__brand,
.wm-footer__brand:visited,
.wm-footer__brand:hover {
  color: var(--wm-color__text);
}

.wm-footer__logo {
  width: 24px;
  height: 24px;
}

.wm-footer__nav {
  margin-left: auto;
}

.wm-footer__menu {
  display: flex;
  flex-wrap: wrap;
  gap: var(--wm-space__5) 25px;
}

.wm-footer__menu a {
  font-size: var(--wm-font-size__sm);
  text-decoration: none;
}

.wm-footer__menu a,
.wm-footer__menu a:visited {
  color: var(--wm-color__text);
}

.wm-footer__menu a:hover {
  color: var(--wm-color__text);
  text-decoration: underline;
  text-decoration-color: var(--wm-color__primary-strong);
  text-decoration-thickness: 2px;
}

.wm-footer__meta {
  width: 100%;
  margin-top: var(--wm-space__10);
  font-family: var(--wm-font-family__mono);
  font-size: var(--wm-font-size__xs);
  color: var(--wm-color__text-muted);
}

.wm-prose {
  padding-block: var(--wm-space__80) var(--wm-space__section);
}

.wm-prose__inner {
  max-width: var(--wm-layout__content);
}

.wm-prose h1 {
  margin-bottom: var(--wm-space__30);
}

.wm-prose h2 {
  font-size: var(--wm-font-size__h3);
  margin: var(--wm-space__40) 0 var(--wm-space__15);
}

.wm-prose p {
  margin-bottom: var(--wm-space__15);
}

.wm-prose .wm-list {
  margin-bottom: var(--wm-space__15);
}

.wm-about,
.wm-story,
.wm-gallery,
.wm-cta,
.wm-opensource {
  content-visibility: auto;
  contain-intrinsic-size: auto 620px;
}

/* .sg-* = interní anotace styleguide a knihovny komponent; do produkčních stránek se nekopírují */
.sg-head {
  border-bottom: 1px solid var(--wm-color__line);
  padding-block: var(--wm-space__40);
}

.sg-head__inner {
  max-width: var(--wm-layout__container);
  margin-inline: auto;
  padding-inline: var(--wm-layout__pad);
  display: grid;
  gap: var(--wm-space__5);
}

.sg-head p {
  color: var(--wm-color__text-muted);
  font-size: var(--wm-font-size__sm);
}

.sg-main {
  max-width: var(--wm-layout__container);
  margin-inline: auto;
  padding: 50px var(--wm-layout__pad) 100px;
}

.sg-section {
  padding-block: 35px;
  border-bottom: 1px dashed rgba(49, 80, 107, 0.4);
}

.sg-section > h2 {
  font-size: var(--wm-font-size__h3);
  margin-bottom: 25px;
}

.sg-note {
  font-family: var(--wm-font-family__mono);
  font-size: 1.2rem;
  line-height: 1.6;
  color: #31506B;
  max-width: 90ch;
}

.sg-label {
  display: inline-block;
  background: #31506B;
  color: #EAF2F8;
  font-family: var(--wm-font-family__mono);
  font-size: 1.2rem;
  line-height: 1.5;
  padding: var(--wm-space__5) var(--wm-space__10);
  border-radius: 3px;
  max-width: 76ch;
}

.sg-item {
  border-top: 2px dashed rgba(49, 80, 107, 0.4);
  padding-top: var(--wm-space__20);
  margin-top: var(--wm-space__20);
}

.sg-item > .sg-label {
  margin: 0 var(--wm-layout__pad) var(--wm-space__20);
}

.sg-toc {
  max-width: var(--wm-layout__container);
  margin-inline: auto;
  padding: 25px var(--wm-layout__pad);
  display: flex;
  flex-wrap: wrap;
  gap: var(--wm-space__10);
}

.sg-toc a {
  font-family: var(--wm-font-family__mono);
  font-size: 1.2rem;
  text-decoration: none;
  color: #31506B;
  border: 1px solid rgba(49, 80, 107, 0.4);
  border-radius: 3px;
  padding: 3px var(--wm-space__10);
}

.sg-toc a:visited {
  color: #31506B;
}

.sg-toc a:hover {
  background: rgba(49, 80, 107, 0.1);
  color: #31506B;
}

.sg-swatches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: var(--wm-space__20);
}

.sg-swatch {
  border: 1px solid var(--wm-color__line);
  border-radius: 6px;
  overflow: hidden;
}

.sg-swatch__chip {
  height: 60px;
  border-bottom: 1px solid var(--wm-color__line);
}

.sg-swatch__meta {
  padding: var(--wm-space__10);
  font-family: var(--wm-font-family__mono);
  font-size: 1.2rem;
  display: grid;
  gap: 2px;
}

.sg-swatch__meta span {
  color: var(--wm-color__text-muted);
}

.sg-type-row {
  padding: var(--wm-space__15) 0;
  border-bottom: 1px solid var(--wm-color__line);
  display: grid;
  gap: var(--wm-space__5);
}

.sg-type-row small {
  font-family: var(--wm-font-family__mono);
  font-size: 1.2rem;
  color: var(--wm-color__text-muted);
}

.sg-space-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: var(--wm-space__15);
  align-items: center;
  padding: var(--wm-space__5) 0;
  font-family: var(--wm-font-family__mono);
  font-size: 1.2rem;
  color: var(--wm-color__text-muted);
}

.sg-space-row i {
  display: block;
  height: 14px;
  background: var(--wm-color__primary);
  border-radius: 2px;
}

.sg-demo {
  display: grid;
  gap: var(--wm-space__20);
  max-width: 760px;
}

.sg-demo--row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--wm-space__15);
  max-width: none;
}

.sg-icons {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: var(--wm-space__20);
}

.sg-iconcell {
  display: grid;
  gap: var(--wm-space__10);
  justify-items: center;
  padding: var(--wm-space__15);
  border: 1px solid var(--wm-color__line);
  border-radius: 6px;
}

.sg-icongrid {
  width: 96px;
  height: 96px;
  position: relative;
  background-image:
    linear-gradient(to right, rgba(49, 80, 107, 0.18) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(49, 80, 107, 0.18) 1px, transparent 1px);
  background-size: 4px 4px;
  border: 1px solid rgba(49, 80, 107, 0.35);
}

.sg-icongrid::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px dashed rgba(49, 80, 107, 0.55);
  pointer-events: none;
}

.sg-icongrid .wm-icon {
  width: 96px;
  height: 96px;
}

.sg-iconcell figcaption {
  font-family: var(--wm-font-family__mono);
  font-size: 1.1rem;
  color: var(--wm-color__text-muted);
  text-align: center;
  display: grid;
  gap: 2px;
}

.sg-components > div {
  padding: var(--wm-space__15) 0;
  border-bottom: 1px solid var(--wm-color__line);
  display: grid;
  gap: var(--wm-space__5);
}

.sg-components dd {
  font-size: var(--wm-font-size__sm);
  color: var(--wm-color__text-muted);
  max-width: 80ch;
}

.sg-figure {
  display: grid;
  gap: var(--wm-space__10);
  justify-items: start;
}

.sg-figure img {
  border: 1px solid var(--wm-color__line);
}

.sg-figure figcaption {
  font-family: var(--wm-font-family__mono);
  font-size: 1.2rem;
  color: var(--wm-color__text-muted);
}

@media (max-width: 980px) {
  .wm-header__nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-left: 0;
    background: var(--wm-color__bg);
    border-bottom: 1px solid var(--wm-color__line);
    box-shadow: var(--wm-shadow__window);
  }

  .wm-header--open .wm-header__nav {
    display: block;
  }

  .wm-header__menu {
    flex-direction: column;
    gap: 2px;
    padding: var(--wm-space__15) var(--wm-layout__pad) 25px;
  }

  .wm-header__menu a {
    padding: var(--wm-space__10) var(--wm-space__15);
    font-size: var(--wm-font-size__base);
  }

  .wm-header__github {
    margin-left: auto;
  }

  .wm-header__toggle {
    display: inline-flex;
  }

  .wm-about__inner:has(.wm-about__media) {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .wm-about__media {
    max-width: 620px;
  }

  .wm-opensource__inner {
    grid-template-columns: 1fr;
    gap: 50px;
  }
}

@media (max-width: 760px) {
  :root {
    --wm-layout__pad: 20px;
    --wm-space__section: 70px;
  }

  .wm-header__inner {
    gap: var(--wm-space__15);
  }

  .wm-hero__inner {
    min-height: min(70vh, 640px);
    padding-block: var(--wm-space__60);
  }

  .wm-apps__grid {
    grid-template-columns: 1fr;
  }

  .wm-story__legend {
    grid-template-columns: 1fr;
  }

  .wm-gallery__item {
    grid-column: span 3;
  }

  .wm-gallery__item--wide {
    grid-column: span 6;
  }

  .wm-footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--wm-space__20);
  }

  .wm-footer__nav {
    margin-left: 0;
  }
}

@media (max-width: 560px) {
  .wm-header__name {
    font-size: 1.7rem;
  }

  .wm-header__github-label {
    display: none;
  }

  .wm-header__github {
    padding: var(--wm-space__5) var(--wm-space__10);
  }

  .wm-gallery__item {
    grid-column: span 6;
  }

  .wm-hero__actions {
    width: 100%;
  }

  .wm-hero__actions .wm-button {
    width: 100%;
    justify-content: center;
  }

  .wm-cta__actions {
    width: 100%;
    flex-direction: column;
  }

  .wm-cta__actions .wm-button {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}


/* Lightbox */
.wm-about__media img,
.wm-gallery__item img {
  cursor: zoom-in;
}

.wm-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 70px 20px;
  background: rgba(20, 17, 11, 0.92);
  --wm-color__focus: var(--wm-color__primary);
}

.wm-lightbox[hidden] {
  display: none;
}

.wm-lightbox__figure {
  margin: 0;
  display: grid;
  gap: 15px;
  justify-items: center;
  max-width: 1160px;
}

.wm-lightbox__img {
  display: block;
  max-width: 100%;
  max-height: 78vh;
  border-radius: 10px;
}

.wm-lightbox__meta {
  margin: 0;
  font-family: var(--wm-font-family__mono);
  font-size: var(--wm-font-size__xs);
  color: var(--wm-color__panel-muted);
  text-align: center;
}

.wm-lightbox__btn {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--wm-color__panel-line);
  border-radius: 4px;
  background: var(--wm-color__panel);
  color: var(--wm-color__panel-fg);
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.wm-lightbox__btn:hover {
  background: var(--wm-color__panel-line);
}

.wm-lightbox__close {
  top: 20px;
  right: 20px;
}

.wm-lightbox__prev {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.wm-lightbox__next {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.wm-lightbox__prev .wm-icon {
  transform: scaleX(-1);
}
