/* Daily planner, the sheet. Portrait Letter by default, A4 under html.a4
   (the runtime swaps the @page rule). The schedule down the left at the hour
   range chosen, each hour with a half-hour rule; the sections a person turns
   on or off down the right, and the schedule takes the width when they are
   all off. 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.18in;
  -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; }

/* Header: the title and name at the left, the date at the right. */
.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.72in; }
.titles { min-width: 0; flex: 1; }
.titles h1 { margin: 0; font: 500 22pt/1.2 "Fraunces", Georgia, serif; letter-spacing: -0.005em; color: var(--t-ink); white-space: nowrap; overflow: hidden; height: 1.2em; }
.titles .name { 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; min-width: 2.6in; }
.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; }
.when-blank { display: block; width: 2.6in; 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); }

/* The two columns. */
.main { flex: 1; min-height: 0; display: flex; gap: 0.35in; }
.schedule { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.hours { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.hrow { flex: 1 1 0; min-height: 0.3in; display: flex; align-items: stretch; border-bottom: 0.5pt solid var(--t-muted); border-bottom-color: color-mix(in srgb, var(--t-muted) 70%, transparent); }
.ht { flex: none; width: 0.55in; font: 500 8pt/1.2 "Inter Tight", system-ui, sans-serif; color: var(--t-muted); padding-top: 3pt; }
.hl { flex: 1; display: flex; flex-direction: column; }
.hl i { display: block; flex: 1; border-bottom: 0.5pt solid var(--line); }
.hl i:last-child { border-bottom: 0; }

.side { flex: none; width: 2.7in; display: flex; flex-direction: column; gap: 0.22in; }
.box { display: flex; flex-direction: column; min-height: 0; }
.priorities ol { margin: 0; padding: 0; list-style: none; counter-reset: p; }
.priorities li { counter-increment: p; display: flex; align-items: flex-end; gap: 6pt; height: 0.4in; border-bottom: 0.5pt solid var(--line); }
.priorities li::before { content: counter(p); font: 500 13pt/1 "Fraunces", Georgia, serif; color: var(--t-accent); padding-bottom: 4pt; }
.todos { display: flex; flex-direction: column; }
.todos i { display: flex; align-items: flex-end; height: 0.32in; border-bottom: 0.5pt solid var(--line); }
.todos i::before { content: ""; width: 0.16in; height: 0.16in; box-sizing: border-box; border: 0.6pt solid var(--t-muted); border-radius: 2pt; margin: 0 0 4pt 1pt; }
.mrows { display: flex; flex-direction: column; }
.mrows span { display: flex; align-items: flex-end; gap: 6pt; height: 0.36in; border-bottom: 0.5pt solid var(--line); }
.mrows b { font: 500 8pt/1 "Inter Tight", system-ui, sans-serif; color: var(--t-accent); padding-bottom: 4pt; }
.notes { flex: 1; }
.notes .rules { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.notes .rules i { display: block; flex: 1; min-height: 0.3in; border-bottom: 0.5pt solid var(--line); }

/* The foot: the free version's credit line and the one-inch mark. */
.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; }
