/* ===== Barvy a základní hodnoty (převzato z obálky knihy) ===== */
:root {
  --green: #2f5a50;       /* tmavě zelený titulek */
  --orange: #e8792b;      /* oranžové „HUBNUTÍ“ a slunce */
  --orange-dark: #c25f17; /* tmavší oranžová pro text a hover (lepší kontrast) */
  --cream: #fbf3e7;       /* světlé pozadí */
  --sand: #f1e1c8;        /* pískové pozadí sekcí */
  --text: #2b2b2b;
  --muted: #5d5d5d;
  --radius: 14px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ===== Základ ===== */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--cream);
}

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

h1, h2, h3 { color: var(--green); line-height: 1.2; margin: 0 0 .6em; }
h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
h3 { font-size: 1.15rem; }
p  { margin: 0 0 1em; }

.wrap   { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* ===== Úvodní blok (hero) ===== */
.hero {
  padding: 56px 0 64px;
  background: linear-gradient(180deg, var(--cream) 0%, var(--sand) 100%);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .85rem;
  font-weight: 600;
  color: var(--muted);
}

h1 {
  font-size: clamp(2.6rem, 7vw, 4.5rem);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .02em;
}
h1 span { display: block; color: var(--orange); }

.lead { font-size: 1.2rem; }
.lead strong { color: var(--orange-dark); }

.hero__meta { margin-top: 1em; color: var(--muted); font-size: .95rem; }

.hero__cover {
  width: 100%;
  max-width: 380px;
  justify-self: center;
  border-radius: 6px;
  box-shadow: 0 20px 40px rgba(47, 90, 80, .25);
}

/* ===== Tlačítka ===== */
.buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5em; }

.btn {
  display: inline-block;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .2s, color .2s;
}
.btn--primary   { background: var(--orange-dark); color: #fff; }
.btn--primary:hover { background: var(--green); }
.btn--secondary { border: 2px solid var(--green); color: var(--green); }
.btn--secondary:hover { background: var(--green); color: #fff; }
.btn:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

/* ===== Sekce ===== */
.section { padding: 64px 0; }
.section--tint { background: var(--sand); }

.quote {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--green);
  border-left: 4px solid var(--orange);
  padding-left: 16px;
  margin: 1.5em 0;
}

/* Karty „Co v knize najdete“ */
.cards {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  border-top: 4px solid var(--orange);
}
.card p { margin: 0; color: var(--muted); }
.card:has(a) { padding: 0; transition: box-shadow .2s, transform .2s; }
.card a {                     /* odkaz vyplní celou kartu */
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 24px;
  border-radius: var(--radius);
  color: inherit;
  text-decoration: none;
}
.card:has(a:hover) { box-shadow: 0 10px 24px rgba(47, 90, 80, .18); transform: translateY(-3px); }
.card a:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.more {
  margin-top: auto;
  padding-top: 12px;
  font-weight: 600;
  color: var(--orange-dark);
}

/* Autorky */
.authors {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.authors a {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border-radius: var(--radius);
  padding: 20px 24px 24px;
  color: inherit;
  text-decoration: none;
  transition: box-shadow .2s, transform .2s;
}
.authors a:hover { box-shadow: 0 10px 24px rgba(47, 90, 80, .18); transform: translateY(-3px); }
.authors a:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.authors img {
  width: 120px;
  height: 120px;
  object-fit: cover;          /* ořízne fotku na čtverec, nedeformuje ji */
  object-position: top;
  border-radius: 50%;
  margin-bottom: 14px;
}
.authors strong { display: block; color: var(--green); font-size: 1.1rem; }
.authors span   { color: var(--muted); }
.authors em {
  margin-top: auto;           /* odkaz vždy dole na kartě */
  padding-top: 12px;
  font-style: normal;
  font-weight: 600;
  color: var(--orange-dark);
}

/* ===== Podstránky autorek ===== */
.topbar { background: var(--green); padding: 12px 0; }
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.topbar a:hover { text-decoration: underline; }

.author {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 8px 32px;
  align-items: end;
}
.author__photo  { border-radius: var(--radius); box-shadow: 0 12px 28px rgba(47, 90, 80, .2); }
.author__name   { font-size: clamp(1.9rem, 5vw, 2.6rem); margin-bottom: .2em; }
.author__role   { font-size: 1.15rem; color: var(--orange-dark); font-weight: 600; }
.author__bio    { grid-column: 1 / -1; margin-top: 24px; }

.brings {
  background: var(--sand);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 28px 0;
}
.brings h2 { font-size: 1.15rem; margin-bottom: .4em; }
.brings p  { margin: 0; }

.excerpt { margin: 0; }
.excerpt blockquote {
  margin: 0;
  border-left: 4px solid var(--orange);
  padding-left: 16px;
  font-size: 1.15rem;
  font-style: italic;
  color: var(--green);
}
.excerpt figcaption { margin-top: 8px; padding-left: 20px; color: var(--muted); font-size: .9rem; }

/* ===== Podstránky témat ===== */
.topic__photo {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 28px;
}
.topic__title { font-size: clamp(1.9rem, 5vw, 2.6rem); }
.topic h2 { font-size: 1.3rem; margin-top: 1.6em; }

.learn { list-style: none; padding: 0; margin: 0 0 28px; }
.learn li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
}
.learn li::before {           /* oranžová fajfka místo puntíku */
  content: "✓";
  position: absolute;
  left: 0;
  font-weight: 700;
  color: var(--orange-dark);
}

.topic__authors { margin-top: 24px; color: var(--muted); }
.topic__authors a { color: var(--green); font-weight: 600; }
.note { font-size: .9rem; color: var(--muted); }

/* ===== Stránka „Kde koupit“ ===== */
.shop-main {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  align-items: center;
  background: #fff;
  border-radius: var(--radius);
  border-top: 4px solid var(--orange);
  padding: 24px;
  margin: 28px 0 40px;
}
.shop-main img { border-radius: 4px; box-shadow: 0 8px 20px rgba(47, 90, 80, .2); }
.shop-main h2 { margin-bottom: .3em; }
.shop-main--author { margin-top: -16px; }   /* těsně pod dlaždicí Grady */
.shop-main--author img {
  width: 120px;
  height: 120px;
  object-fit: cover;          /* kulatý výřez fotky jako na hlavní stránce */
  object-position: top;
  border-radius: 50%;
  justify-self: center;
}
.shop-main--author p a { color: var(--green); font-weight: 600; }

.isbn { white-space: nowrap; }

.shops {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.shops a {                    /* dlaždice připravená na pozdější logo */
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;               /* všechny dlaždice v řadě stejně vysoké */
  min-height: 84px;
  padding: 14px 18px;
  background: #fff;
  border: 2px solid var(--sand);
  border-radius: var(--radius);
  color: var(--green);
  text-decoration: none;
  transition: border-color .2s;
}
.shops a:hover { border-color: var(--orange); }
.shops a:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.shops strong { font-size: 1.1rem; }
.shops span   { font-size: .85rem; color: var(--muted); }

.others { margin-top: 40px; border-top: 1px solid var(--sand); padding-top: 24px; }
.others h2 { font-size: 1.15rem; }
.others ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.others a  { color: var(--green); font-weight: 600; }

/* Odkaz na online kalkulačky */
.calc {
  background: #fff;
  border-radius: var(--radius);
  border-top: 4px solid var(--orange);
  padding: 28px 32px;
}
.calc .btn { margin: .4em 0 1em; }
.calc .note { margin: 0; }

/* Základní údaje o knize */
.facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 24px;
  margin: 0;
}
.facts dt { font-weight: 600; color: var(--green); }
.facts dd { margin: 0; }

/* ===== Patička ===== */
.footer {
  background: var(--green);
  color: #fff;
  padding: 28px 0;
  font-size: .9rem;
}
.footer p { margin: 0; }

/* ===== Mobilní zobrazení ===== */
@media (max-width: 760px) {
  .hero { padding: 32px 0 48px; }
  .hero__grid { grid-template-columns: 1fr; gap: 32px; }
  .hero__cover { max-width: 260px; order: -1; } /* obálka nahoře */
  .section { padding: 48px 0; }
  .facts { grid-template-columns: 1fr; gap: 0; }
  .facts dd { margin-bottom: 10px; }
  .author { grid-template-columns: 110px 1fr; gap: 8px 18px; }
  .author__bio { margin-top: 16px; }
  .shop-main { grid-template-columns: 1fr; gap: 16px; padding: 20px; text-align: center; }
  .shop-main img { width: 120px; margin: 0 auto; }
  .calc { padding: 22px 20px; }
}
