/* Recipe card, the sheet. Portrait Letter by default, A4 under html.a4
   (the runtime swaps the @page rule). Two 4 by 6 cards stacked, the same
   recipe twice with one cut, or the recipe on the full page, as a variant.
   Colors only through --t-*; static font instances only. */

@font-face { font-family: "Fraunces"; src: url("/assets/fonts/fraunces-500.woff2") format("woff2"); font-weight: 500; font-style: normal; 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: #ffffff; --t-ink: #1a1a1a; --t-accent: #8f2d2d; --t-muted: #6b7078; }
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 9pt/1.4 "Inter Tight", system-ui, sans-serif;
  display: flex; flex-direction: column;
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
  --line: color-mix(in srgb, var(--t-muted) 45%, transparent);
}
html.a4 .sheet { width: 210mm; height: 297mm; }

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

/* Two-up: each half holds one 6 by 4 card, centered, 0.25in off the cut. */
.half { flex: 1 1 0; min-height: 0; display: flex; justify-content: center; align-items: center; padding: 0.5in 0.5in 0.25in; box-sizing: border-box; }
.half + .half { padding: 0.25in 0.5in 0.5in; }
.half .card { width: 6in; height: 4in; }
.card { border: 0.75pt solid var(--t-accent); box-sizing: border-box; padding: 0.18in 0.22in; display: flex; flex-direction: column; min-width: 0; }
.chead { flex: none; border-bottom: 0.75pt solid var(--t-accent); padding-bottom: 4pt; margin-bottom: 6pt; }
.chead h1 { margin: 0; font: 500 15pt/1.2 "Fraunces", Georgia, serif; letter-spacing: -0.005em; white-space: nowrap; overflow: hidden; height: 1.2em; }
.chead .from { margin: 1pt 0 0; font-size: 8pt; color: var(--t-muted); white-space: nowrap; overflow: hidden; height: 1.4em; }
.chead .meta { margin: 1pt 0 0; font: 500 7pt/1.4 "Inter Tight", system-ui, sans-serif; letter-spacing: 0.12em; text-transform: uppercase; color: var(--t-accent); white-space: nowrap; overflow: hidden; }
.chead .dot { margin: 0 5pt; }
.body { flex: 1; min-height: 0; display: flex; gap: 0.2in; }
.lbl { display: block; font: 500 6.5pt/1 "Inter Tight", system-ui, sans-serif; letter-spacing: 0.14em; text-transform: uppercase; color: var(--t-muted); margin-bottom: 3pt; }
.ings { flex: none; width: 2.05in; min-width: 0; }
.ings ul { margin: 0; padding: 0; list-style: none; }
.ings li { font-size: 8pt; line-height: 1.45; white-space: nowrap; overflow: hidden; height: 1.45em; border-bottom: 0.5pt solid var(--line); }
.method { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.method p { margin: 0; font-size: 8pt; line-height: 1.45; flex: 1; min-height: 0; overflow: hidden; max-height: 3.1in; }

/* Full page: one card the size of the page, larger type. */
.full { flex: 1; display: flex; padding: 0.5in; box-sizing: border-box; }
.full .card { flex: 1; padding: 0.4in 0.45in; }
.full .chead h1 { font-size: 26pt; }
.full .chead .from { font-size: 10.5pt; }
.full .chead .meta { font-size: 8.5pt; }
.full .body { gap: 0.4in; margin-top: 0.1in; }
.full .lbl { font-size: 8pt; margin-bottom: 6pt; }
.full .ings { width: 2.6in; }
.full .ings li { font-size: 10.5pt; line-height: 1.7; height: 1.7em; }
.full .method p { font-size: 11pt; line-height: 1.6; max-height: 8in; }

.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; }
