* {
  box-sizing: border-box;
}

body {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  background: #fff;
  color: #202328;
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 22px;
  -webkit-text-size-adjust: 100%;
}

[data-show="calendar"] #calendar,
[data-show="missing"] #missing,
[data-show="error"] #error {
  display: block;
}

article {
  display: flex;
  align-items: start;
  justify-content: center;
  flex-grow: 1;
}

section {
  display: none;
  width: 100%;
  max-width: 600px;
  background-color: #fff;
  padding: 56px 24px;
  margin: 0 auto;
  text-align: center;
}

h1 {
  color: #202328;
  font-size: 32px;
  font-weight: 700;
  line-height: 40px;
  margin: 0 0 12px 0;
}

p {
  margin: 16px 0;
  font-size: 20px;
  line-height: 32px;
  color: #202328;
}

p:last-child {
  margin-bottom: 0;
}

.subtitle {
  margin: 0;
}

.content {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: fit-content;
  max-width: 100%;
  gap: 18px;
  margin: 40px auto 0 auto;
  padding: 0;
}

.button {
  font-family: "DM Sans", sans-serif;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #202328;
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
  border: 1.5px solid #5a6972;
  border-radius: 6px;
  cursor: pointer;
  padding: 10px 16px;
  min-height: 48px;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.button:hover {
  background: #f4f5f7;
}

.button:active {
  background: #e7e9ec;
}

.button:focus-visible {
  outline: 3px solid #146ef5;
  outline-offset: 2px;
}

.buttonIcon {
  width: 32px;
  height: 32px;
  margin-right: 12px;
  object-fit: contain;
  flex-shrink: 0;
}

@media only screen and (max-width: 425px) {
  section {
    padding: 40px 16px;
  }

  h1 {
    font-size: 26px;
    line-height: 34px;
  }

  p {
    font-size: 18px;
    line-height: 28px;
  }
}

@media only screen and (max-width: 350px) {
  html,
  body {
    background: none;
  }

  section {
    margin: 0;
    box-shadow: none;
  }
}
