:root {
  --bg: #faf6f0;
  --ink: #2d2b25;
  --grey: #736d61;
  --yellow: #ffdc49;
  --creme: #ede8dd;
  --blush: #ffd1d1;
  --serif: bogart, "Iowan Old Style", Georgia, serif;
  --sans: "peridot-pe-variable", "Avenir Next", "Trebuchet MS", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
.top { padding: 24px 0 0 65px; }
.logo { width: 136px; height: 71px; display: block; }
main {
  min-height: calc(100vh - 95px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 24px 72px;
}
.art {
  width: min(440px, 92vw);
  height: auto;
  margin: 0 0 40px;
}
h1 {
  margin: 0 0 8px;
  max-width: 675px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 40px;
  line-height: 1.1;
}
main > p {
  margin: 0 0 40px;
  max-width: 675px;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 18px;
  line-height: 26px;
}
.btn {
  border: 0;
  border-radius: 8px;
  background: var(--yellow);
  width: 158px;
  height: 59px;
  padding: 0 12px 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  cursor: pointer;
  color: var(--ink);
  transform: translateY(0) scale(1);
  transition:
    background-color 200ms ease,
    transform 200ms ease,
    box-shadow 200ms ease;
}
.btn img {
  width: 26px;
  height: 26px;
  flex: none;
  transform: translateX(0);
  transition: transform 200ms ease;
}
.btn:hover:not(:disabled) {
  background: #ffe26a;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(45, 43, 37, 0.1);
}
.btn:hover:not(:disabled) img { transform: translateX(3px); }
.btn:active:not(:disabled) {
  background: #f5d240;
  transform: translateY(0) scale(0.97);
  box-shadow: none;
}
.btn:active:not(:disabled) img { transform: translateX(1px); }
.btn:disabled { opacity: 0.6; cursor: wait; }

dialog {
  width: min(1144px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  margin: auto;
  padding: 40px 48px 48px;
  border: 0;
  border-radius: 24px;
  background: var(--bg);
  color: var(--ink);
  overflow: auto;
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  transition:
    opacity 250ms ease,
    transform 250ms ease,
    overlay 250ms ease allow-discrete,
    display 250ms ease allow-discrete;
}
dialog.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
}
dialog::backdrop {
  background: rgba(45, 43, 37, 0);
  transition: background-color 250ms ease, overlay 250ms ease allow-discrete, display 250ms ease allow-discrete;
}
dialog.is-open::backdrop {
  background: rgba(45, 43, 37, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .btn img,
  dialog,
  dialog::backdrop {
    transition: none;
  }
  .btn:hover:not(:disabled),
  .btn:active:not(:disabled) {
    transform: none;
    box-shadow: none;
  }
  .btn:hover:not(:disabled) img,
  .btn:active:not(:disabled) img {
    transform: none;
  }
  dialog {
    opacity: 1;
    transform: none;
  }
}
.close {
  position: absolute;
  top: 40px;
  right: 48px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.close img { width: 32px; height: 32px; display: block; }
#signup {
  width: min(477px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.kicker {
  margin: 0;
  padding: 8px 24px;
  background: var(--blush);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
}
#signup h2 {
  margin: 16px 0 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.25;
  text-align: center;
}
.fields {
  width: 100%;
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 17px;
}
label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  color: var(--grey);
  text-align: left;
}
input {
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 6px;
  background: var(--creme);
  padding: 0 16px;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
}
input:focus { outline: 2px solid var(--ink); }
input.invalid { outline: 2px solid #9a3b2f; }
.field-error {
  margin: 0;
  font-size: 13px;
  font-weight: 400;
  color: #9a3b2f;
}
.actions {
  width: 100%;
  margin-top: 80px;
  display: flex;
  justify-content: flex-end;
}
.msg { min-height: 22px; margin: 16px 0 0; font-size: 15px; color: var(--ink); text-align: center; }
.msg.err { color: #9a3b2f; }
.signup-success {
  width: min(477px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding-top: 24px;
}
.signup-success[hidden] { display: none; }
.signup-success h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.25;
}
.signup-success > p:not(.kicker) {
  margin: 0;
  font-family: var(--sans);
  font-size: 18px;
  line-height: 26px;
  max-width: 400px;
}
.hp { position: absolute; left: -9999px; height: 0; width: 0; overflow: hidden; }

@media (max-width: 700px) {
  .top { padding: 20px 0 0 20px; }
  h1 { font-size: 32px; }
  dialog { padding: 56px 20px 28px; }
  .close { top: 16px; right: 16px; }
  .actions { margin-top: 32px; }
}
