/* Hallmark · v2.0.0 · theme: mikrobiomy-editorial · file: site */
@import url("tokens.css");
@import url("base.css");
@import url("components.css");

/* Page compositions */

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding-block: var(--space-7) var(--space-8);
}

.hero__grid {
  position: relative;
  display: grid;
  gap: var(--space-7);
  align-items: center;
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  }
}

.hero h1 {
  font-size: var(--text-hero);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.035em;
  max-width: 11.5ch;
  margin-bottom: var(--space-5);
}

.hero h1 em,
.hero-accent {
  font-style: italic;
  font-weight: 400;
}

.hero-accent {
  color: var(--accent);
}

.hero-line {
  display: block;
}

.hero .lead {
  max-width: 36rem;
  margin-bottom: var(--space-5);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4) var(--space-5);
}

@media (max-width: 639px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn--hero {
    width: 100%;
  }

  .hero-actions .btn-text {
    justify-content: center;
    min-height: 44px;
  }

  .hero h1 {
    max-width: none;
  }
}

.hero-cells {
  width: 100%;
  height: auto;
}

.hero-cells__wash {
  fill: color-mix(in srgb, var(--accent) 10%, transparent);
}

.hero-cells__fill {
  fill: color-mix(in srgb, var(--accent) 14%, var(--bg));
}

.hero-cells__fill--lg {
  fill: color-mix(in srgb, var(--accent) 18%, var(--bg));
}

.hero-cells__membrane {
  fill: none;
  stroke: color-mix(in srgb, var(--accent) 48%, var(--ink));
  stroke-width: 1.4;
}

.hero-cells__dot {
  fill: color-mix(in srgb, var(--accent) 42%, var(--bg));
}

.hero-cells__dot--sm {
  fill: var(--accent);
  opacity: 0.72;
}

.hero-cells__link {
  stroke: color-mix(in srgb, var(--accent) 28%, transparent);
  stroke-width: 1.2;
}

.hero-cells--back {
  position: absolute;
  inset: auto -8% -10% auto;
  width: min(70vw, 320px);
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}

@media (min-width: 900px) {
  .hero-cells--back {
    display: none;
  }
}

.hero-visual {
  display: none;
  max-width: 480px;
  margin-inline: auto;
}

@media (min-width: 900px) {
  .hero-visual {
    display: block;
  }
}

.work-strip {
  background: var(--accent-soft);
  border-block: 1px solid color-mix(in srgb, var(--accent) 16%, var(--border));
}

.work-strip__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3) var(--space-5);
  padding-block: 0.95rem;
}

.work-strip p {
  margin: 0;
  color: var(--ink-secondary);
  font-size: var(--text-meta);
  max-width: 46rem;
}

.start-path {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

@media (min-width: 700px) {
  .start-path {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .start-path {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .start-path::before {
    content: "";
    position: absolute;
    top: 2.05rem;
    left: 12%;
    right: 12%;
    border-top: 1px dashed var(--border-strong);
    pointer-events: none;
  }
}

.start-path__item {
  position: relative;
  z-index: 1;
}

.card--start {
  overflow: hidden;
}

.start-path__item--foundations .card--start {
  background: color-mix(in srgb, var(--tone-foundations) 7%, var(--surface));
  border-left: 3px solid var(--tone-foundations);
}

.start-path__item--body .card--start {
  background: color-mix(in srgb, var(--tone-body) 8%, var(--surface));
  border-left: 3px solid var(--tone-body);
}

.start-path__item--tests .card--start {
  background: color-mix(in srgb, var(--tone-tests) 8%, var(--surface));
  border-left: 3px solid var(--tone-tests);
}

.start-path__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}

.start-path__num {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  min-width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.start-path__item--foundations .start-path__num,
.start-path__item--foundations .start-path__glyph {
  color: var(--tone-foundations);
}

.start-path__item--body .start-path__num,
.start-path__item--body .start-path__glyph {
  color: var(--tone-body);
}

.start-path__item--tests .start-path__num,
.start-path__item--tests .start-path__glyph {
  color: var(--tone-tests);
}

.start-path__glyph {
  width: 32px;
  height: 32px;
}

.guides-layout {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 900px) {
  .guides-layout {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: stretch;
  }
}

.guide-featured {
  height: 100%;
  padding: var(--space-6);
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 20%, var(--border));
  border-radius: var(--radius-lg);
  transition:
    border-color var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out);
}

.guide-featured:hover {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.guide-featured .card-link {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.guide-featured__title {
  font-family: var(--font-heading);
  font-size: clamp(1.45rem, 1.15rem + 1.1vw, 2.05rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0;
  text-wrap: balance;
}

.guide-featured .card-link:hover .guide-featured__title {
  color: var(--accent);
}

.guide-featured p {
  color: var(--ink-secondary);
  flex: 1;
}

.guide-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  margin: 0;
  color: var(--ink-secondary);
  font-size: var(--text-meta);
}

.guide-meta span + span::before {
  content: "·";
  margin-right: 0.65em;
  color: var(--border-strong);
}

.guide-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.guide-list a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--border);
  color: inherit;
  text-decoration: none;
  min-height: 44px;
  transition: transform var(--dur-fast) var(--ease-out);
}

.guide-list li:first-child a {
  padding-top: 0;
}

.guide-list li:last-child a {
  border-bottom: 0;
  padding-bottom: 0;
}

.guide-list h3 {
  font-size: var(--text-card);
  line-height: 1.3;
  margin: 0;
  transition: color var(--dur-fast) var(--ease-out);
}

.guide-list a:hover {
  transform: translateY(-2px);
}

.guide-list a:hover h3 {
  color: var(--accent);
}

.grid-3 {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.grid-2 {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
}

@media (min-width: 800px) {
  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.section--muted {
  background: color-mix(in srgb, var(--surface) 70%, var(--bg));
  border-block: 1px solid var(--border);
}

.article-header {
  padding-block: var(--space-7) var(--space-5);
}

.article-header .meta {
  margin-bottom: var(--space-3);
}

.article-body {
  padding-bottom: var(--space-9);
}

.empty-state {
  padding: var(--space-6);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--ink-secondary);
}

#temata,
#jak-vznika {
  scroll-margin-top: calc(var(--header-h) + 12px);
}

@media (prefers-reduced-motion: reduce) {
  .guide-featured,
  .guide-list a {
    transition: none;
  }

  .guide-featured:hover,
  .guide-list a:hover {
    transform: none;
  }
}
