/* Registration content only. The site's header and footer live in site-shell.css. */
.signup {
  --ink: #2f465a;
  --text-ink: #354b58;
  --accent: #286c80;
  --letter: #fffdf8;
  --insert: #f3ecdc;
  --handwriting: "Segoe Print", "Bradley Hand", cursive;
  position: relative;
  isolation: isolate;
  box-sizing: border-box;
  overflow: hidden;
  flex: 1;
  min-height: calc(100svh / var(--site-scale, 1) - 110px);
  padding: 40px var(--site-gutter) 32px;
  color: var(--ink);
  background: #f4f0e7;
  font-family: "Segoe UI", Arial, sans-serif;
}

.signup *, .signup *::before, .signup *::after {
  box-sizing: border-box;
}

.signup [hidden] {
  display: none !important;
}

.signup button, .signup input {
  font: inherit;
}

.signup button {
  cursor: pointer;
}

.signup :is(button, a, summary, input):focus-visible {
  outline: 3px solid #286c8099;
  outline-offset: 4px;
}

.signup::before, .signup::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-position: left top;
  background-size: cover;
  background-repeat: no-repeat;
}

.signup::before {
  z-index: -2;
  background-image: url("../images/paper.png");
}

/* Blend only the blank paper: retain the full original town at the right edge. */
.signup::after {
  z-index: -1;
  background-image: url("../images/town.png");
  mask-image: linear-gradient(to right, transparent 60%, #000 67%);
}

.signup .signup-layout {
  width: min(100%, 1260px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 470px;
  gap: 78px;
  align-items: start;
}

.signup .story {
  position: relative;
  min-width: 0;
  padding-top: 24px;
}

.signup .story-kicker {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 26px;
  color: #64747b;
}

.signup .story-kicker img {
  display: block;
  flex: 0 0 29px;
}

.signup .story-kicker span {
  font-size: 11px;
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.signup h1 {
  margin: 16px 0 25px;
  font: 400 clamp(45px, 4.1vw, 62px)/1.1 Georgia, "Times New Roman", serif;
  letter-spacing: -.045em;
}

.signup h1 > span {
  display: block;
}

.signup .story-intro {
  max-width: 650px;
  margin: 0;
  font-size: 21px;
  line-height: 1.6;
  color: var(--text-ink);
  text-wrap: pretty;
}

.signup .story-study {
  position: relative;
  min-height: 494px;
  margin-top: 30px;
}

.signup .method-note {
  position: relative;
  z-index: 1;
  isolation: isolate;
  width: min(460px, 60%);
  margin-left: auto;
  left: 104px;
  padding: 27px 40px 27px 28px;
  transform: rotate(-1.7deg);
  transform-origin: right center;
}

.signup .method-note::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 -133px 0 0;
  background-color: var(--insert);
  background-image:
    linear-gradient(90deg, transparent calc(100% - 168px), #7866470a calc(100% - 137px), #78664712 calc(100% - 126px)),
    url("../images/paper-grain.svg");
  border-top: 1px solid #fffaf0b3;
  box-shadow: 0 1px 2px #7866471c, 0 4px 8px #7866470a;
  pointer-events: none;
}

.signup .method-note::after {
  content: "";
  position: absolute;
  left: -3px;
  top: 0;
  bottom: 0;
  width: 6px;
  z-index: -1;
  background: var(--insert);
  clip-path: polygon(65% 0,100% 0,100% 100%,40% 100%,55% 94%,18% 89%,38% 83%,13% 77%,47% 71%,28% 65%,48% 59%,8% 53%,42% 46%,15% 40%,45% 34%,19% 28%,49% 21%,26% 15%,53% 8%);
  pointer-events: none;
}

.signup .story-method {
  margin: 0;
  font: 400 24px/1.38 Georgia, "Times New Roman", serif;
  text-wrap: balance;
}

.signup .story-outcome {
  margin: 17px 0 0;
  font-size: 18px;
  line-height: 1.55;
  text-wrap: pretty;
}

.signup .time-promise {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}

.signup .time-promise::after {
  content: "";
  position: absolute;
  left: -1px;
  right: -2px;
  bottom: 0;
  height: 3px;
  border-bottom: 1px solid #9e7b50;
  border-radius: 50%;
  transform: rotate(-1.3deg);
  pointer-events: none;
}

.signup .writing-scene {
  position: absolute;
  z-index: 2;
  left: -12px;
  bottom: 0;
  width: 100%;
  max-width: 680px;
  aspect-ratio: 2 / 1;
  margin: 0;
  pointer-events: none;
}

.signup .writing-scene img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* One letter, with steps above it and the insert tucked underneath. */
.signup .join-flow {
  position: relative;
  z-index: 4;
  min-width: 0;
  padding-top: 10px;
}

.signup .steps {
  display: flex;
  align-items: center;
  list-style: none;
  padding: 0 5px;
  margin: 0 0 22px;
  font-size: 11px;
  line-height: 1.35;
  color: #526d76;
}

.signup .steps li {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.signup .steps li + li {
  flex: 1;
}

.signup .steps li + li::before {
  content: "";
  height: 1px;
  min-width: 8px;
  flex: 1;
  margin-inline: 9px;
  background: #8aa3a26b;
}

.signup .step-number {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  background: #fffdf4b8;
  color: #62777c;
  border: 1px solid #b3c0bb;
  border-radius: 50%;
  font-size: 10px;
}

.signup .steps [aria-current="step"] {
  color: #345b66;
  font-weight: 600;
}

.signup .steps [aria-current="step"] .step-number {
  background: #f3da99;
  color: #674f21;
  border-color: #e4c97f;
}

.signup .steps .complete .step-number {
  background: #dbe9e4;
  color: #286c80;
  border-color: #bbd0c7;
}

.signup .step-break {
  display: none;
}

.signup .form-paper-stack {
  position: relative;
  isolation: isolate;
}

.signup .form-paper-under {
  position: absolute;
  inset: 5px 1px -1px -7px;
  z-index: -1;
  background: #f2f2f4;
  border: 1px solid #d5d5da;
  transform: rotate(-1.1deg);
  box-shadow: 2px 7px 12px #69577629;
}

.signup .form-side {
  position: relative;
  padding: 31px 38px 28px;
  background: var(--letter);
  transform: rotate(.55deg);
  box-shadow: 0 2px 2px #6353431a, 7px 17px 27px #6d604033;
  color: var(--text-ink);
}

.signup .form-side::before {
  content: "";
  position: absolute;
  inset: auto 0 -3px;
  height: 5px;
  background: var(--letter);
  pointer-events: none;
  clip-path: polygon(0 0,100% 0,100% 62%,97% 54%,94% 71%,91% 44%,87% 60%,82% 48%,78% 71%,74% 52%,69% 78%,65% 64%,60% 76%,56% 46%,52% 63%,48% 55%,43% 82%,39% 57%,34% 69%,30% 56%,25% 75%,21% 59%,17% 72%,13% 47%,9% 65%,5% 51%,0 69%);
}

.signup .invitation-heading {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 48px;
  padding-right: 80px;
  margin-bottom: 10px;
}

.signup .eyebrow {
  margin: 0 0 11px;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .14em;
  color: #796d55;
}

.signup .invitation-heading .eyebrow {
  margin: 0;
  color: #6b6571;
}

.signup .mobile-heading, .signup .mobile-story {
  display: none;
}

.signup .postage-stamp {
  position: absolute;
  right: 0;
  top: -5px;
  width: 64px;
  height: 64px;
  padding: 4px;
  border: 1px dashed #b9a8a1;
  background: #fff7e7;
  box-shadow: 1px 1px 2px #5f5a4e22;
  transform: rotate(4deg);
}

.signup .postage-stamp > span {
  display: block;
  height: 100%;
  background: url("../images/stamp.png") 50% center / 300% 100% no-repeat;
}

.signup .letter-greeting {
  margin: 0 0 8px;
  color: #756576;
  font: 21px/1.5 var(--handwriting);
}

.signup .screen :is(h1, h2) {
  margin: 0 0 18px;
  font: 400 36px/1.23 Georgia, "Times New Roman", serif;
  letter-spacing: -.022em;
  color: var(--ink);
}

.signup .form-lead {
  margin: 0 0 21px;
  font-size: 18px;
  line-height: 1.6;
  text-wrap: pretty;
}

.signup .field-label {
  display: block;
  margin-bottom: 9px;
  font-size: 14px;
  font-weight: 600;
  color: #435e6b;
}

.signup .input-wrap {
  position: relative;
}

.signup .input-wrap > svg {
  position: absolute;
  left: 16px;
  top: 17px;
  width: 19px;
  height: 19px;
  stroke: #84999f;
  fill: none;
  stroke-width: 1.4;
  pointer-events: none;
}

.signup input:where(:not([type="checkbox"]):not([type="hidden"])) {
  display: block;
  width: 100%;
  height: 52px;
  padding: 0 15px;
  border: 1px solid #bac7c4;
  border-radius: 6px;
  background: #fffefa;
  color: #304a5a;
  font-size: 15px;
  box-shadow: inset 0 1px 2px #405b7504;
  transition: border-color .15s, box-shadow .15s;
}

.signup .input-wrap input {
  padding-left: 46px;
}

.signup input::placeholder {
  color: #939d9e;
}

.signup input:where(:not([type="checkbox"]):not([type="hidden"])):focus {
  border-color: #819da4;
  box-shadow: 0 0 0 3px #286c8010;
  outline: none;
}

.signup input[aria-invalid="true"] {
  border-color: #b65a48;
}

.signup input[aria-invalid="true"]:focus {
  border-color: #b65a48;
  box-shadow: 0 0 0 3px #b65a4814;
}

.signup .field-note {
  margin: 9px 0 19px;
  font-size: 12px;
  line-height: 1.5;
  color: #60757d;
}

.signup .field-error {
  margin: 8px 0;
  font-size: 13px;
  line-height: 1.5;
  color: #a23b2f;
}

.signup .smart-captcha {
  width: 100%;
  height: 100px;
  margin-top: 20px;
}

.signup .primary-button {
  margin-top: 20px;
  width: 100%;
  min-height: 54px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 17px;
  background: linear-gradient(#f0d47a, #e8c45b);
  border: 1px solid #c6a648;
  color: #4e3a13;
  border-radius: 5px;
  box-shadow: 0 3px 7px #a6802818, inset 0 1px #fff4c375;
  font-size: 14px;
  font-weight: 600;
  transition: filter .2s, transform .2s;
}

.signup a.primary-button {
  text-align: center;
  text-decoration: none;
}

.signup .primary-button svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  transition: transform .2s;
}

.signup .primary-button:hover {
  filter: brightness(1.035);
}

.signup .primary-button:hover svg {
  transform: translateX(3px);
}

.signup .primary-button:active {
  transform: translateY(1px);
}

.signup .form-footnote {
  padding-top: 26px;
  color: #827782;
  font: 12px/1.6 var(--handwriting);
  text-align: right;
}

.signup .form-footnote p {
  margin: 3px 0 0;
  font-size: 18px;
  color: #7a6d75;
  transform: rotate(-2deg);
  transform-origin: right center;
}

.signup .form-footnote p::after {
  content: "";
  display: block;
  width: 82px;
  height: 6px;
  margin: -2px 0 0 auto;
  border-bottom: 1px solid #b8a582;
  border-radius: 50%;
  transform: rotate(-3deg);
}

.signup .sign-in {
  margin: 18px 0 0;
  padding-top: 15px;
  border-top: 1px dashed #d4c4bb;
  font-size: 15px;
  line-height: 1.5;
}

.signup .sign-in a {
  margin-left: 7px;
  font-weight: 600;
}

.signup :is(.sign-in, .delivery-help-content, .terms) a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.signup :is(.sign-in, .delivery-help-content, .terms) a:hover {
  color: #194c5b;
}

/* Email confirmation and delivery help. */
.signup .email-output {
  color: var(--accent);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.signup .text-button {
  color: var(--accent);
  background: none;
  border: none;
  padding: 6px 0;
  font-size: 13px;
  line-height: 1.5;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.signup .text-button:hover {
  color: #194c5b;
}

.signup .sent-next-step {
  margin-bottom: 15px;
}

.signup .sent-note {
  margin: 0 0 24px;
  font-size: 13px;
  color: #716773;
  line-height: 1.7;
}

.signup .delivery-help {
  border-top: 1px dashed #d4c4bb;
  padding-top: 17px;
  font-size: 14px;
  line-height: 1.7;
}

.signup summary {
  cursor: pointer;
  color: var(--accent);
}

.signup summary::marker {
  font-size: 10px;
}

.signup .delivery-help-content {
  padding-top: 4px;
}

.signup .delivery-help-content p {
  margin: 9px 0 0;
}

.signup .delivery-help-content .text-button {
  margin-top: 7px;
}

/* Profile. Field names follow Signup.Form.php; the server remains authoritative. */
.signup .profile-confirmation > div {
  min-width: 0;
}

.signup .confirmed-email {
  margin: 5px 0 0;
  font-size: 13px;
  line-height: 1.5;
}

.signup .confirmed-email .email-output {
  color: #716773;
  font-weight: 400;
}

.signup #profile-screen :is(h1, h2) {
  margin-bottom: 5px;
}

.signup .nickname-input input {
  padding-left: 15px;
}

.signup #profile-form .field-note {
  font-size: 13px;
  color: #716773;
}

.signup #nickname-note {
  margin: 0 0 20px;
  color: #68777a;
  font-size: 14px;
  line-height: 1.5;
}

.signup .nickname-help {
  margin: 7px 0 0;
  font-size: 13px;
}

.signup .nickname-help p {
  font-size: 13px;
  line-height: 1.7;
  margin: 9px 0 0;
  padding-left: 0;
}

/* Only the paper tilts, keeping the original pixels square at the site's zoom. */
.signup .form-side:has(#profile-screen) {
  isolation: isolate; transform: none; background: transparent; box-shadow: none;
}
.signup .form-side:has(#profile-screen)::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: var(--letter); transform: rotate(var(--paper-angle, .55deg));
  box-shadow: 0 2px 2px #6353431a, 7px 17px 27px #6d604033;
}
.signup .form-side:has(#profile-screen)::before { transform: rotate(var(--paper-angle, .55deg)); }
@media (max-width: 920px) { .signup .form-side:has(#profile-screen) { --paper-angle: .15deg; } }

.signup .identity-fields {
  display: grid; grid-template-columns: 66px minmax(0, 1fr); gap: 16px;
  align-items: start; margin-bottom: 23px;
}
.signup .identity-fields .field-label { margin-bottom: 7px; }
.signup .avatar-field { text-align: center; }
.signup .avatar-trigger {
  display: inline-grid; justify-items: center; padding: 0; border: 0; background: none; color: var(--accent);
}
.signup .avatar-trigger:disabled { cursor: default; }
.signup .avatar-trigger:disabled .avatar-caption { display: none; }
.signup .avatar-frame {
  display: grid; place-items: center; width: 54px; height: 52px;
  background: #faf3df; border: 1px solid #c7b89b; border-radius: 7px;
  box-shadow: inset 0 0 0 3px #fffaf0, 0 1px 2px #59441e10;
}
.signup .avatar-caption { margin-top: 7px; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.signup .avatar-trigger:enabled:hover .avatar-frame { border-color: var(--accent); background: #eff4ea; }
.signup :is(.avatar-frame, .avatar-grid) img {
  display: block; width: auto; height: auto; zoom: calc(2 / var(--site-scale, 1)); image-rendering: pixelated;
}
.signup #avatar-dialog {
  width: min(492px, calc(100% - 24px)); max-height: calc(100dvh - 32px); padding: 0;
  color: var(--ink); background: var(--letter); border: 1px solid #cabfa9; border-radius: 10px;
  box-shadow: 0 20px 80px #30261c40;
}
.signup #avatar-dialog[open] { display: flex; flex-direction: column; }
.signup #avatar-dialog::backdrop { background: #26333c69; }
.signup .avatar-dialog-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px 12px; border-bottom: 1px solid #e1d8c7;
}
.signup .avatar-dialog-head h3 { margin: 0; font: 400 27px/1.2 Georgia, serif; }
.signup .avatar-dialog-head button {
  width: 44px; height: 44px; border: 0; background: transparent; color: var(--ink); font-size: 24px;
}
.signup .avatar-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(44px, 1fr)); gap: 6px;
  max-height: min(43vh, 310px); overflow-y: auto; overscroll-behavior: contain; padding: 14px;
}
.signup .avatar-grid label {
  position: relative; display: grid; place-items: center; min-height: 54px; cursor: pointer;
  background: #fbf8f0; border: 1px solid #e4ddcf; border-radius: 6px;
}
.signup .avatar-grid input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.signup .avatar-grid label:hover { border-color: #bdae91; }
.signup .avatar-grid label:has(:checked) { background: #e8f1eb; border-color: #497c7b; box-shadow: inset 0 0 0 1px #497c7b; }
.signup .avatar-grid label:has(:checked)::after {
  content: ""; position: absolute; inset: auto 35% 2px; height: 2px; background: #316c70; pointer-events: none;
}
.signup .avatar-grid label:has(:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 420px) { .signup .identity-fields { gap: 12px; } }

.signup .check-inline {
  margin-left: 5px;
  color: #467d74;
}

.signup .profile-password-note {
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 18px;
}

.signup .optional-fields {
  border-top: 1px dashed #d4c4bb;
  border-bottom: 1px dashed #d4c4bb;
  padding-block: 14px;
}

.signup .optional-fields summary {
  font-size: 14px;
  line-height: 1.6;
}

.signup .optional-fields summary > span {
  display: inline-block;
  font-size: 12px;
  color: #716773;
  margin-left: 7px;
}

.signup .name-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 15px;
}

.signup .optional-fields .field-label {
  min-width: 0;
}

.signup .optional-fields input {
  margin-top: 8px;
  height: 48px;
}

.signup .password-fields {
  margin-top: 18px;
  padding-top: 5px;
  border-top: 1px solid #e6e2de;
}

.signup .password-fields .field-note {
  margin: 9px 0 16px;
}

.signup .terms {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.6;
  margin-top: 22px;
}

.signup .terms input {
  margin: 2px 0 0;
  width: 19px;
  height: 19px;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.signup .screen {
  animation: signup-appear .25s ease-out;
}

@keyframes signup-appear {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Wide desktop. */
@media (min-width: 1600px) {
  .signup .signup-layout {
    width: min(100%, 1320px);
    grid-template-columns: minmax(0, 1fr) 480px;
    gap: 90px;
  }
  .signup h1 {
    font-size: 64px;
  }
  .signup .method-note {
    top: -24px;
  }
  .signup .writing-scene {
    bottom: 46px;
  }
  .signup .form-side {
    padding-block: 32px 30px;
  }
  .signup .screen h2 {
    font-size: 38px;
  }
}

@media (min-width: 921px) and (max-width: 1599px) {
  .signup::before {
    background-position: right bottom;
  }
  .signup::after {
    background-position: calc(100% + 70px) bottom;
  }
}

@media (min-width: 1251px) and (max-width: 1599px) {
  .signup .story-study {
    min-height: 514px;
  }
  .signup .method-note {
    width: 64%;
    left: calc(104px + 4%);
    top: -12px;
    padding-right: 84px;
  }
  .signup .story-method {
    font-size: 23px;
  }
  .signup .writing-scene {
    bottom: 24px;
  }
}

@media (min-width: 1251px) and (max-width: 1350px) {
  .signup .method-note {
    top: -20px;
  }
  .signup .story-method {
    font-size: 22px;
  }
}

/* At narrower desktop sizes, the illustration follows the insert in normal flow. */
@media (min-width: 921px) and (max-width: 1250px) {
  .signup .story-study {
    min-height: 0;
  }
  .signup .method-note {
    width: 100%;
    left: auto;
    transform: rotate(-1deg);
    padding-right: 28px;
  }
  .signup .method-note::before {
    right: -70px;
  }
  .signup .writing-scene {
    position: static;
    width: calc(100% + 20px);
    margin: 25px -10px 0;
  }
}

@media (min-width: 921px) and (max-width: 1150px) {
  .signup .signup-layout {
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 34px;
  }
  .signup h1 {
    font-size: 42px;
  }
  .signup .story-intro {
    font-size: 19px;
  }
  .signup .form-side {
    padding-inline: 26px;
  }
  .signup .steps {
    font-size: 10px;
  }
  .signup .steps li + li::before {
    margin-inline: 6px;
  }
}

/* One column: all text stays live, the paper no longer overlaps the form. */
@media (max-width: 920px) {
  .signup {
    padding: 27px 20px 30px;
  }
  .signup::before {
    background-size: auto 680px;
    background-position: left bottom;
  }
  .signup::after {
    content: none;
  }
  .signup .signup-layout {
    display: flex;
    flex-direction: column;
    gap: 22px;
    max-width: 470px;
  }
  .signup .story {
    padding: 0 5px;
  }
  .signup .story-kicker {
    gap: 9px;
  }
  .signup .story-kicker span {
    font-size: 10px;
    letter-spacing: .08em;
  }
  .signup h1 {
    font-size: clamp(35px, 8.6vw, 43px);
    line-height: 1.13;
    margin: 16px 0 20px;
    letter-spacing: -.04em;
    text-wrap: balance;
  }
  .signup .story-intro {
    font-size: 19px;
  }
  .signup .story-study {
    min-height: 0;
    margin-top: 34px;
  }
  .signup .method-note {
    width: 100%;
    left: auto;
    padding: 24px 23px;
    transform: rotate(-.7deg);
  }
  .signup .method-note::before {
    right: 0;
    background-size: 0 0, 160px 160px;
  }
  .signup .story-method {
    font-size: 23px;
    line-height: 1.4;
  }
  .signup .writing-scene {
    position: static;
    width: calc(100% + 32px);
    margin: 25px -16px 0;
  }
  .signup .join-flow {
    width: 100%;
    padding-top: 0;
  }
  .signup .form-paper-under {
    inset: 5px 0 -1px -3px;
    transform: rotate(-.5deg);
  }
  .signup .form-side {
    padding: 26px 24px 24px;
    transform: rotate(.15deg);
  }
  .signup .steps {
    margin-bottom: 18px;
    padding: 0 2px;
    font-size: 10px;
  }
  .signup .steps li {
    gap: 5px;
  }
  .signup .steps li + li::before {
    margin-inline: 6px;
  }
  .signup .step-number {
    width: 23px;
    height: 23px;
    flex-basis: 23px;
  }
  .signup .step-break {
    display: initial;
  }
  .signup .invitation-heading {
    min-height: 40px;
    padding-right: 68px;
  }
  .signup .invitation-heading .eyebrow {
    font-size: 8px;
  }
  .signup .postage-stamp {
    width: 56px;
    height: 56px;
  }
  .signup .letter-greeting {
    font-size: 19px;
    margin-bottom: 7px;
  }
  .signup .screen :is(h1, h2) {
    font-size: 29px;
    margin-bottom: 17px;
  }
  .signup .form-lead {
    font-size: 17px;
    margin-bottom: 18px;
  }
  .signup input:where(:not([type="checkbox"]):not([type="hidden"])) {
    font-size: 16px;
    height: 53px;
  }
  .signup .primary-button {
    margin-top: 17px;
  }
  .signup .primary-button svg {
    display: none;
  }

  .signup:has(#request-screen, #profile-screen) { padding-top: 18px; }
  .signup-layout:has(#request-screen, #profile-screen) { gap: 15px; }
  .signup-layout:has(#request-screen, #profile-screen) .steps { margin-bottom: 14px; }
  .form-side:has(#request-screen, #profile-screen) { padding-top: 20px; }
  :is(#request-screen, #profile-screen) .invitation-heading { min-height: 48px; }

  .signup-layout:has(#request-screen) :is(.story, .mobile-story) { display: contents; }
  .mobile-story > * { align-self: stretch; }
  .signup-layout:has(#request-screen) .story-study { margin-top: 0; }
  .signup-layout:has(#request-screen) #story-title {
    margin: 0 3px;
    font-size: clamp(27px, 7.7vw, 34px);
    line-height: 1.1;
  }
  #profile-screen .mobile-heading { display: block; }
  #request-screen .mobile-heading {
    display: block;
    margin: 0;
    font-size: 27px;
    line-height: 1.15;
  }
  #request-screen .request-desktop,
  #profile-heading,
  :is(#request-screen, #profile-screen) .letter-greeting,
  .signup-layout:has(#request-screen) .story > :not(#story-title),
  .signup-layout:has(#profile-screen) .story { display: none; }
}

@media (max-width: 760px) {
  .signup {
    min-height: calc(100svh - 126px);
  }
}

@media (max-width: 360px) {
  .signup {
    padding-inline: 15px;
  }
  .signup .form-side {
    padding-inline: 20px;
  }
  .signup .steps {
    font-size: 9px;
  }
  .signup .steps li + li::before {
    min-width: 4px;
    margin-inline: 4px;
  }

}

@media (prefers-reduced-motion: reduce) {
  .signup *, .signup *::before, .signup *::after {
    animation: none !important;
    transition: none !important;
  }
}
