/* Tally — timesheet language.
   Deliberately unlike the other five sites, because six legal pages that share a look are
   the same 4.3(a) signal as six apps that share a look:

     site-intone   dark plum, tick-rule masthead, keyline panels with inset legends
     site-rota     dark violet, inline styles
     site-runway   light cool slate, ruled rows, right-aligned money
     site-verdant  warm cream, serif, botanical
     site-range    dark slate, protractor arc, degree figures

   This one is a printed timesheet: warm paper rather than Runway's cool slate, a seven
   column week strip instead of ruled money rows, sections numbered like fields on a form,
   and figures set in tabular monospace. The indigo is the app's own accent
   (`TallyInk` in apps/tally/Tally/TallyConfig.swift, 0x4C5BF5 / 0x7C8BFF), so the page and
   the app read as one product.

   No rounded cards, no shadows, no gradient buttons — that was the shared vocabulary. */

:root {
  --paper:  #fbfaf7;
  --ink:    #1a1c2e;
  --indigo: #4c5bf5;
  --light:  #7c8bff;
  --rule:   #e4e2da;
  --grid:   #edebe3;
  --muted:  #6b6a78;
  --green:  #2f855a;
  color-scheme: light;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.62 ui-sans-serif, -apple-system, "Helvetica Neue", Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

.wrap { max-width: 660px; margin: 0 auto; padding: 0 22px 88px; }

/* ---- masthead: the week strip, which is the app's whole idea in one figure ---- */

header { padding: 52px 0 0; margin-bottom: 36px; }

h1 {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 3px;
}

.tag {
  margin: 0 0 4px;
  color: var(--muted);
  font: 500 13px/1.5 ui-monospace, "SF Mono", Menlo, monospace;
}

/* Seven columns, each filled from the bottom by --fill. Booked time in indigo, the rest
   left as paper — the same shape the Week tab draws. */
.week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  margin-top: 22px;
  padding-bottom: 20px;
}
.week span {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 54px;
  background: var(--grid);
}
.week span::before {
  content: "";
  display: block;
  height: calc(var(--fill) * 100%);
  background: var(--indigo);
}
.week span[data-clear]::before { background: var(--light); }
.week b {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -18px;
  text-align: center;
  font: 600 10px/1 ui-sans-serif, -apple-system, sans-serif;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* ---- headings: numbered like fields on a form ---- */

h2 {
  counter-increment: field;
  font: 600 12px/1 ui-sans-serif, -apple-system, sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 44px 0 0;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ink);
}
h2::before {
  content: counter(field, decimal-leading-zero) "  ";
  color: var(--indigo);
  font-variant-numeric: tabular-nums;
}
body { counter-reset: field; }

h2 + p, h2 + ul, h2 + .row, h2 + .qa { margin-top: 16px; }

p { margin: 0 0 14px; }
a { color: var(--indigo); text-decoration-color: rgba(76, 91, 245, 0.35); }
a:hover { color: var(--ink); }
strong { font-weight: 650; }

.lede {
  font-size: 18px;
  line-height: 1.5;
  margin: 0 0 8px;
  padding-left: 16px;
  border-left: 3px solid var(--indigo);
}

/* ---- lists: square indigo markers, never round bullets ---- */

ul { margin: 0 0 16px; padding-left: 0; list-style: none; }
li { position: relative; margin-bottom: 8px; padding-left: 20px; }
li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  background: var(--indigo);
}

/* ---- rows: field left, tabular figure right ---- */

.row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  border-bottom: 1px solid var(--rule);
  padding: 11px 0;
}
.row span:last-child {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  color: var(--indigo);
  white-space: nowrap;
}

/* ---- Q&A: hanging rule, question in ink, answer in muted ---- */

.qa { border-top: 1px solid var(--rule); padding: 16px 0 4px; }
.qa:first-of-type { border-top: 0; }
.q { margin: 0 0 6px; font-weight: 650; }
.a { margin: 0 0 10px; color: var(--muted); }

/* ---- the subscription block: a boxed form field, ruled top and bottom only ---- */

.panel {
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  padding: 18px 0 16px;
  margin: 30px 0;
}
.panel .legend {
  display: block;
  font: 600 11px/1 ui-sans-serif, -apple-system, sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.panel p:last-child { margin-bottom: 0; }

.note {
  color: var(--muted);
  font-size: 15px;
  padding-left: 16px;
  border-left: 3px solid var(--rule);
}

footer {
  margin-top: 56px;
  padding-top: 18px;
  border-top: 2px solid var(--ink);
  font-size: 14px;
  color: var(--muted);
}
