@font-face {
  font-family: "Argentum Sans";
  src: url("ArgentumSans-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --brand: #124f60;
  --accent: #bde5e4;
  --paper: #f8f7f1;
  --ink: #0f172a;
  --mist: #e8eeea;
  --fine-line: #aec2bc;
  --ease-detail: cubic-bezier(.22, .68, .22, 1);
  --mast-height: 84px;
  --mast-compact-height: 62px;
  --heading: 210;
  --body: 300;
  --control: 380;
  --gutter: clamp(22px, 5.8vw, 90px);
  --space: clamp(62px, 7.8vw, 118px);
}

:where(main[id], main > section[id], main a, main input, main button) { scroll-margin-top: var(--mast-height); }
@media (scripting: enabled) {
  main > section[id] { scroll-margin-top: var(--mast-compact-height); }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: var(--body) 16px/1.65 "Argentum Sans", Arial, sans-serif; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2 { font-weight: var(--heading); }
h2 { font-size: clamp(38px, 3.9vw, 63px); letter-spacing: -.044em; line-height: 1.1; text-wrap: balance; }
h3 { font-weight: var(--body); font-size: clamp(23px, 1.75vw, 29px); line-height: 1.22; letter-spacing: -.028em; }
img, picture { display: block; }
img { max-width: 100%; }
a { color: inherit; text-underline-offset: .27em; text-decoration-thickness: 1px; }
button, input { font: inherit; color: inherit; }
button, a, input { touch-action: manipulation; }
button { cursor: pointer; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
[hidden] { display: none !important; }
.wrap { width: min(100%, 1580px); padding-inline: var(--gutter); margin-inline: auto; }
.skip { position: fixed; z-index: 10; top: 12px; left: 12px; transform: translateY(-180%); background: var(--paper); color: var(--brand); padding: 10px 16px; }
.skip:focus { transform: none; }
.kicker, .footer-title, .cta, .mast nav, .family-link { font-weight: var(--control); }
.kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: clamp(18px, 2vw, 30px);
  color: var(--brand);
  font-size: 13px;
  line-height: 1.4;
}
.kicker::before {
  content: "";
  flex: 0 0 36px;
  height: 5px;
  background: radial-gradient(circle at 2.5px 50%, currentColor 1.6px, transparent 2px),
              linear-gradient(currentColor, currentColor) right center / 29px 1px no-repeat;
  opacity: .68;
}
.arrow {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 33px;
  height: 33px;
  color: var(--arrow-color, currentColor);
  background-color: var(--arrow-fill, transparent);
  border: 1px solid var(--arrow-border, var(--fine-line));
  border-radius: 50%;
}
.arrow i {
  display: block;
  position: relative;
  width: 12px;
  height: 1px;
  background: currentColor;
  transform: rotate(var(--angle, -45deg));
}
.arrow i::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  top: 50%;
  right: 0;
  border-top: 1px solid;
  border-right: 1px solid;
  transform: translateY(-50%) rotate(45deg);
  transform-origin: 56% 44%;
}

.mast {
  position: sticky;
  top: 0;
  z-index: 5;
  min-height: var(--mast-height);
  pointer-events: none;
}
.mast-bar { position: relative; background: var(--paper); pointer-events: auto; }
.mast.is-condensed .mast-bar { box-shadow: inset 0 -1px 0 rgb(18 79 96 / 16%); }
.mast.is-condensed .wrap { min-height: var(--mast-compact-height); }
.mast.is-condensed .wordmark { transform: scale(.83); }
.mast .wrap, .nav, .nav-links, .join-link { display: flex; align-items: center; }
.mast .wrap { justify-content: space-between; min-height: var(--mast-height); gap: 22px; }
.home { text-decoration: none; }
.mast .home { min-width: 0; }
.wordmark { height: auto; }
.mast .wordmark { width: clamp(204px, 17.5vw, 236px); transform-origin: left center; }
.nav, .nav-links { gap: clamp(16px, 2vw, 36px); }
.nav { font-size: 13px; flex-shrink: 0; }
.nav a { padding-block: 10px; text-decoration: none; }
.nav-label { position: relative; display: inline-block; }
.nav a[aria-current="location"] { color: var(--brand); --detail: 1; }
.menu-button { position: relative; }
.nav-label::after, .menu-button::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 6px;
  width: 100%;
  height: 1px;
  background: var(--brand);
  transform: scaleX(var(--detail, 0));
  transform-origin: left;
  pointer-events: none;
}
.nav-label::after { bottom: -.23em; transform-origin: center; }
.join-link { color: var(--brand); gap: 12px; --angle: 45deg; }
.menu-button { border: 0; background: transparent; padding: 12px 2px; min-height: 44px; }
.menu-button[aria-expanded="true"] { --detail: 1; }

.hero {
  --hero-crest-width: clamp(260px, 30vw, 465px);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: radial-gradient(ellipse at 90% 4%, rgb(49 105 112 / 55%), transparent 60%),
              linear-gradient(115deg, #104959, var(--brand) 53%, #104655);
  color: var(--paper);
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  left: calc(-.3 * var(--hero-crest-width));
  bottom: calc(-.24 * var(--hero-crest-width));
  width: var(--hero-crest-width);
  aspect-ratio: 150 / 190;
  background: url("../loga/lipa-stit-svetly.svg") center / contain no-repeat;
  filter: grayscale(1) contrast(1.6);
  mix-blend-mode: screen;
  opacity: .045;
}
.hero-layout {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  align-items: center;
  gap: clamp(30px, 5.7vw, 82px);
  padding-block: clamp(42px, 4.2vw, 68px);
}
.hero-copy { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(50px, 6.75vw, 108px); line-height: 1.02; letter-spacing: -.053em; }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero-copy p { max-width: 45ch; margin-block: clamp(20px, 2.1vw, 32px) clamp(24px, 2.4vw, 38px); }
.hero-copy p, .reading, .family-copy p, .interest-layout > div > p:last-child { font-size: clamp(16px, 1.2vw, 19px); line-height: 1.68; }
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 52px;
  border: 1px solid transparent;
  border-radius: 2px;
  padding: 6px 8px 6px 21px;
  background-color: var(--button-fill, var(--accent));
  color: var(--brand);
  font-size: 15px;
  text-decoration: none;
  --angle: 45deg;
}
.cta .arrow { width: 35px; height: 35px; border-color: var(--arrow-border, rgb(18 79 96 / 34%)); }
.form .cta { --angle: 0deg; }
.hero .cta:focus-visible, .interest .cta:focus-visible { outline-color: var(--paper); }
.hero-photo {
  min-width: 0;
  margin: 9px 15px 0 0;
}
.photo-watermark {
  position: absolute;
  --photo-inset: clamp(12px, 2.8%, 18px);
  left: var(--photo-inset);
  bottom: clamp(12px, 3%, 18px);
  width: clamp(30px, 7%, 40px);
  height: auto;
  opacity: .58;
  pointer-events: none;
}
.hero-photo .photo-frame::before {
  border-left: 0;
  border-bottom: 0;
}
.photo-frame {
  --radius: 0 30% 0 0 / 0 34% 0 0;
  position: relative;
  aspect-ratio: 1.16;
}
.photo-frame::before {
  content: "";
  position: absolute;
  inset: -12px -13px 12px 13px;
  border: 1px solid var(--frame-ink, rgb(189 229 228 / 56%));
  border-radius: var(--radius);
}
.photo-window { position: relative; overflow: hidden; border-radius: var(--radius); width: 100%; height: 100%; }
.photo-window img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0%;
}

.section-watermark {
  position: relative;
  isolation: isolate;
}
.section-watermark::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: url("../loga/lipa-stit-svetly.svg") var(--crest-position) / var(--crest-width) auto no-repeat;
  /* On paper the light engraving reads as ink, while the dark shield recedes. */
  filter: grayscale(1) contrast(1.7) invert(1);
  mix-blend-mode: multiply;
  opacity: .05;
}
.why {
  --crest-width: clamp(205px, 23vw, 385px);
  --crest-position: right calc(var(--crest-width) * -.22) top calc(var(--crest-width) * -.13);
  background-color: var(--paper);
  padding-block: var(--space);
}
.why-layout { display: grid; grid-template-columns: 1.13fr .87fr; gap: clamp(38px, 9.4vw, 158px); align-items: center; }
.why h2 { color: var(--brand); }
.reading { max-width: 49ch; }
.reading p + p { margin-top: .85em; }

.pillars {
  --crest-width: clamp(220px, 25vw, 395px);
  --crest-position: left calc(var(--crest-width) * -.22) bottom calc(var(--crest-width) * -.26);
  padding-block: clamp(52px, 5.5vw, 88px);
  background: var(--mist);
}
.pillar-layout { display: grid; grid-template-columns: .63fr 1.37fr; align-items: start; gap: clamp(30px, 5vw, 80px); }
.pillar-heading h2 { max-width: 9.5ch; color: var(--brand); }
.pillar-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 3.6vw, 56px); row-gap: 30px; }
.pillar-grid article {
  padding: 20px clamp(12px, 1.25vw, 20px) 16px;
  border-top: 1px solid var(--fine-line);
  position: relative;
}
.pillar-grid article::before {
  content: "";
  position: absolute;
  inset: -1px 0 auto;
  height: 1px;
  background: var(--brand);
  clip-path: inset(0 calc(100% - 24px) 0 0);
  pointer-events: none;
}
.pillar-grid h3 { margin-block: 13px 8px; }
.pillar-grid p { max-width: 36ch; font-size: 15px; line-height: 1.62; }
.sign { display: block; position: relative; width: 46px; height: 35px; color: var(--brand); }
.sign i { position: absolute; border: 1.25px solid currentColor; }
.sign-events i { bottom: 1px; width: 11px; height: 10px; }
.sign-events i:nth-child(2) { left: 13px; height: 20px; }
.sign-events i:nth-child(3) { left: 26px; height: 30px; border-top-right-radius: 9px; }
.sign-group i { top: 2px; width: 23px; height: 23px; border-radius: 50%; }
.sign-group i:nth-child(2) { left: 17px; }
.sign-group i:nth-child(3) { left: 8.5px; top: 12px; }
.sign-network i { width: 17px; height: 17px; top: 15px; left: 2px; transform: rotate(45deg); }
.sign-network i:nth-child(2) { top: 3px; left: 14px; }
.sign-network i:nth-child(3) { top: 15px; left: 26px; }
.sign-voice i { top: 50%; left: 0; transform: translateY(-50%); width: 11px; height: 13px; border-radius: 0 100% 100% 0; border-block-color: transparent; border-left: 0; }
.sign-voice i:nth-child(2) { left: 3px; width: 21px; height: 25px; }
.sign-voice i:nth-child(3) { left: 6px; width: 31px; height: 35px; }

.family { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(35px, 7.8vw, 115px); padding-block: var(--space); }
.family-photo { position: relative; margin: 0 0 12px 12px; }
.family-photo .photo-watermark { left: auto; right: var(--photo-inset); }
.family-photo::before { content: ""; position: absolute; inset: 12px 12px -12px -12px; border: 1px solid var(--fine-line); }
.family-image { position: relative; width: 100%; aspect-ratio: 1.42; object-fit: cover; object-position: 50% 23%; }
.family-copy h2 { color: var(--brand); font-size: clamp(36px, 3.5vw, 55px); }
.family-copy p, .interest-layout > div > p:last-child { max-width: 47ch; margin-top: 21px; }
.family-link { min-height: 44px; display: inline-flex; align-items: center; gap: 15px; margin-top: 22px; font-size: 14px; text-decoration: none; color: var(--brand); }

.interest {
  padding-block: var(--space);
  background-color: var(--brand);
  background-image: radial-gradient(ellipse 75% 92% at 100% 0%, rgb(59 114 120 / 48%), transparent 100%);
  color: var(--paper);
}
main:is(:target, :has(> section:target)) .interest {
  min-block-size: calc(100dvh - var(--mast-compact-height) - var(--footer-height, 0px));
}
.interest-layout { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: clamp(32px, 9vw, 148px); }
.interest .kicker { color: var(--accent); }
.interest h2 { max-width: 17ch; font-size: clamp(42px, 4.65vw, 76px); }
.form { display: grid; gap: 17px; }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: var(--control); }
.form input { width: 100%; height: 44px; padding: 8px 12px; border: 1px solid rgb(189 229 228 / 64%); border-radius: 0; background: rgb(255 255 255 / 4%); color: var(--paper); font-size: 16px; }
.form label:focus-within { color: var(--accent); }
.form input:focus { background: rgb(255 255 255 / 8%); border-color: var(--accent); }
.form input:focus-visible { outline-color: var(--accent); }
.form .cta { justify-self: start; }
.form small, .form output { font-size: 13px; line-height: 1.5; color: var(--accent); }
.form output:empty { position: absolute; }

footer { background: var(--brand) linear-gradient(to bottom, transparent, rgb(0 0 0 / 16%)); color: var(--paper); padding-block-end: clamp(34px, 3.8vw, 60px); }
footer .wrap { position: relative; display: grid; grid-template-columns: 1.1fr .9fr 1fr; gap: 32px; padding-block-start: clamp(30px, 3.6vw, 55px); }
footer .wrap::before { content: ""; position: absolute; inset: 0 var(--gutter) auto; height: 1px; background: linear-gradient(to right, var(--accent), transparent); opacity: .4; }
footer .home { display: block; width: min(100%, 310px); }
footer .wordmark { width: 100%; }
footer p { font-size: 13px; line-height: 1.65; }
footer p + p, footer .home + p { margin-top: 10px; }
.footer-title { color: var(--accent); }

@media (max-width: 940px) {
  :root { --mast-height: 70px; --mast-compact-height: 56px; }
  .mast:has(.menu-button[hidden]) { position: relative; }
  .nav { gap: 18px; }
  .menu-button:not([hidden]) + .nav-links { display: none; }
  .menu-button[aria-expanded="true"] + .nav-links {
    position: absolute;
    inset: 100% 0 auto;
    display: grid;
    gap: 0;
    padding: 8px var(--gutter) 18px;
    max-height: calc(100dvh - var(--mast-height));
    overflow-y: auto;
    background: var(--paper);
    box-shadow: 0 8px 10px rgb(15 23 42 / 10%);
  }
  .menu-button:not([hidden]) + .nav-links a { border-top: 1px solid var(--fine-line); padding: 12px 0; }
  .mast:has(.menu-button[hidden]) .wrap, .mast:has(.menu-button[hidden]) .nav { flex-wrap: wrap; }
  .mast:has(.menu-button[hidden]) .nav-links { flex-wrap: wrap; }
  .pillar-layout { grid-template-columns: .56fr 1.44fr; }
  .pillar-heading h2 { font-size: 37px; }
}

@media (max-width: 760px) {
  .hero::before {
    --hero-crest-width: clamp(180px, 42vw, 265px);
    top: 30px;
    bottom: auto;
    opacity: .035;
  }
  .hero-layout, .why-layout, .family, .interest-layout, .pillar-layout { grid-template-columns: 1fr; }
  .hero-layout { padding-block: 40px 30px; gap: 36px; }
  .hero h1 { font-size: clamp(47px, 10.4vw, 76px); }
  .hero-copy p { max-width: 49ch; margin-block: 18px 23px; }
  .hero-photo { margin: 8px 9px 0 0; }
  .photo-frame { aspect-ratio: 1.48; }
  .photo-frame::before { inset: -8px -9px 8px 9px; }

  .why {
    --crest-width: 186px;
  }
  .pillars {
    --crest-width: 178px;
    --crest-position: right calc(var(--crest-width) * -.22) top calc(var(--crest-width) * -.13);
  }
  .why-layout, .interest-layout { gap: 27px; }
  .pillar-layout { gap: 28px; }
  .pillar-heading h2 { max-width: none; }
  .family { gap: 30px; }
  .family-photo { margin: 0 0 8px 8px; }
  .family-photo::before { inset: 8px 8px -8px -8px; }
  .family-image { aspect-ratio: 1.7; }
  .family-copy h2 { max-width: 22ch; }
  footer .wrap { grid-template-columns: 1fr 1fr; gap: 24px; }
  footer .wrap > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .photo-frame { aspect-ratio: 1.2; }
  :root { --mast-height: 68px; }
  .mast .wrap { gap: 9px; padding-inline: clamp(12px, 4vw, 20px); }
  .mast .wordmark { width: min(46vw, 198px); }
  .nav { gap: 13px; }
  .join-link { gap: 5px; }
  .join-link .arrow { width: 26px; height: 26px; }
  .pillar-grid { grid-template-columns: 1fr; row-gap: 21px; }
  .pillar-grid article { display: grid; grid-template-columns: 44px 1fr; column-gap: 17px; }
  .pillar-grid h3 { margin-block: 2px 6px; }
  .pillar-grid p { grid-column: 2; }
  footer .wrap { grid-template-columns: 1fr; }
}
/* The same accent identifies an action on keyboard focus, press and pointer hover. */
:is(a, button):is(:focus-visible, :active) {
  --detail: 1;
  --button-fill: var(--paper);
  --arrow-fill: var(--brand);
  --arrow-color: var(--paper);
  --arrow-border: var(--brand);
}
@media (hover: hover) and (pointer: fine) {
  .home:hover .wordmark { filter: brightness(1.12); }
  .pillar-grid article:hover { background-color: var(--paper); }
  .pillar-grid article:hover::before { clip-path: inset(0); }
  .pillar-grid article:hover h3 { color: var(--brand); }
  :is(a, button):hover {
    --detail: 1;
    --button-fill: var(--paper);
    --arrow-fill: var(--brand);
    --arrow-color: var(--paper);
    --arrow-border: var(--brand);
  }
  .family:has(.family-link:hover) .family-photo::before { border-color: var(--brand); }
  .form input:hover { border-color: var(--accent); }
}
@media (prefers-reduced-motion: no-preference) {
  :root.anchor-scroll { scroll-behavior: smooth; }
  .mast .wrap { transition: min-height 200ms var(--ease-detail); }
  .home .wordmark {
    transition: filter 180ms var(--ease-detail), translate 180ms var(--ease-detail), transform 200ms var(--ease-detail);
  }
  .pillar-grid article { transition: background-color 200ms var(--ease-detail); }
  .pillar-grid article::before { transition: clip-path 280ms var(--ease-detail); }
  .pillar-grid h3 { transition: color 200ms; }
  .cta, .arrow, .form input, .form label, .family-photo::before {
    transition: color 180ms, background-color 220ms, border-color 220ms;
  }
  .arrow i, .nav-label::after, .menu-button::after { transition: transform 220ms var(--ease-detail); }
  .family-photo::before { transition: transform 420ms var(--ease-detail), border-color 220ms; }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .home:hover .wordmark { translate: 0 -1px; }
  :is(.cta, .join-link, .family-link):hover .arrow i {
    transform: rotate(var(--angle, -45deg)) translateX(2px);
  }
  .family:has(.family-link:hover) .family-photo::before { transform: translate(-2px, 2px); }
}
@media (forced-colors: active) {
  .hero::before, .section-watermark::before { display: none; }
  .arrow, .cta { border-color: ButtonText; }
  .arrow i, .nav-label::after, .menu-button::after { background: currentColor; forced-color-adjust: none; }
}

/* Produkční doplňky webu (formulář, patička). */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { min-height: 65px; }
.form small a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.form button:disabled { opacity: .6; cursor: progress; }
.footer-link { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* Podstránky (GDPR, poděkování, 404). */
.subpage main { padding-block: 140px 96px; }
.page { max-width: 760px; }
.page h1 { font-size: clamp(32px, 4vw, 46px); font-weight: 210; line-height: 1.15; margin: 0 0 24px; color: var(--brand); }
.page h2 { font-size: 22px; font-weight: 300; margin: 40px 0 12px; color: var(--brand); }
.page h3 { font-size: 17px; font-weight: 380; margin: 24px 0 8px; }
.page p, .page li { font-size: 17px; line-height: 1.65; font-weight: 300; }
.page ul { padding-left: 1.2em; }
.page a:not(.family-link) { color: var(--brand); text-underline-offset: 2px; }
.page .family-link { margin-top: 16px; }
.page-note { margin-top: 40px; color: rgb(15 23 42 / 70%); }
