:root {
  --background: #fff;
  --text: #000
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  line-height: 1.3;
  @media(max-width: 560px) {
    font-size: 12px;
  }
}

img {
  max-width: 100%;
  height: auto;
}

body {
  background: var(--background);
  color: var(--text);
  font-family: Linotype Didot Std Roman, serif;

  display: flex;
  flex-flow: column;
  gap: 1rem;
  padding: 0 1rem;
  max-width: 60rem;
  margin: auto;

  text-align: center;

}

header {
  height: 100vh;
  display: grid;
  align-content: center;
  justify-content: center;

  img {
    max-height: 50vh;
    justify-self: center;
  }
}

p,
time {
  font-size: 3rem;
}

a {
  color: #000;
  font-size: 3rem;
  text-decoration: none;
  &:hover {
    text-decoration: underline;
  }
}

button {
  max-width: 35em;
  background: none;
  border: none;
  cursor: pointer;
}

h1 {
  font-size: 5rem;
  text-transform: uppercase;
}

h2 {
  font-size: 5rem;
  text-transform: uppercase;
  line-height: 1;
  @media(max-width: 390px) {
    font-size: 4rem;
  }
}

h3 {
  font-size: 3rem;
  text-transform: uppercase;
}

section {
  margin-bottom: 2rem;
}

form {
  margin-top: 1rem;
  display: grid;
  justify-items: center;
  gap: 1em;
}

textarea {
  font-size: 1em;
  width: 35em;
  max-width: calc(100vw - 2rem);
  height: 30rem;
  border: 2px solid #000;
  margin-top: 1em;
}

.ceremony {
  img {
    width: 10rem;
  }
}

.meal {
  img {
    width: 20rem;
  }
}

.menu {
  margin: 5rem auto;
  max-width: 35rem;

  p {
    margin-bottom: 2rem;
  }

  img {
    margin-bottom: 0.5rem;
  }
}

.guest {
  font-size: 3rem;
  display: inline-grid;
  gap: 1rem;
  margin-bottom: 1em;

  &>label {
    display: inline-flex;
    width: calc(100vw - 2rem);
    max-width: 40rem;
    border: 2px solid #000;
    padding: 0.25em 0.25em 0.25em 0.25em;
    gap: 1em;

    span {
      line-height: 1;
      vertical-align: bottom;
      align-self: end;
    }

    input {
      font-size: 1em;
      flex: 1 1 auto;
      border: none;
      min-width: 0;
    }
  }
}

.attending {
  display: flex;
  gap: 1em;
  max-width: 40rem;
  input {
    display: none;
  }
  label:has(input:checked) {
    filter: drop-shadow(4px 4px 6px #00006a);
  }
}
