@import url('https://fonts.googleapis.com/css2?family=Ballet&family=Quintessential&display=swap');

/* Reset */
html, body, dl, dt, dd {
  margin: 0;
  padding: 0;
}
* {
  box-sizing: border-box;
}


/* Layout and Colors */
html {
  background: url(red-paisley.jpg) repeat-y #500000;
  color: #ffde96;
  font: italic 16pt Quintessential, serif;
  text-shadow: 1px 1px 4px #0008;
  display: grid;
  grid-template-columns: minmax(1em, 300px) auto;
  grid-template-columns: minmax(1em, min(300px, 20vw)) minmax(80vw, auto);
}
@media (max-width: 30em) {
  html {
    font-size: medium;
  }
}
:link, :visited {
  color: #ffde96;
}
body {
  grid-column: 2;
  background: #500000;
  min-height: 100vh;
  padding: 0 2rem 4rem;
  text-align: center;
  border-left: solid 1px;
  box-shadow: inset 2px 0 10px #0008;
  position: relative;
}

@media (min-width: 40em) {
  #rsvp {
    position: absolute;
    bottom: 0;
    margin: 0;
    right: 10px;
    left: 10px;
  }
}

/* Navigation */
nav  {
  display: flex;
  background: #ffde9622;
  margin: 0 -2rem 2rem;
}
nav a {
  flex: auto;
  padding: 0.5em;
  text-decoration: none !important;
}
nav a:hover,
nav a:focus {
  background: #ffde9622;
}

a {
  text-decoration: none;
  position: relative;
}
a:focus:not(:active),
a:hover:not(:active) {
  top: -2px;
  left: -2px;
  text-shadow: 2px 2px 6px black;
  text-decoration: underline;
}
a:active {
  text-shadow: 0 0 6px;
}

figure img {
  margin: 1em auto;
  max-width: 100%;
  max-height: 80vh;
  box-shadow: 4px 4px 10px black;
}
figure a {
  position: static;
}

/* Typography */
h1 {
  font-family: Ballet, cursive;
}
h1 {
  font-size: 3em;
}
@media screen and (max-width: 50em) {
  h1 {
    font-size: 2.5em;
  }
}

h2 {
  margin-top: 2em;
}

li {
  margin: 0.5em 0;
}
dt {
  grid-column: 1;
  text-align: end;
}
dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  place-content: center;
  align-items: baseline;
  gap: 1em;
}
dd {
  grid-column: 2;
  text-align: start;
}

/* Typesetting */

span {
  white-space: nowrap;
}
big, small, strong, em {
  display: block;
}
em {
  font: inherit;
  font-variant: small-caps;
}
big, dt {
  font-weight: bold;
}
small {
  font-size: 80%;
}
strong {
  font-size: 2em;
  margin: 0.2em 0 0.1em;
}
em {
  margin: 1rem;
}
