/* The free printables: a reading column like the privacy page, a sheet that
 * prints on its own (US Letter), and the app's paper-and-pine palette. */
@font-face { font-family: Fraunces; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/fraunces-700.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Inter; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/inter-var.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  color-scheme: light;
  --paper: #F8F5EE; --paper-deep: #F1ECE1; --card: #FFFFFF;
  --ink: #1F2933; --ink2: #4B5865; --muted: #7F8A96; --line: #E6E0D4;
  --pine: #2E6B57; --pine-dark: #23523F; --pine-soft: #E2EEE8; --pencil: #F2B544; --pencil-soft: #FCEFD3;
  --margin-line: rgba(217, 96, 76, 0.5);
  --serif: Fraunces, "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.7 var(--sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
main { max-width: 760px; margin: 0 auto; padding: 32px 20px 56px; }
.home { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 30px; color: var(--ink); font: 700 17px/1.2 var(--serif); text-decoration: none; }
.home img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 3px 10px rgba(59, 48, 32, 0.07); }
.kicker { margin: 0 0 10px; font: 600 13px/1.2 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--pine); }
h1 { margin: 0 0 14px; font: 700 clamp(30px, 6vw, 42px)/1.1 var(--serif); letter-spacing: -0.015em; text-wrap: balance; }
h2 { margin: 40px 0 8px; color: var(--pine-dark); font: 700 22px/1.3 var(--serif); }
h3 { margin: 22px 0 6px; font: 700 18px/1.3 var(--serif); }
p { margin: 0 0 14px; }
p, li { text-wrap: pretty; }
ul, ol { margin: 0 0 14px; padding-left: 22px; }
li { margin-bottom: 6px; }
li::marker { color: var(--pine); }
a { color: var(--pine); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--pine-dark); }
:focus-visible { outline: 3px solid var(--pine); outline-offset: 3px; border-radius: 4px; }
.lede { color: var(--ink2); font-size: 18.5px; }
.muted { color: var(--ink2); font-size: 14.5px; }
table.facts { width: 100%; border-collapse: collapse; margin: 6px 0 16px; font-size: 15.5px; }
.table-wrap { overflow-x: auto; }
table.facts th, table.facts td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.facts th { color: var(--ink2); font-weight: 600; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; }

/* the controls above a sheet */
.controls { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 14px; margin: 26px 0 18px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.controls label { display: grid; gap: 4px; font-size: 13.5px; font-weight: 600; color: var(--ink2); }
.controls input, .controls select { min-width: 150px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); font: 400 15.5px/1.2 var(--sans); }
.controls input.wide { min-width: 260px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border: 0; border-radius: 999px; background: var(--pine); color: #fff; font: 600 15.5px/1.2 var(--sans); text-decoration: none; cursor: pointer; box-shadow: 0 8px 16px -8px rgba(35, 82, 63, 0.7); }
.btn:hover { background: var(--pine-dark); color: #fff; }
.btn.alt { background: var(--card); color: var(--pine-dark); border: 1.5px solid var(--pine); box-shadow: none; }

/* the printable sheet, shown on screen as a sheet of paper */
.sheet { margin: 0 auto; padding: 26px 26px 20px; border: 1px solid var(--line); border-radius: 6px; background: #fff; box-shadow: 0 18px 40px -26px rgba(59, 48, 32, 0.45); color: #1F2933; font: 400 11px/1.35 var(--sans); }
.sheet-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 10px 20px; padding-bottom: 8px; margin-bottom: 12px; border-bottom: 2.5px solid var(--pine); }
.sheet-kicker { font: 700 9px/1.2 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--pine); }
.sheet-title { margin: 2px 0 0; font: 700 22px/1.15 var(--serif); color: #1F2933; }
.blanks { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 11.5px; }
.blank { display: inline-block; min-width: 130px; border-bottom: 1px solid #4B5865; padding: 0 4px; font-weight: 600; }
.blank.short { min-width: 54px; }
.sheet table { width: 100%; border-collapse: collapse; }
.sheet th { text-align: left; font-size: 8.5px; letter-spacing: 0.06em; text-transform: uppercase; color: #4B5865; border-bottom: 1.5px solid #4B5865; padding: 4px 5px; }
.sheet td { border-bottom: 1px solid #E6E0D4; padding: 0 5px; height: 24px; }
.sheet td.num, .sheet th.num { text-align: center; }
.sheet .total td { font-weight: 700; border-bottom: 0; border-top: 1.5px solid #4B5865; }
.sheet-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 16px; font-size: 11px; }
.sign { display: flex; gap: 24px; margin-top: 22px; }
.sign div { flex: 1; padding-top: 4px; border-top: 1px solid #4B5865; font-size: 9.5px; color: #4B5865; }
.sign div:last-child { flex: 0 0 30%; }
.sheet-brand { margin-top: 10px; text-align: right; font-size: 8px; color: #7F8A96; }

/* attendance: twelve small months */
.months { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 14px; }
.month h4 { display: flex; justify-content: space-between; margin: 0 0 3px; font: 700 11px/1.2 var(--sans); }
.month h4 span { font-weight: 500; color: #4B5865; }
.days { display: grid; grid-template-columns: repeat(7, 1fr); border-top: 1px solid #C9C2B4; border-left: 1px solid #C9C2B4; }
.days b { padding: 1px 0; text-align: center; font-size: 7.5px; color: #4B5865; border-right: 1px solid #C9C2B4; border-bottom: 1px solid #C9C2B4; background: #F8F5EE; }
.days i { position: relative; height: 20px; font-style: normal; border-right: 1px solid #C9C2B4; border-bottom: 1px solid #C9C2B4; }
.days i span { position: absolute; top: 1px; left: 2px; font-size: 6.5px; color: #7F8A96; }
.days i.we { background: #F1ECE1; }
.days i.out { background: repeating-linear-gradient(135deg, transparent 0 3px, #EFEAE0 3px 4px); }
.legend { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 10px; font-size: 9.5px; color: #4B5865; }

/* the app, for anyone who'd rather not count by hand */
.app { display: grid; gap: 22px; align-items: center; margin: 46px 0 8px; padding: 26px; border: 1px solid var(--line); border-radius: 20px; background: var(--card); }
.app h2 { margin-top: 0; }
.app img { display: block; width: min(220px, 60vw); height: auto; margin: 0 auto; border-radius: 26px; border: 7px solid var(--ink); box-shadow: 0 24px 40px -22px rgba(31, 41, 51, 0.5); }
.app .ticks { list-style: none; padding: 0; }
.app .ticks li { position: relative; padding-left: 26px; }
.app .ticks li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 14px; height: 14px; border-radius: 50%; background: var(--pine-soft); box-shadow: inset 0 0 0 4px var(--pine); }
.more { display: grid; gap: 10px; margin: 30px 0 0; padding: 0; list-style: none; }
.more a { display: block; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); text-decoration: none; }
.more a b { display: block; color: var(--ink); font: 700 16.5px/1.3 var(--serif); }
.more a span { color: var(--ink2); font-size: 14.5px; }

footer { display: flex; flex-wrap: wrap; gap: 6px 20px; max-width: 760px; margin: 0 auto; padding: 22px 20px 48px; border-top: 1px solid var(--line); color: var(--ink2); font-size: 14.5px; }
footer a { color: var(--ink2); }

@media (min-width: 760px) {
  .app { grid-template-columns: 1fr 230px; }
  .more { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  table.facts { font-size: 14px; }
  table.facts th, table.facts td { padding: 7px 6px; }
  .sheet { padding: 16px 12px; }
  .months { grid-template-columns: repeat(2, 1fr); }
  .scroll { overflow-x: auto; }
  .scroll .sheet { min-width: 620px; }
}

/* printing: only the sheet, on one Letter page */
@media print {
  @page { size: letter portrait; margin: 0.4in; }
  body { background: #fff; }
  main { max-width: none; padding: 0; }
  .no-print, footer, .home { display: none !important; }
  .scroll { overflow: visible; }
  .scroll .sheet { min-width: 0; }
  .sheet { padding: 0; border: 0; border-radius: 0; box-shadow: none; }
  .months { grid-template-columns: repeat(3, 1fr); }
  .days i { height: 26px; }
  .sheet.hours td { height: 34px; }
  .sheet.hours .notes { display: block; }
  .sheet, .sheet * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* lines for notes, on the printed hours log only */
.notes { display: none; margin-top: 14px; }
.notes h4 { margin: 0 0 2px; font: 700 11px/1.2 var(--sans); }
.notes i { display: block; height: 26px; border-bottom: 1px solid #E6E0D4; }
