/* ==========================================================================
   Průvodce Lenormand: JEDINÝ stylový soubor celého webu.
   Nezakládej další CSS ani <style> ve stránkách. Chybí komponenta? Přidej ji sem
   jako další oddíl. Barvy a písma se mění jen v tokenech nahoře (:root).
   Písma: Instrument Serif (nadpisy) a Geist (text), hostované na webu přes @fontsource.
   ========================================================================== */
/* Layout: čistý současný web. Velká serifová typografie, hodně vzduchu, karty kreslené jako tiskovina. Obálka jen jako malý náhled produktu. */
:root {
  --bg: #f5f5f3;
  --surface: #ffffff;
  --ink: #141416;
  --muted: #6a6a72;
  --line: #e2e2de;
  --accent: #5a2470;
  --on-accent: #ffffff;
  --shadow: rgba(20, 20, 22, .10);
  --f-display: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --f-body: "Geist Variable", "Segoe UI", system-ui, -apple-system, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f0f11; --surface: #18181b; --ink: #f1f1f3; --muted: #a2a2ab; --line: #2a2a2f;
    --accent: #cfa6e0; --on-accent: #1a0f20; --shadow: rgba(0, 0, 0, .45);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f0f11; --surface: #18181b; --ink: #f1f1f3; --muted: #a2a2ab; --line: #2a2a2f;
  --accent: #cfa6e0; --on-accent: #1a0f20; --shadow: rgba(0, 0, 0, .45);
  color-scheme: dark;
}

* { box-sizing: border-box; }
img { height: auto; display: block; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--f-body); font-size: 1.0625rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 1120px; margin-inline: auto; padding-inline: 24px; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 400; line-height: 1.05; letter-spacing: -.01em; text-wrap: balance; margin: 0; }
h2 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); }
h3 { font-size: 1.6rem; line-height: 1.15; }
p { margin: 0; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.eyebrow { font-size: .8rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.muted { color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--bg);
  font: 500 1rem/1 var(--f-body); text-decoration: none;
  padding: 17px 26px; border-radius: 999px;
  transition: transform .2s ease, opacity .2s ease;
}
.btn:hover { transform: translateY(-1px); opacity: .9; }
.btn .sep { opacity: .45; }
.link { font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.link:hover { border-color: var(--ink); }

/* Navigace */
.nav { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 24px; }
.brand { font-family: var(--f-display); font-size: 1.35rem; text-decoration: none; }
.nav .link { font-size: .95rem; }

/* Úvod */
.hero {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 48px; align-items: center;
  padding-block: clamp(40px, 8vw, 104px) clamp(56px, 8vw, 112px);
}
.hero-text { display: grid; gap: 28px; min-width: 0; }
.hero h1 { font-size: clamp(3rem, 7.4vw, 5.6rem); line-height: .98; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero .lead { font-size: 1.2rem; color: var(--muted); max-width: 31em; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.product { display: flex; align-items: center; gap: 14px; padding-top: 8px; }
.product img { width: 46px; border-radius: 3px; box-shadow: 0 4px 12px var(--shadow); }
.product p { font-size: .92rem; line-height: 1.45; color: var(--muted); }
.product strong { color: var(--ink); font-weight: 500; }

/* Kreslená karta */
.lcard {
  aspect-ratio: 5 / 7.2;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 1px 2px var(--shadow), 0 18px 40px -18px var(--shadow);
}
.lcard .in {
  height: 100%; border: 1px solid var(--line); border-radius: 8px;
  display: grid; grid-template-rows: auto 1fr auto; padding: 12px 12px 14px; text-align: center;
}
.lcard .no { font-size: .78rem; font-weight: 500; color: var(--muted); text-align: left; font-variant-numeric: tabular-nums; }
.lcard .big { font-family: var(--f-display); font-style: italic; font-size: 4.2rem; line-height: 1; align-self: center; }
.lcard .nm { font-size: .78rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.lcard.accent { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.lcard.accent .in { border-color: color-mix(in srgb, var(--on-accent) 30%, transparent); }
.lcard.accent .no { color: var(--on-accent); opacity: .7; }

.fan { position: relative; height: clamp(320px, 38vw, 440px); }
.fan .lcard { position: absolute; width: clamp(150px, 17vw, 200px); top: 50%; left: 50%; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.fan .c1 { transform: translate(-112%, -46%) rotate(-11deg); }
.fan .c2 { transform: translate(-50%, -54%) rotate(0deg); z-index: 2; }
.fan .c3 { transform: translate(12%, -46%) rotate(11deg); }
.fan:hover .c1 { transform: translate(-122%, -48%) rotate(-14deg); }
.fan:hover .c3 { transform: translate(22%, -48%) rotate(14deg); }

/* Sekce */
section { padding-block: clamp(64px, 9vw, 120px); border-top: 1px solid var(--line); }
.head { display: grid; gap: 16px; max-width: 44rem; margin-bottom: clamp(32px, 5vw, 56px); }
.head p:not(.eyebrow) { font-size: 1.15rem; color: var(--muted); }

/* Ukázka */
.taste { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px 64px; align-items: start; }
.taste > * { min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font: 500 .92rem/1 var(--f-body); color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 10px 14px; cursor: pointer; transition: border-color .15s ease, background .15s ease;
}
.chip i { font-style: normal; color: var(--muted); margin-right: 6px; font-variant-numeric: tabular-nums; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip[aria-pressed="true"] i { color: var(--bg); opacity: .6; }
.result {
  position: sticky; top: calc(env(safe-area-inset-top, 0px) + 24px);
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  padding: 28px; display: grid; gap: 22px;
}
.pair { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.pair .lcard { box-shadow: none; }
.pair .lcard .big { font-size: 3rem; }
.pair .plus { font-family: var(--f-display); font-size: 2rem; color: var(--muted); }
.meaning { font-family: var(--f-display); font-size: 1.9rem; line-height: 1.15; min-height: 2.3em; }
.result small { font-size: .85rem; color: var(--muted); line-height: 1.5; }

/* Tip */
.tip { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px 64px; }
.tip > * { min-width: 0; }
.qa { border-top: 1px solid var(--line); }
.qa > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; padding-block: 20px; border-bottom: 1px solid var(--line); }
.qa > div > span { display: grid; gap: 4px; align-content: start; }
.qa small { font-size: .75rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.qa .bad { color: var(--muted); text-decoration: line-through; }
.qa .good { font-family: var(--f-display); font-size: 1.35rem; line-height: 1.25; }

/* Obsah */
.parts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.parts li { display: grid; gap: 12px; align-content: start; border-top: 1px solid var(--ink); padding-top: 18px; }
.parts .eyebrow { color: var(--accent); }
.parts p { font-size: .98rem; color: var(--muted); }

/* Tabule */
.board-scroll { overflow-x: auto; padding-bottom: 8px; }
.board { display: grid; grid-template-columns: repeat(9, minmax(64px, 1fr)); gap: 8px; min-width: 620px; }
.board .card {
  aspect-ratio: 5 / 6.4; background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: 8px 9px; display: flex; flex-direction: column; justify-content: space-between;
}
.board .card b { font-family: var(--f-display); font-style: italic; font-weight: 400; font-size: 1.35rem; line-height: 1; }
.board .card span { font-size: .72rem; font-weight: 500; line-height: 1.2; overflow-wrap: anywhere; }
.board .card.osk { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 48px; margin-top: 32px; max-width: 920px; }
.notes p { color: var(--muted); }
.notes strong { color: var(--ink); font-weight: 500; }

/* Autorka */
.author { display: grid; gap: 32px; }
.quote { font-family: var(--f-display); font-size: clamp(2rem, 4.4vw, 3.5rem); line-height: 1.1; max-width: 22em; text-wrap: balance; margin: 0; }
.quote em { color: var(--accent); }
.byline { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: baseline; }
.byline strong { font-weight: 500; }
.author-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 64px; margin-top: 16px; }
.author-cols > * { min-width: 0; }
.rules { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rules li { padding-block: 14px; border-bottom: 1px solid var(--line); }

/* Nákup */
.buy {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 32px 48px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px;
  padding: clamp(24px, 4vw, 44px);
}
.buy > * { min-width: 0; }
.buy img { width: 116px; border-radius: 4px; box-shadow: 0 12px 28px -12px var(--shadow); }
.buy h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); margin-top: 8px; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 12px 0 0; font-size: .92rem; color: var(--muted); }
.facts div { display: flex; gap: 6px; }
.facts dt { color: var(--ink); font-weight: 500; }
.facts dd { margin: 0; font-variant-numeric: tabular-nums; }
.buy-cta { display: grid; gap: 10px; justify-items: end; text-align: right; }
.price { font-family: var(--f-display); font-size: 2.6rem; line-height: 1; }
.buy-cta small { font-size: .85rem; color: var(--muted); }

/* Edice */
.series { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.series li { display: grid; gap: 8px; align-content: start; }
.series p { color: var(--muted); font-size: .98rem; }
.series li { border-top: 1px solid var(--line); padding-top: 18px; }
.status { justify-self: start; font-size: .78rem; font-weight: 500; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); margin-bottom: 6px; }
.status.done { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

footer { padding-block: 36px 56px; border-top: 1px solid var(--line); font-size: .88rem; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

@media (max-width: 900px) {
  .parts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .hero, .taste, .tip, .author-cols, .notes { grid-template-columns: minmax(0, 1fr); }
  .fan { height: 240px; }
  .fan .lcard { width: 128px; }
  .fan .lcard .big { font-size: 3.2rem; }
  .result { position: static; }
  .buy { grid-template-columns: auto minmax(0, 1fr); }
  .buy-cta { grid-column: 1 / -1; justify-items: start; text-align: left; }
  .series { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .parts { grid-template-columns: minmax(0, 1fr); }
  .qa > div { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .buy { grid-template-columns: minmax(0, 1fr); }
  .buy img { width: 96px; }
  .facts { display: grid; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .fan .lcard, .btn, .chip { transition: none; }
  .fan:hover .c1 { transform: translate(-112%, -46%) rotate(-11deg); }
  .fan:hover .c3 { transform: translate(12%, -46%) rotate(11deg); }
}

/* Hlavička sekce bez spodního odsazení (když stojí vedle obsahu ve sloupci) */
.head-tight { margin-bottom: 0; }

/* Stránka 404 */
.chyba { padding-block: clamp(64px, 12vw, 160px); display: grid; gap: 24px; justify-items: start; max-width: 40rem; }
.chyba h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
.chyba p { color: var(--muted); font-size: 1.15rem; }
