/* Chore chart, the sheet. Portrait Letter by default, A4 under html.a4
   (the runtime swaps the @page rule). One person's chores down the side,
   the seven days across, a big box for every day so a small hand can tick
   or draw a star in it, and a reward line. 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.55in 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.22in;
  -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; }

.head { flex: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 0.3in; border-bottom: 1.5pt solid var(--t-accent); padding-bottom: 0.1in; min-height: 0.66in; }
.titles { min-width: 0; flex: 1; }
.titles h1 { margin: 0; font: 500 24pt/1.2 "Fraunces", Georgia, serif; letter-spacing: -0.005em; white-space: nowrap; overflow: hidden; height: 1.2em; }
.titles .sub { margin: 3pt 0 0; color: var(--t-muted); font-size: 10.5pt; white-space: nowrap; overflow: hidden; height: 1.4em; }
.when { flex: none; text-align: right; }
.when-label { display: block; font-size: 8pt; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--t-muted); margin-bottom: 3pt; }
.when-dated { display: block; font: 500 11.5pt/1.2 "Fraunces", Georgia, serif; color: var(--t-accent); white-space: nowrap; overflow: hidden; max-width: 3in; }
.when-blank { display: block; width: 2.2in; margin-left: auto; height: 0.2in; border-bottom: 0.6pt solid var(--t-ink); }
.label { display: block; font: 500 8pt/1 "Inter Tight", system-ui, sans-serif; letter-spacing: 0.12em; text-transform: uppercase; color: var(--t-muted); padding-bottom: 4pt; border-bottom: 1pt solid var(--t-accent); }

.grid { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.crow { display: flex; align-items: stretch; border-bottom: 0.5pt solid var(--line); }
.crow.th { flex: none; height: 0.3in; border-bottom: 1pt solid var(--t-accent); }
.rows { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.rows .crow { flex: 1 1 0; min-height: 0.42in; max-height: 1in; }
.chore { flex: 0 0 2.6in; min-width: 0; display: flex; align-items: center; font-size: 11pt; white-space: nowrap; overflow: hidden; padding-right: 0.15in; }
.days { flex: 1; display: flex; }
.days i, .days b { flex: 1 1 0; min-width: 0; border-left: 0.5pt solid var(--line); }
.days b { display: flex; align-items: flex-end; justify-content: center; padding-bottom: 4pt; font: 500 8pt/1 "Inter Tight", system-ui, sans-serif; letter-spacing: 0.1em; text-transform: uppercase; color: var(--t-muted); }
.days i { display: block; }
.reward { flex: none; }
.rline { height: 0.45in; border-bottom: 0.6pt solid var(--t-ink); margin-top: 0.05in; }

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