:root {
  --pond: #102a24;
  --moss: #61745d;
  --leaf: #7b8b6b;
  --paper: #f5f0e6;
  --paper-soft: #ebe2d1;
  --stone: #8f8b7f;
  --ink: #1d2420;
  --muted: #5d625a;
  --brass: #b58b4b;
  --line: rgba(29, 36, 32, 0.16);
  --shadow: 0 22px 70px rgba(16, 42, 36, 0.18);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --hero-image: url("https://bucicky-mlyn.cz/wp-content/uploads/2025/02/DJI_0853.jpg");
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px clamp(18px, 4vw, 56px);
  color: #fffdf6;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(245, 240, 230, 0.92);
  color: var(--pond);
  box-shadow: 0 1px 0 var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  font-family: var(--serif);
  font-size: 1.45rem;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: clamp(14px, 3vw, 34px);
  align-items: center;
  font-size: 0.84rem;
}

.nav-links a {
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  border-color: currentColor;
}

.hero {
  position: relative;
  min-height: 58svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--pond);
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(16, 42, 36, 0.7), rgba(16, 42, 36, 0.25) 48%, rgba(16, 42, 36, 0.08)),
    var(--hero-image) center / cover;
  transform: scale(1.02);
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(0deg, rgba(16, 42, 36, 0.72), transparent 34%);
}

.hero-content {
  position: relative;
  z-index: 3;
  width: min(760px, calc(100% - 36px));
  margin: 0 0 clamp(20px, 4vh, 34px) clamp(18px, 8vw, 116px);
  color: #fffdf6;
}

.hero-lights {
  position: absolute;
  inset: 0 0 auto;
  z-index: 4;
  height: 92px;
  overflow: hidden;
  pointer-events: none;
}

.hero-lights::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 56px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 120' preserveAspectRatio='none'%3E%3Cpath d='M0 0 C 80 20, 260 96, 500 96 C 740 96, 920 20, 1000 0' fill='none' stroke='rgba(255,253,246,0.34)' stroke-width='2.2'/%3E%3C/svg%3E")
    center / 100% 100% no-repeat;
}

.light-bulb {
  position: absolute;
  top: 18px;
  left: 0;
  width: 11px;
  height: 13px;
  border: 1px solid rgba(255, 243, 205, 0.44);
  border-radius: 48% 48% 52% 52%;
  background: radial-gradient(
    circle at 50% 46%,
    #fffef4 0 15%,
    #ffe9aa 22%,
    #f2bd62 58%,
    #bd7627 100%
  );
  box-shadow:
    0 0 3px 1px rgba(255, 250, 220, 0.58),
    0 0 9px 2px rgba(255, 221, 139, 0.22),
    0 0 18px 4px rgba(255, 205, 102, 0.07);
  transform: translateX(-50%);
  animation: bulb-flicker 4.2s ease-in-out infinite;
}

.light-bulb::before {
  content: "";
  position: absolute;
  top: calc(-1 * var(--cord-length));
  left: 50%;
  width: 1px;
  height: var(--cord-length);
  background: rgba(255, 253, 246, 0.28);
  transform: translateX(-50%);
}

.light-bulb::after {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  width: 5px;
  height: 4px;
  border-radius: 2px 2px 0 0;
  background: rgba(64, 50, 34, 0.72);
  transform: translateX(-50%);
}

.light-bulb:nth-child(1) { --cord-length: 6px; left: 2%; top: 8px; animation-delay: -0.8s; }
.light-bulb:nth-child(2) { --cord-length: 10px; left: 14%; top: 22px; animation-delay: -1.4s; }
.light-bulb:nth-child(3) { --cord-length: 14px; left: 27%; top: 42px; animation-delay: -2.6s; }
.light-bulb:nth-child(4) { --cord-length: 15px; left: 40%; top: 57px; animation-delay: -3.1s; }
.light-bulb:nth-child(5) { --cord-length: 13px; left: 54%; top: 58px; animation-delay: -1.9s; }
.light-bulb:nth-child(6) { --cord-length: 9px; left: 67%; top: 45px; animation-delay: -2.2s; }
.light-bulb:nth-child(7) { --cord-length: 8px; left: 79%; top: 29px; animation-delay: -3.4s; }
.light-bulb:nth-child(8) { --cord-length: 7px; left: 91%; top: 15px; animation-delay: -1.1s; }
.light-bulb:nth-child(9) { --cord-length: 4px; left: 98%; top: 6px; animation-delay: -2.8s; }

.hero-ribbon {
  position: absolute;
  left: 74%;
  top: 30px;
  width: 16px;
  height: 16px;
  border-radius: 50% 50% 45% 45%;
  background:
    radial-gradient(circle at 35% 35%, rgba(255, 247, 233, 0.95), rgba(232, 205, 170, 0.92) 72%);
  box-shadow: 0 0 10px rgba(255, 238, 210, 0.18);
  transform: translateX(-50%) rotate(-8deg);
}

.hero-ribbon::before,
.hero-ribbon::after {
  content: "";
  position: absolute;
  top: 5px;
  width: 14px;
  height: 9px;
  border-radius: 12px 12px 8px 8px;
  background: rgba(235, 213, 184, 0.92);
}

.hero-ribbon::before {
  right: 7px;
  transform: rotate(26deg);
}

.hero-ribbon::after {
  left: 7px;
  transform: rotate(-26deg);
}

.hero-ribbon {
  clip-path: polygon(50% 0%, 61% 34%, 100% 41%, 72% 61%, 78% 100%, 50% 76%, 22% 100%, 28% 61%, 0% 41%, 39% 34%);
}

.date-line,
.section-kicker {
  margin: 0 0 14px;
  font-size: 0.78rem;
  font-weight: 650;
  text-transform: uppercase;
  color: var(--brass);
}

.date-line {
  font-size: clamp(0.98rem, 1.35vw, 1.16rem);
  letter-spacing: 0.09em;
}

.hero h1,
.section h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.02;
}

.hero h1 {
  max-width: 720px;
  font-size: clamp(3.3rem, 7.2vw, 6.5rem);
}

.hero-copy {
  max-width: 520px;
  margin: 14px 0 0;
  color: rgba(255, 253, 246, 0.9);
  font-size: clamp(0.95rem, 1.25vw, 1.02rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 650;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: #fffdf6;
  color: var(--pond);
  border-color: #fffdf6;
}

.button-secondary {
  color: #fffdf6;
  background: rgba(255, 255, 255, 0.08);
}

.section {
  padding: clamp(72px, 11vw, 140px) clamp(18px, 6vw, 86px);
}

section[id] {
  scroll-margin-top: 96px;
}

.section-intro {
  display: grid;
  grid-template-columns: minmax(180px, 0.38fr) 1fr;
  gap: clamp(32px, 7vw, 92px);
  background: var(--paper);
}

.section-heading {
  max-width: 680px;
}

.section h2 {
  font-size: clamp(2.8rem, 7vw, 6rem);
  color: var(--pond);
}

.section-heading p:not(.section-kicker) {
  margin: 18px 0 0;
  max-width: 620px;
  color: var(--muted);
}

.program-list {
  border-top: 1px solid var(--line);
}

.program-item {
  display: grid;
  grid-template-columns: minmax(130px, 0.34fr) 1fr;
  gap: clamp(20px, 5vw, 64px);
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.program-date {
  color: var(--moss);
  font-size: 0.9rem;
  font-weight: 700;
}

.program-item h3,
.stay-item h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 500;
  color: var(--pond);
}

.program-item p,
.stay-item p,
.place-copy p,
.contact-copy p {
  margin: 12px 0 0;
  color: var(--muted);
}

.program-steps {
  display: grid;
  gap: 0;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.program-steps li {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding: 12px 0;
  border-top: 1px solid rgba(29, 36, 32, 0.1);
}

.program-steps li:first-child {
  padding-top: 0;
  border-top: 0;
}

.program-steps time {
  color: var(--moss);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.program-steps span {
  color: var(--ink);
  line-height: 1.55;
}

.place-section {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(300px, 1fr);
  gap: clamp(34px, 7vw, 96px);
  align-items: center;
  background: #e7dece;
}

.place-note-section {
  overflow: hidden;
  padding-bottom: 0;
  background: var(--paper-soft);
}

.place-note-section .section-heading {
  margin-bottom: 26px;
}

.place-note {
  max-width: 760px;
}

.place-note p {
  margin: 0;
  max-width: 700px;
  color: var(--muted);
}

.place-note p + p {
  margin-top: 14px;
}

.couple-peek {
  position: relative;
  width: min(680px, 100%);
  height: 290px;
  margin: clamp(38px, 5vw, 72px) auto 0 0;
  overflow: hidden;
  pointer-events: none;
}

.couple-peek-face {
  position: absolute;
  width: auto;
  height: auto;
  object-fit: contain;
  filter:
    drop-shadow(0 1px 0 rgba(255, 250, 235, 0.56))
    drop-shadow(0 16px 24px rgba(16, 42, 36, 0.2));
}

.couple-peek-jakub {
  z-index: 2;
  left: 6%;
  bottom: -24%;
  width: 340px;
  transform: rotate(-2deg);
}

.couple-peek-alexandra {
  z-index: 1;
  right: 7%;
  bottom: -16%;
  width: 305px;
  transform: rotate(2deg);
}

.family-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 82px);
  align-items: start;
  background: var(--paper);
}

.family-copy {
  max-width: 560px;
}

.family-copy p:not(.section-kicker) {
  margin: 16px 0 0;
  max-width: 540px;
  color: var(--muted);
}

.family-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(220px, 0.9fr);
  gap: 18px;
  align-items: stretch;
}

.family-photo {
  margin: 0;
  min-height: 240px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: #d9d0bf;
}

.family-photo-wide {
  grid-row: span 2;
  min-height: 100%;
}

.photo-link {
  display: block;
  width: 100%;
  height: 100%;
  cursor: zoom-in;
}

.photo-link img {
  transition: transform 300ms ease, filter 300ms ease;
}

.photo-link:hover img,
.photo-link:focus-visible img {
  transform: scale(1.025);
  filter: brightness(1.04);
}

.photo-link:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: -3px;
}

.place-copy {
  max-width: 560px;
}

.fact-list {
  display: grid;
  gap: 18px;
  margin: 34px 0 0;
}

.fact-list div {
  padding-top: 18px;
  border-top: 1px solid rgba(16, 42, 36, 0.18);
}

.fact-list dt {
  color: var(--moss);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.fact-list dd {
  margin: 4px 0 0;
  color: var(--ink);
}

.image-frame {
  min-height: 520px;
  margin: 0;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.image-frame {
  border-radius: 8px;
}

.stay-section {
  position: relative;
  background: var(--pond);
  color: #fffdf6;
  overflow: hidden;
}

.stay-section-compact .section-heading h2 {
  font-size: clamp(2.4rem, 5vw, 4rem);
}

.stay-section-compact .section-heading {
  margin-bottom: 18px;
}

.stay-section h2,
.stay-section .stay-list strong {
  color: #fffdf6;
}

.stay-section .section-heading,
.stay-section .stay-text {
  position: relative;
  z-index: 1;
}

.stay-section .section-heading p,
.stay-section .stay-text p,
.stay-section .stay-list span {
  color: rgba(255, 253, 246, 0.72);
}

.stay-text {
  max-width: 760px;
}

.stay-text > p {
  margin: 0;
  max-width: 700px;
}

.stay-subheading {
  margin: 28px 0 0;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 500;
  color: #fffdf6;
}

.fireflies {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.firefly {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 224, 143, 0.9);
  box-shadow:
    0 0 8px rgba(255, 224, 143, 0.38),
    0 0 18px rgba(255, 224, 143, 0.14);
  opacity: 0.2;
  animation: firefly-float 9s ease-in-out infinite, firefly-glow 3.8s ease-in-out infinite;
}

.firefly:nth-child(1) {
  top: 16%;
  left: 78%;
  animation-delay: -1.2s;
}

.firefly:nth-child(2) {
  top: 24%;
  left: 88%;
  animation-delay: -2.8s;
}

.firefly:nth-child(3) {
  top: 40%;
  left: 72%;
  animation-delay: -0.9s;
}

.firefly:nth-child(4) {
  top: 52%;
  left: 84%;
  animation-delay: -4.1s;
}

.firefly:nth-child(5) {
  top: 66%;
  left: 76%;
  animation-delay: -3.3s;
}

.firefly:nth-child(6) {
  top: 74%;
  left: 90%;
  animation-delay: -1.8s;
}

.firefly:nth-child(7) {
  top: 32%;
  left: 94%;
  animation-delay: -5s;
}

.stay-list {
  display: grid;
  gap: 0;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.stay-list li {
  display: grid;
  gap: 8px;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 253, 246, 0.16);
}

.stay-list strong {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.8vw, 1.9rem);
  font-weight: 500;
}

.stay-list span {
  max-width: 680px;
}

.stay-list a {
  display: inline-block;
  width: fit-content;
  margin-top: 6px;
  color: #f3d49b;
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.stay-list a + a {
  margin-left: 0;
  margin-top: 10px;
}

.contact-section {
  background: var(--paper-soft);
  text-align: center;
}

.contact-copy {
  max-width: 720px;
  margin: 0 auto;
}

.contact-copy .button-primary {
  margin-top: 26px;
  background: var(--pond);
  color: #fffdf6;
  border-color: var(--pond);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 6vw, 86px);
  background: var(--paper-soft);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes bulb-flicker {
  0%,
  100% {
    opacity: 0.72;
    transform: translateX(-50%) scale(1);
  }

  18% {
    opacity: 0.95;
  }

  42% {
    opacity: 0.58;
    transform: translateX(-50%) scale(0.96);
  }

  68% {
    opacity: 1;
    transform: translateX(-50%) scale(1.04);
  }
}

@keyframes firefly-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  30% {
    transform: translate3d(8px, -10px, 0);
  }

  55% {
    transform: translate3d(-6px, 6px, 0);
  }

  80% {
    transform: translate3d(10px, -4px, 0);
  }
}

@keyframes firefly-glow {
  0%,
  100% {
    opacity: 0.16;
  }

  40% {
    opacity: 0.48;
  }

  65% {
    opacity: 0.22;
  }

  82% {
    opacity: 0.62;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button,
  .reveal,
  .site-header,
  .light-bulb,
  .firefly {
    transition: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .light-bulb,
  .firefly {
    animation: none;
  }
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    padding-top: 16px;
  }

  .nav-links {
    gap: 10px 16px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .hero {
    display: flex;
    align-items: flex-start;
    min-height: 60svh;
    padding-top: 92px;
  }

  .hero-media {
    background:
      linear-gradient(0deg, rgba(16, 42, 36, 0.78), rgba(16, 42, 36, 0.18)),
      var(--hero-image) center / cover;
  }

  .hero-content {
    width: calc(100% - 36px);
    margin: 0 18px 28px;
  }

  .hero-lights {
    inset: 0 0 auto;
    height: 82px;
  }

  .hero h1 {
    font-size: clamp(3rem, 14vw, 4.9rem);
  }

  .section-intro,
  .family-section,
  .place-section {
    grid-template-columns: 1fr;
  }

  .family-gallery {
    grid-template-columns: 1fr;
  }

  .family-photo,
  .family-photo-wide {
    min-height: min(70vw, 380px);
  }

  .family-photo-wide {
    grid-row: auto;
  }

  .image-frame {
    min-height: min(72vw, 430px);
  }
}

@media (max-width: 560px) {
  .brand {
    font-size: 1.2rem;
  }

  .nav-links {
    font-size: 0.78rem;
  }

  .couple-peek {
    width: 100%;
    height: 220px;
    margin-top: 34px;
  }

  .couple-peek-jakub {
    left: -6%;
    bottom: -19%;
    width: min(340px, 68vw);
  }

  .couple-peek-alexandra {
    right: -7%;
    bottom: -13%;
    width: min(305px, 60vw);
  }

  .program-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .hero-lights {
    inset: 0 0 auto;
    height: 72px;
  }

  .light-bulb {
    width: 8px;
    height: 8px;
  }

  .firefly {
    width: 4px;
    height: 4px;
  }

  .program-steps li {
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 16px;
  }

  .button {
    width: 100%;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2px;
    padding: 12px 16px;
  }

  .brand {
    white-space: nowrap;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 8px;
    font-size: 0.72rem;
  }

  .hero {
    padding-top: 112px;
  }
}
