:root {
  line-height: 1.5;
  font-weight: 400;

  font-size: 1.2rem;
  font-family: "Linden Hill", sans-serif;

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  @media(max-width: 780px) {
    font-size: 1rem;
  }
}

h1, h2 {
  font-family: "Raleway", sans-serif;
  font-weight: 500;
}


a {
  color: #242;
  text-decoration: underline;
}
a:hover {
  color: #464;
  text-decoration: underline;
}

html {
  overscroll-behavior: none;
  overflow-x: hidden;
}

body {
  margin: 0;
  background-color: #242;
  color: #444;
  overflow-x: hidden;
  scrollbar-width: 2px;
}

/* ::-webkit-scrollbar { display: none; } */

p {
  margin: 0 0 1em 0;
}

section, header {
  /* width: 100%; */
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #fdf0dc;
  color: #726a6d;
  padding: 30px;
  filter: drop-shadow(#111 1px -1px 2px);
}

/* make a grid */
main {
  /* background-color: #fee; */
  /* color: #726a6d; */
  max-width: 860px;
  margin: -50px auto 100px auto;
  /* margin-top: -50px; */
  /* padding: 30px; */
  display: grid;
  grid-template-columns: 1fr;
  /* grid-template-rows: max-content max-content 1fr max-content; */
  grid-gap: 20px;
  /* min-height: 100vh; */
  /* filter: drop-shadow(#111 2px -2px 8px); */
  @media(max-width: 600px) {
    margin-top: 0;
  }
}

/* header {
  display: flex;
  flex-direction: column;
  align-items: center;
} */

header h1 {
  font-size: 3rem;
  font-weight: normal;
  margin: 0;

  @media(max-width: 780px) {
    font-size: 2rem;
  }
}

header h2 {
  margin: 0;
}

nav {
  display: flex;
  justify-content: center;
  align-items: center;
}

nav * {
  margin: 0 10px;
  font-weight: 600;
}

nav .rsvp-button {
  padding: 4px 10px;
  background-color: rgb(192, 211, 165);
  border-radius: 3px;
}

.aux-info {
  font-style: italic;
  font-weight: 200;
}

section h1 {
  margin-top: 0;
  margin-bottom: 0.5em;
}

.notice {
  max-width: 600px;
}

.email {
  font-family: monospace;
}

/*********** photo styling + checkbox click hack ************/

.cover-photo-container {
  display: grid;
  place-items: center;
}

.cover-photo {
  grid-row: 1 / 1;
  grid-column: 1 / 1;
  max-width: min(105vw, 2000px);
  filter: drop-shadow(#111 2px 4px 4px);
  z-index: 0;
  object-fit: scale-down;
  @media(min-width: 600px) {
    transform: rotate(2deg);
    margin: -5% -5% 0;
  }
}

.photopair {
  display: grid;
  margin: 15px;
}

.polaroid {
  grid-row: 1 / 1;
  grid-column: 1 / 1;
  background-color: #fff;
  padding: 10px 10px 20px;
  filter: drop-shadow(#111 2px 3px 4px);
}

.polaroid:first-child {z-index: 1;}
.photo-pair-label:has(> .photo-checkbox:checked) .polaroid:last-child {z-index: 2;}
.photo-pair-label:has(> .photo-checkbox:checked) .cover-photo:last-child {z-index: -1;}

.left {
  @media(min-width:900px) {
    float: left;
    margin-left: -100px;
  }
  @media(max-width:900px) {
    margin: 0px auto;
  }
}

.left .polaroid:first-child {transform: rotate(-2deg);}
.left .polaroid:last-child {
  transform: rotate(-8deg);
  margin-left: -50px;
}

.right {
  @media(min-width:900px) {
    float: right;
    margin-right: -100px;
  }

  @media(max-width:900px) {
    margin: 0px auto;
  }
}

.right .polaroid:first-child {transform: rotate(3deg);}
.right .polaroid:last-child {
  transform: rotate(10deg);
  margin-left: 50px;
}

.photo-pair-label {
  display: grid;
  margin: 0;
  cursor: pointer;
}

.photo-checkbox {
  display:none;
}

/* ***************** end photo styling ****************** */

/* *************** testing the detail thing ************* */

/* details {
  display: inline;
}

details > summary {
  list-style: none;
  cursor: pointer;
  color: #36f;
}

details summary::-webkit-details-marker {
  display:none;
}

details > p {
  color: #36f;
}

details[open] > p {
  display: inline-block;
}

summary {
  display: inline;
}

.footnote-label {
  color: #36f;
  cursor: pointer;
}

.footnote-checkbox {
  display: none;
}

.footnote-text {
  color: #36f;
  margin: 0;
  opacity: 0;
  max-height: 0;
  transition: max-height 1s ease, opacity 1s ease, display 0.1s ease allow-discrete;
  display: none;
}

.footnote-label:has(> .footnote-checkbox:checked) + .footnote-text {
  display: block;
  opacity: 1;
  padding: 10px;
  max-height: 3000px;
  @starting-style {
    opacity: 0;
    max-height: 0;
  }
} */

/* *************** end     the detail thing ************* */

/* .paper-overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background-repeat: repeat;
  background-image: url("public/paper_texture.jpg");
  mix-blend-mode: multiply;
  pointer-events: none;
} */

