/* Michal Hlavačka — Curious Mind Investing */
:root {
  --bg: #F8F9FA;
  --bg-alt: #EEF1F4;
  --ink: #10243A;
  --muted: #5B6773;
  --teal: #19A6A6;
  --line: rgba(16, 36, 58, 0.14);
  --line-soft: rgba(16, 36, 58, 0.08);
  --neg: #9B2C2C;
  --sans: "Manrope", "Segoe UI", system-ui, sans-serif;
  --max: 74rem;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--ink); }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 40;
}
.skip:focus { top: 1rem; }

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

@media (min-width: 840px) {
  .wrap {
    width: min(100% - 8vw, var(--max));
  }
  .hero .wrap,
  header.site .wrap {
    width: min(100% - 8.5vw, 90rem);
  }
}

header.site {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  background: transparent;
}
header.site.is-stuck {
  position: fixed;
  background: color-mix(in srgb, var(--bg) 92%, white);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line-soft);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem 2.25rem;
  min-height: 4.75rem;
}

.logo {
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
  flex: 0 0 auto;
}

.nav nav { flex: 1 1 auto; }

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1.7rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.98rem;
  font-weight: 500;
}
.nav-links a {
  color: var(--ink);
  text-decoration: none;
}
.nav-links a:hover { color: var(--teal); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.82rem 1.3rem;
  font-weight: 650;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  line-height: 1;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.btn-primary:hover { background: #0a1a2b; color: #fff; }
.btn-outline {
  background: #fff;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-outline:hover { background: var(--bg); }
.btn-nav {
  padding: 0.55rem 1.05rem;
  font-size: 0.9rem;
  background: color-mix(in srgb, #fff 82%, transparent);
  flex: 0 0 auto;
  margin-left: auto;
}
.arrow { font-weight: 500; }
.play {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 5px 0 5px 8px;
  border-color: transparent transparent transparent var(--ink);
  display: inline-block;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 7.25rem 0 3.25rem;
  overflow: hidden;
  background: var(--bg);
}

.hero-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-photo picture {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: auto;
  display: block;
}
.hero-photo img {
  display: block;
  height: 100%;
  width: auto;
  max-width: none;
  object-fit: fill;
}
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    var(--bg) 0%,
    var(--bg) 38%,
    rgba(248, 249, 250, 0.88) 46%,
    rgba(248, 249, 250, 0.45) 54%,
    rgba(248, 249, 250, 0.12) 62%,
    transparent 72%
  );
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 38rem;
  padding-bottom: 0.5rem;
}

.eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 1.7rem;
}
.eyebrow::after {
  content: "";
  display: block;
  width: 4.4rem;
  height: 2px;
  background: var(--teal);
  margin-top: 0.85rem;
}

h1, h2, h3 { letter-spacing: -0.035em; line-height: 1.08; margin: 0; }

h1 {
  font-size: clamp(2.35rem, 5.1vw, 4rem);
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 1.25rem;
}

.lede {
  font-size: clamp(1.05rem, 1.55vw, 1.2rem);
  line-height: 1.55;
  font-weight: 500;
  color: color-mix(in srgb, var(--ink) 82%, #6b7280);
  max-width: 30rem;
  margin: 0 0 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 3.4rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, auto));
  gap: 0;
  max-width: 38rem;
}
.hero-stat {
  padding: 0 1.6rem;
  border-right: 1px solid var(--line);
}
.hero-stat:first-child { padding-left: 0; }
.hero-stat:last-child { padding-right: 0; border-right: 0; }

.hero-stat-value {
  font-size: clamp(1.7rem, 2.6vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.hero-stat-label {
  margin-top: 0.4rem;
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--muted);
  font-weight: 500;
  max-width: 10rem;
}
.hero-asof {
  margin: 1.1rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
  max-width: 32rem;
}

/* Sections */
.section { padding: 5.25rem 0; }
.section-alt { background: var(--bg-alt); }

h2 {
  font-size: clamp(1.85rem, 3.4vw, 2.75rem);
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 1rem;
}
.section-lead {
  max-width: 40rem;
  color: var(--muted);
  margin: 0 0 2.5rem;
  font-weight: 500;
}

.pillars {
  display: grid;
  gap: 2rem 2.5rem;
}
@media (min-width: 800px) {
  .pillars { grid-template-columns: 1fr 1fr; }
}
.pillar {
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
}
.pillar-num {
  margin: 0 0 0.55rem;
  color: var(--teal);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
}
.pillar h3 {
  font-size: 1.3rem;
  font-weight: 750;
  margin: 0 0 0.5rem;
}
.pillar p { margin: 0; color: var(--muted); font-size: 1rem; }

.record-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2.5rem;
  max-width: 28rem;
  margin: 0 0 2.75rem;
}
.record-highlights .hero-stat-label { max-width: none; }

.subhead {
  font-size: 1.15rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

.years {
  display: grid;
  gap: 0;
  max-width: 36rem;
  margin: 0 0 1.1rem;
}
.year-row {
  display: grid;
  grid-template-columns: 6.5rem 1fr 1fr;
  gap: 0.75rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line-soft);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.year-head {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 650;
  border-bottom-color: var(--line);
  padding-top: 0;
}
.year-row .pos { color: var(--ink); }
.year-row .neg { color: var(--muted); }

.notes {
  font-size: 0.82rem;
  color: var(--muted);
  max-width: 46rem;
  margin: 0 0 2.5rem;
  line-height: 1.55;
}
.notes a { color: var(--ink); text-underline-offset: 2px; }

.milestones {
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
  max-width: 42rem;
}
.milestones li {
  padding: 0.85rem 0;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
}
.milestones li:last-child { border-bottom: 1px solid var(--line-soft); }
.milestones strong { color: var(--ink); font-weight: 700; }

.section-cta { margin: 0; }

.cards {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 800px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
}
.card {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 1.4rem 0 0;
  border-top: 2px solid var(--teal);
}
.card h3 {
  font-size: 1.15rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.25;
  margin: 0 0 0.5rem;
}
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.card-kicker {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 650;
  color: var(--teal);
  margin: 0 0 0.65rem !important;
}
.card:hover h3 { color: var(--teal); }

.podcast-grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 880px) {
  .podcast-grid { grid-template-columns: 0.9fr 1.2fr; align-items: start; }
}
.embed {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #10243A;
  overflow: hidden;
  border-radius: 8px;
}
.embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.caption {
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.about-grid {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 900px) {
  .about-grid { grid-template-columns: 0.95fr 1.05fr; align-items: start; gap: 4rem; }
}
.about-photos { display: grid; gap: 0.75rem; }
.about-hero-shot img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 16%;
  border-radius: 8px;
}
.about-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.about-pair img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 8px;
}
.about-copy p { margin: 0 0 1rem; color: var(--muted); }
.about-copy p:last-child { margin-bottom: 0; }
.about-copy .eyebrow, .about-copy h2 { color: var(--ink); }
.about-copy h2 { margin-bottom: 1.1rem; }

.contact-block { max-width: 40rem; }

footer.site {
  background: var(--ink);
  color: #c5ced6;
  padding: 3rem 0 2.25rem;
  font-size: 0.88rem;
  line-height: 1.55;
}
footer.site h2 {
  color: #fff;
  font-size: 0.95rem;
  margin: 0 0 0.85rem;
  letter-spacing: 0;
  font-weight: 700;
}
.disclaimer p { margin: 0 0 0.75rem; max-width: 58rem; }
.disclaimer a { color: #e8eef2; }
.legal-links { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; margin: 1.25rem 0 0; }
.copy { margin: 1.4rem 0 0; color: #8b96a0; }

@media (max-width: 839px) {
  header.site { background: color-mix(in srgb, var(--bg) 94%, white); }
  .nav { min-height: 3.75rem; gap: 0.6rem 0.75rem; flex-wrap: wrap; }
  .nav nav { flex: 1 1 100%; order: 3; }
  .nav-links { gap: 0.35rem 1rem; font-size: 0.88rem; padding: 0 0 0.65rem; }
  .hero {
    display: block;
    min-height: 0;
    padding: 3.75rem 0 2.25rem;
  }
  .hero-photo {
    position: relative;
    width: 100%;
    height: min(115vw, 34rem);
    margin-bottom: 1.25rem;
    overflow: hidden;
  }
  .hero-photo picture {
    position: absolute;
    inset: 0;
    height: 100%;
    width: 100%;
    transform: none;
  }
  .hero-photo img {
    position: absolute;
    top: 0;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    height: 100%;
    width: auto;
    max-width: none;
  }
  .hero-photo::after {
    background: linear-gradient(180deg, transparent 62%, var(--bg) 100%);
  }
  .hero-copy { max-width: none; }
  .hero-actions { margin-bottom: 2.25rem; }
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 1rem 0;
  }
  .hero-stat {
    padding: 0.85rem 0 0;
    border-right: 0;
    border-top: 1px solid var(--line);
  }
  .hero-stat:first-child { padding-top: 0; border-top: 0; }
  .hero-stat-label { max-width: none; }
}

@media (min-width: 840px) and (max-width: 1024px) {
  .nav-links { gap: 0.2rem 1.15rem; font-size: 0.9rem; }
  .hero-copy { max-width: 32rem; }
}
