/*
 * Vzhled blogu: světlý, moderní, přehledný.
 * Písmo Inter, bílé pozadí, karty s fotkami a jedna klidná barva (zelenomodrá).
 * Barvy se mění v :root níže.
 */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-latin-opsz-normal.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: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-latin-ext-opsz-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-latin-opsz-italic.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: "Inter";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-latin-ext-opsz-italic.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #ffffff;
  --bg-soft: #f6f7f6;
  --text: #18181b;
  --text-2: #52525b;
  --text-3: #71717a;
  --border: #e6e7e5;
  --accent: #0e7c66;
  --accent-ink: #0b5e4e;
  --accent-soft: #e8f4f0;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --container: 72rem;
  --narrow: 42rem;
  --wide: 60rem;
  --gutter: clamp(1.25rem, 4vw, 2rem);
  --radius: 16px;
  --radius-sm: 10px;

  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(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  font-optical-sizing: auto;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.visually-hidden,
.hp {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--text);
  color: #fff;
  font-weight: 600;
}

.skip:focus {
  top: 1rem;
}

.container,
.container-narrow,
.container-wide {
  width: 100%;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container {
  max-width: calc(var(--container) + 2 * var(--gutter));
}

.container-narrow {
  max-width: calc(var(--narrow) + 2 * var(--gutter));
}

.container-wide {
  max-width: calc(var(--wide) + 2 * var(--gutter));
}

/* --- Tlačítka, štítky ------------------------------------------------------ */

.btn,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  border: 1px solid var(--text);
  border-radius: 999px;
  background: var(--text);
  color: #fff;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.btn:hover,
button:hover {
  border-color: var(--accent);
  background: var(--accent);
}

.btn--small {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn--ghost:hover {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.pill {
  position: relative;
  z-index: 1;
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.4;
  transition: background 0.2s;
}

.pill:hover {
  background: #d6ece5;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.9rem;
  margin: 0;
  color: var(--text-3);
  font-size: 0.875rem;
}

.post-meta > time + span::before,
.post-meta > span + span::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 3px;
  margin-right: 0.9rem;
  border-radius: 50%;
  background: currentColor;
  vertical-align: middle;
}

/* --- Hlavička ---------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  min-height: 4.25rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex: none;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
}

.logo-text {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav {
  flex: 1;
  min-width: 0;
}

.nav ul {
  display: flex;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a {
  display: block;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  color: var(--text-2);
  font-size: 0.9375rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.nav a:hover {
  background: var(--bg-soft);
  color: var(--text);
}

.nav a[aria-current="page"] {
  background: var(--bg-soft);
  color: var(--text);
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  color: var(--text-2);
  transition: background 0.2s, color 0.2s;
}

.icon-btn:hover {
  background: var(--bg-soft);
  color: var(--text);
}

/* --- Úvod -------------------------------------------------------------------- */

.intro {
  padding-top: clamp(3rem, 7vw, 5rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
}

.intro-title {
  max-width: 14ch;
  margin: 0;
  font-size: clamp(2.6rem, 1.5rem + 4.4vw, 4.5rem);
  font-weight: 750;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.intro-text {
  max-width: 36rem;
  margin: 1.25rem 0 0;
  color: var(--text-2);
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem);
  line-height: 1.55;
}

/* Hlavní (nejnovější) článek */
.featured {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
}

.featured-media {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-soft);
}

.featured-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.featured:hover .featured-media img {
  transform: scale(1.025);
}

.featured-label {
  margin: 0 0 0.75rem;
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 600;
}

.featured-title {
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 1.2rem + 2vw, 2.75rem);
  font-weight: 750;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.featured-title a:hover,
.card-title a:hover {
  color: var(--accent);
}

.featured-excerpt {
  margin: 0 0 1.25rem;
  color: var(--text-2);
  font-size: 1.0625rem;
  line-height: 1.65;
}

.featured .post-meta {
  margin-bottom: 1.75rem;
}

/* --- Sekce a mřížka ------------------------------------------------------------- */

.section {
  padding-top: clamp(3.5rem, 7vw, 5.5rem);
}

.section--tight {
  padding-top: 1rem;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: 2rem;
}

.section-title {
  margin: 0;
  font-size: 1.625rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  padding: 0.45rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-2);
  font-size: 0.875rem;
  font-weight: 500;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.chip:hover {
  border-color: var(--text-3);
  color: var(--text);
}

.chip[aria-current="page"] {
  border-color: var(--text);
  background: var(--text);
  color: #fff;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3rem) clamp(1.25rem, 2.5vw, 2rem);
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
}

.card-media {
  display: block;
  overflow: hidden;
  margin-bottom: 1.1rem;
  border-radius: var(--radius);
  background: var(--bg-soft);
}

.card-media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover .card-media img {
  transform: scale(1.035);
}

.card-placeholder {
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 2;
  background: linear-gradient(135deg, var(--accent-soft), #f3efe7);
  color: var(--accent);
  font-size: 3rem;
  font-weight: 750;
}

.featured-media .card-placeholder {
  aspect-ratio: 4 / 3;
}

.card-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
}

.card-body .pill {
  margin-bottom: 0.75rem;
}

.card-title {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

/* Celá karta je klikací. */
.card-title a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.card-excerpt {
  display: -webkit-box;
  margin: 0 0 1rem;
  overflow: hidden;
  color: var(--text-2);
  font-size: 0.975rem;
  line-height: 1.6;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.card .post-meta {
  margin-top: auto;
}

.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.5rem;
  margin-top: 3.5rem;
  color: var(--text-3);
  font-size: 0.875rem;
}

.pager a {
  padding: 0.6rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  font-weight: 600;
}

.pager a:hover {
  border-color: var(--text);
}

/* Výzva k Instagramu */
.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border-radius: calc(var(--radius) + 4px);
  background: var(--accent-soft);
}

.cta-title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.cta-text {
  margin: 0;
  color: var(--text-2);
}

.empty {
  padding: 3rem 0 4rem;
  color: var(--text-2);
}

.empty-title {
  margin: 0 0 0.35rem;
  color: var(--text);
  font-size: 1.375rem;
  font-weight: 700;
}

.empty a {
  color: var(--accent);
  font-weight: 600;
}

/* --- Nadpis stránky (rubrika, hledání, 404) --------------------------------------- */

.page-header {
  padding-top: clamp(3rem, 7vw, 4.5rem);
  padding-bottom: 2.25rem;
}

.page-header--center {
  text-align: center;
}

.page-header--center .search {
  margin-inline: auto;
}

.page-title {
  margin: 0;
  font-size: clamp(2.25rem, 1.5rem + 3vw, 3.5rem);
  font-weight: 750;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.page-lede {
  margin: 0.75rem 0 0;
  color: var(--text-2);
  font-size: 1.0625rem;
}

.page-header .chips {
  margin-top: 1.75rem;
}

.page-back {
  margin: 1.5rem 0 0;
}

.page-back a {
  color: var(--accent);
  font-weight: 600;
}

.error-code {
  margin: 0 0 0.5rem;
  color: var(--accent);
  font-weight: 700;
}

.search {
  display: flex;
  gap: 0.6rem;
  max-width: 34rem;
  margin-top: 1.75rem;
}

.search input {
  flex: 1;
  min-width: 0;
}

/* --- Článek ---------------------------------------------------------------------- */

.notice {
  margin: 1.5rem 0 0;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-sm);
  background: #fff6db;
  color: #5c4708;
  font-size: 0.9375rem;
}

.notice a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
}

.post-header {
  padding-top: clamp(2.75rem, 6vw, 4.5rem);
  padding-bottom: clamp(2rem, 4vw, 2.75rem);
}

.post-title {
  margin: 1rem 0 0;
  font-size: clamp(2.25rem, 1.4rem + 3.4vw, 3.4rem);
  font-weight: 750;
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.post-excerpt {
  margin: 1.1rem 0 0;
  color: var(--text-2);
  font-size: 1.25rem;
  line-height: 1.55;
}

.byline {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.byline-name {
  margin: 0 0 0.1rem;
  font-size: 0.9375rem;
  font-weight: 600;
}

.avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  overflow: hidden;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-weight: 700;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar--large {
  width: 4rem;
  height: 4rem;
  font-size: 1.375rem;
}

.post-cover {
  margin-top: 0;
  margin-bottom: clamp(2.25rem, 5vw, 3.5rem);
}

.post-cover img {
  width: 100%;
  border-radius: var(--radius);
  background: var(--bg-soft);
}

.post-cover--portrait img {
  width: auto;
  max-height: 85vh;
  margin-inline: auto;
}

.prose {
  color: #27272a;
  font-size: 1.125rem;
  line-height: 1.78;
}

.prose p,
.prose ul,
.prose ol {
  margin: 0 0 1.4em;
}

.prose ul,
.prose ol {
  padding-left: 1.3em;
}

.prose li {
  margin-bottom: 0.45em;
  padding-left: 0.25em;
}

.prose li::marker {
  color: var(--accent);
}

.prose h2 {
  margin: 2.2em 0 0.7em;
  color: var(--text);
  font-size: 1.625rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.prose h3 {
  margin: 1.9em 0 0.6em;
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.015em;
}

.prose strong {
  color: var(--text);
  font-weight: 650;
}

.prose a {
  color: var(--accent-ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.prose a:hover {
  color: var(--accent);
}

.pull {
  margin: 2.5em 0;
  padding: 0.25em 0 0.25em 1.5rem;
  border-left: 3px solid var(--accent);
}

.pull p {
  margin: 0;
  color: var(--text);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.02em;
  text-wrap: pretty;
}

.pull footer {
  margin-top: 0.75rem;
  color: var(--text-3);
  font-size: 0.9375rem;
}

.divider {
  margin: 2.75em 0;
  color: var(--text-3);
  font-size: 1.25rem;
  line-height: 1;
  text-align: center;
  letter-spacing: 0.6em;
}

.figure {
  margin: 2.5em 0;
}

.figure img {
  width: 100%;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
}

.figure--wide,
.figure--video {
  width: min(var(--wide), 100vw - 2 * var(--gutter));
  margin-left: 50%;
  transform: translateX(-50%);
}

.figure--wide img {
  border-radius: var(--radius);
}

.figure--portrait img {
  width: auto;
  max-height: 80vh;
  margin-inline: auto;
}

.figure figcaption {
  margin-top: 0.75rem;
  color: var(--text-3);
  font-size: 0.875rem;
  line-height: 1.5;
  text-align: center;
}

.video {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-soft);
}

.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.author-box {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  margin-top: 3.5rem;
}

.author-box > div {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--bg-soft);
  flex: 1;
}

.author-name {
  margin: 0 0 0.35rem;
  font-weight: 700;
}

.author-text {
  margin: 0 0 0.75rem;
  color: var(--text-2);
  font-size: 0.975rem;
}

.author-link {
  color: var(--accent);
  font-size: 0.9375rem;
  font-weight: 600;
}

.author-link:hover {
  text-decoration: underline;
}

.related {
  margin-top: clamp(4rem, 8vw, 6rem);
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
}

.related .section-title {
  margin-bottom: 2rem;
}

.related .card-media {
  background: #eceeec;
}

/* --- Rozšířený obsah článku ----------------------------------------------------- */

.zoom {
  display: block;
  cursor: zoom-in;
}

/* Galerie */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gallery--2 .gallery-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gallery--1 .gallery-grid {
  grid-template-columns: minmax(0, 1fr);
}

.gallery-item {
  margin: 0;
  padding: 0;
}

.prose .gallery-grid {
  margin: 0;
  padding: 0;
}

.prose .gallery-item {
  margin: 0;
  padding: 0;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  transition: opacity 0.2s;
}

.gallery--1 .gallery-item img {
  aspect-ratio: auto;
}

.gallery-item a:hover img {
  opacity: 0.9;
}

.gallery-caption {
  display: block;
  margin-top: 0.4rem;
  color: var(--text-3);
  font-size: 0.8125rem;
  line-height: 1.4;
}

/* Fotka vedle textu */
.media-text {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  width: min(var(--wide), 100vw - 2 * var(--gutter));
  margin: 2.75em 0 2.75em 50%;
  transform: translateX(-50%);
}

.media-text--right .media-text-image {
  order: 2;
}

.media-text--noimage {
  grid-template-columns: minmax(0, 1fr);
  width: auto;
  margin-left: 0;
  transform: none;
}

.media-text-image img {
  width: 100%;
  border-radius: var(--radius);
  background: var(--bg-soft);
}

.media-text-body > :last-child {
  margin-bottom: 0;
}

/* Video, hudba, Instagram – načtou se až po kliknutí */
.embed {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #1f2a27, #2d3a36);
  color: #fff;
}

.embed--video {
  aspect-ratio: 16 / 9;
}

.embed--vertical {
  aspect-ratio: 9 / 16;
  max-width: 22rem;
  margin-inline: auto;
}

.embed--audio {
  min-height: 9.5rem;
  background: linear-gradient(135deg, #12372b, #1d5c47);
}

.embed--audio-list {
  min-height: 12rem;
  background: linear-gradient(135deg, #12372b, #1d5c47);
}

.embed--social {
  aspect-ratio: 4 / 5;
  max-width: 30rem;
  margin-inline: auto;
  background: linear-gradient(135deg, #4b2a6b, #b8466e 60%, #e0884a);
}

.embed-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.62);
  transition: filter 0.3s, transform 0.5s;
}

.embed:hover .embed-poster {
  filter: brightness(0.5);
  transform: scale(1.02);
}

.embed-play {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  max-width: calc(100% - 2rem);
  padding: 0.6rem 1.25rem 0.6rem 0.6rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  text-align: left;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s, background 0.2s;
}

.embed-play:hover {
  border: 0;
  background: #fff;
  transform: scale(1.03);
}

.embed-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
}

.embed-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.embed-action {
  font-size: 0.9375rem;
  font-weight: 650;
}

.embed-meta {
  overflow: hidden;
  color: var(--text-3);
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.embed-fallback {
  position: relative;
  z-index: 1;
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
}

.js .embed-fallback {
  display: none;
}

html:not(.js) .embed-play {
  display: none;
}

.embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.embed.is-loaded {
  background: #000;
}

.embed--audio.is-loaded {
  min-height: 0;
  height: 152px;
  background: transparent;
}

.embed--audio-list.is-loaded {
  min-height: 0;
  height: 352px;
  background: transparent;
}

.embed--social.is-loaded {
  aspect-ratio: auto;
  height: 700px;
  background: #fff;
  border: 1px solid var(--border);
}

/* Odkaz s náhledem */
.link-card {
  display: flex;
  align-items: stretch;
  overflow: hidden;
  margin: 2em 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text) !important;
  text-decoration: none !important;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.link-card:hover {
  border-color: var(--accent);
  box-shadow: 0 6px 24px rgba(14, 124, 102, 0.08);
}

.link-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
  padding: 1.1rem 1.25rem;
}

.link-card-site {
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 600;
}

.link-card-title {
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.link-card-desc {
  display: -webkit-box;
  overflow: hidden;
  color: var(--text-2);
  font-size: 0.9375rem;
  line-height: 1.5;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.link-card-image {
  flex: none;
  width: 11rem;
  background: var(--bg-soft);
}

.link-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Zvýrazněná poznámka */
.note {
  margin: 2em 0;
  padding: 1.1rem 1.35rem;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 1.0625rem;
  line-height: 1.65;
}

.note > :last-child {
  margin-bottom: 0;
}

.note strong {
  color: inherit;
}

/* Zvětšená fotka */
.lightbox {
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(10, 12, 11, 0.94);
  color: #fff;
}

.lightbox[open] {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr) 4rem;
  align-items: center;
}

.lightbox::backdrop {
  background: transparent;
}

.lightbox-figure {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  margin: 0;
  padding: 3.5rem 0 2.5rem;
}

.lightbox-figure img {
  max-width: 100%;
  max-height: calc(100vh - 8rem);
  object-fit: contain;
  border-radius: 6px;
}

.lightbox-figure figcaption {
  margin-top: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9375rem;
  text-align: center;
}

.lightbox-close,
.lightbox-nav {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  border: 0;
  background: rgba(255, 255, 255, 0.25);
}

.lightbox-close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 2;
}

.lightbox-prev {
  grid-column: 1;
  justify-self: center;
}

.lightbox-next {
  grid-column: 3;
  justify-self: center;
}

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

.lightbox-count {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  transform: translateX(-50%);
}

@media (max-width: 40rem) {
  .gallery--3 .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Lichý počet fotek: poslední fotka přes celou šířku, ať nezůstane díra. */
  .gallery--3 .gallery-item:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .gallery--3 .gallery-item:last-child:nth-child(odd) img {
    aspect-ratio: 16 / 9;
  }

  .media-text {
    grid-template-columns: minmax(0, 1fr);
  }

  .media-text--right .media-text-image {
    order: 0;
  }

  .link-card {
    flex-direction: column-reverse;
  }

  .link-card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
  }

  .embed-play {
    padding-right: 1rem;
  }

  .lightbox[open] {
    grid-template-columns: 0 minmax(0, 1fr) 0;
  }

  .lightbox-nav {
    position: fixed;
    bottom: 0.75rem;
  }

  .lightbox-prev {
    left: 1rem;
  }

  .lightbox-next {
    right: 1rem;
  }
}

/* --- Komentáře -------------------------------------------------------------------- */

.comments {
  margin-top: 4rem;
}

.comments-title {
  margin: 0 0 1.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.comment-list {
  margin: 0 0 3rem;
  padding: 0;
  list-style: none;
}

.comment {
  padding: 1.25rem 0;
  border-top: 1px solid var(--border);
}

.comment-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.75rem;
  margin: 0 0 0.4rem;
  color: var(--text-3);
  font-size: 0.875rem;
}

.comment-name {
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 650;
}

.comment-name--author {
  color: var(--accent-ink);
}

.comment-text {
  color: #27272a;
  font-size: 1rem;
  line-height: 1.65;
}

.comment-text p {
  margin: 0 0 0.7em;
}

.comment-text p:last-child {
  margin-bottom: 0;
}

.comment-reply {
  margin: 1rem 0 0.25rem 1rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
}

.comment-form {
  padding: clamp(1.25rem, 4vw, 2rem);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.comment-form-title {
  margin: 0 0 0.25rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.comment-form-note {
  margin: 0 0 1.5rem;
  color: var(--text-3);
  font-size: 0.875rem;
}

.field {
  margin-bottom: 1.1rem;
}

.field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
}

input[type="text"],
input[type="search"],
textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input::placeholder,
textarea::placeholder {
  color: #a1a1aa;
}

input:focus,
textarea:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 4px rgba(14, 124, 102, 0.12);
}

textarea {
  min-height: 8rem;
  resize: vertical;
}

.form-message {
  margin: 0 0 1.5rem;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
}

.form-message--ok {
  background: var(--accent-soft);
  color: var(--accent-ink);
}

.form-message--error {
  background: #fdecec;
  color: #8a1c1c;
}

/* --- O mně --------------------------------------------------------------------------- */

.about {
  padding-top: clamp(3rem, 7vw, 4.5rem);
}

.about-grid {
  display: grid;
  grid-template-columns: 18rem minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.about-photo {
  margin: 0;
  overflow: hidden;
  border-radius: calc(var(--radius) + 4px);
  background: var(--bg-soft);
}

.about-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.about-photo--empty {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, var(--accent-soft), #f3efe7);
  color: var(--accent);
  font-size: 4rem;
  font-weight: 750;
}

.about-main {
  max-width: var(--narrow);
}

.about-main .prose {
  margin-top: 1.5rem;
}

.about-sign {
  margin: 0;
  font-weight: 700;
}

.about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2rem;
}

/* --- Patička ------------------------------------------------------------------------- */

.site-footer {
  margin-top: clamp(4rem, 8vw, 6rem);
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
}

.related + .site-footer,
main:has(.related:last-child) + .site-footer {
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.5rem;
  padding-top: 3.5rem;
  padding-bottom: 2.5rem;
}

.footer-brand p {
  max-width: 24rem;
  margin: 1rem 0 0;
  color: var(--text-2);
  font-size: 0.9375rem;
}

.footer-col h2 {
  margin: 0 0 0.85rem;
  font-size: 0.875rem;
  font-weight: 700;
}

.footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col li + li {
  margin-top: 0.5rem;
}

.footer-col a {
  color: var(--text-2);
  font-size: 0.9375rem;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  padding-bottom: 2rem;
  color: var(--text-3);
  font-size: 0.8125rem;
}

.footer-bottom p {
  margin: 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/* --- Instagram: mřížka příspěvků ---------------------------------------------------- */

.ig-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.85rem;
}

.ig-handle {
  color: var(--text-3);
  font-weight: 500;
  text-decoration: none;
}

.ig-handle:hover {
  color: var(--accent);
}

.ig-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ig-grid--1 { grid-template-columns: minmax(0, 18rem); }
.ig-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ig-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ig-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ig-grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.ig-item {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
}

.ig-item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 0.35s ease, opacity 0.2s;
}

a.ig-item:hover img {
  transform: scale(1.04);
  opacity: 0.92;
}

a.ig-item:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.ig-type {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 999px;
  background: rgba(24, 24, 27, 0.55);
  color: #fff;
}

/* --- Stránka pro odkaz v bio (/ig/) ------------------------------------------------- */

.bio {
  width: min(100% - 2 * var(--gutter), 32rem);
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 3.5rem) 0 4rem;
}

.bio-head {
  text-align: center;
}

.bio-avatar {
  display: inline-grid;
  place-items: center;
  width: 6rem;
  height: 6rem;
  overflow: hidden;
  border-radius: 999px;
  background: var(--accent-soft);
}

.bio-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bio-avatar--empty {
  background: var(--accent);
  color: #fff;
  font-size: 2.5rem;
  font-weight: 750;
}

.bio-title {
  margin: 1rem 0 0.4rem;
  font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.25rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.bio-intro {
  margin: 0 auto 0.6rem;
  max-width: 26rem;
  color: var(--text-2);
}

.bio-handle {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.bio-handle:hover {
  text-decoration: underline;
}

.bio-links {
  display: grid;
  gap: 0.65rem;
  margin: 2rem 0 2.5rem;
}

.bio-link {
  display: block;
  padding: 0.95rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  color: var(--text);
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.bio-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.bio-link--primary {
  border-color: var(--text);
  background: var(--text);
  color: #fff;
}

.bio-link--primary:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.bio-section {
  margin: 0 0 1rem;
  color: var(--text-3);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bio-posts {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bio-post {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.2s;
}

.bio-post:hover {
  border-color: var(--accent);
}

.bio-post-media {
  flex: 0 0 5rem;
  overflow: hidden;
  border-radius: var(--radius-sm);
}

.bio-post-media img,
.bio-post-media .card-placeholder {
  display: grid;
  width: 5rem;
  height: 5rem;
  object-fit: cover;
  aspect-ratio: 1;
  font-size: 1.5rem;
}

.bio-post-body {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.bio-post-title {
  font-weight: 650;
  line-height: 1.3;
}

.bio-post:hover .bio-post-title {
  color: var(--accent);
}

.bio-post-meta {
  color: var(--text-3);
  font-size: 0.8125rem;
}

/* --- Tablet ------------------------------------------------------------------------- */

@media (max-width: 64rem) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .featured {
    grid-template-columns: minmax(0, 1fr);
  }

  .featured-media img,
  .featured-media .card-placeholder {
    aspect-ratio: 16 / 10;
  }
}

/* --- Telefon ------------------------------------------------------------------------ */

@media (max-width: 48rem) {
  .header-inner {
    flex-wrap: wrap;
    gap: 0;
    padding-top: 0.75rem;
  }

  .header-actions {
    order: 2;
  }

  .header-ig {
    display: none;
  }

  .nav {
    order: 3;
    flex-basis: 100%;
    margin: 0.5rem calc(-1 * var(--gutter)) 0;
    padding: 0 var(--gutter) 0.6rem;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav a {
    padding: 0.4rem 0.75rem;
    font-size: 0.9rem;
  }

  .nav li:first-child a {
    margin-left: -0.75rem;
  }

  .about-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-photo {
    max-width: 16rem;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 40rem) {
  .grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .ig-grid {
    gap: 0.35rem;
  }

  .ig-grid--6 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ig-item {
    border-radius: 6px;
  }

  .prose {
    font-size: 1.0625rem;
  }

  .post-excerpt {
    font-size: 1.125rem;
  }

  .pull p {
    font-size: 1.3rem;
  }

  .author-box {
    flex-direction: column;
  }

  .search {
    flex-wrap: wrap;
  }

  .search .btn {
    width: 100%;
  }
}

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

@media print {
  .site-header,
  .site-footer,
  .comments,
  .related,
  .author-box {
    display: none;
  }
}
