/* Pass 8: three letter layouts (js/seal.js applyLetterFlag). Sage picked A: it is the served default; ?letter=b|c
   still shows the others for comparison. Common: the column is the paper less 12 percent margins (--m), laid out as one
   flowing stack (not fixed rows), on an 8 px rhythm; ink compositing as now (the whole stack is in the multiplied ink
   layer, the button too: the engraved seal, css/seal.css).
   Type scale (1440 / phone): script header 56 / 36 px, small-caps line 15 / 12 px, email script 26 / 22 px,
   button small caps 14 / 12 px, HUGH 12 / 10 px tracked 0.46 em. */
.letter-flag .letter {
  display: flex; flex-direction: column;
  padding: 18cqh var(--m) 7cqh;
}
.letter-flag .letter > *, .letter-flag .letter form { position: static; inset: auto; left: auto; right: auto; top: auto; bottom: auto; margin: 0; }
.letter-flag .sheet-invite { font-size: 56px; line-height: 1.05; }
.letter-flag .sheet-line {
  font-family: var(--serif); font-variant-caps: all-small-caps; font-size: 15px; letter-spacing: 0.16em;
  font-variation-settings: 'opsz' 14, 'SOFT' 0, 'WONK' 0; color: var(--paper-ink); opacity: 0.8;
}
.letter-flag .field { height: 48px; }
.letter-flag .field input, .letter-flag .signup-done { font-size: 26px; }
.letter-flag .signup-msg { margin-top: 8px; min-height: 1.35em; }
.letter-flag .sheet-sign { font-size: 12px; letter-spacing: 0.46em; margin-right: -0.46em; text-align: inherit; }
/* The button, the engraved seal, sits in the stack inside a wrapper; the scrub fades the wrapper (film2.js), not the
   button. In the flow (not at seal.css's absolute seal position), with its size and look from seal.css. */
.letter-flag .seal-wrap { display: block; }
.letter-flag .seal-wrap .btn-seal2 { position: relative; top: auto; right: auto; display: block; }
.letter-flag .seal-wrap .btn-seal2[hidden] { display: none; }
/* The rule under the header: a pseudo-element, so no markup changes. */
.letter-flag .sheet-invite::after { content: ''; display: block; height: 1px; background: var(--paper-ink); opacity: 0.55; }

/* A: classic centred invitation. */
.letter-a .letter { align-items: center; text-align: center; }
.letter-a .sheet-invite::after { width: 120px; margin: 18px auto 0; }
.letter-a .sheet-line { margin-top: 20px; }
.letter-a .letter form { width: 60%; margin-top: 64px; display: flex; flex-direction: column; align-items: center; }
.letter-a .field { width: 100%; }
.letter-a .field input, .letter-a .signup-done { text-align: center; }
.letter-a .seal-wrap { margin-top: 28px; }
.letter-a .sheet-sign { margin-top: auto; margin-left: 0.46em; }

/* B: monogram letterhead. HUGH top centre under the pin with a short rule, then A's stack starting lower. */
.letter-b .letter { align-items: center; text-align: center; padding-top: 11cqh; }
.letter-b .sheet-sign { order: -1; margin-left: 0.46em; }
.letter-b .sheet-sign::after { content: ''; display: block; width: 32px; height: 1px; margin: 12px auto 0; background: var(--paper-ink); opacity: 0.5; transform: translateX(-0.23em); }
.letter-b .sheet-invite { margin-top: 9cqh; }
.letter-b .sheet-invite::after { width: 120px; margin: 18px auto 0; }
.letter-b .sheet-line { margin-top: 20px; }
.letter-b .letter form { width: 60%; margin-top: 56px; display: flex; flex-direction: column; align-items: center; }
.letter-b .field { width: 100%; }
.letter-b .field input, .letter-b .signup-done { text-align: center; }
.letter-b .seal-wrap { margin-top: 28px; }

/* C: formal letter, left-aligned column. */
.letter-c .letter { align-items: flex-start; text-align: left; }
.letter-c .sheet-invite { align-self: stretch; }
.letter-c .sheet-invite::after { width: 100%; margin-top: 16px; }
.letter-c .sheet-line { margin-top: 16px; }
.letter-c .letter form { align-self: stretch; margin-top: 64px; display: flex; flex-direction: column; }
.letter-c .field input, .letter-c .signup-done { text-align: left; }
.letter-c .seal-wrap { align-self: flex-end; }
.letter-c .seal-wrap { margin-top: 24px; }
.letter-c .sheet-sign { margin-top: auto; }

/* Phones (a paper under 400 px wide on screen: 8 percent margins come from placeSheet). */
@media (max-width: 640px) {
  .letter-flag .sheet-invite { font-size: 36px; }
  .letter-flag .sheet-line { font-size: 12px; }
  .letter-flag .field { height: 44px; }
  .letter-flag .field input, .letter-flag .signup-done { font-size: 22px; }
  .letter-flag .sheet-sign { font-size: 10px; }
  .letter-a .letter form, .letter-b .letter form { width: 72%; margin-top: 40px; }
  .letter-c .letter form { margin-top: 40px; }
  .letter-a .sheet-invite::after, .letter-b .sheet-invite::after { width: 88px; margin-top: 14px; }
  .letter-flag .sheet-line { margin-top: 16px; }
  .letter-b .sheet-invite { margin-top: 7cqh; }
}
/* Short landscape phones: scale the stack to the small paper. */
@media (max-height: 500px) {
  .letter-flag .sheet-invite { font-size: 30px; }
  .letter-flag .letter form { margin-top: 24px; }
  .letter-flag .seal-wrap { margin-top: 12px; }
}
