/* The way in: the form on the left and, on the right, the picture berkway.com draws Pierce with. The picture is a
   one-bit still shown at a whole number of pixels a dot, so every dot is the same square. Words never lie on it. */

html, body { min-height: 100%; }
.door { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); min-height: 100dvh; }
.door-side { display: flex; flex-direction: column; min-height: 100dvh; padding: 28px 40px; }

.door-name { display: inline-flex; align-items: center; gap: 8px; align-self: start; color: var(--text); font-size: 20px; font-weight: 600; letter-spacing: -.03em; text-decoration: none; white-space: nowrap; }
.door-name > svg { width: 15px; height: 15px; }
.door-by { display: inline-flex; align-items: center; gap: 5px; margin-inline-start: 6px; color: var(--muted); font-size: var(--fs-small); font-weight: 400; letter-spacing: 0; }
.door-by svg { width: 9px; height: 9px; color: var(--soft); }

.door-form { width: 100%; max-width: 380px; margin: auto; padding-block: 48px; }
.door-form form, #spent, #unchecked { display: grid; gap: 18px; }
.door-form h1 { font-size: 32px; line-height: 38px; font-weight: 600; letter-spacing: -.03em; }
.door-note { margin-top: -10px; margin-bottom: 6px; color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.door-note strong { color: var(--text); font-weight: 550; }

.field { display: grid; gap: 6px; min-width: 0; }
.field label { color: var(--soft); font-weight: 500; }
.field input { width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--control); background: var(--ground); color: var(--text); font-size: 15px; }
.field input:focus-visible { outline: 1px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.field input[aria-invalid="true"] { border-color: var(--negative); }
.hint { color: var(--muted); font-size: var(--fs-small); }
.form-error { color: var(--pill-negative-ink); font-weight: 500; }

.button { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 18px; border: 1px solid var(--control); background: transparent; color: var(--text); font-size: 15px; font-weight: 550; text-decoration: none; white-space: nowrap; }
.button:hover { border-color: var(--muted); background: var(--raised); }
.button.primary { margin-top: 4px; border-color: var(--text); background: var(--text); color: var(--brand-black); }
.button.primary:hover { border-color: var(--soft); background: var(--soft); }
.button:disabled { border-color: var(--control); background: transparent; color: var(--muted); cursor: not-allowed; }
#spent .button, #unchecked .button { justify-self: start; }
.door-help { color: var(--muted); }
.door-help + .door-help { margin-top: -12px; }
.door-help a, .door-note a { color: var(--text); }

.door-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; color: var(--muted); font-size: var(--fs-small); }
.door-foot ul { display: flex; gap: 20px; }
.door-foot a { text-decoration: none; }
.door-foot a:hover { color: var(--text); }

.door-view { display: flex; flex-direction: column; min-height: 100dvh; border-inline-start: 1px solid var(--border); }
.door-plate { position: relative; flex: 1; min-height: 0; overflow: hidden; border-bottom: 1px solid var(--border); }
.door-plate img { position: absolute; left: 50%; top: 50%; width: 1024px; height: 1024px; max-width: none; transform: translate(-50%, -46%); image-rendering: pixelated; }
.door-words { padding: 36px 56px 48px; }
.door-line { color: var(--text); font-size: 36px; line-height: 42px; font-weight: 600; letter-spacing: -.035em; text-wrap: balance; }
.door-words p + p { margin-top: 12px; max-width: 52ch; color: var(--muted); font-size: 15px; line-height: 23px; }

@media (min-width: 1800px) { .door-plate img { width: 1536px; height: 1536px; } }
@media (max-width: 1279px) { .door-words { padding: 28px 40px 40px; } .door-line { font-size: 30px; line-height: 36px; } }

/* Below the desktop width the picture becomes a band over the form. */
@media (max-width: 899px) {
  .door { display: flex; flex-direction: column-reverse; }
  .door-view { min-height: 0; border-inline-start: 0; }
  .door-plate { flex: none; height: 26vh; min-height: 160px; }
  .door-plate img { width: 512px; height: 512px; transform: translate(-50%, -44%); }
  .door-words { display: none; }
  .door-side { flex: 1; min-height: 0; padding: 24px; }
  .door-form { padding-block: 40px; }
  .door-foot { flex-direction: column; align-items: start; }
}
