/* =====================================================================
   BASE — shared design system (owned by integrator, do not fork)
   Palette pulled from the photographs: brick plaster, oat plaster, ink.
   ===================================================================== */
:root {
  --brick: #92281A;
  --brick-2: #B3402A;
  --brick-deep: #4B0E09;
  --oat: #EDE3D3;
  --oat-2: #E3D6C2;
  --oat-3: #D8C8B0;
  --paper: #F7F1E7;
  --ink: #1C1411;
  --ink-soft: #5E514A;
  --ink-mute: #8B7D73;
  --cream: #F6EEE2;
  --red: #F0444D;            /* Nutricius brand red — small accents only */
  --gold: #D9A55B;
  --line: rgba(28, 20, 17, .16);
  --line-light: rgba(246, 238, 226, .22);
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --pad: clamp(16px, 3.4vw, 48px);
  --maxw: 1440px;
  --radius: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--oat); }
body {
  margin: 0; background: var(--oat); color: var(--ink);
  font: 400 16px/1.55 var(--font); font-stretch: 100%;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
p, h1, h2, h3, h4, figure, blockquote { margin: 0; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
::selection { background: var(--ink); color: var(--cream); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }

/* ---------- type scale ---------- */
.t-display {            /* condensed poster type */
  font-family: var(--font); font-weight: 800; font-stretch: 62%; text-transform: uppercase;
  line-height: .86; letter-spacing: -.005em;
}
.t-h1 { font-size: clamp(48px, 7vw, 112px); }
.t-h2 { font-size: clamp(44px, 6.4vw, 104px); }
.t-h3 { font: 700 clamp(20px, 1.6vw, 24px)/1.2 var(--font); letter-spacing: -.01em; }
.t-lead { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.5; color: var(--ink-soft); }
.t-eyebrow { font: 600 12px/1 var(--font); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); }
.t-small { font-size: 13px; color: var(--ink-soft); }
/* line masks created by SplitText get room for Czech diacritics */
[data-split] > div { padding: .22em .04em .08em 0; margin: -.22em -.04em -.08em 0; }

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px; overflow: hidden; isolation: isolate;
  height: 56px; padding: 0 28px; border-radius: 99px; border: 0; text-decoration: none;
  font: 600 15px/1 var(--font); letter-spacing: .01em; white-space: nowrap; cursor: pointer;
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease); }
.btn:hover::before { transform: scaleY(1); }
.btn i { font-style: normal; transition: transform .6s var(--ease); }
.btn:hover i { transform: translateX(5px); }
.btn--primary { background: var(--brick); color: var(--cream); box-shadow: 0 14px 30px -14px rgba(146, 40, 26, .7); }
.btn--primary::before { background: var(--brick-deep); }
.btn--ink { background: var(--ink); color: var(--cream); }
.btn--ink::before { background: var(--brick); }
.btn--line { box-shadow: inset 0 0 0 1px currentColor; background: none; color: var(--ink); transition: color .5s var(--ease); }
.btn--line::before { background: var(--ink); }
.btn--line:hover { color: var(--cream); }
.btn--cream { background: var(--cream); color: var(--brick-deep); }
.btn--cream::before { background: #fff; }
.btn--sm { height: 44px; padding: 0 20px; font-size: 14px; }
.btn--block { width: 100%; }

/* ---------- nav ---------- */
.nav {
  position: fixed; z-index: 60; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 18px var(--pad); color: var(--ink); transition: color .5s var(--ease), background .5s var(--ease), box-shadow .5s var(--ease);
}
.nav.is-solid { background: rgba(237, 227, 211, .86); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 1px 0 var(--line); }
.nav--on-dark { color: var(--cream); }
.nav--on-dark.is-solid { background: rgba(75, 14, 9, .78); box-shadow: 0 1px 0 var(--line-light); }
.nav__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 13px; }
.nav__brand img { height: 32px; width: auto; transition: filter .5s var(--ease); }
.nav__brand .nav__pb { height: 24px; }
.nav--on-dark .nav__brand img { filter: brightness(0) invert(1); }
.nav__links { display: flex; align-items: center; gap: 26px; font-size: 14px; font-weight: 500; }
.nav__links a { text-decoration: none; position: relative; }
.nav__links a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease); }
.nav__links a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }
.nav__deadline { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; opacity: .8; }
.nav__deadline b { font-weight: 700; }
.nav .btn--primary { height: 44px; padding: 0 20px; font-size: 14px; }
.nav--on-dark .btn--primary { background: var(--cream); color: var(--brick-deep); box-shadow: none; }

/* ---------- footer ---------- */
.footer { background: #2C0805; color: rgba(246,238,226,.6); font-size: 13px; padding: 40px 0 28px; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 28px; }
.footer b { color: var(--cream); font-weight: 600; display: block; margin-bottom: 6px; }
.footer a { color: rgba(246,238,226,.85); text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer__brand { display: flex; align-items: center; gap: 12px; }
.footer__brand img { height: 36px; width: auto; filter: brightness(0) invert(1); opacity: .9; }
.footer__brand img + img { height: 28px; filter: none; }
.footer__legal { margin-top: 30px; padding-top: 18px; border-top: 1px solid rgba(246,238,226,.1); font-size: 12px; color: rgba(246,238,226,.4); }

/* ---------- custom icons (ink & riso) — see assets/js/icons.js ---------- */
.ico { display: block; width: 100%; height: 100%; overflow: visible; }
.ico .l { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; filter: url(#ink); }
.ico .a { fill: var(--ico-plate, #E4573C); opacity: .9; mix-blend-mode: multiply; }
.ico .a.y { fill: var(--ico-plate-2, #EDB04C); }
.on-dark .ico .a, .ico--flat .a { mix-blend-mode: normal; }
.ico-box { display: block; width: 48px; height: 48px; color: var(--ink); flex: none; }

/* ---------- utilities ---------- */
.on-dark { color: var(--cream); }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px; font-size: 13px; font-weight: 500; box-shadow: inset 0 0 0 1px var(--line); }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); position: relative; flex: none; }
.pulse-dot::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid var(--red); animation: pulse 2.2s var(--ease) infinite; }
@keyframes pulse { 0% { transform: scale(.4); opacity: 1; } 100% { transform: scale(1.7); opacity: 0; } }

@media (max-width: 900px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav { padding: 12px var(--pad); }
  .nav__links a:not(.btn), .nav__deadline { display: none; }
  .nav__brand img { height: 26px; }
  .nav__brand span, .nav__brand .nav__pb { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
}
