@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@1,9..144,700&family=DM+Sans:wght@400;600;700&display=swap');

:root {
  --color-burgundy:   #491237;
  --color-teal:       #5CD0D0;
  --color-teal-light: #AADDE1;
  --color-mauve:      #C17B94;
  --color-blush:      #F5E9EF;
  --color-plum:       #5C2952;
  --color-white:      #ffffff;
  --color-text:       #1a1a1a;
  --color-text-muted: #666666;
  --color-border:     #e8dde5;

  --font-sans:     'DM Sans', sans-serif;
  --font-fraunces: 'Fraunces', serif;

  --gradient: linear-gradient(to right, #491237, #5C2952);
  --gradient-diag: linear-gradient(135deg, #491237, #5C2952);

  --radius: 12px;
  --radius-sm: 6px;
  --shadow: 0 2px 16px rgba(73, 18, 55, 0.08);
  --shadow-md: 0 4px 32px rgba(73, 18, 55, 0.14);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: #faf7f9;
}

/* ─── LAYOUT ─────────────────────────────────────────── */

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 80px 0;
}

section + section {
  border-top: 1px solid var(--color-border);
}

/* ─── NAVIGATION ─────────────────────────────────────── */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--gradient);
  box-shadow: 0 2px 12px rgba(73,18,55,0.18);
}

/* Horní lišta — vždy viditelná */
.site-nav__bar {
  display: none; /* skrytá na desktopu */
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 56px;
  max-width: 900px;
  margin: 0 auto;
}

.site-nav__symbol {
  height: 28px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

/* Hamburger tlačítko */
.site-nav__toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.2s;
}

.site-nav__toggle:hover {
  background: rgba(255,255,255,0.12);
}

.site-nav__toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transform-origin: center;
  transition: transform 0.25s, opacity 0.25s;
}

/* Animace X */
.site-nav__toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.site-nav__toggle.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.site-nav__toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Odkaz seznam — desktop: vodorovně */
.site-nav__inner {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 24px;
  height: 56px;
  max-width: 900px;
  margin: 0 auto;
}

.nav-link {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 6px 11px;
  border-radius: 20px;
  transition: color 0.2s, background 0.2s;
}

.nav-link:hover {
  color: #fff;
  background: rgba(255,255,255,0.12);
}

/* ─── HERO ───────────────────────────────────────────── */

.hero {
  background: var(--gradient);
  padding: 96px 0 80px;
  border-top: none;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
}

.hero__logo {
  height: 64px;
  width: auto;
  filter: brightness(0) invert(1);
}

.hero__label {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.1);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 8px;
}

.hero__heading {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.1;
  color: #fff;
}

.hero__heading em {
  display: block;
  font-family: var(--font-fraunces);
  font-style: italic;
  font-weight: 700;
  color: var(--color-teal);
}

.hero__meta {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
}

/* ─── SECTION HEADER ─────────────────────────────────── */

.section-header {
  margin-bottom: 48px;
}

.section-number {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-mauve);
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.75rem;
  color: var(--color-burgundy);
  line-height: 1.2;
  margin-bottom: 12px;
}

.section-title em {
  font-family: var(--font-fraunces);
  font-style: italic;
  color: var(--color-plum);
}

.section-desc {
  font-size: 1rem;
  color: var(--color-text-muted);
  max-width: 580px;
}

/* ─── LOGO GRID ──────────────────────────────────────── */

.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.logo-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s;
}

.logo-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.logo-card__preview {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
  background: var(--color-blush);
  min-height: 160px;
}

.logo-card__preview--dark {
  background: var(--gradient);
}

.logo-card__preview--mono {
  background: #f0f0f0;
}

.logo-card__preview img {
  max-width: 100%;
  max-height: 100px;
  object-fit: contain;
}

.logo-card__preview--dark img {
  filter: brightness(0) invert(1);
}

.logo-card__info {
  padding: 20px 24px;
  border-top: 1px solid var(--color-border);
}

.logo-card__name {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--color-burgundy);
  margin-bottom: 4px;
}

.logo-card__desc {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.logo-card__downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-burgundy);
  background: var(--color-blush);
  border: 1px solid var(--color-mauve);
  border-radius: 20px;
  padding: 5px 12px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.dl-btn:hover {
  background: var(--color-burgundy);
  color: #fff;
  border-color: var(--color-burgundy);
}

/* ─── INFOBOX ────────────────────────────────────────── */

.infobox {
  background: var(--color-blush);
  border-left: 4px solid var(--color-mauve);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 20px 24px;
  margin: 32px 0;
  font-size: 0.9375rem;
  color: var(--color-text);
}

.infobox strong {
  color: var(--color-burgundy);
}


/* ─── SIZE TABLE ─────────────────────────────────────── */

.table-wrap {
  overflow-x: auto;
  margin-bottom: 24px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

th {
  background: var(--color-burgundy);
  color: #fff;
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
  text-align: left;
  padding: 12px 20px;
}

td {
  padding: 12px 20px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background: var(--color-blush);
}

/* ─── RULES ──────────────────────────────────────────── */

.rules-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rules-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9375rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  box-shadow: var(--shadow);
}

.rules-list li .icon {
  font-size: 1.1rem;
  line-height: 1.5;
  flex-shrink: 0;
}

/* ─── COLOR SWATCHES ─────────────────────────────────── */

.color-group {
  margin-bottom: 40px;
}

.color-group__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.swatch {
  width: 160px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
  border: 1px solid var(--color-border);
}

.swatch__color {
  height: 100px;
  width: 100%;
}

.swatch__info {
  padding: 14px 16px;
}

.swatch__name {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--color-burgundy);
  margin-bottom: 6px;
}

.swatch__values {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  font-family: 'Courier New', monospace;
}

.swatch__values span {
  display: block;
}

/* ─── GRADIENT PREVIEW ───────────────────────────────── */

.gradient-preview {
  height: 120px;
  border-radius: var(--radius);
  background: var(--gradient);
  box-shadow: var(--shadow-md);
  margin-bottom: 32px;
}

.code-block {
  background: #1a1a2e;
  color: #e8e8e8;
  border-radius: var(--radius);
  padding: 24px 28px;
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  line-height: 1.7;
  overflow-x: auto;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.code-block .comment { color: #6a9955; }
.code-block .property { color: #9cdcfe; }
.code-block .value { color: #ce9178; }
.code-block .selector { color: #d7ba7d; }

/* ─── TYPOGRAPHY SHOWCASE ────────────────────────────── */

.type-samples {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.type-sample {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.type-sample__label {
  background: var(--color-blush);
  border-bottom: 1px solid var(--color-border);
  padding: 10px 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-mauve);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.type-sample__label span {
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--color-text-muted);
  font-size: 0.75rem;
}

.type-sample__preview {
  padding: 28px 28px 24px;
}

.type-display {
  font-family: var(--font-fraunces);
  font-style: italic;
  font-weight: 700;
  font-size: 3rem;
  line-height: 1.1;
  color: var(--color-burgundy);
}

.type-h1 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 2.25rem;
  line-height: 1.2;
  color: var(--color-burgundy);
}

.type-h2 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.3;
  color: var(--color-burgundy);
}

.type-body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
}

.type-small {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--color-text-muted);
}

/* ─── SPLIT HEADING ──────────────────────────────────── */

.split-heading-demo {
  background: var(--gradient);
  border-radius: var(--radius);
  padding: 56px 48px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-md);
}

.split-heading {
  color: #fff;
  line-height: 1.05;
}

.split-heading__sans {
  display: block;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3rem);
}

.split-heading__fraunces {
  display: block;
  font-family: var(--font-fraunces);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--color-teal);
}


/* ─── CONTACTS ───────────────────────────────────────── */

.contacts-plain {
  font-size: 0.9375rem;
  line-height: 1.9;
  color: var(--color-text);
  margin-bottom: 48px;
}

.contacts-plain strong {
  color: var(--color-burgundy);
}

.contacts-plain a {
  color: var(--color-burgundy);
  text-decoration: none;
  font-weight: 600;
}

.contacts-plain a:hover {
  text-decoration: underline;
}

/* ─── AUTHOR ─────────────────────────────────────────── */

.author-card {
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--color-blush);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px 32px;
  box-shadow: var(--shadow);
}

.author-card__photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--color-mauve);
  flex-shrink: 0;
}

.author-card__name {
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--color-burgundy);
  margin-bottom: 2px;
}

.author-card__role {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.author-card__link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-burgundy);
  text-decoration: none;
}

.author-card__link:hover {
  text-decoration: underline;
}

/* ─── FOOTER ─────────────────────────────────────────── */

.site-footer {
  background: var(--gradient);
  color: rgba(255,255,255,0.6);
  padding: 40px 0;
  font-size: 0.8125rem;
  text-align: center;
  border-top: none;
}

.site-footer strong {
  color: #fff;
}

/* ─── RESPONSIVE ─────────────────────────────────────── */

/* Tablet — menu se začíná tísniit */
@media (max-width: 780px) {
  /* Schovat vodorovné menu, ukázat hamburger lištu */
  .site-nav__bar {
    display: flex;
  }

  .site-nav__inner {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    height: auto;
    padding: 8px 16px 16px;
    max-width: 100%;
    background: rgba(0,0,0,0.15);
  }

  .site-nav__inner.is-open {
    display: flex;
  }

  .nav-link {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9375rem;
    white-space: normal;
  }
}

/* Mobil */
@media (max-width: 600px) {
  .container {
    padding: 0 16px;
  }

  section {
    padding: 56px 0;
  }

  .hero {
    padding: 56px 0 48px;
  }

  .hero__logo {
    height: 40px;
  }

  /* Logo grid — 1 sloupec */
  .logo-grid {
    grid-template-columns: 1fr;
  }

  /* Swatche — 2 na řádku */
  .swatches {
    gap: 12px;
  }

  .swatch {
    width: calc(50% - 6px);
  }

  /* Gradient swatche — 1 na řádku */
  .swatch[style*="width:auto"] {
    width: 100%;
  }

  /* Split heading demo */
  .split-heading-demo {
    padding: 36px 24px;
  }

  /* Typografie — label na dvou řádcích */
  .type-sample__label {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  /* Display font menší na mobilu */
  .type-display {
    font-size: 2.25rem;
  }

  .type-h1 {
    font-size: 1.75rem;
  }

  /* Tabulky — scroll */
  .table-wrap {
    -webkit-overflow-scrolling: touch;
  }

  /* Code bloky */
  .code-block {
    font-size: 0.78rem;
    padding: 18px 16px;
  }

  /* Author */
  .author-card {
    flex-direction: column;
    text-align: center;
    padding: 24px 20px;
  }

  /* Section title */
  .section-title {
    font-size: 1.5rem;
  }
}
