/* Lovelink — layout, rhythm and components */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--ll-gap-xl);
}

body {
  margin: 0;
  font: var(--cds-type-body-02);
  letter-spacing: var(--cds-type-tracking);
  color: var(--cds-text-primary);
  background: var(--cds-background);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding: env(safe-area-inset-top) env(safe-area-inset-right)
           env(safe-area-inset-bottom) env(safe-area-inset-left);
}

img, svg { max-width: 100%; display: block; }
a { color: var(--cds-link-primary); text-decoration: none; }
a:hover { color: var(--cds-link-primary-hover); text-decoration: underline; }

:focus-visible { outline: 2px solid var(--cds-focus); outline-offset: -2px; }
.ll-band--sky :focus-visible { outline-color: var(--ll-moon); }

::selection { background: var(--ll-moon); color: var(--cds-text-inverse); }

/* 1. layout */

.ll-wrap {
  width: 100%;
  max-width: var(--ll-wrap);
  margin-inline: auto;
  padding-inline: var(--ll-gutter);
}
.ll-wrap--read { max-width: calc(var(--ll-measure) + var(--ll-gutter) * 2); }

@media (min-width: 78rem) {
  .ll-doc { max-width: calc(15rem + var(--ll-gap-xl) + var(--ll-measure) + var(--ll-gutter) * 2); }
  .ll-doc > .ll-flow {
    display: grid;
    grid-template-columns: 15rem minmax(0, 1fr);
    gap: 0 var(--ll-gap-xl);
  }
  .ll-doc__head {
    grid-column: 1;
    grid-row: 1 / span 99;
    align-self: start;
    position: sticky;
    inset-block-start: 7rem;
  }
  .ll-doc > .ll-flow > section { grid-column: 2; }
}

.ll-section { padding-block: var(--ll-y-section); }

.ll-section,
.ll-footer { background: var(--cds-background); }
.ll-section--tight { padding-block: var(--ll-y-tight); }
/* a first section that follows the chrome with only a breath between the two: the header's own foot
   has already left its room, so this is a gap and not a section's padding */
.ll-section--close-top { padding-block-start: var(--ll-gap-sm); }
.ll-section--flush-top { padding-block-start: 0; }
.ll-section--flush-bottom { padding-block-end: 0; }

.ll-band { position: relative; }
.ll-band--soft {
  background: var(--cds-layer-01);
  --cds-layer-02: var(--cds-background);
  --cds-field-01: var(--cds-background);
  --cds-layer-hover-01: var(--cds-background-hover);
}

.ll-sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

main,
.ll-footer {
  position: relative;
  z-index: 1;
}

.ll-seam { border-block-start: 1px solid var(--cds-border-subtle-01); }

.ll-flow > * + *        { margin-block-start: var(--ll-gap-md); }
.ll-flow--tight > * + * { margin-block-start: var(--ll-gap-sm); }
.ll-flow--loose > * + * { margin-block-start: var(--ll-gap-lg); }
.ll-flow--airy  > * + * { margin-block-start: var(--ll-gap-xl); }

.ll-flow > .ll-hidden:first-child + *,
.ll-flow > .ll-hidden:first-child + .ll-hidden + *,
.ll-flow > .ll-hidden:first-child + .ll-hidden + .ll-hidden + * { margin-block-start: 0; }

.ll-flow > h1 + *,
.ll-flow > h2 + *,
.ll-flow > h3 + * { margin-block-start: var(--ll-gap-sm); }
.ll-flow > * + h1,
.ll-flow > * + h2,
.ll-flow > * + h3,
.ll-flow > * + .ll-display,
.ll-flow > * + .ll-statement { margin-block-start: var(--ll-gap-lg); }

.ll-grid {
  display: grid;
  gap: var(--grid-gap, var(--ll-gap-md));
  grid-template-columns: repeat(auto-fit, minmax(min(var(--grid-min, 17rem), 100%), 1fr));
}
.ll-grid--2 { --grid-min: 19rem; }
.ll-grid--3 { --grid-min: 15rem; }
.ll-grid--wide-gap { --grid-gap: var(--ll-gap-lg); }
.ll-grid--airy-gap { --grid-gap: var(--ll-gap-xl); }

.ll-split {
  display: grid;
  gap: var(--ll-gap-xl);
  align-items: center;
}
@media (min-width: 62rem) {
  .ll-split { grid-template-columns: 1fr 1fr; gap: var(--ll-gap-2xl); }
  .ll-split--moon-first { grid-template-columns: 1fr 1.15fr; }
  .ll-split > :nth-child(n + 3) { grid-column: 1 / -1; }
}
.ll-center { text-align: center; }
.ll-center .ll-flow { margin-inline: auto; }
.ll-center :is(.ll-statement, .ll-lede, .ll-body, .ll-empty,
               .ll-letter__body, .ll-footer__legal, .ll-track--wide) { margin-inline: auto; }

/* 2. type */

h1, h2, h3, h4, h5, h6, p, ul, ol, blockquote, figure { margin: 0; }

.ll-eyebrow {
  font: var(--cds-type-label-01);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cds-text-helper);
}
.ll-band--sky .ll-eyebrow { color: var(--ll-moon); }
.ll-eyebrow + * { margin-block-start: var(--ll-gap-lg); }

.ll-display {
  font: var(--cds-type-display-02);
  letter-spacing: -0.015em;
  overflow-wrap: anywhere;
}
.ll-display--xl { font: var(--cds-type-display-03); letter-spacing: -0.02em; }
@media (max-width: 41.99rem) {
  .ll-display { font: var(--cds-type-heading-06); }
  .ll-display--xl { font: 300 2.75rem/1.12 var(--cds-font-sans); }
}

/* the line a handle sets under its name — the one part of the page that is theirs, in the
   letter's own serif rather than the chrome's sans */
.ll-inscription {
  font: var(--cds-type-heading-03);
  font-family: var(--cds-font-serif);
  line-height: 1.6;
  color: var(--cds-text-secondary);
  max-width: var(--ll-measure-wide);
  overflow-wrap: anywhere;
}

/* The four stops of the mailbox wear one head between them — all four names stand where the first
   one always stood, under the spinner, so all four take `.ll-h1` and one size. The element keeps its
   own level (the page's h1, then h2s and an h3 for the outline the document needs): the class is the
   type, the tag is the meaning, as with the `p.ll-h2` the dispatch window already wears. */
.ll-h1 { font: var(--cds-type-heading-05); letter-spacing: -0.005em; }
.ll-h2 { font: var(--cds-type-heading-04); letter-spacing: -0.005em; }
.ll-h3 { font: var(--cds-type-heading-03); }

.ll-lede {
  font: var(--cds-type-heading-03);
  color: var(--cds-text-secondary);
  max-width: var(--ll-measure-wide);
}
.ll-body { max-width: var(--ll-measure); }
.ll-helper-text {
  font: var(--cds-type-helper-01);
  color: var(--cds-text-helper);
  max-width: var(--ll-measure-tight);
}
.ll-muted { color: var(--cds-text-secondary); }
.ll-mono { font: var(--cds-type-code-02); letter-spacing: 0.02em; }

.ll-statement {
  font: var(--cds-type-heading-05);
  letter-spacing: -0.01em;
  max-width: 30ch;
}
@media (max-width: 41.99rem) { .ll-statement { font: var(--cds-type-heading-04); } }
@media (min-width: 62rem) {
  .ll-statement { font: var(--cds-type-display-01); letter-spacing: -0.015em; max-width: 44ch; }
}

.ll-rule { border: 0; border-block-start: 1px solid var(--cds-border-subtle-01); margin: 0; }

/* A list takes no margin of its own. The reset above already zeroes one, and the room between
   siblings belongs to .ll-flow, which gives it to every child in turn. A `margin: 0` written here
   would stand later in this file than the flow rules, tie them on specificity and take that room
   back — which is what a list following a paragraph was doing, and why a heading before it looked
   right and a paragraph before it did not. */
.ll-list { padding-inline-start: 1.15rem; max-width: var(--ll-measure); }
.ll-list li + li { margin-block-start: var(--ll-gap-xs); }
.ll-list--plain { list-style: none; padding-inline-start: 0; }

.ll-list--ruled { list-style: none; padding: 0; }
.ll-list--ruled li {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, var(--ll-measure));
  gap: var(--ll-gap-sm);
  padding-block: var(--ll-gap-md);
  border-block-start: 1px solid var(--cds-border-subtle-01);
}
.ll-list--ruled li:last-child { border-block-end: 1px solid var(--cds-border-subtle-01); }
.ll-list--ruled li::before {
  content: '●';
  font: var(--cds-type-label-02);
  color: var(--ll-moon);
  padding-block-start: 0.15rem;
}

/* 3. header and footer */

.ll-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 50;
  background: var(--cds-background);
  border-block-end: 1px solid var(--cds-border-subtle-01);
}
.ll-header__band {
  background: var(--ll-band);
  color: var(--ll-on-band);
}
.ll-header__band-in {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-block: var(--ll-gap-2xs);
}
.ll-header__account {
  display: flex;
  align-items: center;
  gap: var(--ll-gap-sm);
  min-inline-size: 0;
  font: var(--cds-type-label-02);
}
.ll-header__link {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font: inherit;
  color: var(--ll-on-band-2);
  text-decoration: none;
}
.ll-header__link:hover { color: var(--ll-on-band); text-decoration: underline; }
.ll-header__handle {
  min-inline-size: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ll-on-band-2);
}

.ll-header__main {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  justify-content: space-between;
  gap: var(--ll-gap-2xs) var(--ll-gap-sm);
  padding-block: var(--ll-gap-sm);
}
.ll-header__action {
  display: flex;
  align-items: center;
  margin-inline-start: auto;
  flex: 0 0 auto;
  gap: var(--ll-gap-sm);
}
/* The lockup is set, not drawn: two crescents — a moon and the moon it eclipses — beside the name,
   which is the name in IBM Plex Mono, the same mono the handle and the postmark wear. Both are
   sized off one font-size on the brand, so the mark and the word scale as a single thing; the
   sizes step down on a small phone, because a text mark cannot shrink the way a drawing could. */
.ll-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.42em;
  flex: 0 1 auto;
  min-inline-size: 0;
  font-size: 1.7rem;
  color: var(--ll-brand-ink);
}
.ll-brand:hover { text-decoration: none; color: var(--ll-brand-ink); }
.ll-brand__mark {
  display: block;
  block-size: 0.98em;
  inline-size: auto;
  flex: 0 0 auto;
}
.ll-brand__word {
  display: block;
  font: 500 1em/1 var(--cds-font-mono);
  letter-spacing: 0;
  white-space: nowrap;
}
/* A small phone sets the lockup a size down, three times, so mark, word and action hold one row. */
@media (max-width: 26rem) { .ll-brand { font-size: 1.46rem; } }
@media (max-width: 23rem) { .ll-brand { font-size: 1.23rem; } }
@media (max-width: 21rem) { .ll-brand { font-size: 1rem; } }
/* The ™ rides on the word, so it scales with it and keeps to the cap line at every size. */
.ll-brand__tm {
  font: 400 0.24em/1 var(--cds-font-sans);
  letter-spacing: 0;
  vertical-align: 0.56em;
  margin-inline-start: 0.12em;
  color: var(--cds-text-helper);
}

.ll-header__foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-block: 0 var(--ll-gap-xs);
}
.ll-header__switch {
  background: var(--ll-switch-fill);
  cursor: pointer;
  color: var(--ll-switch-ink);
  border: 1px solid var(--ll-switch-ink);
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  font: var(--cds-type-label-02);
}
.ll-header__switch:hover {
  background: var(--ll-switch-fill-hover);
}

.ll-footer {
  border-block-start: 1px solid var(--cds-border-subtle-01);
  padding-block: var(--ll-y-tight) var(--ll-gap-xl);
  font: var(--cds-type-body-01);
  color: var(--cds-text-helper);
}
.ll-footer a:not(.ll-btn) { color: var(--cds-text-secondary); }
.ll-footer__links { display: flex; flex-wrap: wrap; gap: var(--ll-gap-sm) var(--ll-gap-md); }
.ll-footer__legal { max-width: var(--ll-measure-tight); }

/* 4. button */

.ll-btn {
  font: var(--cds-type-body-01);
  letter-spacing: var(--cds-type-tracking);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--ll-gap-md);
  min-height: 3rem;
  padding-inline: var(--ll-gap-md);
  border: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--cds-duration-fast-02) var(--cds-ease-productive),
              border-color var(--cds-duration-fast-02) var(--cds-ease-productive),
              color var(--cds-duration-fast-02) var(--cds-ease-productive);
  width: 100%;
}
.ll-btn:hover { text-decoration: none; }
.ll-btn--auto { width: auto; }
.ll-btn--sm { min-height: 2.25rem; padding-inline: var(--ll-gap-sm); }
.ll-btn--lg { min-height: 3.5rem; padding-inline: var(--ll-gap-lg); font-size: 1rem; }

.ll-btn--primary { background: var(--cds-button-primary); color: var(--cds-text-on-color); }
.ll-btn--primary:hover { background: var(--cds-button-primary-hover); color: var(--cds-text-on-color); }
.ll-btn--primary:active { background: var(--cds-button-primary-active); }

.ll-btn--secondary { background: var(--cds-button-secondary); color: var(--cds-text-on-color); }
.ll-btn--secondary:hover { background: var(--cds-button-secondary-hover); color: var(--cds-text-on-color); }

.ll-btn--tertiary { background: transparent; color: var(--cds-button-tertiary); border-color: var(--cds-button-tertiary); }
.ll-btn--tertiary:hover { background: var(--cds-button-tertiary); color: var(--cds-text-on-color); }

.ll-band--sky .ll-btn--tertiary { color: var(--ll-moon); border-color: var(--ll-moon-line); }
.ll-band--sky .ll-btn--tertiary:hover { background: var(--ll-moon); color: #161616; }

.ll-btn--ghost { background: transparent; color: var(--cds-link-primary); padding-inline: 0; width: auto; }
.ll-btn--ghost:hover { color: var(--cds-link-primary-hover); text-decoration: underline; }
.ll-band--sky .ll-btn--ghost { color: var(--ll-moon); }

.ll-btn--danger { background: var(--cds-button-danger-primary); color: var(--cds-text-on-color); }
.ll-btn--danger:hover { background: var(--cds-button-danger-hover); color: var(--cds-text-on-color); }

/* The one control written as a note rather than a button: the small text at the foot of a stop
   that opens something instead of going somewhere. It wears the helper text's size and colour —
   smaller than anything else a hand is meant to find — and the underline a link wears, so it still
   reads as the thing you may press. A button, not an anchor: it opens the field below it. */
.ll-quiet {
  font: var(--cds-type-helper-01);
  color: var(--cds-text-helper);
  background: none;
  border: 0;
  padding: 0;
  width: auto;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
.ll-quiet:hover { color: var(--cds-text-primary); }
.ll-quiet:focus-visible { outline: 2px solid var(--cds-focus); outline-offset: 2px; }

.ll-btn:disabled, .ll-btn[aria-disabled='true'] {
  background: var(--cds-button-disabled);
  color: var(--cds-text-secondary);
  cursor: not-allowed;
  border-color: transparent;
}

.ll-actions { display: flex; flex-wrap: wrap; gap: var(--ll-gap-sm); align-items: center; }

/* The word that stands in for a click. The dispatch is the one act on the desk that cannot be
   taken back, so it is written out before it is made. */
.ll-desk__confirm-label { margin-block-end: calc(var(--ll-gap-2xs) * -1); }
.ll-desk__confirm { font: var(--cds-type-body-01); }

/* 5. forms */

.ll-field { margin-block-end: var(--ll-gap-lg); }
.ll-label {
  display: block;
  font: var(--cds-type-label-02);
  letter-spacing: var(--cds-type-tracking);
  color: var(--cds-text-secondary);
  margin-block-end: var(--ll-gap-2xs);
}
.ll-input, .ll-textarea, .ll-select {
  width: 100%;
  font: var(--cds-type-body-02);
  letter-spacing: var(--cds-type-tracking);
  color: var(--cds-text-primary);
  background: var(--cds-field-01);
  border: 0;
  border-block-end: 1px solid var(--cds-border-strong-01);
  min-height: 2.75rem;
  padding: var(--ll-gap-sm) var(--ll-gap-md);
  transition: background var(--cds-duration-fast-02) var(--cds-ease-productive);
}
.ll-textarea { min-height: 13rem; resize: vertical; line-height: 1.65; }
.ll-input:hover, .ll-textarea:hover { background-color: var(--cds-layer-hover-01); }
.ll-input:focus, .ll-textarea:focus { outline: 2px solid var(--cds-focus); outline-offset: -2px; }
.ll-input::placeholder, .ll-textarea::placeholder { color: var(--cds-text-placeholder); }
.ll-input[aria-invalid='true'], .ll-textarea[aria-invalid='true'] {
  outline: 2px solid var(--cds-support-error);
  outline-offset: -2px;
}

.ll-password { position: relative; }
.ll-password .ll-input { padding-inline-end: 3.25rem; }
.ll-password__toggle {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-end: 0.375rem;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 2.5rem;
  block-size: 2.5rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--cds-icon-secondary);
  cursor: pointer;
}
.ll-password__toggle:hover { color: var(--cds-text-primary); }
.ll-password__toggle:focus-visible { outline: 2px solid var(--cds-focus); outline-offset: -2px; }
.ll-password__toggle svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ll-password__slash { visibility: hidden; }
.ll-password__toggle[aria-pressed='true'] .ll-password__slash { visibility: visible; }
.ll-helper {
  font: var(--cds-type-helper-01);
  color: var(--cds-text-helper);
  margin-block-start: var(--ll-gap-2xs);
  max-width: var(--ll-measure-tight);
}
.ll-error {
  font: var(--cds-type-helper-01);
  color: var(--cds-text-error);
  margin-block-start: var(--ll-gap-2xs);
  max-width: var(--ll-measure-tight);
}

form { max-width: var(--ll-measure); }

.ll-handle-input { max-width: 18rem; }
/* The code is typed, not written: it takes a field of its own width, which is the width of the code
   the sign-up screen printed, and not the measure of the page. */
.ll-delete-code { max-width: 26rem; }
.ll-textarea.ll-inscription-input { min-height: 4.5rem; }

/* 6. tiles, tags, notices, crumbs */

.ll-tile {
  background: var(--cds-layer-01);
  padding: var(--ll-tile-pad);
  border: 1px solid transparent;
}

.ll-band--sky {
  background-color: transparent;
  position: relative;
  isolation: isolate;
}

.ll-section .ll-band--sky {
  background-color: var(--ll-sky-ground);
}

:root[data-sky-live] .ll-hero::before { display: none; }
:root[data-sky-live] .ll-disc { opacity: 1; }
.ll-tile--outlined { background: var(--cds-layer-02); border-color: var(--cds-border-subtle-01); }
.ll-tile--raised { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06); }
.ll-tile--link { transition: background var(--cds-duration-fast-02) var(--cds-ease-productive); }
.ll-tile--link:hover { background: var(--cds-layer-hover-01); }

.ll-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font: var(--cds-type-label-01);
  letter-spacing: var(--cds-type-tracking);
  padding: var(--ll-gap-2xs) var(--ll-gap-sm);
  background: var(--cds-layer-02);
  border: 1px solid var(--cds-border-subtle-01);
  color: var(--cds-text-secondary);
  border-radius: 1.5rem;
  white-space: nowrap;
}
.ll-tag--moon { background: var(--ll-moon-soft); border-color: var(--ll-moon-line); color: var(--cds-text-primary); }
.ll-tag--success { background: var(--cds-support-success); border-color: transparent; color: #fff; }
.ll-tag--info { background: var(--cds-support-info); border-color: transparent; color: #fff; }
.ll-tag--error { background: var(--cds-support-error); border-color: transparent; color: #fff; }

.ll-notice {
  display: flex;
  gap: var(--ll-gap-md);
  padding: var(--ll-gap-md) var(--ll-gap-md) var(--ll-gap-md) var(--ll-gap-lg);
  border-inline-start: 3px solid var(--cds-support-info);
  background: var(--cds-layer-01);
  margin-block-end: var(--ll-gap-lg);
  font: var(--cds-type-body-01);
}
.ll-notice--error { border-inline-start-color: var(--cds-support-error); }
.ll-notice--success { border-inline-start-color: var(--cds-support-success); }
.ll-notice--warning { border-inline-start-color: var(--cds-support-warning); }
.ll-notice__title { font-weight: 600; margin-block-end: var(--ll-gap-2xs); }

.ll-crumbs { font: var(--cds-type-label-02); }
.ll-crumbs ul { display: flex; flex-wrap: wrap; gap: var(--ll-gap-sm); margin: 0; padding: 0; list-style: none; }
.ll-crumbs li { display: flex; gap: var(--ll-gap-sm); }
.ll-crumbs li + li::before { content: '/'; color: var(--cds-text-helper); }
.ll-crumbs a { color: var(--cds-text-secondary); }
.ll-crumbs [aria-current] { color: var(--cds-text-primary); }

/* 7. the moon */

.ll-disc { display: block; width: var(--disc-size, 5rem); height: var(--disc-size, 5rem); overflow: visible; }
.ll-disc__body { fill: var(--ll-moon); }
.ll-disc__dark { fill: var(--ll-moon); opacity: 0.13; }
.ll-disc__ring { fill: none; stroke: var(--ll-moon-line); stroke-width: 1; }

.ll-moon-figure {
  display: grid;
  place-items: center;
  position: relative;
  padding: var(--ll-gap-lg);
}
.ll-moon-figure::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, var(--ll-moon-soft) 0%, transparent 62%);
  pointer-events: none;
}
.ll-moon-figure > * { position: relative; }
.ll-moon-figure--hero { --disc-size: clamp(9rem, 26vw, 17rem); }

.ll-phase-caption { display: grid; gap: var(--ll-gap-2xs); text-align: center; }
.ll-phase-name { font: var(--cds-type-label-02); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ll-moon); }

/* 8. the hero */

.ll-hero {
  position: relative;
  overflow: hidden;
  padding-block: var(--ll-y-hero);
}
.ll-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1.2px 1.2px at 8% 22%, rgba(255, 255, 255, 0.55), transparent),
    radial-gradient(1px 1px at 21% 68%, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(1.4px 1.4px at 37% 12%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1px 1px at 52% 84%, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(1.1px 1.1px at 68% 31%, rgba(255, 255, 255, 0.45), transparent),
    radial-gradient(1px 1px at 79% 74%, rgba(255, 255, 255, 0.32), transparent),
    radial-gradient(1.3px 1.3px at 91% 19%, rgba(255, 255, 255, 0.48), transparent),
    radial-gradient(1px 1px at 14% 92%, rgba(255, 255, 255, 0.28), transparent);
}
.ll-hero > * { position: relative; }

.ll-countdown {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ll-gap-md) var(--ll-gap-lg);
  align-items: baseline;
  font: var(--cds-type-code-02);
  color: var(--cds-text-secondary);
}
.ll-countdown > * { min-width: 4.75rem; }
.ll-countdown__value {
  font: 500 1.125rem/1.2 var(--cds-font-mono);
  color: var(--ll-moon);
  font-variant-numeric: tabular-nums;
}
.ll-countdown__label {
  display: block;
  font: var(--cds-type-label-01);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cds-text-helper);
  margin-block-start: 0.3rem;
}

/* 9. the journey */

.ll-journey {
  --ll-journey-marker: 2.75rem;
  list-style: none;
  padding: 0;
  counter-reset: stop;
}
.ll-journey__stop {
  counter-increment: stop;
  display: grid;
  grid-template-columns: var(--ll-journey-marker) minmax(0, var(--ll-measure));
  gap: var(--ll-gap-md);
  padding-block-end: var(--ll-gap-lg);
  position: relative;
}
.ll-journey__stop:not(:last-child)::before {
  content: '';
  position: absolute;
  inset-inline-start: calc(var(--ll-journey-marker) / 2 - 0.5px);
  inset-block-start: calc(var(--ll-journey-marker) - 0.25rem);
  inset-block-end: 0;
  width: 1px;
  background-image: linear-gradient(var(--ll-moon-line) 40%, transparent 0);
  background-size: 1px 0.375rem;
  background-repeat: repeat-y;
}
.ll-journey__stop--done:not(:last-child)::before {
  background-image: linear-gradient(var(--ll-moon-line), var(--ll-moon-soft));
  background-size: 1px 100%;
}
.ll-journey__marker {
  width: var(--ll-journey-marker);
  height: var(--ll-journey-marker);
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--cds-border-strong-01);
  background: var(--cds-background);
  color: var(--cds-text-helper);
}
.ll-journey__glyph {
  width: 1.5rem;
  height: 1.5rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ll-journey__glyph .ll-journey__solid { fill: currentColor; stroke: none; }
.ll-journey__stop--done .ll-journey__marker {
  background: var(--ll-moon);
  border-color: var(--ll-moon);
  color: var(--cds-text-inverse);
}
.ll-journey__stop--now .ll-journey__marker {
  border-color: var(--ll-moon);
  color: var(--ll-moon);
  box-shadow: 0 0 0 4px var(--ll-moon-soft);
}
.ll-journey__title { font: var(--cds-type-heading-02); }
.ll-journey__note { font: var(--cds-type-body-01); color: var(--cds-text-secondary); margin: var(--ll-gap-2xs) 0 0; max-width: 34ch; }
.ll-journey__stop--next .ll-journey__title,
.ll-journey__stop--next .ll-journey__note { color: var(--cds-text-helper); }

.ll-track { list-style: none; margin: 0; padding: 0; }
.ll-track--wide { max-width: var(--ll-measure-wide); }
.ll-track__step { display: grid; grid-template-columns: 1.5rem 1fr; gap: var(--ll-gap-sm); padding-block-end: var(--ll-gap-md); position: relative; }
.ll-track__step:not(:last-child)::before {
  content: '';
  position: absolute;
  inset-inline-start: 0.6875rem;
  inset-block-start: 1.375rem;
  inset-block-end: 0;
  width: 1px;
  background: var(--cds-border-subtle-01);
}
.ll-track__dot {
  width: 1.375rem; height: 1.375rem;
  border-radius: 50%;
  border: 1px solid var(--cds-border-strong-01);
  background: var(--cds-background);
  display: grid; place-items: center;
  font: var(--cds-type-label-01);
  color: var(--cds-text-helper);
}
.ll-track__step--done .ll-track__dot { background: var(--ll-moon); border-color: var(--ll-moon); color: var(--cds-text-inverse); }
.ll-track__step--current .ll-track__dot { border-color: var(--ll-moon); color: var(--ll-moon); box-shadow: 0 0 0 3px var(--ll-moon-soft); }
.ll-track__label { font: var(--cds-type-label-02); }
.ll-track__step--pending .ll-track__label { color: var(--cds-text-helper); }
.ll-track__when { font: var(--cds-type-helper-01); color: var(--cds-text-helper); }

/* 10. the letter */

.ll-pad {
  background-color: var(--ll-pad);
  border: 1px solid var(--ll-pad-line);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.07);
  padding: var(--ll-gap-sm) var(--ll-gap-md) var(--ll-gap-lg);
}

/* The letter's paper, as against the desk's: the delivered letter being read, and the preview of
   one being written. In Twilight it is Oxford blue drawn a quarter of the way to charcoal, so a
   letter reads as its own sheet lying on the desk rather than as the desk itself. */
.ll-pad--letter { background-color: var(--ll-pad-letter); }

.ll-pad--margin {
  --ll-margin-rule: 3px;
  --ll-margin-indent: clamp(1rem, 5.6vw, var(--ll-gap-lg));
  border-inline-start-width: var(--ll-margin-rule);
  border-inline-start-color: var(--cds-interactive);
  padding-inline-start: var(--ll-margin-indent);
}

.ll-pad--slip { padding-block: var(--ll-gap-sm); }

.ll-pad--ruled {
  --ll-rule-x: var(--ll-gap-lg);
  padding-block-start: var(--ll-gap-sm);
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent calc(1.85em - 1px),
    var(--ll-pad-rule) calc(1.85em - 1px),
    var(--ll-pad-rule) 1.85em
  );
  background-size: 100% 1.85em;
  background-position: var(--ll-rule-x) var(--ll-gap-sm);
  background-repeat: repeat-y;
}
.ll-input.ll-pad:hover, .ll-textarea.ll-pad:hover,
.ll-input.ll-pad:focus, .ll-textarea.ll-pad:focus { background-color: var(--ll-pad-hover); }

.ll-pad--empty {
  display: grid;
  gap: var(--ll-gap-sm);
  align-content: center;
  min-height: 20rem;
  padding-block: var(--ll-gap-lg);
}

/* the sheet */

.ll-sheet {
  max-width: var(--ll-sheet-w);
  min-inline-size: 0;
  display: flow-root;
  padding-block: var(--ll-gap-md) var(--ll-gap-lg);
}

/* The letter as a page.
   A letter is not the shape of its own contents, so the sheet does not take it from them: it
   stands 1.4 times as tall as it is wide — the proportions of writing paper — and holds that
   shape whether or not anything has been written on it yet. The sheet is the query container's
   child, so 1cqw is one per cent of its own width: the page keeps its proportions at every class
   rather than only where the desk happens to be at its widest. It is a floor and not a ceiling:
   the page grows with the letter, so nothing is ever clipped. The address, the notes and the
   writing are placed by this grid; the ruled surface takes the last row, which is whatever the
   address and the plate leave, so the ruling reaches the foot of the page. */
.ll-turn {
  container-type: inline-size;
  /* The query container has to be the page and nothing wider, or 1cqw measures the desk column
     and the page stands taller than its own proportions ask. */
  max-width: var(--ll-sheet-w);
}

.ll-turn .ll-sheet {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto 1fr;
  align-items: start;
  min-block-size: 140cqw;
}

/* The face is only a box to hold the address, the notes and the writing; the grid places them,
   so it stands aside and lets them be placed. */
.ll-turn .ll-sheet__face { display: contents; }

/* The address and what the post says about it are one block of the page. The message belongs
   under the line it is about, so the two are placed together — one grid cell, its own stack —
   rather than in rows of the page's grid, where the plate beside them would set the height and
   carry the message down the sheet. */
.ll-turn .ll-sheet__address { grid-area: 1 / 1; }
.ll-turn .ll-sheet__ruled   { grid-area: 2 / 1 / -1 / -1; align-self: stretch; min-height: 0; }
.ll-turn .ll-stamp-slot    { grid-area: 1 / 2; }

.ll-turn .ll-sheet > .ll-letter__head { grid-area: 1 / 1 / 2 / -1; }
.ll-turn .ll-sheet > .ll-letter__body { grid-area: 2 / 1 / -1 / -1; align-self: stretch; }

.ll-sheet__to {
  font: var(--cds-type-body-01);
  color: var(--cds-text-secondary);
  margin-block-end: var(--ll-gap-md);
  overflow-wrap: anywhere;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--ll-gap-2xs);
}
.ll-sheet__label {
  font: var(--cds-type-label-01);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cds-text-helper);
  margin-inline-end: var(--ll-gap-2xs);
}

.ll-letter__body {
  font: var(--cds-type-body-02);
  font-family: var(--cds-font-serif);
  line-height: 1.85;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.ll-letter__body.ll-pad--ruled { --ll-rule-x: 0; }
/* a letter that has arrived */

/* the shelf: the letterbox as a case of shelves — letters as icons, two to a shelf, the name
   that sent each one underneath, and whatever is being read laid on the shelf below. */
.ll-letters { max-width: var(--ll-sheet-w); }

.ll-shelf {
  --ll-icon-w: 10.5rem;
  list-style: none;
  margin: 0;
  padding: var(--ll-gap-md) var(--ll-gap-md) var(--ll-gap-lg);
  display: grid;
  gap: var(--ll-gap-lg);
  background-color: var(--cds-layer-02);
  border: 1px solid var(--cds-border-subtle-02);
  box-shadow: inset 0 0 0 1px var(--cds-layer-01),
              inset 0 -6px 10px -8px rgba(0, 0, 0, 0.35);
}

.ll-shelf__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--ll-gap-md);
  row-gap: var(--ll-gap-sm);
  align-items: start;
}

.ll-shelf__letter {
  display: grid;
  gap: var(--ll-gap-2xs);
  justify-items: center;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  text-align: center;
  cursor: pointer;
  transition: opacity var(--cds-duration-moderate-01) var(--cds-ease-productive);
}
.ll-shelf__letter:focus-visible { outline: 2px solid var(--cds-focus); outline-offset: 4px; }

/* While a letter is down, the shelf recedes: the icon envelopes and the names under them dim, so
   the envelope and the letter hold the eye. The pressed icon keeps its lift. */
.ll-shelf--occupied .ll-shelf__letter { opacity: 0.4; }

.ll-shelf__name { font: var(--cds-type-code-02); color: var(--cds-text-primary); }
.ll-shelf__moon { font: var(--cds-type-helper-01); color: var(--cds-text-helper); }
/* The mark on a letter whose other end is gone. It is a label rather than a line of prose: the name
   above it is still the name the letter was written under, and this says what became of the account
   behind it — so it wears the tracked capitals the page already uses for a caption, in the quietest
   ink on the shelf. */
.ll-shelf__gone {
  font: var(--cds-type-label-02);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cds-text-helper);
}

/* the ledge: the plank the letters stand on, and beneath it the shelf a letter is read on */
.ll-shelf__ledge {
  grid-column: 1 / -1;
  block-size: 4px;
  margin-block-start: var(--ll-gap-2xs);
  background-image: linear-gradient(to bottom, var(--cds-layer-01), var(--cds-layer-02));
  border-block-end: 1px solid var(--cds-border-subtle-02);
  box-shadow: 0 4px 6px -4px rgba(0, 0, 0, 0.4);
}

/* the bay: the two deeper levels under the ledge — the envelope at full size, and the letter
   inside it with the post's note beside it */
.ll-shelf__bay {
  grid-column: 1 / -1;
  display: grid;
  gap: var(--ll-gap-md);
  align-content: start;
}

.ll-shelf__reading { grid-column: 1 / -1; }
.ll-shelf__reply {
  grid-column: 1 / -1;
  max-width: var(--ll-measure);
  margin-block-start: var(--ll-gap-sm);
  padding-block-start: var(--ll-gap-sm);
  border-block-start: 1px solid var(--cds-border-subtle-01);
}

@media (min-width: 78rem) {
  .ll-shelf { --ll-icon-w: 12rem; }
}
.ll-letter__foot {
  margin-block-start: var(--ll-gap-md);
  padding-block-start: var(--ll-gap-sm);
  border-block-start: 1px solid var(--cds-border-subtle-01);
}
/* The foot of a letter can carry two notes under the delivered line: the lapse a reader caused, and
   the deletion of the account at the other end. Both belong to the line above them — no rule of
   their own, and only the space of a line between them — so the notes read as one. */
.ll-letter__lapse,
.ll-letter__gone {
  margin-block-start: var(--ll-gap-2xs);
  padding-block-start: 0;
  border-block-start: 0;
}
.ll-letter__stamp { margin-block-end: var(--ll-gap-sm); }

.ll-letter__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--ll-gap-sm) var(--ll-gap-md);
  padding-block-end: var(--ll-gap-sm);
  margin-block-end: var(--ll-gap-md);
  border-block-end: 1px solid var(--cds-border-subtle-01);
  font: var(--cds-type-label-01);
  color: var(--cds-text-helper);
}

.ll-sealed {
  border: 1px dashed var(--cds-border-strong-01);
  padding: var(--ll-gap-lg);
  text-align: center;
  color: var(--cds-text-secondary);
  font: var(--cds-type-body-01);
}

.ll-empty {
  font: var(--cds-type-body-01);
  color: var(--cds-text-helper);
  max-width: var(--ll-measure);
  border-block-start: 1px solid var(--cds-border-subtle-01);
  padding-block-start: var(--ll-gap-md);
}

/* the letterbox */

.ll-box__head {
  display: flex;
  flex-direction: column;
  gap: var(--ll-gap-sm);
  padding-block-end: var(--ll-gap-sm);
  border-block-end: 1px solid var(--cds-border-subtle-01);
}
.ll-box__titles > .ll-lede + .ll-helper-text { margin-block-start: var(--ll-gap-lg); }
.ll-letterbox__head { border-block-end: 2px solid var(--ll-moon); }
/* The ledger's head hands straight over to the stamps band, so it keeps no hairline of its own and
   no room under it: the rule between the copy and the figure is the band's own moon rule, and the
   copy's last line stands one gap above it rather than a gap-xl plus a hairline. */
.ll-ledger__head { padding-block-end: 0; border-block-end: 0; }
.ll-ledger .ll-stamps { margin-block-start: var(--ll-gap-md); }
.ll-box .ll-empty { border-block-start: 0; }

/* the ledger: the counter's record, one entry to a ruled row — the money in, and the carriage out.
   Phone and tablet stack the row; from 62rem it becomes a ledger of three columns — the day, the
   entry, the figure — so a reader can run an eye down the money without reading every line. A
   receipt's figure wears the moon's own colour; a deduction's wears the page's ink, so what came
   in and what went out never read as the same thing. */
.ll-ledger { scroll-margin-block-start: clamp(8rem, 16vh, 10rem); }
.ll-ledger__list { max-width: var(--ll-sheet-w); }
.ll-ledger__entries { list-style: none; margin: 0; padding: 0; }
.ll-entry {
  padding-block: var(--ll-gap-md);
  border-block-start: 1px solid var(--cds-border-subtle-01);
}
.ll-entry:last-child { border-block-end: 1px solid var(--cds-border-subtle-01); }

.ll-entry__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--ll-gap-2xs) var(--ll-gap-md);
}
.ll-entry__when {
  font: var(--cds-type-label-01);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cds-text-helper);
}
.ll-entry__ref { color: var(--cds-text-helper); margin-inline-start: auto; }

.ll-entry__line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--ll-gap-2xs) var(--ll-gap-md);
  margin-block-start: var(--ll-gap-2xs);
}
.ll-entry__title { font: var(--cds-type-heading-03); }
.ll-entry__amount {
  font-variant-numeric: tabular-nums;
  color: var(--ll-moon);
  margin-inline-start: auto;
}
.ll-entry--out .ll-entry__amount { color: var(--cds-text-primary); }
.ll-entry__sub {
  margin-block-start: var(--ll-gap-2xs);
  letter-spacing: 0.04em;
}

@media (min-width: 62rem) {
  .ll-entry {
    display: grid;
    grid-template-columns: 13rem minmax(0, 1fr) auto;
    column-gap: var(--ll-gap-md);
    row-gap: var(--ll-gap-2xs);
    align-items: baseline;
  }
  .ll-entry__head,
  .ll-entry__line { display: contents; }
  .ll-entry__when { grid-column: 1; grid-row: 1; }
  .ll-entry__ref { grid-column: 1; grid-row: 2; margin-inline-start: 0; }
  .ll-entry__title { grid-column: 2; grid-row: 1; }
  .ll-entry__amount { grid-column: 3; grid-row: 1; margin-inline-start: 0; text-align: right; }
  .ll-entry__sub { grid-column: 2 / -1; grid-row: 2; margin-block-start: 0; }
}

/* the moon calendar: the ledger's rows again, with the moons already gone kept quiet and the next
   one marked at its edge, so the eye finds the moon a letter can still be written for without
   reading down three years of the list. Both are set by the browser — a reader without a script
   sees the whole calendar, undimmed and complete. */
.ll-moon-row--past { opacity: 0.55; }
.ll-moon-row--next { border-block-start: 2px solid var(--ll-moon); }
.ll-moon-row--next .ll-entry__when { color: var(--ll-moon); }

.ll-recovery {
  font-size: 1.0625rem;
  line-height: 1.6;
  letter-spacing: 0.08em;
  background: var(--cds-layer-01);
  border: 1px solid var(--cds-border-subtle-01);
  padding: var(--ll-gap-md);
  text-align: center;
  overflow-wrap: anywhere;
}

/* 11. modal, skeleton */

.ll-modal {
  border: 0;
  padding: 0;
  background: var(--cds-layer-02);
  color: var(--cds-text-primary);
  max-width: 40rem;
  width: calc(100% - 2rem);
  max-height: calc(100dvh - 3rem);
}
.ll-modal::backdrop { background: var(--cds-overlay); backdrop-filter: blur(2px); }
.ll-modal__inner { padding: clamp(1.5rem, 4vw, 2.75rem); }
.ll-modal h2 { margin-block-end: var(--ll-gap-sm); }

.ll-skeleton {
  background: var(--cds-skeleton-background);
  animation: ll-skeleton 3s ease-in-out infinite;
  height: 1rem;
}
.ll-skeleton + .ll-skeleton { margin-block-start: var(--ll-gap-sm); }
.ll-skeleton--title { height: 2.5rem; max-width: 26rem; }
.ll-skeleton--short { max-width: 16rem; }
@keyframes ll-skeleton {
  0%, 100% { background: var(--cds-skeleton-background); }
  50% { background: var(--cds-skeleton-element); }
}

/* 12. the drafting room */

/* the post */

.ll-board { padding: var(--ll-tile-pad); }
.ll-board__grid {
  display: grid;
  gap: var(--ll-gap-xl);
  align-items: center;
}
@media (min-width: 62rem) {
  .ll-board__grid { grid-template-columns: 1fr 1.15fr; }
}

.ll-stamps {
  display: grid;
  grid-template-areas: 'figure' 'note' 'door';
  gap: var(--ll-gap-md);
  margin-block-start: var(--ll-gap-xl);
  padding: var(--ll-gap-md);
  padding-block-end: var(--ll-gap-lg);
  background: var(--cds-layer-01);
  border-block-start: 3px solid var(--ll-moon);
}
@media (min-width: 48rem) {
  .ll-stamps {
    grid-template-areas: 'figure door' 'note note';
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--ll-gap-md) var(--ll-gap-lg);
    padding-inline: var(--ll-gap-lg);
    align-items: center;
  }
}
.ll-stamps__figure {
  grid-area: figure;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--ll-gap-2xs) var(--ll-gap-xs);
  font: var(--cds-type-display-01);
  letter-spacing: -0.015em;
  font-variant-numeric: tabular-nums;
}
/* The figure wears Plex Mono: a count is read in digits that line up, so a stale figure cannot be
   read as a smaller one. IBM Plex Mono is kept at 400 and 500 here, so the number names its own
   weight instead of asking for the display's light and getting the nearest face anyway. Size,
   line-height and the tracking it sits in are the display's own, untouched. */
.ll-stamps__number { font-family: var(--cds-font-mono); font-weight: 400; }
.ll-stamps__unit { font: var(--cds-type-heading-03); color: var(--cds-text-secondary); }
.ll-stamps__note { grid-area: note; max-width: var(--ll-measure); }
.ll-stamps__door { grid-area: door; }

/* the room */

.ll-room__head :is(h1, h2, p) { max-width: var(--ll-measure-wide); }
.ll-room__head::before {
  content: '';
  display: block;
  inline-size: 2.5rem;
  block-size: 2px;
  background: var(--ll-moon);
  margin-block-end: var(--ll-gap-md);
}
/* the spinner: one control standing where the page's first eyebrow always stood, holding the four
   eyebrows the mailbox already wears — the drafting room, make it yours, arrived and dispatched,
   bought and spent. The names are the eyebrows, unchanged; only their place is different, and every
   one of them lands on this same spot: the mark, then the name, then the heading under it.
   It is ours and not the browser's — a button, and beneath it a list wearing the page's own paper,
   so the list that opens reads as part of the letter rather than as a system menu. */
.ll-spinner {
  display: grid;
  justify-items: start;
  margin-block-end: var(--ll-gap-lg);
  scroll-margin-block-start: clamp(8rem, 16vh, 10rem);
}
/* the mark: the stop's own icon, and one of four — the quill for the drafting room, the medal for
   the making, the Lunastamp roundel for the letterbox, and the stamp for the ledger. All four stand
   in one cell and only the chosen one shows, so the control keeps the room the tallest of them needs
   and the name under it never moves. Each is drawn in the moon's own colour, at the size the
   roundel wore on the letterbox head, and each keeps its own aspect. */
.ll-spinner__icon {
  display: grid;
  inline-size: 2.5rem;
  /* half the gap the mark used to keep: the name sits closer under the icon than the icon sits under
     the copy above it, which is what the eye is reading when it reads this as one control */
  margin-block-end: calc(var(--ll-gap-md) / 2);
  color: var(--ll-moon);
}
.ll-spinner__art { grid-area: 1 / 1; inline-size: 100%; block-size: auto; visibility: hidden; }
.ll-spinner__art.is-on { visibility: visible; }

.ll-spinner__pick { position: relative; }
.ll-spinner__button {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: var(--cds-type-label-01);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cds-text-helper);
  cursor: pointer;
}
.ll-spinner__button:hover { color: var(--cds-text-primary); }
.ll-spinner__button:focus-visible { outline: 2px solid var(--cds-focus); outline-offset: 2px; }
/* The four names stand in one cell, so the control holds the width of the longest of them and does
   not shift when another is chosen. The three that are not chosen keep their room and lose their
   ink — and, being unread, are read by no one. */
.ll-spinner__name { display: grid; }
/* every name begins on the same left edge — the button's own start, which is the page's margin and
   the mark's — rather than centred in the cell the longest of them sets: the browser centres a
   button's text, so, left to itself, only the longest name would find that edge. */
.ll-spinner__word { grid-area: 1 / 1; visibility: hidden; white-space: nowrap; text-align: start; }
.ll-spinner__word.is-on { visibility: visible; }
.ll-spinner__chev { display: inline-flex; flex: none; color: var(--ll-moon); }
.ll-spinner__chev svg {
  inline-size: 0.6875rem;
  block-size: auto;
  transition: transform var(--cds-duration-fast-02) var(--cds-ease-productive);
}
.ll-spinner__button[aria-expanded='true'] .ll-spinner__chev svg { transform: rotate(180deg); }

/* the list: the page's paper, a hairline, and the same cast the shelf's plank throws */
.ll-menu {
  position: absolute;
  inset-block-start: calc(100% + 0.35rem);
  inset-inline-start: 0;
  z-index: 40;
  min-inline-size: 100%;
  margin: 0;
  padding: var(--ll-gap-2xs) 0;
  list-style: none;
  background: var(--cds-layer-02);
  border: 1px solid var(--cds-border-subtle-02);
  box-shadow: 0 4px 6px -4px rgba(0, 0, 0, 0.4);
}
.ll-menu[hidden] { display: none; }
.ll-menu__item {
  /* no leading padding: every name starts on the same line as the name in the button above it, and
     on the page's own left margin */
  padding: var(--ll-gap-xs) var(--ll-gap-md);
  /* one name to a line, so the list takes the width its longest name needs rather than wrapping
     inside the width of the button above it */
  white-space: nowrap;
  font: var(--cds-type-label-01);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cds-text-secondary);
  /* the moon marks the one you are on without moving it: an inset shadow costs no layout, where a
     border would push that name two pixels off the margin the other three sit on */
  box-shadow: inset 2px 0 0 0 transparent;
  cursor: pointer;
}
.ll-menu__item:hover,
.ll-menu__item:focus { background: var(--cds-layer-hover-01); color: var(--cds-text-primary); }
.ll-menu__item:focus { outline: 2px solid var(--cds-focus); outline-offset: -2px; }
.ll-menu__item[aria-selected='true'] {
  color: var(--cds-text-primary);
  box-shadow: inset 2px 0 0 0 var(--ll-moon);
}
/* the mark has moved to the spinner, which every stop shares */
.ll-room__head--bare::before { display: none; }
/* the notice stands above the spinner, whatever stop is open; this keeps them apart — and only a
   notice that is actually there: a hidden one is still the spinner's neighbour in the DOM, so the
   room would be asked for and never used, which is the whole gap under the header */
.ll-notice:not(.ll-hidden) + .ll-spinner { margin-block-start: var(--ll-gap-md); }

/* the stops: one at a time, and the panels use .ll-hidden, so nothing here hides them.
   Every stop opens on the page's left margin — the drafting room's heading, the letterbox's head,
   the ledger's head, the handle's — so the four names sit on one line down the page and the blocks
   that are cards (the board, the desk, the counter) may inset their own contents without moving the
   line the stop begins on. */
.ll-stop { min-block-size: 0; }
/* the board is a panel inside the drafting room now, not a full-bleed band: it carries its own
   night rather than borrowing the starfield behind the paper */
.ll-stop .ll-board { background-image: linear-gradient(180deg, var(--ll-sky-ground), var(--ll-sky-glow)); }

/* the desk */

.ll-desk {
  background: var(--cds-layer-03);
  border: 1px solid var(--cds-border-subtle-02);
  padding: clamp(0.75rem, 3.5vw, 2.5rem);
  margin-block-start: var(--ll-gap-lg);
}

.ll-desk__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--ll-gap-md);
  max-width: none;
}
.ll-view { grid-column: 1 / -1; }

.ll-tabs {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: var(--ll-gap-2xs);
  border-block-end: 1px solid var(--cds-border-subtle-02);
}
.ll-tab {
  font: var(--cds-type-label-01);
  letter-spacing: var(--cds-type-tracking);
  padding: var(--ll-gap-2xs) var(--ll-gap-xs);
  border: 1px solid transparent;
  border-block-end: 0;
  background: none;
  color: var(--cds-text-secondary);
  cursor: pointer;
  transition: color var(--cds-duration-fast-02) var(--cds-ease-productive),
              background-color var(--cds-duration-fast-02) var(--cds-ease-productive);
}
.ll-tab:hover { color: var(--cds-text-primary); background: var(--cds-layer-hover-01); }
.ll-tab[aria-selected='true'] {
  color: var(--cds-text-primary);
  background: var(--cds-layer-01);
  border-color: var(--cds-border-subtle-02);
  margin-block-end: -1px;
  padding-block-end: calc(var(--ll-gap-2xs) + 1px);
}
.ll-tab:focus-visible { outline: 2px solid var(--cds-focus); outline-offset: -2px; }
.ll-tab__with { color: inherit; }
/* The letterbox's own tabs: the same device as the drafting room's, sitting between the box's
   head and the letters it holds. */
.ll-letterbox__tabs { margin-block-end: var(--ll-gap-md); }
.ll-desk__grid { perspective: 1600px; }
.ll-desk__rail {
  display: grid;
  gap: var(--ll-gap-xs);
  align-content: start;
  border-block-start: 1px solid var(--cds-border-subtle-02);
  padding-block-start: var(--ll-gap-md);
}
@media (min-width: 62rem) {
  .ll-desk__grid {
    grid-template-columns: minmax(0, var(--ll-sheet-w)) 11rem;
    gap: var(--ll-gap-md) var(--ll-gap-lg);
    justify-content: center;
    align-items: start;
  }
  .ll-desk__rail { border-block-start: 0; padding-block-start: 0; }
}
@media (min-width: 78rem) {
  .ll-desk__grid {
    grid-template-columns: minmax(0, var(--ll-sheet-w)) 13rem;
    gap: var(--ll-gap-md) var(--ll-gap-xl);
    justify-content: center;
    align-items: start;
  }
  .ll-desk__rail { border-block-start: 0; padding-block-start: 0; }
}

/* the switch */

.ll-view {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--ll-gap-sm);
}
.ll-view__side {
  font: var(--cds-type-body-01);
  letter-spacing: var(--cds-type-tracking);
  padding: 0 0 var(--ll-gap-2xs);
  border: 0;
  border-block-end: 2px solid transparent;
  background: none;
  color: var(--cds-text-secondary);
  cursor: pointer;
  transition: color var(--cds-duration-fast-02) var(--cds-ease-productive),
              border-color var(--cds-duration-fast-02) var(--cds-ease-productive);
}
.ll-view__side:hover { color: var(--cds-text-primary); }
.ll-view__side[aria-pressed='true'] {
  color: var(--cds-text-primary);
  border-block-end-color: var(--cds-interactive);
}
.ll-view__side:focus-visible { outline: 2px solid var(--cds-focus); outline-offset: 3px; }
.ll-view__with { color: inherit; }

/* the letter, written in place */

.ll-sheet:focus-within { outline: 2px solid var(--ll-letter-focus); outline-offset: 2px; }

.ll-turn {
  transition: transform 170ms var(--cds-ease-productive);
  transform-origin: left center;
  min-inline-size: 0;
}
.ll-turn--turn-away { transform: rotateY(-90deg); }
.ll-turn--turn-back { transform: rotateY(90deg); }
@media (prefers-reduced-motion: reduce) {
  .ll-turn { transition: none; }
}

/* the envelope */

#face-preview { display: grid; gap: var(--ll-gap-lg); min-inline-size: 0; max-width: var(--ll-sheet-w); }

.ll-envelope {
  position: relative;
  display: grid;
  align-content: end;
  min-inline-size: 0;
  min-block-size: 15rem;
  padding: calc(var(--ll-gap-md) + 6px) var(--ll-gap-md) var(--ll-gap-md);
  background-color: var(--ll-envelope);
  background-image:
    repeating-linear-gradient(45deg, var(--cds-interactive) 0 3px, transparent 3px 11px),
    repeating-linear-gradient(45deg, var(--cds-interactive) 0 3px, transparent 3px 11px),
    repeating-linear-gradient(45deg, var(--cds-interactive) 0 3px, transparent 3px 11px),
    repeating-linear-gradient(45deg, var(--cds-interactive) 0 3px, transparent 3px 11px);
  background-size: 100% 6px, 100% 6px, 6px 100%, 6px 100%;
  background-position: 0 0, 0 100%, 0 0, 100% 0;
  background-repeat: no-repeat;
  border: 1px solid var(--ll-envelope-line);
}

.ll-envelope__flap {
  position: absolute;
  inset-block-start: 6px;
  inset-inline: 0;
  inline-size: 100%;
  block-size: 34%;
  pointer-events: none;
}
.ll-envelope__flap path {
  fill: var(--ll-envelope-flap);
  stroke: var(--ll-envelope-line);
  stroke-width: 1;
}

.ll-envelope__corner {
  position: absolute;
  inset-block-start: 0;
  inset-inline-end: 0;
  display: grid;
  justify-items: end;
}
.ll-envelope .ll-stamp-slot {
  position: static;
  float: none;
  inline-size: 5rem;
  margin: var(--ll-gap-xs) var(--ll-gap-xs) 0 0;
}

.ll-postmark {
  position: absolute;
  inset-block-start: 0.35rem;
  inset-inline-end: 1.3rem;
  inline-size: 7.5rem;
  block-size: auto;
  transform: rotate(-8deg);
  pointer-events: none;
  color: var(--ll-postmark);
}
.ll-postmark__ring,
.ll-postmark__rule { fill: none; stroke: currentColor; stroke-width: 3; }
.ll-postmark__rule { stroke-width: 1.5; }
.ll-postmark__path { fill: none; stroke: none; }
.ll-postmark__name,
.ll-postmark__date,
.ll-postmark__time {
  fill: currentColor;
  font-family: var(--cds-font-sans);
  font-weight: 600;
  letter-spacing: 0.01em;
}
.ll-postmark__name { font-size: 9px; }
.ll-postmark__date { font-size: 15px; }
.ll-postmark__time { font-size: 12px; }

.ll-envelope__lines {
  position: relative;
  display: grid;
  gap: var(--ll-gap-sm);
  font: var(--cds-type-body-01);
  color: var(--cds-text-secondary);
}
.ll-envelope__line--from { margin-inline-start: var(--ll-gap-xl); }
.ll-envelope__line strong { color: var(--cds-text-primary); }

@media (max-width: 30rem) {
  .ll-postmark { inline-size: 6.5rem; inset-inline-end: 0.9rem; }
  .ll-envelope .ll-stamp-slot { inline-size: 4rem; }
  .ll-envelope__line--from { margin-inline-start: var(--ll-gap-lg); }
}

/* The letter at icon size, standing on the shelf: the paper and the folded flap, with the plate
   the sender affixed in the corner. The whole icon is one control. It follows the phone rule
   above so that a plate on a shelf icon keeps its own size at every class. */
.ll-envelope--icon {
  inline-size: min(100%, var(--ll-icon-w));
  min-block-size: 0;
  aspect-ratio: 4 / 3;
  padding: 0;
  transition: transform var(--cds-duration-moderate-01) var(--cds-ease-productive);
}
.ll-shelf__letter:hover .ll-envelope--icon,
.ll-shelf__letter--open .ll-envelope--icon { transform: translateY(-2px); }
/* The plate and the postmark scale with the icon, so an icon is the envelope sealed down rather
   than the envelope with a stamp pasted on. */
.ll-envelope--icon .ll-envelope__corner { inline-size: 32%; }
.ll-envelope--icon .ll-stamp-slot {
  inline-size: 80%;
  margin: 0 var(--ll-gap-2xs) 0 0;
}
.ll-envelope--icon .ll-postmark {
  inline-size: 36%;
  inset-block-start: 3%;
  inset-inline-end: 2%;
}
.ll-envelope--icon .ll-stamp-slot--affixed { cursor: default; }

/* The envelope at full size, in the bay: the whole of it is one control, and pressing it opens
   the letter it holds. */
.ll-envelope--letter {
  inline-size: 100%;
  min-block-size: 12rem;
  font: inherit;
  color: inherit;
  text-align: start;
  cursor: pointer;
}
.ll-envelope--letter:hover,
.ll-envelope--letter:focus-visible { border-color: var(--ll-envelope-line-strong); }
.ll-envelope--letter:focus-visible { outline: 2px solid var(--cds-focus); outline-offset: 4px; }

/* the carrier's masthead */

.ll-letter__head {
  margin-inline-start: calc(-1 * (var(--ll-margin-rule) + var(--ll-margin-indent) - 1px - var(--ll-gap-md)));
  display: grid;
  justify-items: center;
  /* The lockup: roundel, wordmark, rule. One device, so the parts sit close to one another —
     6px inside it, 4px before the rule — and the whole thing rides up into the letter's padding
     rather than sitting a full gap below its top edge. */
  gap: 0.375rem;
  margin-block-start: calc(-1 * var(--ll-gap-xs));
  margin-block-end: var(--ll-gap-md);
  padding-block-end: 0.25rem;
  border-block-end: 1px solid var(--ll-pad-masthead-rule);
  font: var(--cds-type-label-01);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  color: var(--ll-pad-masthead);
}
.ll-letter__head + .ll-letter__body { margin-block-start: 0; }

.ll-masthead__mark { inline-size: 2rem; block-size: auto; }
.ll-masthead__ring { fill: none; stroke: currentColor; stroke-width: 1.5; }
.ll-masthead__moon,
.ll-masthead__spark { fill: currentColor; }

/* the letter as it is read */

.ll-sheet__reading {
  clear: right;
  clear: inline-end;
  min-height: 20rem;
  font-weight: 500;
  overflow-wrap: anywhere;
}
@media (min-width: 62rem) { .ll-sheet__reading { min-height: 24rem; } }
.ll-sheet__reading--empty {
  color: var(--cds-text-helper);
  font-family: var(--cds-font-sans);
  font-weight: 400;
}

.ll-sheet__prefix { font: var(--cds-type-code-02); color: var(--cds-text-helper); }

.ll-sheet__input {
  flex: 1 1 10rem;
  min-inline-size: 0;
  max-inline-size: 14rem;
  padding: 0 var(--ll-gap-2xs);
  border: 0;
  border-block-end: 1px solid var(--cds-border-subtle-02);
  border-radius: 0;
  background: transparent;
  color: var(--cds-text-primary);
  font: var(--cds-type-code-02);
}
.ll-sheet__input::placeholder { color: var(--cds-text-placeholder); }
.ll-sheet__input:focus { outline: none; border-block-end-color: var(--cds-focus); }
.ll-sheet__input:disabled {
  color: var(--cds-text-secondary);
  border-block-end-style: dotted;
}

.ll-sheet__note,
.ll-sheet__offers {
  margin-block: calc(-1 * var(--ll-gap-sm)) var(--ll-gap-md);
}
.ll-sheet__note {
  font: var(--cds-type-label-01);
  letter-spacing: var(--cds-type-tracking);
  color: var(--cds-text-helper);
  overflow-wrap: anywhere;
}
/* A refusal is not a hint. When the post will not take the address, it says so in the error
   colour; the confirmation, when it will, stays quiet. */
.ll-sheet__note--error { color: var(--cds-text-error); }
.ll-sheet__offers { display: flex; flex-wrap: wrap; gap: var(--ll-gap-2xs); }
.ll-sheet__pick {
  min-height: 2.5rem;
  padding: var(--ll-gap-2xs) var(--ll-gap-sm);
  border: 1px solid var(--cds-border-subtle-02);
  background: var(--cds-layer-02);
  color: var(--cds-text-primary);
  font: var(--cds-type-label-02);
  letter-spacing: var(--cds-type-tracking);
  text-align: start;
  cursor: pointer;
}
.ll-sheet__pick:hover { background: var(--cds-layer-hover-01); border-color: var(--cds-border-strong-01); }
.ll-sheet__pick:focus-visible { outline: 2px solid var(--cds-focus); outline-offset: -2px; }

.ll-sheet__ruled {
  --ll-rule-x: 0;
  padding: 0;
  background-position: 0 0;
  min-height: 20rem;
  clear: right;
  clear: inline-end;
}
@media (min-width: 62rem) { .ll-sheet__ruled { min-height: 24rem; } }

.ll-sheet__writing {
  display: block;
  inline-size: 100%;
  min-inline-size: 0;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  caret-color: var(--cds-interactive);
  resize: none;
  overflow: hidden;
  font: var(--cds-type-body-02);
  line-height: 1.85;
}
.ll-sheet__writing::placeholder { color: var(--cds-text-placeholder); }
.ll-sheet__writing:focus { outline: none; }

.ll-actions--stack { display: flex; flex-direction: column; gap: var(--ll-gap-sm); align-items: stretch; }
.ll-desk__discard { margin-block-start: var(--ll-gap-xs); }

/* the plate */
.ll-stamp-slot {
  float: inline-end;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--ll-gap-xs);
  width: 5rem;
  margin: 0 0 var(--ll-gap-sm) var(--ll-gap-md);
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  text-align: center;
  cursor: pointer;
}
.ll-stamp-slot__art { display: block; width: 100%; height: auto; }
.ll-stamp-slot__label {
  width: 100%;
  padding-block-start: var(--ll-gap-2xs);
  border-block-start: 1px solid var(--cds-border-subtle-01);
  font: var(--cds-type-label-01);
  color: var(--cds-text-helper);
}
.ll-stamp-slot--blank .ll-stamp-slot__ink { display: none; }
.ll-stamp-slot--blank .ll-stamp-slot__label { color: var(--cds-text-secondary); }
.ll-stamp-slot:not(:disabled):hover .ll-stamp-slot__art { transform: translateY(-2px); }
.ll-stamp-slot:disabled { color: inherit; cursor: default; }
.ll-stamp-slot--read .ll-stamp-slot__label { display: none; }
.ll-stamp-slot:focus-visible { outline: 2px solid var(--cds-focus); outline-offset: 4px; }

@media (max-width: 24rem) {
  .ll-stamp-slot {
    float: none;
    margin-inline: auto 0;
    margin-block-end: var(--ll-gap-sm);
  }
}

/* the picker */
/* the picker: the collection as a sheet of stamps. The stamps are printed things, so they are laid
   on paper — the same paper in both themes — each plate with its name beneath it, the way a letter
   stands on the shelf. */
.ll-picker { max-width: 54rem; }
.ll-picker__inner { display: grid; gap: var(--ll-gap-md); }

.ll-picker__sheet {
  display: grid;
  gap: var(--ll-gap-md);
  padding: var(--ll-gap-md) var(--ll-gap-lg) var(--ll-gap-lg);
  background-color: var(--ll-stamp-sheet);
  color: var(--ll-stamp-sheet-ink);
  border: 1px solid var(--ll-stamp-sheet-line);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.14);
}

.ll-picker__series {
  margin: 0;
  font: var(--cds-type-label-01);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ll-stamp-sheet-muted);
}

/* Two a row on a phone, four from 48rem, six from 62rem. Three across a 360px phone left the
   cell 89px wide, with the name and the denomination competing for the same width underneath
   the plate. At two the cell is 143px, and the plate fills it — see .ll-picker__art. */
.ll-picker__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--ll-gap-md) var(--ll-gap-sm);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 48rem) { .ll-picker__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 62rem) { .ll-picker__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

.ll-picker__button {
  inline-size: 100%;
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  text-align: center;
  cursor: pointer;
}
/* The plate fills its cell on a phone: two a row leaves the art 143px wide at 360px, and a plate
   is a printed thing that holds the width it is given. The cap returns from 48rem, where the
   sheet is four and six across, the plate sits in air again, and a row of six stays one size. */
.ll-picker__art {
  inline-size: 100%;
  block-size: auto;
  transition: transform var(--cds-duration-moderate-01) var(--cds-ease-productive);
}
@media (min-width: 48rem) { .ll-picker__art { max-inline-size: 5.5rem; } }
.ll-picker__button:hover .ll-picker__art,
.ll-picker__button:focus-visible .ll-picker__art { transform: translateY(-2px); }
.ll-picker__button:focus-visible { outline: 2px solid var(--cds-focus); outline-offset: 4px; }
.ll-picker__no { font: var(--cds-type-code-01); color: var(--ll-stamp-sheet-muted); }
.ll-picker__name { font: var(--cds-type-helper-01); }
/* The plate's own price. A plate the hand cannot cover is shown, priced, and greyed — so the
   counter is what a premium plate is waiting for, not a refusal at dispatch. It is marked
   aria-disabled rather than disabled so it stays reachable: see chooseStamp() in mail.js. */
.ll-picker__price { font: var(--cds-type-code-01); color: var(--ll-stamp-sheet-ink); }
.ll-picker__button[aria-disabled='true'] { cursor: not-allowed; }
.ll-picker__button[aria-disabled='true'] .ll-picker__art,
.ll-picker__button[aria-disabled='true'] .ll-picker__no,
.ll-picker__button[aria-disabled='true'] .ll-picker__name,
.ll-picker__button[aria-disabled='true'] .ll-picker__price { opacity: 0.4; }
.ll-picker__button[aria-disabled='true']:hover .ll-picker__art { transform: none; }

/* the stamp this envelope is already wearing */
.ll-picker__button[aria-pressed='true'] .ll-picker__art {
  outline: 2px solid var(--cds-interactive);
  outline-offset: 3px;
}
.ll-picker__button[aria-pressed='true'] .ll-picker__name,
.ll-picker__button[aria-pressed='true'] .ll-picker__price { font-weight: 600; }

/* the sheet's caption: the stamp under the hand, or the one already affixed */
.ll-picker__caption {
  margin: 0;
  min-height: 2.7em;
  padding-block-start: var(--ll-gap-sm);
  border-block-start: 1px solid var(--ll-stamp-sheet-line);
  font: var(--cds-type-body-01);
  color: var(--ll-stamp-sheet-ink);
}
.ll-picker__caption strong { font-weight: 600; }

/* no shillings to spend: the counter's own ticket, brought into the modal — and the modal draws
   itself in to the size of a ticket */
.ll-picker--empty { max-width: 34rem; }
.ll-picker--empty .ll-picker__sheet { display: none; }
.ll-picker__door { max-width: none; }
.ll-picker__door .ll-ticket__price { margin-block-end: var(--ll-gap-sm); }

/* the list at the foot of the page */

#inbox > :last-child { margin-block-end: 0; }

/* 13. the counter */

.ll-ticket {
  background: var(--cds-layer-01);
  border: 1px solid var(--cds-border-subtle-01);
  border-inline-start: 3px solid var(--ll-moon);
  padding: var(--ll-gap-md) var(--ll-gap-lg);
  max-width: var(--ll-measure);
}
.ll-ticket__label {
  font: var(--cds-type-label-01);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cds-text-helper);
}
.ll-ticket__price {
  font: var(--cds-type-display-01);
  letter-spacing: -0.015em;
  margin-block-start: var(--ll-gap-2xs);
}
.ll-ticket__figures {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--ll-gap-sm);
  margin-block-start: var(--ll-gap-2xs);
}
.ll-ticket__gbp { font: var(--cds-type-heading-03); }
.ll-ticket__usd {
  font: var(--cds-type-code-02);
  font-variant-numeric: tabular-nums;
  color: var(--ll-moon);
  transition: color 1400ms var(--cds-ease-productive);
}
.ll-ticket__usd--moved { color: var(--cds-text-primary); transition: none; }
@media (prefers-reduced-motion: reduce) { .ll-ticket__usd { transition: none; } }
.ll-ticket__when {
  font: var(--cds-type-label-01);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cds-text-helper);
}
.ll-ticket .ll-helper-text { margin-block-start: var(--ll-gap-sm); }
/* A ticket spaces what follows its content with explicit margins, because it is not a flow container
   — the price and the helper text above each carry their own. The picker's door is the one ticket
   with buttons in it, and they had none: "Buy stamps at the counter" sat flush against the copy, in
   the one panel where the hand is empty and the button is the only way out. It takes the ticket's
   own padding as its measure, which is the air the panel keeps around itself. */
.ll-ticket .ll-actions { margin-block-start: var(--ll-gap-md); }

.ll-amounts { display: flex; flex-wrap: wrap; gap: var(--ll-gap-xs); }
.ll-amount {
  font: var(--cds-type-heading-02);
  letter-spacing: var(--cds-type-tracking);
  color: var(--cds-text-primary);
  background: var(--cds-layer-02);
  border: 1px solid var(--cds-border-subtle-01);
  min-height: 2.75rem;
  padding-inline: var(--ll-gap-md);
  cursor: pointer;
  transition: background var(--cds-duration-fast-02) var(--cds-ease-productive);
}
.ll-amount:hover { background: var(--cds-layer-hover-01); }
.ll-amount[aria-pressed='true'] { border-color: var(--ll-moon); color: var(--ll-moon); }
.ll-amount:focus-visible { outline: 2px solid var(--cds-focus); outline-offset: -2px; }

.ll-money { display: flex; max-width: 12rem; }
.ll-money__sign {
  display: flex;
  align-items: center;
  padding-inline: var(--ll-gap-sm);
  background: var(--cds-layer-01);
  border-block-end: 1px solid var(--cds-border-strong-01);
  font: var(--cds-type-heading-03);
  color: var(--cds-text-secondary);
}
.ll-money__input { text-align: end; }

.ll-till {
  background: var(--cds-layer-01);
  border-block-start: 3px solid var(--ll-moon);
  padding: var(--ll-gap-md) var(--ll-gap-lg);
  max-width: var(--ll-measure);
}
.ll-till__shillings { font: var(--cds-type-display-01); letter-spacing: -0.015em; }
.ll-till__unit { font: var(--cds-type-heading-03); color: var(--cds-text-secondary); }
.ll-till__line {
  font: var(--cds-type-body-01);
  color: var(--cds-text-secondary);
  margin-block-start: var(--ll-gap-2xs);
  max-width: var(--ll-measure-tight);
}

.ll-quote__rate {
  font-family: var(--cds-font-mono);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ll-moon);
}

.ll-sheets {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--ll-gap-lg);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 42rem) { .ll-sheets { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 62rem) { .ll-sheets { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ll-stamp { display: flex; flex-direction: column; gap: var(--ll-gap-sm); }
.ll-stamp__art {
  display: block;
  width: 100%;
  height: auto;
  transition: transform var(--cds-duration-moderate-01) var(--cds-ease-productive);
}
.ll-stamp:hover .ll-stamp__art { transform: translateY(-2px); }

.ll-stamp__field { fill: var(--cds-layer-02); }
/* The six premium plates are printed on their own coloured stock; the ordinary six keep the sheet's
   own layer. The colour belongs to the stamp, so it follows the plate wherever it is drawn — the
   counter's sheet, the picker, the letter, the envelope corner. Each has its dark palette from
   tokens.css, because a coloured field is a dark ground and the ink on it has to be light. */
.ll-stamp--guitar .ll-stamp__field { fill: #8b0000; }
.ll-stamp--balalaika .ll-stamp__field { fill: #470066; }
.ll-stamp--piano .ll-stamp__field { fill: #1f6600; }
.ll-stamp--trumpet .ll-stamp__field { fill: #0000cd; }
.ll-stamp--snare .ll-stamp__field { fill: #008080; }
/* The drum's teal is the one mid-tone stock in the collection, so it is the softest plate here: the
   light ink reads 3.94:1 for the drawing and 2.96:1 for the price, where the ordinary plate reads
   12.21 and 9.19. That is the colour's doing and not the code's — and the paper theme's dark ink is
   worse on teal (2.74 and 1.09), so the collection's light ink is the right one to keep either way. */
.ll-stamp--saxophone .ll-stamp__field { fill: #8b008b; }
/* The perforation is struck in the sheet's warm grey, which reads on the sheet's brown but not on a
   coloured field — 1.12:1 on the saxophone's magenta, and 1.01:1 on the trumpet before it was
   retuned, which is to say not at all. On these six the dots are struck in the plate's own
   secondary ink instead, the way a coloured stamp is printed in one ink: 1.6:1 to 3.3:1, where the
   ordinary plate reads 1.74. The inner rule and the hairline are left alone — they measure 1.28 and
   1.15 on the ordinary plate, so they are a whisper by design and stay one here. */
.ll-stamp--guitar .ll-stamp__perf,
.ll-stamp--balalaika .ll-stamp__perf,
.ll-stamp--piano .ll-stamp__perf,
.ll-stamp--trumpet .ll-stamp__perf,
.ll-stamp--snare .ll-stamp__perf,
.ll-stamp--saxophone .ll-stamp__perf { stroke: var(--cds-text-secondary); }
.ll-stamp__perf {
  fill: none;
  stroke: var(--cds-border-strong-01);
  stroke-width: 3.4;
  stroke-linecap: round;
  stroke-dasharray: 0 7.4;
  opacity: 0.55;
}
.ll-stamp__rule { fill: none; stroke: var(--cds-border-subtle-02); stroke-width: 0.75; }
.ll-stamp__hairline { fill: none; stroke: var(--cds-border-subtle-01); stroke-width: 0.5; }

.ll-stamp__mark {
  font-family: var(--cds-font-mono);
  font-size: 5.2px;
  letter-spacing: 1.8px;
  color: var(--cds-text-secondary);
  fill: currentColor;
}
.ll-stamp__no {
  font-family: var(--cds-font-mono);
  font-size: 4.2px;
  letter-spacing: 0.6px;
  color: var(--cds-text-helper);
  fill: currentColor;
}
.ll-stamp__moon { color: var(--ll-moon); fill: currentColor; }
.ll-stamp__draw {
  color: var(--cds-text-primary);
  fill: currentColor;
  stroke: none;
}
.ll-stamp__value {
  font-family: var(--cds-font-mono);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.5px;
  color: var(--ll-moon);
  fill: currentColor;
}
.ll-stamp__legend {
  font-family: var(--cds-font-sans);
  font-size: 4.4px;
  letter-spacing: 1.2px;
  color: var(--cds-text-secondary);
  fill: currentColor;
}

.ll-stamp__caption {
  border-block-start: 1px solid var(--cds-border-subtle-01);
  padding-block-start: var(--ll-gap-xs);
}
.ll-stamp__name { font: var(--cds-type-heading-03); }
.ll-stamp__note {
  font: var(--cds-type-body-01);
  color: var(--cds-text-secondary);
  margin-block-start: var(--ll-gap-2xs);
}

/* 14. utilities */

.ll-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ll-gap-md); }
.ll-row--tight { gap: var(--ll-gap-sm); }
.ll-row--baseline { align-items: baseline; }
.ll-right { margin-inline-start: auto; }
.ll-hidden { display: none !important; }
.ll-nowrap { white-space: nowrap; }
.ll-pad-block { padding-block: var(--ll-gap-lg); }
.ll-divider { border: 0; border-block-start: 1px solid var(--cds-border-subtle-01); margin-block: var(--ll-gap-xl); }

@media (max-width: 41.99rem) {
  .ll-hide-sm { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
