:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #181916;
  background: #f5f2e9;
  font-size: 18px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
main {
  max-width: 640px;
  margin: auto;
  padding: 28px 20px 80px;
}
h1 {
  font-size: clamp(2rem, 10vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
  margin: 20px 0 28px;
  font-weight: 900;
  overflow-wrap: anywhere;
}
h2 {
  font-size: 1.5rem;
}
h3 {
  font-size: 1.2rem;
}
p {
  line-height: 1.5;
}
.eyebrow {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.card {
  background: white;
  border-radius: 26px;
  padding: 22px;
  margin: 18px 0;
  overflow-wrap: anywhere;
}
.hero {
  background: #c7f52c;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
button,
input {
  font: inherit;
  min-height: 52px;
  border-radius: 16px;
  padding: 13px 18px;
}
button {
  border: 0;
  background: #181916;
  color: white;
  font-weight: 650;
  cursor: pointer;
}
button.secondary {
  background: #eeede7;
  color: #181916;
}
button:disabled {
  opacity: 0.55;
}
button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 3px solid #595b54;
  outline-offset: 4px;
}
input {
  width: 100%;
  border: 1px solid #888;
  margin: 8px 0 16px;
}
a {
  color: inherit;
  min-height: 48px;
  display: inline-block;
  padding: 12px 0;
}
.foot {
  font-size: 0.8rem;
  color: #595b54;
}
.error {
  color: #9d2b20;
}
img {
  max-width: 100%;
  height: 150px;
  object-fit: contain;
}
dialog {
  max-width: min(90vw, 520px);
  border: 0;
  border-radius: 28px;
  padding: 24px;
  background: #f5f2e9;
}
dialog::backdrop {
  background: #0007;
}
#message:empty {
  display: none;
}
@media (prefers-reduced-motion: no-preference) {
  button {
    transition:
      background 0.12s,
      opacity 0.12s;
  }
  dialog[open] {
    animation: appear 0.18s ease-out;
  }
  @keyframes appear {
    from {
      opacity: 0;
      transform: translateY(8px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}

.card > button {
  margin: 6px 6px 6px 0;
}
.card > .card {
  padding: 18px;
}
.card > .card > button {
  width: 100%;
  margin: 5px 0;
}
