/* Cornell notes, the sheet: a header with the title, date, name, class and
   topic lines; a cue column and a notes column ruled across as one; a summary
   box at the foot. Portrait Letter by default, A4 under html.a4 (the runtime
   swaps the @page rule). The ruling is an inline SVG pattern, 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.1in;
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
html.a4 .sheet { width: 210mm; height: 297mm; }

/* The header: three rows of labelled lines, the accent rule under them. */
.head { flex: none; display: flex; flex-direction: column; gap: 0.07in; padding-bottom: 0.09in; border-bottom: 1pt solid var(--t-accent); }
.row { display: flex; gap: 0.4in; align-items: baseline; }
.title { flex: 1; min-width: 0; margin: 0; font: 500 14pt/1.25 "Fraunces", Georgia, serif; letter-spacing: 0.005em; white-space: nowrap; overflow: hidden; }
.f { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 6pt; }
.f.date { flex: 0 0 2.1in; }
.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); }
.f .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); }

/* The column labels sit above the ruled area, the cue label as wide as its column. */
.labels { flex: none; display: flex; align-items: baseline; margin-bottom: -0.04in; }
.cl { display: block; min-width: 0; font: 500 7.5pt/1 "Inter Tight", system-ui, sans-serif; letter-spacing: 0.12em; text-transform: uppercase; color: var(--t-muted); white-space: nowrap; overflow: hidden; }
.labels .cl { flex: 1; }
.cues { flex: 0 0 2.25in; }
.labels .cl.cues { flex: 0 0 2.25in; padding-right: 0.12in; box-sizing: border-box; }
.sheet[data-v-cue_width="Narrow"] .cues { flex-basis: 1.75in; }
.sheet[data-v-cue_width="Wide"] .cues { flex-basis: 2.75in; }

/* The body: one pattern across both columns, the divider drawn over it. */
.body { flex: 1; min-height: 0; position: relative; display: flex; border-top: 0.6pt solid var(--t-muted); }
.pat { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.divider { position: relative; height: 100%; border-right: 0.6pt solid var(--t-accent); opacity: 0.85; }

/* The summary: an accent rule, its label, then the same ruling in a box. */
.summary { flex: none; display: flex; flex-direction: column; gap: 0.05in; padding-top: 0.07in; border-top: 0.6pt solid var(--t-accent); }
.summary .cl { flex: none; }
.sbox { position: relative; height: 1.7in; border-top: 0.6pt solid var(--t-muted); }

/* Which ruling shows: lined medium (college rule) until the runtime says otherwise. */
.rul { display: none; }
.rul.l-m { display: block; }
.sheet[data-v-ruling="Lined"][data-v-spacing="Narrow"] .rul.l-m, .sheet[data-v-ruling="Lined"][data-v-spacing="Wide"] .rul.l-m, .sheet[data-v-ruling="Dot grid"] .rul.l-m, .sheet[data-v-ruling="Blank"] .rul.l-m { display: none; }
.sheet[data-v-ruling="Lined"][data-v-spacing="Narrow"] .rul.l-n { display: block; }
.sheet[data-v-ruling="Lined"][data-v-spacing="Wide"] .rul.l-w { display: block; }
.sheet[data-v-ruling="Dot grid"][data-v-spacing="Narrow"] .rul.d-n { display: block; }
.sheet[data-v-ruling="Dot grid"][data-v-spacing="Medium"] .rul.d-m { display: block; }
.sheet[data-v-ruling="Dot grid"][data-v-spacing="Wide"] .rul.d-w { display: block; }

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