/* RSVP card, the sheet. Portrait Letter by default, A4 under html.a4 (the
   runtime swaps the @page rule). Four quarter-sheet cards, the same card
   four times, two cuts marked in the margins. Set to match the wedding
   invitation. Colors only through --t-*; static font instances only. */

@font-face { font-family: "Newsreader"; src: url("/assets/fonts/newsreader-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: block; }
@font-face { font-family: "Newsreader"; src: url("/assets/fonts/newsreader-500-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: block; }
@font-face { font-family: "Inter Tight"; src: url("/assets/fonts/intertight-400.woff2") format("woff2"); font-weight: 400; font-display: block; }
@font-face { font-family: "Inter Tight"; src: url("/assets/fonts/intertight-500.woff2") format("woff2"); font-weight: 500; font-display: block; }

@page { size: Letter; margin: 0; }

:root { --t-paper: #fffdf8; --t-ink: #1f1b14; --t-accent: #9a7b2f; --t-muted: #8c8270; }
html, body { margin: 0; padding: 0; background: #fff; }
[hidden] { display: none !important; }

.sheet {
  width: 8.5in; height: 11in; box-sizing: border-box; position: relative; overflow: hidden;
  background: var(--t-paper); color: var(--t-ink);
  font: 400 10pt/1.5 "Inter Tight", system-ui, sans-serif;
  display: grid; grid-template-columns: 4.25in 4.25in; grid-template-rows: 5.5in 5.5in;
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
  --line: color-mix(in srgb, var(--t-muted) 50%, transparent);
}
html.a4 .sheet { width: 210mm; height: 297mm; grid-template-columns: 105mm 105mm; grid-template-rows: 148.5mm 148.5mm; }

.cut { position: absolute; border-color: var(--t-muted); }
.cut.h { left: 0.5in; right: 0.5in; top: 50%; border-top: 0.5pt dashed var(--t-muted); }
.cut.v { top: 0.5in; bottom: 0.5in; left: 50%; border-left: 0.5pt dashed var(--t-muted); }
.mark { position: absolute; border-color: var(--t-ink); }
.mark.l, .mark.r { top: 50%; width: 0.3in; border-top: 0.5pt solid var(--t-ink); }
.mark.l { left: 0.12in; } .mark.r { right: 0.12in; }
.mark.t, .mark.b { left: 50%; height: 0.3in; border-left: 0.5pt solid var(--t-ink); }
.mark.t { top: 0.12in; } .mark.b { bottom: 0.12in; }

/* Each card keeps 0.5in from the sheet's edges and 0.25in from the cuts. */
.card { display: flex; padding: 0.5in 0.25in 0.25in 0.5in; box-sizing: border-box; min-width: 0; min-height: 0; }
.card:nth-of-type(2) { padding: 0.5in 0.5in 0.25in 0.25in; }
.card:nth-of-type(3) { padding: 0.25in 0.25in 0.5in 0.5in; }
.card:nth-of-type(4) { padding: 0.25in 0.5in 0.5in 0.25in; }
.inner { flex: 1; min-width: 0; border: 0.75pt solid var(--t-accent); outline: 0.5pt solid var(--t-accent); outline-offset: 3pt; padding: 0.3in 0.3in 0.25in; display: flex; flex-direction: column; text-align: center; }

.names { margin: 0; font: 500 15pt/1.2 "Newsreader", Georgia, serif; color: var(--t-ink); white-space: nowrap; overflow: hidden; height: 1.2em; }
.by { margin: 4pt 0 0; font: italic 500 9.5pt/1.4 "Newsreader", Georgia, serif; color: var(--t-muted); }
.by b { font-weight: 500; font-style: normal; color: var(--t-accent); }
.rule { width: 0.9in; border-bottom: 0.75pt solid var(--t-accent); margin: 0.12in auto; }
.mline { display: flex; align-items: flex-end; gap: 4pt; margin: 0.06in 0 0.12in; }
.mline .m { font: 500 11pt/1 "Newsreader", Georgia, serif; }
.mline .ln { flex: 1; border-bottom: 0.5pt solid var(--t-ink); height: 0.2in; }
.choice { display: flex; align-items: center; gap: 8pt; padding: 3pt 0; text-align: left; }
.choice i, .opts i { display: block; flex: none; width: 0.16in; height: 0.16in; box-sizing: border-box; border: 0.6pt solid var(--t-ink); }
.choice span { flex: 1; min-width: 0; font: 400 9.5pt/1.4 "Inter Tight", system-ui, sans-serif; white-space: nowrap; overflow: hidden; height: 1.4em; }
.count { display: flex; justify-content: space-between; align-items: center; margin-top: 0.08in; font-size: 9.5pt; }
.count .box { width: 0.5in; height: 0.24in; border: 0.6pt solid var(--t-ink); box-sizing: border-box; }
.meals { margin-top: 0.14in; text-align: left; }
.meals .lbl { display: block; font: 500 7pt/1 "Inter Tight", system-ui, sans-serif; letter-spacing: 0.14em; text-transform: uppercase; color: var(--t-muted); margin-bottom: 4pt; }
.opts { display: flex; flex-direction: column; gap: 2pt; }
.opts span { display: flex; align-items: center; gap: 6pt; }
.opts b { font-weight: 400; font-size: 9.5pt; white-space: nowrap; overflow: hidden; height: 1.4em; min-width: 0; }

.foot { position: absolute; left: 0.5in; right: 0.5in; bottom: 0.2in; font-size: 7pt; color: var(--t-muted); display: flex; justify-content: space-between; align-items: flex-end; }
.ruler { width: 1in; border-top: 0.5pt solid var(--t-muted); font-size: 6.5pt; color: var(--t-muted); text-align: center; line-height: 1.6; }
