/* Jim Beam Team - redesign 2026
   Paleta odvozena z tymoveho dresu: kremova, uhlova cern, brick red z rozety. */

:root {
  --bg:        #12100d;
  --bg-2:      #1a1713;
  --surface:   #211d18;
  --surface-2: #2a251e;
  --line:      #3a332a;
  --cream:     #f4ecdd;
  --cream-dim: #cfc4b2;
  --muted:     #9a8f7d;
  --brick:     #b03e30;
  --amber:     #d9a44b;
  --radius:    4px;
  --wrap:      1180px;
  --font-d:    'Bitter', Georgia, 'Times New Roman', serif;
  --font-b:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--cream-dim);
  font-family: var(--font-b);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--amber); text-decoration: none; }
a:hover { color: var(--cream); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 {
  font-family: var(--font-d);
  color: var(--cream);
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 .6em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }

.eyebrow {
  font-family: var(--font-b);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 .8rem;
}

/* ---------- hlavicka ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(18,16,13,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap {
  display: flex; align-items: center; gap: 28px;
  min-height: 64px;
}
.brand {
  display: flex; align-items: center; gap: 11px;
  font-family: var(--font-d); font-weight: 800;
  color: var(--cream); font-size: 1.02rem;
  letter-spacing: .02em; white-space: nowrap;
}
.brand:hover { color: var(--cream); }
.brand .mark {
  width: 32px; height: 32px; flex: 0 0 32px;
  border: 1.5px solid var(--brick); border-radius: 50%;
  display: grid; place-items: center;
  font-size: .68rem; font-weight: 800; letter-spacing: 0;
  color: var(--brick); background: rgba(176,62,48,.09);
}
.nav { display: flex; gap: 22px; margin-left: auto; flex-wrap: wrap; }
.nav a {
  color: var(--cream-dim); font-size: .92rem; font-weight: 500;
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a.active { color: var(--cream); border-bottom-color: var(--brick); }
.nav-toggle { display: none; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 74vh;
  display: flex; align-items: flex-end;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.5) contrast(1.05); }
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(18,16,13,.72) 0%, rgba(18,16,13,.55) 40%, rgba(18,16,13,.96) 100%);
}
.hero-inner { position: relative; padding: 64px 0 56px; width: 100%; }
.hero h1 {
  font-size: clamp(2.4rem, 7vw, 4.6rem);
  margin-bottom: .3em; text-wrap: balance;
}
.hero .lede { font-size: clamp(1.02rem, 2vw, 1.22rem); max-width: 58ch; color: var(--cream-dim); }

.stats { display: flex; flex-wrap: wrap; gap: 40px; margin-top: 40px; }
.stat .n {
  font-family: var(--font-d); font-size: 2rem; font-weight: 800;
  color: var(--cream); line-height: 1;
}
.stat .l {
  font-size: .74rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-top: 7px;
}

/* ---------- sekce ---------- */
section { padding: 72px 0; }
section.tight { padding: 48px 0; }
.section-head { margin-bottom: 40px; max-width: 62ch; }

/* ---------- karty ---------- */
.cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color .18s, transform .18s;
}
.card:hover { border-color: var(--brick); transform: translateY(-2px); }
.card-cover { aspect-ratio: 4 / 3; background: var(--bg-2); overflow: hidden; }
.card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card:hover .card-cover img { transform: scale(1.04); }
.card-body { padding: 17px 19px 20px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { margin-bottom: .3em; font-size: 1.06rem; }
.card-meta { font-size: .82rem; color: var(--muted); margin-top: auto; padding-top: 12px; }
.card-note { font-size: .88rem; color: var(--cream-dim); margin: 0 0 4px; }

/* ---------- rok / timeline ---------- */
.year-nav {
  display: flex; gap: 8px; flex-wrap: wrap;
  padding: 20px 0; border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}
.year-nav a {
  font-family: var(--font-d); font-weight: 700; font-size: 1rem;
  color: var(--cream-dim); padding: 7px 15px;
  border: 1px solid var(--line); border-radius: 999px;
}
.year-nav a:hover, .year-nav a.active {
  color: var(--bg); background: var(--amber); border-color: var(--amber);
}
.year-block { padding: 56px 0; border-bottom: 1px solid var(--line); }
.year-block:last-child { border-bottom: 0; }
.year-head { display: flex; align-items: baseline; gap: 18px; margin-bottom: 30px; }
.year-head .y {
  font-family: var(--font-d); font-weight: 800;
  font-size: clamp(2.6rem, 8vw, 4.4rem); color: var(--surface-2);
  line-height: .9; letter-spacing: -.02em;
}
.year-head .c { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ---------- fotogalerie ---------- */
.gal-head { padding: 44px 0 28px; border-bottom: 1px solid var(--line); }
.crumbs { font-size: .84rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--cream-dim); }
.crumbs a:hover { color: var(--amber); }

.grid {
  columns: 4 250px;
  column-gap: 12px;
  padding: 32px 0 64px;
}
.grid figure { margin: 0 0 12px; break-inside: avoid; }
.grid button.ph {
  display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in;
  background: var(--bg-2); border-radius: var(--radius); overflow: hidden;
  line-height: 0;
}
.grid button.ph img { width: 100%; transition: opacity .25s, transform .35s; opacity: .93; }
.grid button.ph:hover img { opacity: 1; transform: scale(1.02); }
.grid button.ph:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

/* ---------- lightbox ---------- */
.lb {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(9,8,6,.97);
  display: none; align-items: center; justify-content: center;
}
.lb.open { display: flex; }
.lb-stage { position: relative; width: 100%; height: 100%; display: grid; place-items: center; padding: 56px 68px; }
.lb-stage img {
  max-width: 100%; max-height: 100%;
  object-fit: contain; border-radius: 2px;
  box-shadow: 0 24px 70px rgba(0,0,0,.6);
}
.lb-bar {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; gap: 18px;
  padding: 16px 22px; font-size: .86rem; color: var(--cream-dim);
  background: linear-gradient(180deg, transparent, rgba(9,8,6,.85));
}
.lb-bar .cap { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-bar .idx { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lb-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 50px; height: 50px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(26,23,19,.8);
  color: var(--cream); font-size: 1.5rem; cursor: pointer; line-height: 1;
  display: grid; place-items: center;
}
.lb-btn:hover { background: var(--brick); border-color: var(--brick); }
.lb-prev { left: 14px; } .lb-next { right: 14px; }
.lb-close {
  position: absolute; top: 14px; right: 14px;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(26,23,19,.8);
  color: var(--cream); font-size: 1.3rem; cursor: pointer; line-height: 1;
}
.lb-close:hover { background: var(--brick); border-color: var(--brick); }

/* ---------- textove stranky ---------- */
.prose { padding: 44px 0 72px; }
.prose p { margin: 0 0 1.05em; }
.prose h2 { margin-top: 2em; }
.prose ul { padding-left: 1.2em; }
.prose .bullet {
  padding-left: 1.15em; position: relative; margin: 0 0 .85em;
}
.prose .bullet::before {
  content: ''; position: absolute; left: 0; top: .68em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--brick);
}
.prose figure { margin: 2em 0; }
.prose figure img { border-radius: var(--radius); border: 1px solid var(--line); }

/* seznam clenu */
.people { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); margin: 28px 0; }
.person {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 15px 17px;
}
.person .nick { font-family: var(--font-d); font-weight: 700; color: var(--cream); }
.person .role { font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--amber); margin-bottom: 5px; }

/* ---------- patka ---------- */
.site-foot {
  border-top: 1px solid var(--line);
  padding: 44px 0 56px; margin-top: 40px;
  font-size: .88rem; color: var(--muted);
}
.site-foot .cols { display: flex; gap: 48px; flex-wrap: wrap; justify-content: space-between; }
.site-foot a { color: var(--cream-dim); }
.site-foot a:hover { color: var(--amber); }
.site-foot .fnav { display: flex; gap: 20px; flex-wrap: wrap; }

.preview-flag {
  background: var(--brick); color: #fff;
  text-align: center; padding: 9px 16px; font-size: .84rem; font-weight: 500;
}
.preview-flag strong { font-weight: 700; }

@media (max-width: 780px) {
  body { font-size: 16px; }
  .site-head .wrap { flex-wrap: wrap; gap: 12px; min-height: 0; padding-top: 12px; padding-bottom: 12px; }
  .nav { margin-left: 0; width: 100%; gap: 16px; font-size: .88rem; }
  .stats { gap: 26px; }
  .grid { columns: 2 140px; column-gap: 8px; }
  .grid figure { margin-bottom: 8px; }
  .lb-stage { padding: 44px 8px 64px; }
  .lb-btn { width: 42px; height: 42px; }
  section { padding: 48px 0; }
}

/* ---------- recepty ---------- */
.recept-index {
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(196px, 1fr));
  margin: 8px 0 12px;
}
.recept-index a {
  display: flex; align-items: center; gap: 11px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 9px 12px 9px 9px;
  color: var(--cream-dim); font-size: .93rem; line-height: 1.3;
  transition: border-color .16s, color .16s;
}
.recept-index a:hover { border-color: var(--brick); color: var(--cream); }
.recept-index .th {
  width: 46px; height: 40px; flex: 0 0 46px;
  border-radius: 3px; overflow: hidden; background: var(--bg-2);
}
.recept-index .th img { width: 100%; height: 100%; object-fit: cover; }
.recept-index .no-th {
  width: 46px; height: 40px; flex: 0 0 46px;
  border-radius: 3px; background: var(--bg-2);
  display: grid; place-items: center;
  color: var(--line); font-family: var(--font-d); font-weight: 800; font-size: .95rem;
}

.recept { padding: 40px 0; border-top: 1px solid var(--line); }
.recept:first-of-type { border-top: 0; }
.recept-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.recept-head h2 { margin: 0 0 .5em; }
.recept-head .up {
  font-size: .76rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); white-space: nowrap;
}
.recept-body { overflow: hidden; }
.recept-body h3 {
  font-size: .8rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--amber); margin: 1.6em 0 .5em; font-family: var(--font-b); font-weight: 600;
}
.recept-body h3:first-child { margin-top: 0; }
.recept-body p { margin: 0 0 .9em; }
.recept-foto {
  float: right; margin: 0 0 18px 22px;
  display: flex; flex-direction: column; gap: 10px;
}
.recept-foto img {
  border-radius: 3px; border: 1px solid var(--line);
  width: 204px; max-width: 40vw;
}
@media (max-width: 620px) {
  .recept-foto { float: none; margin: 0 0 18px; flex-direction: row; flex-wrap: wrap; }
  .recept-foto img { max-width: 46%; }
  .recept-index { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}

/* ---------- hero pas na podstrankach ---------- */
.hero-band {
  position: relative; min-height: 40vh;
  display: flex; align-items: flex-end; overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-band .hero-inner { padding: 52px 0 40px; }
.hero-band h1 { font-size: clamp(1.9rem, 4.6vw, 3.05rem); margin-bottom: .28em; }
.hero-band .lede { font-size: clamp(.98rem, 1.6vw, 1.1rem); max-width: 60ch; color: var(--cream-dim); }
.hero-band .crumbs { margin-bottom: 12px; }
.hero-band .crumbs a { color: var(--cream); }
.hero-band .meta-line { color: var(--cream-dim); margin: 10px 0 0; font-size: .95rem; }
@media (max-width: 780px) {
  .hero-band { min-height: 30vh; }
  .hero-band .hero-inner { padding: 34px 0 26px; }
}
