/* ==========================================================================
   todo — design tokens & styles
   ========================================================================== */
:root {
  --ink: #0a0e0b;
  --ink-2: #111813;
  --moss: #26402f;
  --bone: #ecebe3;
  --mute: #8a9489;
  --lime: #c9f26b;
  --line: rgba(236, 235, 227, 0.14);

  --f-display: "Instrument Serif", "Times New Roman", serif;
  --f-sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;

  --gutter: clamp(20px, 4vw, 56px);
  --radius: 999px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.76, 0, 0.24, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--f-sans);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.15rem);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--lime); color: var(--ink); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; border-radius: 4px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip {
  position: fixed; top: 12px; left: 12px; z-index: 200;
  padding: 10px 16px; background: var(--lime); color: var(--ink);
  border-radius: var(--radius); transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* ---------- Type ---------- */
.mono {
  font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--mute);
}
.serif { font-family: var(--f-display); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.h-xl {
  font-size: clamp(3.4rem, min(12.5vw, 24vh), 13rem);
  line-height: 0.86; letter-spacing: -0.045em; font-weight: 500;
}
.h-lg {
  font-size: clamp(2.6rem, 7vw, 7rem);
  line-height: 0.92; letter-spacing: -0.04em; font-weight: 500;
}
.h-md { font-size: clamp(1.6rem, 3vw, 2.6rem); line-height: 1.05; letter-spacing: -0.03em; font-weight: 500; }

.wrap { padding-inline: var(--gutter); max-width: 1680px; margin-inline: auto; }
section { position: relative; z-index: 1; }

/* masked line reveal */
.line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.line > span { display: block; will-change: transform; }
.js .line > span { opacity: 0; }
.js [data-fade] { opacity: 0; transform: translateY(24px); }

/* ---------- WebGL canvas ---------- */
#gl {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}

/* ---------- Header ---------- */
.head {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter); color: var(--bone); transition: color 0.4s var(--ease);
}
.logo { width: clamp(124px, 14vw, 176px); display: block; }
.logo svg { width: 100%; height: auto; }
.nav { display: flex; gap: clamp(16px, 3vw, 40px); align-items: center; }
.nav a { font-size: 0.9rem; position: relative; }
.nav a:not(.pill)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform 0.5s var(--ease);
}
.nav a:not(.pill):hover::after { transform: scaleX(1); transform-origin: left; }
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px; border-radius: var(--radius);
  border: 1px solid currentColor; font-size: 0.9rem;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}
.pill:hover { background: var(--bone); color: var(--ink); }
.head.on-lime { color: var(--ink); }
.head.on-lime .pill:hover { background: var(--ink); color: var(--lime); }
.logo { --disc: var(--lime); --vein: var(--ink); }
.head.on-lime .logo { --disc: var(--ink); --vein: var(--lime); }
@media (max-width: 760px) { .nav a:not(.pill) { display: none; } }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh; display: flex; flex-direction: column;
  justify-content: flex-end; padding-block: 120px 28px;
}
.hero h1 { margin-bottom: clamp(24px, 4vw, 56px); }
.hero h1 .serif { color: var(--lime); }
.hero-foot {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: end;
  border-top: 1px solid var(--line); padding-top: 20px;
}
.hero-foot p { max-width: 34ch; color: var(--bone); opacity: 0.8; font-size: 1rem; }
.hero-foot .mid { justify-self: center; display: flex; align-items: center; gap: 12px; }
.hero-foot .end { justify-self: end; text-align: right; }
.scroll-line { width: 1px; height: 40px; background: var(--line); position: relative; overflow: hidden; }
.scroll-line::after {
  content: ""; position: absolute; inset: 0; background: var(--lime);
  animation: drip 2.2s var(--ease-io) infinite;
}
@keyframes drip { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }
@media (max-width: 760px) {
  .hero-foot { grid-template-columns: 1fr; }
  .hero-foot .mid, .hero-foot .end { justify-self: start; text-align: left; }
  .hero-foot .mid { display: none; }
}

/* ---------- Marquee ---------- */
.marquee {
  border-block: 1px solid var(--line); overflow: hidden; white-space: nowrap;
  padding-block: 22px; background: rgba(10, 14, 11, 0.55); backdrop-filter: blur(6px);
}
.marquee-track { display: inline-flex; gap: 48px; will-change: transform; }
.marquee span { font-size: clamp(1.4rem, 3vw, 2.4rem); letter-spacing: -0.03em; display: inline-flex; align-items: center; gap: 48px; }
.marquee i { width: 10px; height: 10px; border-radius: 50%; background: var(--lime); display: inline-block; }

/* ---------- Manifesto ---------- */
.manifesto { padding-block: clamp(120px, 22vw, 280px); }
.manifesto .mono { margin-bottom: 36px; display: block; }
.manifesto p.big {
  font-size: clamp(1.9rem, 5vw, 4.8rem); line-height: 1.04;
  letter-spacing: -0.035em; font-weight: 500; max-width: 18ch;
}
@media (min-width: 900px) { .manifesto p.big { max-width: 22ch; margin-left: 12%; } }
.manifesto .w { opacity: 0.2; transition: none; }
.no-js .manifesto .w, .reduce .manifesto .w { opacity: 1; }
.manifesto .w.serif { color: var(--lime); }

/* ---------- Sorty ---------- */
.sorts { padding-block: clamp(80px, 12vw, 160px); }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(40px, 6vw, 80px); flex-wrap: wrap; }
.sec-head p { max-width: 36ch; color: var(--mute); }
.sort-list { border-top: 1px solid var(--line); }
.sort {
  display: grid; grid-template-columns: 70px 1.3fr 1fr 1.6fr; gap: 24px;
  align-items: center; padding: clamp(22px, 3vw, 40px) 0;
  border-bottom: 1px solid var(--line); position: relative; isolation: isolate;
}
.sort::before {
  content: ""; position: absolute; inset: 0 calc(var(--gutter) * -1);
  background: var(--sw, var(--lime)); z-index: -1;
  transform: scaleY(0); transform-origin: bottom; transition: transform 0.6s var(--ease);
}
.sort h3 {
  font-size: clamp(1.9rem, 4.6vw, 4.4rem); letter-spacing: -0.04em; line-height: 1; font-weight: 500;
  transition: transform 0.6s var(--ease), color 0.4s;
}
.sort .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--sw); display: inline-block; margin-right: 12px; transition: background 0.4s; }
.sort p { color: var(--bone); opacity: 0.75; transition: color 0.4s, opacity 0.4s; }
.sort .mono { transition: color 0.4s; }
@media (hover: hover) {
  .sort:hover::before { transform: scaleY(1); }
  .sort:hover h3 { transform: translateX(16px); color: var(--ink); }
  .sort:hover p, .sort:hover .mono { color: var(--ink); opacity: 1; }
  .sort:hover .dot { background: var(--ink); }
}
.sorts .note { margin-top: 28px; }
@media (max-width: 900px) {
  .sort { grid-template-columns: 40px 1fr; row-gap: 8px; }
  .sort .origin, .sort p { grid-column: 2; }
}

/* ---------- Principy ---------- */
.principles { padding-block: clamp(80px, 12vw, 160px); background: linear-gradient(180deg, transparent, rgba(38, 64, 47, 0.35) 50%, transparent); }
.pr-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 64px); margin-top: clamp(40px, 6vw, 90px); }
.pr { border-top: 1px solid var(--line); padding-top: 24px; }
.pr .num { font-family: var(--f-display); font-style: italic; font-size: clamp(4rem, 9vw, 9rem); line-height: 0.9; color: var(--lime); display: block; margin-bottom: 20px; }
.pr h3 { margin-bottom: 12px; }
.pr p { color: var(--mute); max-width: 32ch; }
@media (max-width: 900px) { .pr-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { padding-block: clamp(80px, 12vw, 160px); }
.faq-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(32px, 6vw, 96px); }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between;
  align-items: center; gap: 24px; padding: 26px 0; font-size: clamp(1.15rem, 2vw, 1.6rem);
  letter-spacing: -0.02em; font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-family: var(--f-mono); font-size: 1.4rem; color: var(--lime);
  transition: transform 0.5s var(--ease); flex: none;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--mute); padding: 0 0 28px; max-width: 58ch; }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; } }

/* ---------- Kontakt ---------- */
.contact {
  background: var(--lime); color: var(--ink); padding-block: clamp(80px, 12vw, 160px) 32px;
  position: relative; z-index: 2;
}
.contact .mono { color: rgba(10, 14, 11, 0.6); }
.contact h2 { margin: 20px 0 clamp(40px, 6vw, 80px); }
.contact h2 .serif { color: var(--moss); }
.ct-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; border-top: 1px solid rgba(10, 14, 11, 0.2); padding-top: 28px; }
.ct-grid h3 { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 400; color: rgba(10, 14, 11, 0.6); margin-bottom: 10px; }
.ct-grid address { font-style: normal; }
.ct-grid a { border-bottom: 1px solid currentColor; }
.cta-big {
  display: inline-flex; align-items: center; gap: 16px; margin-top: clamp(40px, 6vw, 72px);
  background: var(--ink); color: var(--bone); padding: 22px 36px; border-radius: var(--radius);
  font-size: clamp(1.1rem, 2vw, 1.5rem); letter-spacing: -0.02em;
  transition: transform 0.5s var(--ease), background 0.4s;
}
.cta-big:hover { background: var(--moss); }
.cta-big svg { width: 22px; height: 22px; }
.foot { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: clamp(60px, 10vw, 140px); padding-top: 20px; border-top: 1px solid rgba(10, 14, 11, 0.2); }
.foot p { font-size: 0.8rem; max-width: 70ch; color: rgba(10, 14, 11, 0.7); }
.foot .logo-foot { width: 150px; color: var(--ink); }
@media (max-width: 900px) { .ct-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .ct-grid { grid-template-columns: 1fr; } }

/* ---------- Cursor ---------- */
.cursor {
  position: fixed; top: 0; left: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px;
  border-radius: 50%; background: #fff; mix-blend-mode: difference;
  pointer-events: none; z-index: 600; opacity: 0;
}
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }
@media (hover: hover) and (pointer: fine) { .has-cursor, .has-cursor a, .has-cursor summary, .has-cursor button { cursor: none; } }

/* ---------- Age gate ---------- */
.gate {
  position: fixed; inset: 0; z-index: 500; display: none; place-items: center;
  background: rgba(10, 14, 11, 0.88); backdrop-filter: blur(18px); padding: var(--gutter);
}
.gate.on { display: grid; }
.gate-card { max-width: 520px; text-align: center; }
.gate-card .logo { margin: 0 auto 32px; width: 220px; }
.gate-card h2 { margin-bottom: 14px; }
.gate-card p { color: var(--mute); margin-bottom: 32px; }
.gate-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn { padding: 16px 28px; border-radius: var(--radius); border: 1px solid var(--line); font-size: 1rem; transition: background 0.4s, color 0.4s, border-color 0.4s; }
.btn.primary { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.btn:hover { background: var(--bone); color: var(--ink); border-color: var(--bone); }

@media (prefers-reduced-motion: reduce) {
  .scroll-line::after { animation: none; }
  * { transition-duration: 0.01ms !important; }
}

.logo-foot { --disc: var(--ink); --vein: var(--lime); }

.head { background: linear-gradient(180deg, rgba(10, 14, 11, 0.9), rgba(10, 14, 11, 0)); }
.head.on-lime { background: linear-gradient(180deg, rgba(201, 242, 107, 0.95), rgba(201, 242, 107, 0)); }

@media (max-width: 1100px) {
  .head { background: rgba(10, 14, 11, 0.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding-block: 12px; }
  .head.on-lime { background: rgba(201, 242, 107, 0.88); }
}

/* ---------- O prodejně ---------- */
.about { padding-block: 0 clamp(80px, 12vw, 160px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.about-body { display: grid; gap: 1.2em; color: var(--bone); opacity: 0.88; max-width: 52ch; }
.about-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 12px; padding-top: 20px; border-top: 1px solid var(--line); }
.about-facts li { font-size: 0.95rem; }
.about-facts .mono { display: block; margin-bottom: 6px; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; } .about-facts { grid-template-columns: 1fr; } }

/* ---------- Informační stránky ---------- */
.doc { position: relative; z-index: 1; padding-block: clamp(120px, 14vw, 180px) clamp(80px, 10vw, 140px); max-width: 980px; }
.crumbs { display: block; margin-bottom: 28px; }
.crumbs a { border-bottom: 1px solid var(--line); }
.crumbs a:hover { color: var(--lime); }
.doc h1 { margin-bottom: 28px; }
.doc .lead { font-size: clamp(1.15rem, 2vw, 1.5rem); line-height: 1.4; letter-spacing: -0.02em; max-width: 52ch; opacity: 0.9; margin-bottom: 20px; }
.doc .updated { margin-bottom: 8px; }
.doc-sec { border-top: 1px solid var(--line); padding-block: clamp(28px, 4vw, 48px); display: grid; grid-template-columns: 1fr 2fr; gap: clamp(20px, 4vw, 64px); }
.doc-sec > h2 { grid-column: 1; }
.doc-sec > *:not(h2) { grid-column: 2; }
.doc-sec p, .doc-list { max-width: 62ch; opacity: 0.88; }
.doc-sec p + p { margin-top: 1em; }
.doc-list { display: grid; gap: 10px; list-style: none; }
.doc-list li { padding-left: 20px; position: relative; }
.doc-list li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); }
.doc a { border-bottom: 1px solid var(--lime); }
.doc a:hover { color: var(--lime); }
@media (max-width: 760px) { .doc-sec { grid-template-columns: 1fr; } .doc-sec > h2, .doc-sec > *:not(h2) { grid-column: 1; } }

.alt-map { margin-top: 20px; font-size: 0.95rem; }
.alt-map a { border-bottom: 1px solid currentColor; }
