/* almari.store/waitlist (waitlist/): the link in the bios. One card in the app's
   brand as confirmed.css sets it: the handwritten line, a line on what Almari is,
   the email box and Join, then the thank-you. */
@font-face { font-family: "Open Sauce Sans"; src: url("/fonts/OpenSauceSans-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Open Sauce Sans"; src: url("/fonts/OpenSauceSans-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "League Spartan"; src: url("/fonts/LeagueSpartan-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
/* The hero's own cut of Caveat: it holds only "same tradition. more outfits."
   (website/README.md), so change the line and cut the face again. */
@font-face { font-family: "Caveat"; src: url("/fonts/Caveat-Caption.ttf") format("truetype"); font-weight: 400; font-display: swap; }

:root {
  --milk: #FFF9F5;
  --ink: #191717;
  --grey-dark: #605E5E;
  --line: #C0C0C0;
  --field-edge: #8F8D8D; /* 3.3:1 on white, WCAG's 3:1 for a control (styles.css) */
  --accent: #A93F53;
  --accent-pressed: #942B42;
  --cherry: #8B1E2D;
  --sans: "Open Sauce Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --title: "League Spartan", "Open Sauce Sans", system-ui, sans-serif;
  --hand: "Caveat", "Bradley Hand", cursive;
  --gutter: 20px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { background: var(--milk); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--milk); line-height: 1.5; }
main { max-width: 460px; margin: 0 auto; padding: 40px var(--gutter) 32px; text-align: center; }

.logo {
  display: block; width: 150px; height: 52px; margin: 0 auto 24px; background: var(--cherry);
  -webkit-mask: url("/assets/almari-logo.png") center / contain no-repeat;
  mask: url("/assets/almari-logo.png") center / contain no-repeat;
}

/* A white card on the Milk ground wears a 1pt Silver outline (the app's rule for a white box). */
.card { background: #FFFFFF; border: 1px solid var(--line); border-radius: 24px; padding: 28px 24px 24px; }
.hand { margin: 0 0 4px; font-family: var(--hand); font-size: 26px; line-height: 1.2; color: var(--cherry); }
h1, h2 { font-family: var(--title); font-size: clamp(30px, 8.5vw, 38px); line-height: 1.1; margin: 0 0 12px; }
.card p { margin: 0; font-size: 17px; text-wrap: pretty; }
.card p + p { margin-top: 16px; }

/* The form: 24pt from the last line of words, then the box and the pill. */
form { display: grid; gap: 12px; margin-top: 24px; text-align: left; }
.field { display: grid; gap: 6px; }
.field span { font-size: 15px; font-weight: 700; }
.field input {
  font: inherit; font-size: 17px; color: var(--ink); background: #FFFFFF;
  border: 1px solid var(--field-edge); border-radius: 14px; padding: 13px 14px; min-height: 52px; width: 100%;
}
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--cherry); }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Every button is a pill; a filled one wears pure white words. */
.button {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 56px; padding: 12px 20px;
  border: 0; border-radius: 999px; background: var(--accent); color: #FFFFFF; cursor: pointer;
  font: inherit; font-size: 18px; font-weight: 700; -webkit-tap-highlight-color: transparent;
}
.button:hover, .button:active { background: var(--accent-pressed); }
.button:disabled { opacity: 0.55; cursor: default; }
.button:focus-visible { outline: 3px solid var(--cherry); outline-offset: 3px; }
/* The pill's own line (why it failed) 8pt under it, in the body's face. */
.card .status { margin: -4px 0 0; font-size: 15px; color: var(--grey-dark); text-align: center; }
.card .status:empty { display: none; }
.card .status.error { color: var(--cherry); }
.card .note { margin: 4px 0 0; font-size: 14px; color: var(--grey-dark); text-align: center; text-wrap: balance; }
.note a { color: var(--accent); font-weight: 700; }

/* The thank-you, once waitlist.js has the sign-up kept. */
.thanks { display: none; outline: none; }
.joined .ask { display: none; }
.joined .thanks { display: block; }
.mark { display: block; width: 64px; height: 64px; margin: 4px auto 20px; }

footer { max-width: 460px; margin: 0 auto; padding: 0 var(--gutter) 40px; text-align: center; color: var(--grey-dark); font-size: 14px; }
footer a { display: inline-block; min-height: 44px; line-height: 44px; margin: 0 8px; color: var(--accent); font-weight: 700; }

/* A short window (an iPhone SE, a phone held sideways): tighter, so Join is on the first screen. */
@media (max-height: 740px) {
  main { padding-top: 16px; }
  .logo { height: 40px; margin-bottom: 12px; }
  .card { padding: 20px; }
  .card p + p { margin-top: 10px; }
  form { margin-top: 18px; }
}
