/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Remove default margin */
body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin-block-end: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role="list"],
ol[role="list"] {
  list-style: none;
}

/* Set core root defaults */
html:focus-within {
  scroll-behavior: smooth;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
}

/* Make images easier to work with */
img,
picture {
  max-width: 100%;
  display: block;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font: inherit;
}

/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

ul {
  padding-left: 0;
  list-style: none;
}

.italics {
  font-style: italic;
  font-size: 1rem;
}

.screen-reader-only {
  aspect-ratio: 1;
  left: -1000vw;
  position: absolute;
  width: 1px;
}

a {
  color: inherit;
  font-weight: 600;
}

p {
  margin-inline: auto;
  max-width: 75%;
  text-wrap: pretty;
}

@media (min-width: 43.75em) {
  p {
    max-width: 65%;
  }
}

@media (min-width: 62.5em) {
  p {
    max-width: 70%;
  }
}

@media (min-width: 110em) {
  p {
    max-width: unset;
  }
}

body {
  background-attachment: fixed;
  background-image: url(./media/background.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  color: #72223b;
  margin: 0;
  font-size: 1.1rem;
}

body.no-header {
  display: grid;
  background-image: none;
  place-content: center;

  & h1 {
    margin: 0;
  }
}

@media (width < 40em) {
  body {
    background-attachment: local;
    background-position: 0 12em;
  }
}
.container {
  margin: 0 auto;
  max-width: 900px;
  width: calc(100% - 2em);
}

header {
  background-color: #72223b;
  color: #fff;
  margin: 0;
  display: flex;
  & > .container {
    align-items: center;
    display: flex;
    justify-content: space-around;
  }
  & ul {
    display: flex;
    gap: 1rem;
  }

  & form {
    display: flex;
    & > label {
      margin-inline-start: auto;
      width: fit-content;
    }
  }

  & a,
  label {
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.125ch;
    padding: 0.125rem;
    &[data-current] {
      color: gold;
    }
  }
}

@media (width < 40em) {
  header > .container {
    flex-direction: column;
    & > form {
      order: -1;
    }
  }
  header ul {
    flex-direction: column;
  }
}

main {
  text-align: center;
}

main img {
  margin: 0 auto;
}

.main__subheading {
  font-size: 1.5rem;
  font-weight: 600;
}

.main__title-img {
  width: 350px;
  margin-top: 2em;
}

.main__hero-img {
  border: 3px solid;
  border-radius: 0.5em;
  margin-block: 3em 2em;
  width: 530px;
}

h1 {
  font-size: 3rem;
  font-weight: 500;
  margin-block: 1em 0.5em;
}

address {
  font-style: normal;
}

.rsvp__img {
  aspect-ratio: 1;
  border: 3px solid;
  border-radius: 50%;
  margin-block: 2em 3em;
  width: 25em;
}

.accommodation ul {
  display: grid;
  gap: 1em;
  list-style: none;
  padding-left: 0;
}

iframe {
  min-height: 60em;
  width: 100%;
}

.timings__time {
  display: block;
  font-weight: 700;
  text-decoration: underline;
}
@media screen and (max-width: 100em) {
  body {
    background-size: 100%;
  }
}
