/* =========================================================
   APP LAYOUT — nav, footer, hero, sekce
   ========================================================= */

/* ---------- NAV ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: color-mix(in oklch, var(--bg) 80%, transparent);
  border-bottom: 1px solid var(--line-soft);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--page-gutter);
  max-width: 1440px;
  margin: 0 auto;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-link {
  font-size: 13px;
  color: var(--ink-dim);
  transition: color .2s;
  letter-spacing: 0.01em;
  cursor: pointer;
}
.nav-link:hover { color: var(--ink); }
.nav-link.active { color: var(--accent-2); }

.nav-ctas {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* ---------- WORDMARK + SEAL ---------- */

.wordmark {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}
.wordmark-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.wordmark-title .amp {
  font-family: var(--font-display);
  color: var(--accent-2);
}

.seal {
  width: 38px; height: 38px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  position: relative;
  display: grid; place-items: center;
  color: var(--accent-2);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px;
  font-weight: 500;
}
.seal::before {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 999px;
  border: 1px dashed var(--accent);
  opacity: 0.45;
}

.seal-lg { width: 120px; height: 120px; font-size: 44px; }
.seal-lg::before { inset: 8px; }

/* ---------- HERO (varianty) ---------- */

.hero {
  position: relative;
  overflow: hidden;
}

.hero-inner {
  padding: clamp(60px, 10vw, 140px) var(--page-gutter) var(--section-py);
  max-width: 1440px;
  margin: 0 auto;
  position: relative;
}

/* Hero A — Editorial centrované */
.hero-a {
  text-align: center;
}
.hero-a .hero-eyebrow {
  display: inline-flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 36px;
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.hero-a .hero-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--accent-2);
}
.hero-a h1 {
  font-size: clamp(48px, 9vw, 148px);
  line-height: 0.9;
  letter-spacing: -0.03em;
}
.hero-a h1 .it {
  font-style: italic;
  color: var(--accent-2);
  font-weight: 400;
}
.hero-a .hero-sub {
  max-width: 620px;
  margin: 36px auto 48px;
  color: var(--ink-dim);
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.45;
}
.hero-a .hero-ctas {
  display: inline-flex;
  gap: 14px;
  align-items: center;
}
.hero-a .jars-row {
  margin-top: clamp(60px, 8vw, 120px);
  display: flex;
  justify-content: center;
  gap: clamp(16px, 3vw, 44px);
  align-items: end;
}

/* Hero B — Split (text vlevo, velká sklenice vpravo) */
.hero-b {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}
.hero-b h1 {
  font-size: clamp(44px, 6.5vw, 96px);
  line-height: 0.95;
}
.hero-b h1 .it { font-style: italic; color: var(--accent-2); font-weight: 400; }
.hero-b .hero-sub {
  color: var(--ink-dim);
  font-size: 19px;
  margin: 28px 0 36px;
  max-width: 46ch;
}
.hero-b .hero-meta {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line-soft);
}
.hero-b .meta-n {
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--accent-2);
  letter-spacing: -0.02em;
}
.hero-b .meta-l {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ink-muted);
  margin-top: 6px;
}
.hero-b .jar-stage {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 3/4;
  max-height: 640px;
}
.hero-b .jar-stage::before {
  content: "";
  position: absolute; inset: 10% 15%;
  background: radial-gradient(ellipse at center, color-mix(in oklch, var(--accent) 25%, transparent), transparent 65%);
  filter: blur(40px);
}

/* Hero C — Almanac (zleva index, velký titulek, vpravo sloupec) */
.hero-c {
  display: grid;
  grid-template-columns: 140px 1fr 280px;
  gap: clamp(24px, 4vw, 80px);
  align-items: start;
}
.hero-c .almanac-idx {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  line-height: 1.9;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.hero-c h1 {
  font-size: clamp(44px, 7.5vw, 120px);
  line-height: 0.92;
  letter-spacing: -0.028em;
}
.hero-c h1 .it { font-style: italic; color: var(--accent-2); font-weight: 400; }
.hero-c .hero-right {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.hero-c .hero-sub {
  color: var(--ink-dim);
  font-size: 16px;
  margin-bottom: 28px;
}
.hero-c .hero-ctas { display: flex; flex-direction: column; gap: 10px; }
.hero-c .jars-strip {
  margin-top: clamp(60px, 8vw, 100px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--line-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.hero-c .jars-strip-cell {
  background: var(--bg);
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

/* ---------- SECTIONS ---------- */

.section {
  padding: var(--section-py) 0;
  position: relative;
}

.section-dark { background: var(--bg); }
.section-elev { background: var(--bg-elev); }
.section-paper { background: var(--paper); color: var(--paper-ink); }
.section-paper .eyebrow { color: color-mix(in oklch, var(--paper-ink) 55%, transparent); }
.section-paper h2 { color: var(--paper-ink); }
.section-paper .rule { background: color-mix(in oklch, var(--paper-ink) 15%, transparent); }

.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: var(--stack-lg);
  padding-bottom: var(--stack-md);
  border-bottom: 1px solid var(--line);
}
.section-paper .section-head { border-bottom-color: color-mix(in oklch, var(--paper-ink) 15%, transparent); }
.section-head h2 {
  font-size: clamp(36px, 5vw, 68px);
  letter-spacing: -0.025em;
}
.section-head .intro {
  color: var(--ink-dim);
  font-size: 17px;
  max-width: 46ch;
  justify-self: end;
}
.section-paper .section-head .intro { color: color-mix(in oklch, var(--paper-ink) 70%, transparent); }

.section-head-mono {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 20px;
  margin-bottom: var(--stack-lg);
  border-bottom: 1px solid var(--line);
}
.section-paper .section-head-mono { border-bottom-color: color-mix(in oklch, var(--paper-ink) 15%, transparent); }

/* ---------- FOOTER ---------- */

.footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 80px var(--page-gutter) 40px;
}
.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
}
.footer h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ink-muted);
  font-weight: 500;
  font-style: normal;
  margin-bottom: 20px;
}
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer a { color: var(--ink-dim); font-size: 14px; }
.footer a:hover { color: var(--accent-2); }
.footer-brand { max-width: 380px; }
.footer-brand p {
  color: var(--ink-muted);
  font-size: 14px;
  margin-top: 16px;
  line-height: 1.6;
}
.footer-bottom {
  max-width: 1440px;
  margin: 60px auto 0;
  padding-top: 28px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ink-muted);
}

/* ---------- PAGE HEADER (sub pages) ---------- */

.page-head {
  padding: clamp(60px, 8vw, 120px) var(--page-gutter) clamp(40px, 5vw, 70px);
  max-width: 1440px;
  margin: 0 auto;
  position: relative;
}
.page-head .crumbs {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ink-muted);
  margin-bottom: 28px;
}
.page-head .crumbs .crumb-sep { margin: 0 10px; color: var(--line); }
.page-head h1 {
  font-size: clamp(44px, 7vw, 108px);
  line-height: 0.95;
  letter-spacing: -0.028em;
  max-width: 18ch;
}
.page-head h1 .it { font-style: italic; color: var(--accent-2); font-weight: 400; }
.page-head .page-sub {
  margin-top: 28px;
  max-width: 56ch;
  color: var(--ink-dim);
  font-size: 18px;
}

/* ---------- FORM ELEMENTS ---------- */

.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-muted);
}
.field input,
.field select,
.field textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  font-size: 16px;
  color: var(--ink);
  outline: none;
  transition: border-color .2s;
}
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--accent); }
.field input::placeholder { color: var(--ink-muted); }

.field-paper input,
.field-paper select { color: var(--paper-ink); border-bottom-color: color-mix(in oklch, var(--paper-ink) 20%, transparent); }
.field-paper label { color: color-mix(in oklch, var(--paper-ink) 55%, transparent); }

.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: var(--ink-dim);
}
.checkbox input {
  appearance: none;
  width: 16px; height: 16px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  display: grid; place-items: center;
  cursor: pointer;
}
.checkbox input:checked { background: var(--accent); border-color: var(--accent); }
.checkbox input:checked::after {
  content: "";
  width: 8px; height: 4px;
  border-left: 1.5px solid var(--accent-ink);
  border-bottom: 1.5px solid var(--accent-ink);
  transform: rotate(-45deg) translateY(-1px);
}
