@font-face {
  font-family: 'TAY Waffle Cone';
  src: url('/fonts/TAYWaffleCone.otf') format('opentype');
  font-display: swap;
}

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

html,
body {
  background-color: #E3E2DE;
  color: #111111;
  font-family: 'Nunito', sans-serif;
}

[hidden] {
  display: none !important;
}

.page {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 48px;
  padding: 40px 20px;
}

.logo {
  width: 100%;
  max-width: 720px;
}

.logo img {
  display: block;
  width: 100%;
  height: auto;
}

.subscribe-button {
  display: inline-block;
  background-color: #111111;
  color: #FFB600;
  font-family: 'TAY Waffle Cone', 'Bowlby One SC', cursive;
  font-size: 18px;
  padding: 12px 32px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 4px 4px 0 #FFB600;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.subscribe-button:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 #FFB600;
}

.subscribe-button:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 #FFB600;
}

.subscribe-button:disabled {
  opacity: 0.5;
  cursor: default;
  transform: none;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
}

.modal {
  position: relative;
  width: 100%;
  max-width: 440px;
  border-radius: 12px;
  background: #FCFBF7;
  border: 3px solid #111111;
  padding: 28px;
}

.modal-close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: none;
  color: #111111;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.6;
}

.modal-close:hover {
  opacity: 1;
}

.modal-title {
  font-family: 'TAY Waffle Cone', 'Bowlby One SC', cursive;
  font-weight: normal;
  font-size: 24px;
  margin-bottom: 8px;
}

.modal-text {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 16px;
}

.modal-form {
  display: flex;
  gap: 10px;
}

.modal-form .subscribe-button {
  font-size: 16px;
  padding: 10px 20px;
}

.modal-input {
  flex: 1;
  min-width: 0;
  font-family: 'Nunito', sans-serif;
  font-size: 16px;
  padding: 10px 12px;
  border: 2px solid #111111;
  border-radius: 8px;
  background: #ffffff;
  color: #111111;
}

.modal-error {
  font-size: 15px;
  color: #C0392B;
  margin-top: 12px;
}

@media (max-width: 420px) {
  .modal-form {
    flex-direction: column;
  }
}
