/* Menu, the sheet. Portrait Letter by default, A4 under html.a4 (the
   runtime swaps the @page rule). One page, a title and a subtitle, then the
   courses: a course name in small caps where a course begins, the dish set
   in the serif, a note at the right. 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; padding: 0.5in; 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: flex;
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
html.a4 .sheet { width: 210mm; height: 297mm; }

.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.7in 0.8in 0.6in; display: flex; flex-direction: column; text-align: center; }
.head { flex: none; }
.head h1 { margin: 0; font: 500 24pt/1.2 "Newsreader", Georgia, serif; letter-spacing: -0.01em; color: var(--t-ink); white-space: nowrap; overflow: hidden; height: 1.2em; }
.head .sub { margin: 4pt 0 0; font: italic 500 12pt/1.4 "Newsreader", Georgia, serif; color: var(--t-muted); white-space: nowrap; overflow: hidden; height: 1.4em; }
.rule { width: 1.4in; border-bottom: 0.75pt solid var(--t-accent); margin: 0.28in auto 0.1in; }

/* The rows share the height between the rule and the footline; twelve courses with names still fit. */
.rows { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: center; gap: 0; overflow: hidden; }
.mrow { display: flex; flex-direction: column; align-items: center; padding: 0.05in 0; }
.course { font: 500 7.5pt/1.3 "Inter Tight", system-ui, sans-serif; letter-spacing: 0.22em; text-transform: uppercase; color: var(--t-accent); white-space: nowrap; overflow: hidden; height: 1.3em; margin-top: 0.06in; }
.course:empty { display: none; }
.line { display: flex; align-items: baseline; justify-content: center; gap: 6pt; max-width: 5.6in; }
.dish { font: 500 12.5pt/1.35 "Newsreader", Georgia, serif; color: var(--t-ink); white-space: nowrap; overflow: hidden; min-width: 0; height: 1.35em; }
.note { flex: none; font: italic 500 9pt/1.3 "Newsreader", Georgia, serif; color: var(--t-muted); }

.footline { flex: none; margin: 0.2in 0 0; font: italic 500 9.5pt/1.4 "Newsreader", Georgia, serif; color: var(--t-muted); white-space: nowrap; overflow: hidden; height: 1.4em; }

.foot { position: absolute; left: 0.5in; right: 0.5in; bottom: 0.22in; 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; }
