/* Paper, the sheet: lined, graph or dot grid at three spacings. Portrait
   Letter by default, A4 under html.a4 (the runtime swaps the @page rule).
   The pattern is an inline SVG, so it prints as lines and dots rather than
   as a picture, and it takes the theme's muted color. 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; padding: 0.5in 0.5in 0.6in; box-sizing: border-box; position: relative; overflow: hidden;
  background: var(--t-paper); color: var(--t-ink);
  font: 400 10pt/1.4 "Inter Tight", system-ui, sans-serif;
  display: flex; flex-direction: column; gap: 0.12in;
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
html.a4 .sheet { width: 210mm; height: 297mm; }

.head { flex: none; display: flex; gap: 0.4in; padding-bottom: 0.08in; border-bottom: 1pt solid var(--t-accent); }
.head .hname { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 6pt; }
.head .hdate { flex: 0 0 2.2in; display: flex; align-items: baseline; gap: 6pt; }
.head .lbl { flex: none; font: 500 7.5pt/1 "Inter Tight", system-ui, sans-serif; letter-spacing: 0.12em; text-transform: uppercase; color: var(--t-muted); }
.head .v { flex: 1; min-width: 0; font: 500 11pt/1.3 "Fraunces", Georgia, serif; white-space: nowrap; overflow: hidden; height: 1.3em; border-bottom: 0.5pt solid var(--t-muted); }

.field { flex: 1; min-height: 0; position: relative; }
.pat { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.margin { position: absolute; top: 0; bottom: 0; left: 0.75in; border-left: 0.6pt solid var(--t-accent); opacity: 0.8; }

.foot { position: absolute; left: 0.5in; right: 0.5in; bottom: 0.42in; font-size: 7.5pt; 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; }
