@import "./fonts.css";
@import "./animations.css";

:root {
  --tn-ratio-global-scale: 62.5%; /* 62.5% -> 1rem ~ 10px */

  --tn-dimension-max-page-width: 120rem;
  --tn-dimension-navbar-height: 6rem;
  --tn-dimension-default-section-margin: 8rem;
  --tn-dimension-base-font-size: 1.8rem;

  --tn-font-family-main: "crimson-webfont", serif;
  --tn-font-family-headings: "great-vibes-webfont", sans-serif;
  --tn-font-family-logo: "alexbrush-webfont", sans-serif;

  --tn-color-primary-text: #042260;
  --tn-color-primary-background: #fff;
  --tn-color-primary-shadow: #7f7f7f4d;
  --tn-color-primary-cloudy-text: #042260;
  --tn-color-primary-cloudy-background: #efefef;
  --tn-color-primary-inverse-text: #fff;
  --tn-color-primary-inverse-background: #042260;
  --tn-color-secondary-inverse-text: #fff;
  --tn-color-secondary-inverse-background: #5d88a5;
  --tn-color-highlight-text: #fcaf17;
  --tn-color-highlight-background: #fff;
}

* {
  margin: 0;
  padding: 0;
}

.hidden {
  display: none;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.cols__col + .cols__col {
  margin-top: 4rem;
}

/* 992px */
@media (min-width: 62em) {
  .cols {
    display: flex;
  }

  .cols__col {
    width: calc(50% - 1rem);
    padding-right: 1rem;
  }

  .cols__col + .cols__col {
    margin-top: 0;
    padding-right: 0;
    padding-left: 1rem;
  }
}

.container {
  max-width: 96rem;
  padding: 0 2rem;
  margin: auto;
}

/* 768px */
@media (min-width: 48em) {
  .container {
    padding: 0 4rem;
  }
}

.qr-payment {
  display: block;
  width: 22.25rem;
  max-width: 100%;
}

html {
  font-size: var(--tn-ratio-global-scale);
  scroll-padding-top: var(--tn-dimension-navbar-height);
  scroll-behavior: smooth;
}

html.dialog-opened {
  overflow: hidden;
}

body {
  font-size: var(--tn-dimension-base-font-size);
  font-family: var(--tn-font-family-main);
  line-height: 1.25;
  padding-top: var(--tn-dimension-navbar-height);
  color: var(--tn-color-primary-text);
  background: var(--tn-color-primary-background);
}

main {
  max-width: var(--tn-dimension-max-page-width);
  margin: auto;
  padding-bottom: 38.4rem;
  background: url(../img/ilustrace.jpg) no-repeat bottom center / 76.8rem auto;
  animation: fade-in 4s 0.2s both;
}

/* 768px */
@media (min-width: 48em) {
  main {
    padding-bottom: min(50vw, var(--tn-dimension-max-page-width) / 2);
    background-size: contain;
  }
}

section {
  margin: var(--tn-dimension-default-section-margin) 0;
  scroll-margin-top: var(--tn-dimension-default-section-margin);
}

section:first-child {
  margin-top: 0;
}

h2 {
  font-size: 262%;
  font-weight: normal;
  font-family: var(--tn-font-family-headings);
}

h2:not(:first-child) {
  margin-top: 1lh;
}

h3 {
  font-size: 120%;
  font-weight: 600;
}

p,
ul {
  margin: 1lh 0;
}

ul {
  padding-left: 1lh;
}

strong {
  font-weight: 600;
}

abbr {
  text-decoration: none;
}

a {
  color: inherit;
}

a:hover {
  opacity: 0.6;
}

button {
  border: 0;
  font: inherit;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

button:hover {
  opacity: 0.6;
}

.main-header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.4rem;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  height: var(--tn-dimension-navbar-height);
  font-size: 120%;
  color: var(--tn-color-primary-text);
  background: var(--tn-color-primary-background);
  box-shadow: 0 0 0.4rem var(--tn-color-primary-shadow);
}

/* 992px */
@media (min-width: 62em) {
  .main-header {
    gap: 3.2rem;
  }
}

.main-header > h1 {
  font-size: inherit;
  font-weight: inherit;
  font-family: var(--tn-font-family-logo);
}

.main-header > h1 > a {
  position: relative;
  top: 0.3rem;
  text-decoration: none;
}

/* 768px */
@media (min-width: 48em) {
  .main-header > h1 > a {
    position: static;
  }
}

.main-header .main-header__menu-open-button {
  display: flex;
  box-sizing: content-box;
  flex-direction: column;
  justify-content: space-around;
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.95rem 1.2rem;
}

/* 768px */
@media (min-width: 48em) {
  .main-header .main-header__menu-open-button {
    display: none;
  }
}

.main-header .main-header__menu-open-button > div {
  width: 100%;
  height: 0.2rem;
  background: var(--tn-color-primary-text);
}

.main-header .main-header__menu-close-button {
  display: block;
  box-sizing: content-box;
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.95rem 1.2rem;
}

/* 768px */
@media (min-width: 48em) {
  .main-header .main-header__menu-close-button {
    display: none;
  }
}

.main-header .main-header__menu-close-button > div {
  position: absolute;
  top: 2.1rem;
  left: 20%;
  width: 60%;
  height: 0.2rem;
  background: var(--tn-color-primary-text);
}

.main-header .main-header__menu-close-button > div:nth-of-type(1) {
  transform: rotate(45deg);
}

.main-header .main-header__menu-close-button > div:nth-of-type(2) {
  transform: rotate(-45deg);
}

.main-header > nav {
  box-sizing: border-box;
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  padding: calc(8rem - 0.5lh) 4rem 4rem;
  background: rgb(from var(--tn-color-primary-background) r g b / 0.95);
  color: var(--tn-color-primary-text);
  overflow: auto;
}

/* 768px */
@media (min-width: 48em) {
  .main-header > nav {
    display: block;
    position: static;
    width: auto;
    height: auto;
    padding: 0;
    background: transparent;
    color: inherit;
    overflow: visible;
  }
}

.main-header--menu-opened > nav {
  display: block;
}

.main-header > nav > ul {
  margin: 0;
  padding-left: 0;
  text-align: center;
}

/* 768px */
@media (min-width: 48em) {
  .main-header > nav > ul {
    display: flex;
    gap: 1.2rem;
  }
}

/* 992px */
@media (min-width: 62em) {
  .main-header > nav > ul {
    gap: 1.6rem;
  }
}

.main-header > nav > ul > li {
  display: block;
}

.main-header > nav > ul > li > a {
  display: block;
  padding: 0.5lh;
  text-decoration: none;
}

/* 768px */
@media (min-width: 48em) {
  .main-header > nav > ul > li > a {
    padding: 0;
  }
}

.intro {
  padding: 46.4rem 0 6rem;
  text-align: center;
  color: var(--tn-color-primary-text);
  background: var(--tn-color-primary-background) url(../img/intro.jpg) no-repeat top center / 76.8rem auto;
}

/* 576px */
@media (min-width: 36em) {
  .intro {
    font-size: 120%;
  }
}

/* 768px */
@media (min-width: 48em) {
  .intro {
    padding-top: calc(min(50vw, var(--tn-dimension-max-page-width) / 2) + 10rem);
    font-size: 140%;
    background-size: cover;
  }
}

/* 992px */
@media (min-width: 62em) {
  .intro {
    font-size: 162%;
  }
}

.rsvp {
  margin-top: calc(var(--tn-dimension-default-section-margin) + 2rem);
}

/* 768px */
@media (min-width: 48em) {
  .rsvp {
    font-size: 120%;
  }
}

.rsvp__container {
  position: relative;
  padding: 4rem 2rem 2rem;
  border: 0.3rem solid var(--tn-color-highlight-text);
  text-align: center;
}

.rsvp__heading {
  position: absolute;
  top: -0.5lh;
  left: 50%;
  transform: translate(-50%);
  padding: 0 0.3rem;
  color: var(--tn-color-highlight-text);
  background: var(--tn-color-highlight-background);
  white-space: nowrap;
}

.location {
  margin: 0;
  padding: calc(var(--tn-dimension-default-section-margin) + 2rem) 0
    calc(var(--tn-dimension-default-section-margin) - 2rem);
  scroll-margin-top: -2rem;
  color: var(--tn-color-primary-cloudy-text);
  background: var(--tn-color-primary-cloudy-background);
}

/* 768px */
@media (min-width: 48em) {
  .location {
    font-size: 120%;
  }
}

.location__intro {
  margin-bottom: 4rem;
}

.location__outro {
  margin-top: 4rem;
}

/* 992px */
@media (min-width: 62em) {
  .location__outro {
    margin-top: calc(4rem - 1lh);
  }
}

.location__outro > :first-child {
  margin-top: 0;
}

.transport {
  margin: 0;
  padding: calc(var(--tn-dimension-default-section-margin) + 18rem) 0
    calc(var(--tn-dimension-default-section-margin) - 8rem);
  scroll-margin-top: -18rem;
  color: var(--tn-color-secondary-inverse-text);
  background: var(--tn-color-secondary-inverse-background) url(../img/hory-top.png) no-repeat top center / 131.1rem auto;
}

.transport > div > p:last-of-type {
  margin-bottom: 0;
}

/* 576px */
@media (min-width: 36em) {
  .transport > div > p:nth-of-type(1) {
    max-width: 60%;
  }

  .transport > div > p:nth-of-type(2) {
    max-width: 70%;
  }

  .transport > div > p:nth-of-type(3) {
    max-width: 80%;
  }

  .transport > div > p:nth-of-type(4) {
    max-width: 65%;
  }

  .transport > div > p:nth-of-type(5) {
    max-width: 50%;
  }
}

/* 768px */
@media (min-width: 48em) {
  .transport {
    font-size: 120%;
  }
}

.accomodation {
  margin: 0;
  padding: calc(var(--tn-dimension-default-section-margin) + 36rem) 0 var(--tn-dimension-default-section-margin);
  scroll-margin-top: -36rem;
  color: var(--tn-color-primary-inverse-text);
  background: var(--tn-color-primary-inverse-background) url(../img/hory-middle.png) no-repeat top center / 131.1rem
    auto;
}

/* 768px */
@media (min-width: 48em) {
  .accomodation {
    font-size: 120%;
  }
}

.gifts {
  margin-bottom: 0;
}

/* 768px */
@media (min-width: 48em) {
  .gifts {
    font-size: 120%;
  }
}

.contact {
  max-width: var(--tn-dimension-max-page-width);
  margin: 0 auto 16rem;
  padding: var(--tn-dimension-default-section-margin) 0 calc(var(--tn-dimension-default-section-margin) + 4rem);
  text-align: center;
  color: var(--tn-color-primary-text);
  background: linear-gradient(180deg, var(--tn-color-primary-cloudy-background), var(--tn-color-primary-background));
}

/* 768px */
@media (min-width: 48em) {
  .contact {
    font-size: 120%;
  }
}
