/* Basic reset-ish */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: #fdfaf4;
  color: #1a2333;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", "Roboto",
    "Segoe UI", sans-serif;
  line-height: 1.4;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.wrapper {
  max-width: 480px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Brand header */
.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  text-align: left;
}
.logo-img {
  width: 100px;
  height: 100px;
}
.brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a2333;
}
.brand-text {
  text-align: center;
}
.tagline {
  font-size: 0.8rem;
  color: #6b6f7a;
  font-weight: 500;
}
.date {
  color: #6b6f7a;
  font-size: 0.8rem;
  margin-top: 0.5rem;
}
.date-line {
  font-size: 0.8rem;
  color: #9aa0ae;
  text-align: center;
  margin-top: -0.2rem;
}
.subline {
  font-size: 0.8rem;
  color: #babfc9;
}

/* Joke card */
.joke-card {
  background: #ffffff;
  border-radius: 16px;
  border: 2px solid #1a2333;
  padding: 1.5rem;
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.5;
  min-height: 120px;
  display: flex;
  align-items: center;
  position: relative;
  box-shadow: 4px 4px 0 #1a2333;
}
.joke-text {
  font-size: 1.2rem;
  text-align: center;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Buttons */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}
.btn {
  appearance: none;
  cursor: pointer;
  background: #ffd84d;
  border: 2px solid #1a2333;
  border-radius: 10px;
  box-shadow: 3px 3px 0 #1a2333;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.75rem 1rem;
  line-height: 1.2;
}
.btn:active {
  translate: 2px 2px;
  box-shadow: 1px 1px 0 #1a2333;
}
.btn:disabled {
  opacity: 0.6;
  cursor: wait;
  translate: 0 0;
  box-shadow: 3px 3px 0 #1a2333;
}
.btn:hover:not(:disabled) {
  filter: brightness(1.03);
  transform: translate(-1px, -1px);
}
.btn-outline {
  background: #fff;
}
.btn-outline:hover:not(:disabled) {
  background: #fff9d6;
}
/* Footer */
.site-footer {
  color: #6b6f7a;
  font-size: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  line-height: 1.4;
}
.footer-link {
  color: #1a2333;
  text-decoration: none;
  font-weight: 500;
}
.footer-link:hover {
  text-decoration: underline;
}
