@font-face {
  font-family: 'Nourd';
  src: url('fonts/nourd_regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
} 


@font-face {
  font-family: 'Abramo Script';
  src: url('fonts/Abramo Script.woff2') format('woff2'),
       url('fonts/Abramo Script.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Haigrast Script';
  src: url('fonts/HaigrastScript_PERSONAL_USE_ONLY.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Abramo Regular';
  src: url('fonts/Abramo Regular.woff2') format('woff2'),
       url('fonts/Abramo Regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Tan Mon Cheri';
  src: url('fonts/tan-mon-cheri.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}


@font-face {
  font-family: 'EB Garamond';
  src: url('fonts/EBGaramond-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'EB Garamond';
  src: url('fonts/EBGaramond-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'EB Garamond';
  src: url('fonts/EBGaramond-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: 'EB Garamond';
  src: url('fonts/EBGaramond-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}


* {
  box-sizing: border-box;
}


html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
  color: var(--color-dark);
  background-color: #fff;
  overflow-x: hidden;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-smooth: always;
  text-rendering: geometricPrecision;
}

body {
  margin: 0;
  padding: 0;
  background-color: #eaf0f1;
  color: #2b2b2b;
  text-align: center;
  font-family: 'EB Garamond', serif;

  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}



.names {
  display: flex;
  flex-direction: column;
  color: #2b2b2b;
  line-height: 1;
}

/* Names use Abramo Script */
.names .first-name {
  font-family: 'Abramo Script', serif;
  font-size: 120px;
  color: #5b7f88;
  font-weight: normal;
  margin-left: 25px;
  z-index: 2;
}

.names .second-name {
  font-family: 'Abramo Script', serif;
  font-size: 120px;
  color: #5b7f88;
  font-weight: normal;
  margin-left: 110px;
  margin-top: -60px;
  z-index: 2;
}

/* & symbol uses Tan Mon Cheri */
.names .ampersand {
  font-family: 'Tan Mon Cheri';
  font-size: 50px;
  margin-left: 75px;
  margin-top: -8px;
  color: #C5C6C6;
  z-index: 1;
  font-weight: 100; 
}


.initial {
  font-family: 'Haigrast Script';
  font-weight: normal;
  font-size: inherit;      /* ten sam rozmiar co reszta imienia */
  line-height: inherit;    /* dopasowanie wysokości linii */
  color: inherit;          /* zachowaj kolor z rodzica */
  display: inline;
  vertical-align: baseline; /* niech litera siedzi równo z linią tekstu */
}


/* --- Responsive scaling and horizontal shift --- */

.names-header {
  position: relative;
  text-align: left;
  margin-top: 120px;
  margin-left: var(--nameShift);

  /* Reserve or remove space depending on scale:
     - scale < 1 → negative margin pulls next section up (removes extra gap)
     - scale > 1 → positive margin pushes next section down (adds needed room) */
  --nameBaseH: 260px; /* tweak 240–300px until it’s perfect for your base size */
  margin-bottom: calc( (var(--nameScale) - 1) * var(--nameBaseH) );
}


.names-wrap {
  transform-origin: top left;
  transform: scale(var(--nameScale));
  transition: transform 0.35s ease;
}


/* vertical decorative line */
.v-line {
  position: absolute;
  top: -10px;       /* starts near the top of page */
  left: clamp(-15px, -1vw, -40px);      /* aligns with names */
  height: clamp(180px, 35vw, 500px);   /* length increases smoothly */
  border-left: clamp(2px, 0.25vw, 4px) solid #2b2b2b;  /* constant-ish width */
  opacity: 0.9;
  z-index: 1;
  pointer-events: none;
  transition: left 0.4s ease, height 0.4s ease;
}


/* position: as you wanted */
:root {
  --nameShift: clamp(40px, 18vw, 600px);
  --nameScale: 0.8;            /* base (your current look) */
}

/* start enlarging earlier and faster */
@media (min-width: 800px)   { :root { --nameScale: 1; } }
@media (min-width: 1000px)  { :root { --nameScale: 1.2; } }
@media (min-width: 1200px)  { :root { --nameScale: 1.4; } }



.subtitle {
  font-size: clamp(13px, 2vw, 24px);
  max-width: 550px;
  line-height: 2;
  margin-top: clamp(-20px, -5vw, -150px);
  letter-spacing: clamp(1.2px, 0.5vw, 3.2px);
}

.date {
  font-family: 'Tan Mon Cheri';
  font-size: clamp(16px, 3vw, 32px);
  letter-spacing: 5px;
  margin-top: 5px;
  line-height: 2;
  color: #5b7f88;
}

.intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: -5px;
  letter-spacing: 2px;
}

.countdown {
  margin-top: 70px;
  text-align: center;
  margin-bottom: 70px;
}

.countdown-boxes {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.countdown-item {
  background-color: #fff;
  padding: 20px 16px;
  width: 100px;
  height: 100px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 0;
  color: #2b2b2b;
}

.countdown-value {
  font-family: 'Tan Mon Cheri';
  font-size: clamp(15px, 2vw, 30px);
  font-weight: bold;
  color: #5b7f88;
}

.countdown-label {
  font-size: 20px;
  font-weight: normal;
  color: #2b2b2b;
  margin-top: 10px;
  letter-spacing: 2px;
}

.top-nav {
  position: fixed;
  width: 100vw;
  top: 0;
  left: 0;
  background-color: rgba(255, 255, 255, 0.65); /* bardziej przezroczyste */
  backdrop-filter: blur(4px);
  z-index: 100;
  padding: 0.6rem 2rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.top-nav ul {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  margin: 0 auto;
  padding: 0;
  width: 100%;
  max-width: 1600px; /* keep nice bounds on ultrawide screens */
  gap: clamp(0.8rem, 8vw, 10rem);
  transition: gap 0.4s ease; /* smooth animation when resizing */
}

.top-nav a {
  text-decoration: none;
  font-family: var(--font-main); /* czyli Bellefair */
  font-size: clamp(12px, 1.2vw, 18px);
  color: var(--color-dark);
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

.top-nav a:hover {
  color: #5b7f88;
}

.section {
  padding: 5rem 2rem;
  text-align: left;
  max-width: 900px;
  line-height: 0.5;
  margin: 0 auto;
  margin-top: -8rem;
}

.section-title {
  font-family: 'Abramo Script';
  text-align: left;
  margin: 0 auto;
  font-weight: normal;
  font-size: clamp(50px, 11vw, 110px);
  margin-bottom: 4rem;
  color: #2b2b2b;
  font-feature-settings: "liga" 1, "clig" 1, "calt" 1;
  font-variant-ligatures: common-ligatures contextual;
  line-height: 0.9;
}

.timeline {
  position: relative;
  margin-left: 2rem;
  padding-left: 2rem;
  border-left: 2px solid #aaa; /* jaśniejszy szary 
  margin-top: -70px; */
}


.event {
  position: relative;
  margin-bottom: 4rem;
  padding-left: 1rem;
}

.event::before {
  content: '';
  position: absolute;
  left: calc(-2rem - 6px);
  top: 0.75em;             /* niżej względem tekstu */
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  background-color: #aaa; /* ten sam kolor co linia */
  border-radius: 50%;
}

.event-title {
  font-family: 'Tan Mon Cheri';
  font-size: clamp(12px, 2vw, 28px);
  margin: 0 0 0.5rem 0;
  letter-spacing: 10px;
  line-height: 1.2;
}

.event-time {	
  font-family: 'EB Garamond';
  font-size: clamp(14px, 2vw, 22px);
  margin: 0 0 1 rem 0;
  letter-spacing: 2px;
}

.event-location {
  font-family: 'Nourd', sans-serif;
  font-size: clamp(12px, 1.5vw, 20px);
  margin: 0 0 1.5rem 0; /* lekki odstęp na dole */
  letter-spacing: 2px;
  line-height: 1.2;
}

.places-section {
  text-align: left;
  padding: 5rem 2rem;
  max-width: 900px;
  margin: 0 auto;
  margin-top: -4rem;
}

.places-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.place-card {
  background-color: #fff;
  padding: 2rem;
  flex: 1 1 400px;
  max-width: 500px;
  text-align: left;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.05);
  letter-spacing: 2px;
}

.place-card h3 {
  font-family: 'Tan Mon Cheri';
  font-size: clamp(20px, 2vw, 36px);
  margin-bottom: 1rem;
  font-weight: normal;
  letter-spacing: 10px;
}

.place-card p {
  font-family: 'EB Garamond';
  font-size: clamp(12px, 1.8vw, 16px);
  margin-bottom: 1rem;
  color: #2b2b2b;
  line-height: 2;
}

.map-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  margin-top: 1rem;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.rsvp-section {
  padding: 5rem 2rem;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.rsvp-subtitle {
  font-family: 'Tan Mon Cheri';
  font-size: clamp(12px, 2.4vw, 20px);
  line-height: 1.6;
  letter-spacing: 7px;
  /*margin: 0 0 1.5rem 1.5rem;  shorthand for top/right/bottom/left */
  /*display: inline-block;      allows top margin without forcing a break */
  text-align: center;        /* optional, looks nice if centered */
}

.rsvp-subtitle .rsvp-date {
  font-family: 'Tan Mon Cheri';
  font-size: clamp(14px, 2.4vw, 24px);
  color: #5b7f88;
  text-shadow: 0.1px 0.1px 1px currentColor;
}


.form-wrapper {
  max-width: 700px;
  margin: 2rem auto;
  background-color: #fff;
  padding: clamp(1rem, 4vw, 2rem);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.contact-section {
  padding: 4rem 2rem;
  max-width: 900px;
  margin: 0 auto;
  text-align: left;   /* jak w short */
  margin-top: -70px;
}


.section-subtitle {
  font-family: 'Tan Mon Cheri';
  font-size: clamp(16px, 2.5vw, 28px);
  margin-bottom: 2rem;
  text-align: center;
  font-weight: normal;
  text-shadow: 0.1px 0.1px 1px currentColor;
  letter-spacing: 15px;
}

.contacts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  align-items: stretch; /* ensures equal heights */
  text-align: left;
}

.contact-box {
  padding: 1.5rem;
  background: #fff;
  display: flex;
  flex-direction: column;
  text-align: left;
  letter-spacing: 0.1rem;
  font-size: clamp(14px, 1.8vw, 18px);
}


.box-style {
  background-color: #fff;
  border: 1px solid rgba(0,0,0,0.1);
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  border-radius: 0;
}

.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-size: 1rem;
  vertical-align: middle;
  margin-right: 0.4rem;
  color: var(--color-dark);
}

.contact-name {
  font-family: 'EB Garamond';
  font-size: clamp(20px, 2vw, 32px);
  margin-bottom: 1rem;
  font-weight: normal;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
  margin-top: -2px;
}


.inserted-photo {
  display: flex;
  justify-content: center;
  margin: 4rem 0;
  margin-top: clamp(-5rem, -7vw, -7rem);
}

.inserted-photo img {
  width: 100%;
  height: auto;
  display: block;
  mix-blend-mode: darken;
  opacity: 0.6; /* lub mniej, np. 0.5 */
  filter: contrast(1.4) brightness(1.05) grayscale(20%);
-webkit-mask-image: linear-gradient(to bottom,
  rgba(0, 0, 0, 0) 0%,           /* całkowicie przezroczysty na samym początku */
  rgba(0, 0, 0, 0.3) 5%,         /* lekkie zacienienie od góry */
  rgba(0, 0, 0, 1) 10%,          /* pełna widoczność zaczyna się od 15% */
  rgba(0, 0, 0, 1) 85%,          /* obraz widoczny do 80% wysokości */
  rgba(0, 0, 0, 0.5) 92%,        /* delikatne przejście zaczyna się przy 90% */
  rgba(0, 0, 0, 0.2) 95%,        /* coraz jaśniej */
  transparent 100%);            /* całkowicie znika na dole */

mask-image: linear-gradient(to bottom,
  rgba(0, 0, 0, 0) 0%,
  rgba(0, 0, 0, 0.3) 5%,
  rgba(0, 0, 0, 1) 10%,
  rgba(0, 0, 0, 1) 85%,
  rgba(0, 0, 0, 0.5) 92%,
  rgba(0, 0, 0, 0.2) 95%,
  transparent 100%);

}

.donation-section {
  padding: 4rem 2rem;
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
  position: relative;
  margin-top: -7rem;
}

.donation-intro {
  font-family: 'Tan Mon Cheri';
  font-size: clamp(14px, 2.4vw, 20px);
  margin-bottom: 1.5rem;
  line-height: 1.6;
  letter-spacing: 7px;
}

.donation-text {
  font-size: clamp(14px, 2.4vw, 20px);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.highlighted {
  text-shadow: 0.1px 0.1px 1px currentColor;
}


.donation-links {
  list-style-type: none;
  padding-left: 0;
  font-size: clamp(14px, 2.4vw, 20px);
  line-height: 1.6;
}

.donation-links li em,
.donation-links li p {
  font-family: 'Nourd', sans-serif;
}

.donation-links a {
  color: var(--color-dark);
  text-decoration: underline;
}

.donation-description {
  font-size: clamp(12px, 1.8vw, 16px);
  line-height: 1.5;
  margin-top: 0.3rem;
  margin-bottom: 0.8rem;
}

.donation-details {
  font-size: clamp(14px, 2vw, 16px);
  line-height: 1.4;
  font-family: 'Nourd', sans-serif;
}


/* Responsywność na mniejszych ekranach */
@media (max-width: 768px) {

  /* countdown */
  .countdown-boxes {
    gap: 12px;
    margin-top: 20px;
    padding: 0 1rem;
  }

  .countdown-item {
    width: 70px;
    height: 70px;
    padding: 10px;
  }

  .countdown-value {
    font-size: 16px;
  }

  .countdown-label {
    font-size: 12px;
  }

  /* form */
  .form-wrapper {
    max-width: 90%;
  }

  /* navigation */
  .top-nav {
    padding: 0.3rem 0.8rem;
  }

  .top-nav ul {
    gap: 0.8rem;
  }
}

@media (max-width: 480px) {
  .section-subtitle {
    letter-spacing: clamp(3px, 1vw, 6px);
  }
}

