/* TIDE HOUSE — coast and French blue (STATIONERY_BRIEF.md §2.4, §3). Owner: STAT-ART-A.
   Salt white, one French-blue ink, Libre Caslon only: Display for the names (upright, mixed case, display x1.1), Text
   Italic for sentence lines, Text capitals at 80 % tracked +100 for labels (no small-caps table in the face). Centred
   inside a hand-varied wave border 7 mm in from the trim; one pen-line shell per piece. */
:root { --f-dp: 'Libre Caslon Display', serif; --f-tx: 'Libre Caslon Text', serif; }
.face { color: var(--ink); font-family: var(--f-tx); font-weight: 400; font-variant-numeric: oldstyle-nums; font-variant-ligatures: common-ligatures no-discretionary-ligatures no-historical-ligatures; font-feature-settings: 'liga' 0, 'dlig' 0, 'hlig' 0, 'salt' 0; } /* the face puts a long-s 'st' and 'sp' in liga: off */
.wave-svg, .shell { overflow: visible; }
.wave-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.wave { fill: none; stroke: var(--ink); stroke-width: 0.2117; stroke-linejoin: round; } /* 0.6 pt */
.shell g { fill: var(--ink); }
.shell { display: block; margin: 0 auto; }
.safe { display: flex; flex-direction: column; align-items: center; justify-content: safe center; text-align: center; }
.safe > * { margin: 0; max-width: 100%; }
.nm { font-family: var(--f-dp); font-weight: 400; line-height: 1.12; }
.it { font-style: italic; }
.lb { text-transform: uppercase; letter-spacing: 0.1em; font-style: normal; }
.v3 { display: block; }
.amp { font-family: var(--f-tx); font-style: italic; display: block; }

/* 1 invitation 148 x 210 (Dock A5; artwork x 148/127), margin 16.3 — display 28 x 1.1 = 30.8 pt; labels 8.7 x 0.8 */
.p-invitation .safe { inset: 16.3mm; }
.p-invitation .shell { width: 18.6mm; margin-bottom: 5.8mm; }
.p-invitation .host { font-size: 12.2pt; line-height: 18.1pt; font-style: italic; margin-bottom: 4.7mm; }
.p-invitation .nm { font-size: 30.8pt; line-height: 36.1pt; }
.p-invitation .amp { font-size: 15.1pt; line-height: 21pt; margin: 0.9mm 0; }
.p-invitation .request { font-size: 12.2pt; line-height: 18.1pt; margin-top: 4.7mm; max-width: 81.6mm; }
.p-invitation .when { font-size: 12.2pt; line-height: 18.1pt; margin-top: 4.1mm; }
.p-invitation .where { font-size: 12.2pt; line-height: 18.1pt; margin-top: 4.1mm; }
.p-invitation .follows { font-size: 12.2pt; line-height: 18.1pt; margin-top: 4.1mm; }
.p-invitation .dress { font-size: 9.3pt; line-height: 12.8pt; margin-top: 4.7mm; }

/* 2 save the date 105 x 148, margin 11 */
.p-save-the-date .safe { inset: 11mm; }
.p-save-the-date .lb { font-size:7.5pt; margin-bottom: 7mm; }
.p-save-the-date .nm { font-size: 20.9pt; line-height: 25pt; }
.p-save-the-date .amp { font-size: 11pt; line-height: 15pt; }
.p-save-the-date .when { font-size: 10pt; line-height: 14.5pt; margin-top: 7mm; }
.p-save-the-date .fine { font-size: 7.5pt; line-height: 10pt; margin-top: 6mm; font-style: italic; }

/* 3 reply card 148 x 105 landscape, margin 11 — cockle left, words centre, code right */
.p-rsvp .safe { inset: 11mm 50mm 11mm 30mm; }
.p-rsvp .shell { position: absolute; left: 12mm; top: 50%; transform: translateY(-50%); width: 15mm; }
.p-rsvp .head { font-family: var(--f-dp); font-size: 14.3pt; line-height: 18pt; }
.p-rsvp .by { font-size: 9.5pt; line-height: 14pt; font-style: italic; }
.p-rsvp .lb { font-size:7.5pt; line-height: 9.5pt; margin-top: 4mm; }
.p-rsvp .qrcol { position: absolute; right: 11mm; top: 11mm; bottom: 11mm; width: 37mm; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.p-rsvp .qrbox { width: 24mm; height: 24mm; padding: 3mm; }
.p-rsvp .url { font-size:7.5pt; line-height: 9.5pt; font-style: italic; margin-top: 1mm; white-space: nowrap; }

/* 4 order of the day 148 x 210, margin 16 */
.p-order-of-the-day .safe { inset: 16mm; }
.p-order-of-the-day .head { font-family: var(--f-dp); font-size: 22pt; line-height: 27pt; }
.p-order-of-the-day .sub { font-size:7.5pt; margin: 2mm 0 12mm; }
.p-order-of-the-day .rows { display: grid; grid-template-columns: 22mm auto; column-gap: 5mm; text-align: left; align-items: baseline; }
.p-order-of-the-day .t { font-size: 8.5pt; letter-spacing: 0.1em; text-align: right; line-height: 27pt; font-variant-numeric: lining-nums; }
.p-order-of-the-day .e { font-style: italic; font-size: 13pt; line-height: 27pt; }

/* 5 menu 99 x 210, margin 12 */
.p-menu .safe { inset: 12mm; }
.p-menu .shell { width: 16mm; margin-bottom: 4mm; }
.p-menu .head { font-family: var(--f-dp); font-size: 16.5pt; line-height: 20pt; margin-bottom: 7mm; }
.p-menu .course { margin-bottom: 6.5mm; }
.p-menu .course .lb { display: block; font-size:7.5pt; margin-bottom: 1.4mm; }
.p-menu .course .dish { display: block; font-style: italic; font-size: 10.5pt; line-height: 14.5pt; max-width: 64mm; margin: 0 auto; }
.p-menu .course .mk { font-style: normal; font-size:7.5pt; margin-left: 1.2mm; }
.p-menu .key { font-size:7.5pt; line-height: 9.5pt; font-style: italic; }
.p-menu .foot { font-size:7.5pt; margin-top: 6mm; }

/* 6 place card 110 x 170 flat, scored at 85 (Dock folded 110 x 85; x 110/90) — the wave frames the front panel; cockle beside the name */
.p-place-card .front { position: absolute; left: 8.6mm; right: 8.6mm; top: calc(85mm + 8.6mm); bottom: 8.6mm; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.p-place-card .shell { width: 11mm; margin-bottom: 2.4mm; }
.p-place-card .nm-guest { font-family: var(--f-dp); font-size: 20.2pt; line-height: 23.2pt; }
.p-place-card .lb { font-size: 7.9pt; line-height: 10.4pt; margin-top: 2mm; }

/* 7 table name 148 x 210 (Dock A5; artwork x 148/127), margin 16.3 */
.p-table-name .safe { inset: 16.3mm; }
.p-table-name .lb { font-size: 9.3pt; }
.p-table-name .tn { font-family: var(--f-dp); font-size: 51.3pt; line-height: 55.9pt; margin: 3.5mm 0 5.8mm; }
.p-table-name .fine { font-size: 8.2pt; line-height: 11.1pt; font-style: italic; }

/* 8 table plan 420 x 594, margin 30 */
.p-table-plan .safe { inset: 30mm; justify-content: flex-start; }
.p-table-plan .head { font-family: var(--f-dp); font-size: 59.4pt; line-height: 66pt; padding-top: 6mm; }
.p-table-plan .date { font-style: italic; font-size: 16pt; line-height: 22pt; margin-top: 3mm; }
.p-table-plan .grid { flex: 1 1 auto; align-content: space-between; margin: 14mm 0 10mm; display: grid; /* STATX1 plan: grows and spreads (PLAN §4.2) */ grid-template-columns: repeat(5, 1fr); column-gap: 8mm; row-gap: 22pt; width: 100%; align-items: start; }
.p-table-plan .tb .lb { display: block; font-size: 13pt; line-height: 34pt; }
.p-table-plan .tb .g { display: block; font-style: italic; font-size: 16pt; line-height: 34pt; white-space: nowrap; }
.p-table-plan .foot { font-size: 16pt; line-height: 20pt; padding-bottom: 4mm; }

/* 9 thank-you 210 x 148 flat, folded at 105 — cover with the whelk */
.p-thank-you .panel { position: absolute; top: 0; bottom: 0; width: 105mm; }
.p-thank-you .panel.l { left: 0; } .p-thank-you .panel.r { left: 105mm; }
.p-thank-you .panel .safe { inset: 11mm; }
.p-thank-you .shell { width: 14mm; margin-bottom: 6mm; }
.p-thank-you .ty { font-family: var(--f-dp); font-size: 22pt; line-height: 27pt; }
.p-thank-you .back .lb { font-size:7.5pt; line-height: 11pt; }
.p-thank-you .msg { font-style: italic; font-size: 10pt; line-height: 15pt; max-width: 66mm; }
.p-thank-you .sign { font-style: italic; font-size: 10pt; line-height: 15pt; margin-top: 5mm; }

/* 10 envelope: pointed flap, address in Caslon italic, awning-stripe liner */
.p-envelope .addr { position: absolute; left: 36mm; right: 12mm; top: 96mm; font-style: italic; font-size: 11pt; line-height: 15pt; }
.p-envelope .addr span { display: block; }
.p-envelope .liner-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.p-envelope .liner-svg path { fill: var(--liner); }
.p-envelope .flap .safe { inset: 12mm 20mm auto; height: 12mm; }
.p-envelope .ret { font-size: 7.5pt; line-height: 10pt; font-style: italic; }

/* long names break between words, never at a hyphen when a balanced break exists */
.nm, .nm-guest, .tn { text-wrap: balance; hyphens: manual; }

/* STATX1 optical (Car A, PLAN §4.1): the front panel and the tent face sit on the optical centre (45 %), as lib/piece.css does for centred columns */
.p-thank-you .panel.r .safe::after, .p-place-card .front::after { content: ""; flex: 0 1 10%; }

/* STATX1 foot line (Car B, PLAN §4.1 + COLLFABLE1 13:27): the dress line sits on the foot of the safe box; the words above share the
   free space evenly, so they stay centred above it. Absent dress line: the words simply centre. */
.p-invitation .safe > :first-child { margin-top: auto; }
.p-invitation .safe > .dress { margin-top: auto; }
