/* Box sizing rules */
@import url("https://fonts.googleapis.com/css2?family=Montserrat+Alternates:wght@300;400;500;600;700&family=Great+Vibes&display=swap");
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Prevent font size inflation */
html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

/* Remove default margin in favour of better control in authored CSS */
body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin-block-end: 0;
  margin-block-start: 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;
}

ul {
  margin-block-end: 0;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  line-height: 1.5;
  margin: 1em;
}

/* Set shorter line heights on headings and interactive elements */
h1,
h2,
h3,
h4,
button,
input,
label {
  line-height: 1.1;
}

/* Balance text wrapping on headings */
h1,
h2,
h3,
h4 {
  text-wrap: balance;
}

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

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

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

/* Anything that has been anchored to should have extra scroll margin */
:target {
  scroll-margin-block: 5ex;
}

header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  background-color: #FCF9F7;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-container {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1em;
}

header a {
  text-decoration: none;
}

/* "Hide" checkbox -- moves it off screen*/
#menu-btn {
  position: absolute;
  top: -100%;
  left: -100%;
}

/* Hide hamburger for bigger screens */
.menu-icon {
  visibility: hidden;
}

.menu {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Set width for mobile/smaller screen size. */
/* I set it big here so I don't have to shrink the screen so much */
/* for testing purposes */
@media screen and (max-width: 1000px) {
  .header-container {
    display: grid;
    grid-template-areas: "title   title   hamburger" "nav     nav     nav";
    max-width: none;
    padding: 0;
  }
  h1 {
    grid-area: title;
  }
  .menu a {
    text-decoration: none;
    color: #2B1105;
  }
  .menu-btn {
    display: none;
  }
  .menu-icon {
    grid-area: hamburger;
    cursor: pointer;
    display: flex;
    justify-content: flex-end;
    align-items: baseline;
    padding: 30px 20px 30px 0;
    position: relative;
    user-select: none;
    visibility: visible;
  }
  .navicon {
    background: #2B1105;
    display: block;
    height: 2px;
    width: 18px;
    position: relative;
  }
  .navicon:before {
    top: 5px;
  }
  .navicon:after {
    top: -5px;
  }
  .navicon:before,
  .navicon:after {
    background: #2B1105;
    display: block;
    width: 100%;
    height: 100%;
    content: "";
    position: absolute;
    transition: all 0.2s ease-out;
  }
  .menu {
    grid-area: nav;
    max-width: unset;
    max-height: 0;
    transition: max-height 0.2s ease-out;
    overflow: hidden;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }
  .menu a {
    padding: 20px 20px;
    border-right: 1px solid #f4f4f4;
    background-color: #FCF9F7;
    width: 100%;
    text-align: center;
  }
  .menu-btn:checked ~ .menu {
    max-height: calc(100vh - 60px);
  }
  .menu-btn:checked ~ .menu-icon .navicon {
    background: transparent;
  }
  .menu-btn:checked ~ .menu-icon .navicon:before {
    transform: rotate(-45deg);
  }
  .menu-btn:checked ~ .menu-icon .navicon:after {
    transform: rotate(45deg);
  }
  .menu-btn:checked ~ .menu-icon .navicon:before,
  .menu-btn:checked ~ .menu-icon .navicon:after {
    top: 0;
  }
}
p.form-name {
  font-weight: bold;
}

.form-rsvp {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  gap: 1.5em;
}

.form-dietary-requirements {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5em;
}
.form-dietary-requirements textarea {
  box-sizing: border-box;
  min-height: 4em;
  max-height: 16em;
  height: auto;
  padding: 1em;
  border: 1px solid #2B1105;
  border-radius: 0.5em;
  display: block;
  resize: vertical;
  overflow-y: auto;
}

.hero-section {
  color: #FCF9F7;
  position: relative;
  height: 60vh;
  min-height: 400px;
  max-height: 600px;
  margin-top: -1em;
}

button {
  cursor: pointer;
}

#home.hero-section {
  margin-left: -2.5em;
  margin-right: -2.5em;
  width: calc(100% + 5em);
  max-width: none;
  padding-block: 0;
}

.hero-images {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
}

.hero-image-container {
  flex: 1;
  height: 100%;
  overflow: hidden;
  align-items: flex-end;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 2;
  max-width: none;
  width: 100%;
  height: 100%;
  display: flex;
  gap: clamp(0.5em, 2vw, 1em);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.35);
}

.hero-content h2 {
  font-family: "Great Vibes", "Times New Roman", serif;
  font-size: clamp(2em, 10vw, 5em);
  padding-inline: 1em;
}

.hero-content .date-header {
  font-size: clamp(1em, 5vw, 2.5em);
  font-family: "Great Vibes", "Times New Roman", serif;
}

.hero-content a {
  margin-top: 0.5em;
}
.hero-content a button {
  font-size: clamp(1em, 3.5vw, 1.5em);
}

@media screen and (min-width: 769px) {
  .hero-image-container.non-carousel {
    display: none;
  }
}
@media screen and (max-width: 768px) {
  .hero-images {
    display: block;
    position: relative;
  }
  .hero-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
  }
  .hero-image-container:first-child {
    opacity: 1;
  }
  .hero-image-container.active {
    opacity: 1;
  }
}
/* Add scroll padding to html to account for fixed header */
html {
  scroll-padding-top: 1em;
  font-family: "Montserrat Alternates", "Times New Roman", sans-serif;
  background-color: #FCF9F7;
  color: #2B1105;
}

/* https://piccalil.li/blog/flow-utility/ */
.flow > * + * {
  margin-block-start: var(--flow-space, 1em);
}

#registry > p {
  margin-block-end: var(--flow-space, 1em);
}

#main-content > * {
  padding-block: 1em;
  margin-inline: auto;
  max-width: 70ch;
}

/* Add top padding to body to account for sticky header */
body {
  padding-top: 1em;
  padding-bottom: 1em;
  margin: 2.5em;
}

/* Ensure main content starts below the header */
main {
  z-index: 1;
}

h1 {
  font-size: 1.5em;
}

.header-title {
  font-family: "Great Vibes", "Times New Roman", serif;
  margin: auto auto auto 1em;
  flex-shrink: 1;
  min-width: 0;
}

.desktop {
  display: block;
}

.mobile {
  display: none;
}

@media (max-width: 360px) {
  .desktop {
    display: none;
  }
  .mobile {
    display: block;
  }
}
@media screen and (max-width: 1000px) {
  .header-container {
    max-width: none;
    padding: 0;
  }
}
a {
  text-decoration: none;
}

#staying-in-london ul li {
  padding-bottom: 0.25em;
}

#staying-in-london ul a {
  color: #d20003;
  text-decoration: underline;
}

a button {
  font-size: 1.25em;
  background-color: #d20003;
  color: #FCF9F7;
  border: none;
  padding: 0.75em 2em;
  display: block;
  margin-left: auto;
  margin-right: auto;
  text-decoration: none;
}

#registry p {
  margin-bottom: 2em;
}

#main-content > .inverted-wrapper {
  background-color: #d20003;
  color: #FCF9F7;
  margin-inline: -2.5em;
  width: calc(100% + 5em);
  max-width: none;
  padding-inline: 2.5em;
}

.inverted-wrapper > div {
  max-width: 70ch;
}

.inverted {
  max-width: 70ch;
  margin-inline: auto;
  padding-block: 1em;
}

@media screen and (min-width: 1000px) {
  .menu {
    gap: 2em;
    flex-shrink: 0;
  }
  .menu a.secondary-items {
    display: none;
  }
  .menu a {
    white-space: nowrap;
    padding-block: 1.25em;
    color: #2B1105;
  }
}
footer {
  margin-inline: auto;
  max-width: 70ch;
  text-align: center;
  padding-top: 5em;
  padding-bottom: -2.5em;
}

/*# sourceMappingURL=main.css.map */
