/* ---------------------------------------------------------------------------
   Collective Wedding Styling — quoting portal
   Art direction: Letterpress

   Paper and ink. The couple's names are the largest thing on their quote, not
   the price and not a logo. Serif for anything a person wrote or owns, sans
   for anything the machine is saying. Two ways of showing depth: paper raised
   off the page, and a well pressed into it. Nothing else casts a shadow.

   One hand-written file. No framework, no build step, no webfont, nothing
   fetched at runtime — the iPad has to work with the wifi off, and a font
   request is the fastest way to break that promise.

   The single idea the whole thing hangs off: an empty slot only looks empty
   if you drew the slot. There is no image placeholder anywhere in here.
   --------------------------------------------------------------------------- */

:root {
  /* --- Paper. Never pure white, anywhere. --- */
  --paper-cotton:  #F7F3EC;   /* the ground */
  --paper-sheet:   #FDFBF7;   /* raised paper: sheets, tiles, fields */
  --paper-sheet-b: #FAF6EF;   /* tile paper 2 */
  --paper-sheet-c: #F8F4EC;   /* tile paper 3 */
  --paper-deep:    #EFE8DE;   /* sunken ground, the product grid */
  --linen-well:    #F1EADF;   /* price wells only */

  /* --- Ink. All text. --- */
  --ink:       #23201C;
  --ink-2:     #4A443C;
  --ink-3:     #6E665C;       /* lightest permitted: eyebrows and footers */
  --ink-btn:   #2B2521;
  --ink-press: #16120F;

  /* --- Bark. Supporting, never the hero. --- */
  --bark:      #6B4F3A;
  --bark-deep: #533C2C;
  --bark-wash: #EDE3D8;

  /* --- Accents. A few uses each, no more. --- */
  --eucalypt:      #47604F;
  --eucalypt-wash: #E4EAE4;
  --ochre:         #8A5A21;
  --ochre-wash:    #F4E9DA;
  --bad:           #9C3A2F;   /* backend only, never on a customer page */

  --rule:      #E3DACD;
  --rule-firm: #D3C7B5;

  --r:    3px;
  --r-sm: 2px;

  --s1:4px;  --s2:8px;  --s3:12px; --s4:16px; --s5:24px;
  --s6:32px; --s7:40px; --s8:56px; --s9:64px; --s10:96px;

  --ease:     cubic-bezier(.2,.7,.25,1);
  --t-tap:    140ms;
  --t-arrive: 420ms;

  --tap: 48px;

  /* Both stacks resolve to fonts already installed on iOS and Windows.
     Iowan and Palatino are close enough in colour and x-height that the
     fallback is a shrug rather than a lurch. */
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua",
           Georgia, "Times New Roman", serif;
  --sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
           "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

/* The hidden attribute must beat any display rule set later. */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font: 400 1rem/1.6 var(--sans);
  color: var(--ink);
  background-color: var(--paper-cotton);
  /* Paper grain. Felt, not seen. If you can see it as a pattern, halve it. */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/><feColorMatrix type='saturate' values='0'/></filter><rect width='160' height='160' filter='url(%23n)' opacity='.035'/></svg>");
  -webkit-font-smoothing: antialiased;
}

/* Grain plus hall glare is just noise. */
@media (pointer: coarse) { body { background-image: none; } }

h1, h2, h3, h4 {
  margin: 0 0 var(--s3);
  font-family: var(--serif);
  font-weight: 400;          /* a bold serif reads as a supermarket catalogue */
  line-height: 1.2;
  color: var(--ink);
}
h1 { font-size: 1.75rem; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.125rem; }
p  { margin: 0 0 1rem; }
a  { color: var(--bark); text-decoration-thickness: 1px; text-underline-offset: 3px; }

.muted  { color: var(--ink-2); }
.faint  { color: var(--ink-3); }
.small  { font-size: .875rem; }
.tiny   { font-size: .8125rem; }
.strong { font-weight: 600; }
.center { text-align: center; }
.right  { text-align: right; }
.nowrap { white-space: nowrap; }
.mono   { font-family: var(--sans); font-variant-numeric: tabular-nums; }
.fig    { font-variant-numeric: tabular-nums lining-nums; }
.hidden { display: none !important; }
.stack > * + * { margin-top: 1rem; }
.row    { display: flex; gap: var(--s3); align-items: center; }
.row.wrap { flex-wrap: wrap; }
.spread { display: flex; gap: var(--s3); align-items: center; justify-content: space-between; }
.grow   { flex: 1 1 auto; min-width: 0; }

/* An eyebrow: the machine speaking, quietly. */
.eyebrow {
  font: 600 .6875rem/1 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* The only decorative mark in the design. */
.mark      { width: 48px; height: 2px; background: var(--bark); margin: 0 auto; border: 0; }
.mark-thin { width: 40px; height: 1px; background: var(--bark); margin: 0 auto; border: 0; }

/* --- Depth. Two devices, and no others. ------------------------------------ */

.raised {
  background: var(--paper-sheet);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.9),
    0 1px 1px rgba(35,32,28,.04),
    0 24px 48px -32px rgba(35,32,28,.40);
}

.debossed {
  background: var(--linen-well);
  border: 0;
  border-radius: var(--r);
  box-shadow:
    inset 0 1px 3px rgba(35,32,28,.09),
    inset 0 -1px 0 rgba(255,255,255,.75);
}

.well {
  background-image:
    repeating-linear-gradient(90deg, rgba(35,32,28,.022) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(0deg,  rgba(35,32,28,.022) 0 1px, transparent 1px 3px);
}

/* --- Buttons --------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  min-height: 56px;
  padding: 0 var(--s5);
  background: var(--paper-sheet);
  color: var(--ink);
  border: 1px solid var(--rule-firm);
  border-radius: var(--r);
  font: 600 1rem/1 var(--sans);
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--t-tap) var(--ease), transform var(--t-tap) var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] {
  background: var(--paper-deep);
  color: var(--ink-3);
  border-color: var(--rule);
  cursor: not-allowed;
}

/* Ink on cream is the most confident object available, and it costs nothing. */
.btn-primary {
  background: var(--ink-btn);
  border-color: var(--ink-btn);
  color: var(--paper-cotton);
  min-height: 60px;
}
.btn-primary:active { background: var(--ink-press); }

.btn-good   { background: var(--eucalypt); border-color: var(--eucalypt); color: var(--paper-cotton); }
.btn-danger { background: transparent; border-color: var(--bad); color: var(--bad); }
.btn-ghost  { background: transparent; border-color: transparent; }
.btn-quiet  { background: var(--paper-deep); border-color: transparent; }
.btn-lg     { min-height: 60px; }
.btn-sm     { min-height: 40px; padding: 0 var(--s3); font-size: .875rem; }
.btn-block  { width: 100%; }

/* A decline should be an option, not a negotiation. */
.link-quiet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  padding: 0 var(--s4);
  font: 400 .9375rem/1 var(--sans);
  color: var(--ink-2);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: var(--rule-firm);
  background: none;
  border: 0;
  cursor: pointer;
  transition: text-decoration-color var(--t-tap) var(--ease);
}
.link-quiet:active { text-decoration-color: var(--ink-2); }

/* --- Forms ----------------------------------------------------------------- */

label {
  display: block;
  margin-bottom: var(--s2);
  font: 600 .75rem/1 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-3);
}

input[type=text], input[type=email], input[type=tel], input[type=number],
input[type=password], input[type=date], input[type=search], select, textarea {
  display: block;
  width: 100%;
  min-height: 56px;
  padding: 0 var(--s4);
  background: var(--paper-sheet);
  border: 1px solid var(--rule-firm);
  border-radius: var(--r-sm);
  /* 16px is not a preference. Anything smaller makes iOS Safari zoom on focus
     and the staff member loses the layout mid-conversation. */
  font: 400 1rem/1.2 var(--sans);
  color: var(--ink);
  -webkit-appearance: none;
  appearance: none;
  transition: border-color var(--t-tap) var(--ease), box-shadow var(--t-tap) var(--ease);
}
textarea { min-height: 96px; padding: var(--s3) var(--s4); line-height: 1.5; resize: vertical; }
::placeholder { color: var(--ink-3); }

input:focus, select:focus, textarea:focus {
  outline: 0;
  border-color: var(--ink-btn);
  box-shadow: inset 0 0 0 1px var(--ink-btn);
}
.btn:focus-visible, .tile:focus-visible, .link-quiet:focus-visible {
  outline: 2px solid var(--ink-btn);
  outline-offset: 2px;
}

.field { margin-bottom: var(--s5); }
.field .hint {
  margin-top: var(--s2);
  font: 400 .8125rem/1.5 var(--sans);
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-2);
}

/* Red is banned on a customer surface. Ochre says the same thing without
   telling a couple they have done something wrong. */
.field-error, .note-bad-inline {
  display: block;
  margin-top: var(--s2);
  font: 600 .8125rem/1.4 var(--sans);
  color: var(--ochre);
}
[aria-invalid="true"] { border-color: var(--ochre); box-shadow: inset 0 0 0 1px var(--ochre); }

.checkline {
  display: flex;
  gap: var(--s3);
  align-items: flex-start;
  margin: 0;
  font: 400 .9375rem/1.5 var(--sans);
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-2);
}
.checkline input[type=checkbox] {
  width: 24px; height: 24px; margin-top: 2px; flex: none;
  accent-color: var(--ink-btn);
}

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: var(--s5); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: var(--s5); }
@media (max-width: 720px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* --- Sheets, notes, tables -------------------------------------------------- */

.card {
  background: var(--paper-sheet);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  padding: var(--s5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}
.card + .card { margin-top: var(--s4); }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s4); margin-bottom: var(--s4); }
.card-head h2, .card-head h3 { margin: 0; }

table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
th, td { padding: var(--s3) var(--s2); text-align: left; border-bottom: 1px solid var(--rule); vertical-align: middle; }
th {
  font: 600 .6875rem/1 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
tbody tr:hover { background: var(--paper-cotton); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.badge {
  display: inline-flex; align-items: center; gap: var(--s1);
  padding: 3px var(--s2);
  border-radius: var(--r-sm);
  font: 600 .6875rem/1.4 var(--sans);
  letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--paper-deep);
  color: var(--ink-2);
  white-space: nowrap;
}
.badge-good { background: var(--eucalypt-wash); color: var(--eucalypt); }
.badge-warn { background: var(--ochre-wash);    color: var(--ochre); }
.badge-bad  { background: var(--ochre-wash);    color: var(--bad); }
.badge-info { background: var(--bark-wash);     color: var(--bark-deep); }

.note {
  padding: var(--s3) var(--s4);
  border-left: 2px solid var(--rule-firm);
  background: transparent;
  font-size: .9375rem;
  color: var(--ink-2);
}
.note-good { border-color: var(--eucalypt); }
.note-warn { border-color: var(--ochre); }
.note-bad  { border-color: var(--bad); }
.note-info { border-color: var(--bark); }

.empty {
  padding: var(--s8) var(--s4);
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-3);
}

/* ===========================================================================
   THE IPAD
   Forty seconds, standing up, in a loud room, with a stranger.
   =========================================================================== */

.kiosk {
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
  background: var(--paper-deep);
  overscroll-behavior: none;
  -webkit-user-select: none; user-select: none;
}

/* The spine: where they are, one word at a time. */
.kiosk-bar {
  display: flex; align-items: center; gap: var(--s4);
  min-height: 56px;
  padding: 0 var(--s5);
  background: var(--paper-sheet);
  border-bottom: 1px solid var(--rule);
  position: sticky; top: 0; z-index: 20;
}
.kiosk-bar .brand {
  font: 400 .8125rem/1 var(--serif);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--bark);
}
.kiosk-bar .event {
  margin-top: 4px;
  font: 400 .75rem/1 var(--sans);
  color: var(--ink-3);
}

/* Four words, not a progress bar. */
.steps {
  display: flex; align-items: center; gap: var(--s3);
  padding: 0 var(--s5) var(--s3);
  background: var(--paper-sheet);
  border-bottom: 1px solid var(--rule);
}
.step-word {
  font: 600 .75rem/1 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.step-word + .step-word::before {
  content: ""; display: inline-block;
  width: 12px; height: 1px; margin: 0 var(--s3) 3px;
  background: var(--rule-firm);
}
.step-word.done { color: var(--ink-2); }
.step-word.on   { color: var(--ink); }

/* The sync dot: staff read this from two metres, mid-sentence. */
.dot {
  display: inline-flex; align-items: center; gap: var(--s2);
  padding: var(--s1) var(--s3);
  border-radius: var(--r-sm);
  background: var(--paper-deep);
  font: 600 .6875rem/1 var(--sans);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.dot::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: var(--eucalypt); flex: none; }
.dot.pending::before { background: var(--ochre); }
.dot.offline::before { background: var(--ink-3); }
.dot.error::before   { background: var(--bad); }

.kiosk-body { flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: var(--s5); }

/* Index tabs, not pills. */
.cats { display: flex; gap: var(--s2); align-items: center; height: 56px; overflow-x: auto; scrollbar-width: none; margin-bottom: var(--s4); }
.cats::-webkit-scrollbar { display: none; }
.cat {
  flex: 0 0 auto; height: 44px; padding: 0 var(--s4);
  background: var(--paper-sheet);
  border: 1px solid var(--rule-firm);
  border-radius: var(--r-sm);
  color: var(--ink-2);
  font: 600 .8125rem/1 var(--sans);
  letter-spacing: .10em;
  text-transform: uppercase;
  cursor: pointer; white-space: nowrap;
}
.cat.on { background: var(--ink-btn); border-color: var(--ink-btn); color: var(--paper-cotton); }

/* --- The product grid.
   There is no image slot. A tile is a printed index card whose content is
   type; a photo is a small plate tipped into the corner. So a row where two
   products have photos reads as a catalogue with two illustrations, not as a
   broken gallery. Nothing is missing because nothing was reserved. --- */
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(224px, 1fr));
  gap: var(--s4);
}

.tile {
  position: relative;
  display: flex; flex-direction: column;
  min-height: 148px;
  padding: 20px 18px 18px;
  background: var(--paper-sheet);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
  text-align: left;
  font: inherit; color: inherit;
  cursor: pointer;
  transition: transform var(--t-tap) var(--ease),
              background var(--t-tap) var(--ease),
              box-shadow var(--t-tap) var(--ease);
}
.tile:active { transform: scale(.985); transition-duration: 90ms; }

/* Three papers within 2% luminance, keyed to the product id so it never
   stripes down a column the way an nth-child cycle does. */
.tile[data-paper="1"] { background: var(--paper-sheet-b); }
.tile[data-paper="2"] { background: var(--paper-sheet-c); }

.tile-cat   { font: 600 .75rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.tile-name  { margin-top: 10px; font: 400 1.25rem/1.2 var(--serif); color: var(--ink); }
.tile-blurb {
  margin-top: 6px;
  font: italic 400 .875rem/1.4 var(--serif);
  color: var(--ink-2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tile-foot  { margin-top: auto; padding-top: var(--s3); border-top: 1px solid var(--rule); }
.tile-price { font: 600 .9375rem/1 var(--sans); color: var(--ink); font-variant-numeric: tabular-nums; }

/* Never larger than 56px, never a background. At this size a badly lit,
   wrongly cropped phone snap is a swatch, not a flaw. */
.tile-thumb {
  position: absolute; top: 18px; right: 18px;
  width: 56px; height: 56px;
  object-fit: cover;
  background: var(--paper-deep);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  box-shadow: inset 0 1px 2px rgba(35,32,28,.10);
}
/* Keep the type clear of whatever is pinned in the corner — the swatch when
   it is not selected, the quantity badge when it is. */
.tile[data-photo] .tile-cat,
.tile[data-photo] .tile-name,
.tile[data-photo] .tile-blurb { padding-right: 72px; }

.tile[aria-pressed="true"] .tile-cat,
.tile[aria-pressed="true"] .tile-name,
.tile[aria-pressed="true"] .tile-blurb { padding-right: 56px; }

/* Selected has to survive glare, fingerprints and two metres of distance.
   A 2px ink ring and a solid ink badge, present from the first tap. */
.tile[aria-pressed="true"] {
  background: var(--bark-wash);
  border-color: var(--ink-btn);
  box-shadow: inset 0 0 0 2px var(--ink-btn), inset 0 1px 0 rgba(255,255,255,.9);
}
.tile[aria-pressed="true"] .tile-thumb { display: none; }

.tile-badge {
  position: absolute; top: 14px; right: 14px;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink-btn); color: var(--paper-cotton);
  border-radius: 999px;             /* the only 999px in the design */
  font: 600 1.0625rem/1 var(--sans);
  font-variant-numeric: tabular-nums;
}

/* The footer never disappears — one that comes and goes moves the whole grid
   under the couple's thumb. */
.kiosk-foot {
  position: sticky; bottom: 0; z-index: 20;
  display: flex; align-items: center; gap: var(--s4);
  min-height: 76px;
  padding: var(--s3) var(--s5);
  padding-bottom: calc(var(--s3) + env(safe-area-inset-bottom));
  background: var(--paper-sheet);
  border-top: 1px solid var(--rule);
}
.foot-total { display: flex; flex-direction: column; gap: 2px; }
.foot-total .k { font: 600 .75rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.foot-total .v { font: 600 1.25rem/1 var(--sans); color: var(--ink); font-variant-numeric: tabular-nums; }
.foot-after   { font: italic 400 .875rem/1.4 var(--serif); color: var(--ink-2); }

.saving {
  font: 600 .6875rem/1 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--eucalypt);
}

/* Review list */
.lines { border-top: 1px solid var(--rule); }
.line  { display: flex; align-items: baseline; gap: var(--s4); padding: var(--s3) 0; border-bottom: 1px solid var(--rule); }
.line .qty  { min-width: 3ch; font: 600 .875rem/1 var(--sans); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.line .what { flex: 1 1 auto; font-family: var(--serif); }
.line .amt  { font: 600 .9375rem/1 var(--sans); color: var(--ink); font-variant-numeric: tabular-nums; }

/* Sheet */
.sheet-back {
  position: fixed; inset: 0; z-index: 60;
  display: flex; align-items: flex-end; justify-content: center;
  background: rgba(35,32,28,.36);
  animation: fade 220ms var(--ease);
}
.sheet {
  width: min(560px, 100%);
  max-height: 88vh; overflow-y: auto;
  padding: var(--s6) var(--s5) calc(var(--s6) + env(safe-area-inset-bottom));
  background: var(--paper-sheet);
  border-radius: var(--r) var(--r) 0 0;
  box-shadow: 0 -24px 48px -32px rgba(35,32,28,.5);
  animation: rise var(--t-arrive) var(--ease);
}
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { transform: translateY(100%); } }

.stepper { display: flex; align-items: center; gap: var(--s2); }
.stepper button {
  width: 48px; height: 48px; flex: none;
  display: grid; place-items: center;
  background: var(--paper-sheet);
  border: 1px solid var(--rule-firm);
  border-radius: var(--r-sm);
  font: 600 1.25rem/1 var(--sans);
  color: var(--ink);
  cursor: pointer;
}
.stepper button:active { background: var(--paper-deep); }
.stepper .val { width: 56px; text-align: center; font: 600 1.0625rem/1 var(--sans); font-variant-numeric: tabular-nums; }

/* Finished */
.finished { padding: var(--s10) var(--s5); text-align: center; }
.finished .tick { width: 48px; height: 2px; background: var(--eucalypt); margin: 0 auto var(--s5); }
.finished h2 { font-size: 2rem; }

/* ===========================================================================
   THE COUPLE'S QUOTE PAGE
   One sheet. No images at all — three competitors will send a stock photo
   header, and the page with none will read as the most expensive of the four.
   =========================================================================== */

.pub {
  max-width: 34rem;
  margin: var(--s9) auto;
  padding: var(--s7) var(--s5) var(--s6);
  background: var(--paper-sheet);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.9),
    0 1px 1px rgba(35,32,28,.04),
    0 24px 48px -32px rgba(35,32,28,.40);
  animation: settle var(--t-arrive) var(--ease) both;
}
@keyframes settle { from { opacity: 0; transform: translateY(8px); } }

/* A phone should never render a small card inside a frame. */
@media (max-width: 560px) {
  .pub { margin: 0; border: 0; border-radius: 0; box-shadow: none; min-height: 100vh; }
}

.letterhead {
  font: 400 .8125rem/1 var(--serif);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--bark);
  text-align: center;
}

/* The largest thing on the page is the couple, not the price and not a logo. */
.couple {
  margin: var(--s6) 0 0;
  font: 400 clamp(2.5rem, 10vw, 3.5rem)/1.08 var(--serif);
  letter-spacing: -.012em;
  color: var(--ink);
  text-align: center;
}
.their-date {
  margin-top: var(--s3);
  font: 600 .6875rem/1 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-align: center;
}

/* Names in a book serif with the date in tracked small caps underneath is
   the construction of a wedding invitation. */
.price-well {
  margin: var(--s9) calc(var(--s5) * -1) 0;
  padding: var(--s7) var(--s5);
  text-align: center;
}
.price-well .figure {
  margin-top: var(--s4);
  font: 400 clamp(2.5rem, 9.5vw, 3rem)/.95 var(--serif);
  letter-spacing: -.015em;
  color: var(--ink);
  font-variant-numeric: tabular-nums lining-nums;
}
.price-well .after {
  margin-top: var(--s4);
  font: italic 400 .9375rem/1.5 var(--serif);
  color: var(--ink-2);
}
.price-well .eyebrow { margin-top: var(--s5); display: block; }

.plain-english {
  margin-top: var(--s5);
  font: italic 400 .9375rem/1.6 var(--serif);
  color: var(--ink-2);
  text-align: center;
}
.hold {
  margin-top: var(--s3);
  font: 400 .8125rem/1.5 var(--sans);
  color: var(--ink-2);
  text-align: center;
}
.hold b { font-weight: 400; color: var(--ochre); }

/* No box, no tint, no icon. A sentence from a person being straight with you. */
.honest {
  max-width: 26rem;
  margin: var(--s6) auto 0;
  font: italic 400 1.0625rem/1.6 var(--serif);
  color: var(--ink-2);
  text-align: center;
}

.decision { margin-top: var(--s7); text-align: center; }
.decision .link-quiet { margin-top: var(--s5); }

.colophon {
  margin-top: var(--s8);
  text-align: center;
}
.colophon .line {
  display: block; border: 0; padding: 0;
  margin-top: var(--s5);
  font: 400 .75rem/1.5 var(--sans);
  letter-spacing: .10em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.follow { margin-top: var(--s7); text-align: center; }
.follow p { font: italic 400 1.0625rem/1.6 var(--serif); color: var(--ink-2); margin-bottom: var(--s3); }
.follow a {
  display: inline-flex; align-items: center; min-height: var(--tap);
  font: 600 .75rem/1 var(--sans);
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--bark);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px;
}

.pub-footer {
  max-width: 34rem;
  margin: var(--s7) auto var(--s9);
  font: 400 .6875rem/1.6 var(--sans);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-align: center;
}

/* Expired is not broken. No grey-out, no reduced opacity. */
.expired .price-well .figure { color: var(--ink-2); }

/* ===========================================================================
   THE BACKEND
   =========================================================================== */

.admin { display: flex; min-height: 100vh; }

.side {
  width: 232px; flex: none;
  background: var(--ink);
  color: var(--paper-cotton);
  padding: var(--s5) 0;
  display: flex; flex-direction: column;
}
.side .logo {
  padding: 0 var(--s5) var(--s5);
  font: 400 .8125rem/1.4 var(--serif);
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--paper-cotton);
}
.side a {
  display: flex; align-items: center; gap: var(--s2);
  padding: var(--s3) var(--s5);
  color: rgba(247,243,236,.72);
  text-decoration: none;
  font: 400 .9375rem/1 var(--sans);
  border-left: 2px solid transparent;
}
.side a:hover { color: var(--paper-cotton); background: rgba(247,243,236,.05); }
.side a.on { color: var(--paper-cotton); background: rgba(247,243,236,.08); border-left-color: var(--bark); }
.side .sep { margin: var(--s3) var(--s5); border-top: 1px solid rgba(247,243,236,.14); }
.side .foot { margin-top: auto; padding: var(--s4) var(--s5) 0; font-size: .75rem; color: rgba(247,243,236,.45); }

.main { flex: 1 1 auto; min-width: 0; }
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
  padding: var(--s4) var(--s6);
  background: var(--paper-sheet);
  border-bottom: 1px solid var(--rule);
  position: sticky; top: 0; z-index: 10;
}
.topbar h1 { font-size: 1.125rem; margin: 0; }
.content { padding: var(--s6); max-width: 1240px; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(168px,1fr)); gap: var(--s4); }
.stat {
  padding: var(--s4);
  background: var(--paper-sheet);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}
.stat .k { font: 600 .6875rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.stat .v { margin-top: var(--s2); font: 400 2rem/1.1 var(--serif); color: var(--ink); font-variant-numeric: tabular-nums; }
.stat .d { margin-top: var(--s1); font-size: .8125rem; color: var(--ink-2); }
.stat.good .v { color: var(--eucalypt); }
.stat.warn .v { color: var(--ochre); }

.bars { display: flex; align-items: flex-end; gap: var(--s2); height: 130px; padding-top: var(--s2); }
.bar  { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: var(--s1); height: 100%; }
.bar .fill { width: 100%; background: var(--bark); border-radius: var(--r-sm) var(--r-sm) 0 0; min-height: 2px; }
.bar .cap  { font-size: .6875rem; color: var(--ink-3); }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 var(--s4) var(--s5); border-left: 1px solid var(--rule); }
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -4px; top: 7px;
  width: 7px; height: 7px; border-radius: 999px;
  background: var(--paper-sheet); border: 1px solid var(--rule-firm);
}
.timeline li.hit::before { background: var(--bark); border-color: var(--bark); }

.tabs { display: flex; gap: var(--s4); border-bottom: 1px solid var(--rule); margin-bottom: var(--s5); overflow-x: auto; }
.tabs a {
  padding: var(--s3) 0;
  font: 600 .75rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-3); text-decoration: none;
  border-bottom: 2px solid transparent; white-space: nowrap;
}
.tabs a.on { color: var(--ink); border-bottom-color: var(--bark); }

.toolbar { display: flex; gap: var(--s2); flex-wrap: wrap; align-items: center; margin-bottom: var(--s4); }
.toolbar input[type=search], .toolbar select { min-height: 44px; width: auto; min-width: 180px; }
.toolbar label { margin: 0; }

.pager { display: flex; gap: var(--s1); justify-content: center; margin-top: var(--s5); }
.pager a, .pager span { padding: var(--s2) var(--s3); border-radius: var(--r-sm); text-decoration: none; font-size: .875rem; }
.pager a { border: 1px solid var(--rule-firm); color: var(--ink-2); }
.pager .now { background: var(--ink-btn); color: var(--paper-cotton); font-weight: 600; }

.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: var(--s5); }
.login { width: min(400px, 100%); }

@media (max-width: 900px) {
  .admin { flex-direction: column; }
  .side { width: 100%; flex-direction: row; overflow-x: auto; padding: var(--s2); align-items: center; }
  .side .logo, .side .sep, .side .foot { display: none; }
  .side a { border-left: 0; border-bottom: 2px solid transparent; white-space: nowrap; }
  .side a.on { border-left: 0; border-bottom-color: var(--bark); }
  .content, .topbar { padding: var(--s4); }
}

@media print {
  .side, .topbar, .decision, .kiosk-bar, .kiosk-foot, .follow, .no-print { display: none !important; }
  body { background: #fff; }
  .card, .pub { border: 0; box-shadow: none; padding: 0; }
  .content { padding: 0; }
}

/* Nothing moves for anyone who has asked for that. */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: .01ms !important; }
}
