/* Hallmark · shape: app screen · genre: modern-minimal · theme: Blueprint (deal 2/3, seed delivery-timeline-quote-seven-ad0b·c6b05410·2026-12-04·r0)
 * nav: a top bar, the wordmark and the date · signature: the schedule sheet, seven buildings drawn on a 25 working day grid with week dimension strings · states: full (a static plan, nothing loads) · blueprint: cyanotype
 * axes: mid/geometric-sans/neutral · posture: drenched · contrast: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S5 R4 V4 · weakest: E, a 28 column grid that must read on a phone; it scrolls sideways inside its own focusable frame and the totals sit in the first columns */
@import url("./tokens.css");
@import url("./base.css");

:root {
  --days: 25;
  --row-h: 3.75rem;
  --name-w: 15rem;
  --hrs-w: 6.5rem;
  --bar-h: var(--space-md);
}

/* the top bar */
.bar { border-bottom: var(--rule-hair) solid var(--color-rule-2); }
.bar-in { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); min-height: 64px; flex-wrap: wrap; padding-block: var(--space-xs); }
.wordmark { font-family: var(--font-display); font-weight: 600; font-size: var(--text-lg); text-transform: uppercase; letter-spacing: var(--tracking-display); }
.meta { color: var(--color-muted); font-size: var(--text-sm); }

main { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-3xl); padding-block: var(--space-2xl) var(--space-3xl); }
h1, h2 { text-transform: uppercase; line-height: 1.04; }
h1 { font-size: var(--text-3xl); max-width: 18ch; }
h2 { font-size: var(--text-2xl); max-width: 26ch; }
h3 { font-size: var(--text-lg); }
.lead { color: var(--color-ink-2); }
.num { font-family: var(--font-outlier); font-weight: 500; }
.sec-head { display: grid; gap: var(--space-sm); margin-bottom: var(--space-xl); }

/* the intro: head on the left, four figures on the right */
.intro-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap-columns); align-items: end; }
.intro-head { display: grid; gap: var(--space-md); }
.figures { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.figures > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: var(--space-2xs); padding: var(--space-md) var(--space-lg) var(--space-md) 0; border-top: var(--rule-hair) solid var(--color-rule); }
.figures > div:nth-child(even) { padding-left: var(--space-lg); border-left: var(--rule-hair) solid var(--color-rule-2); }
.figures dt { color: var(--color-muted); font-size: var(--text-sm); font-weight: 500; }
.figures dd { margin: 0; font-variant-numeric: tabular-nums; font-size: var(--text-2xl); line-height: 1.1; white-space: nowrap; }

/* the schedule sheet */
.sheet { margin: 0; border: var(--rule-hair) solid var(--color-rule); position: relative; background: var(--color-paper-2); }
.sheet::after { content: ""; position: absolute; inset: 5px; border: var(--rule-hair) solid var(--color-rule-2); pointer-events: none; }
.sheet-scroll { overflow-x: auto; padding: var(--space-lg); }
.sheet-scroll:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -4px; }
.gantt {
  display: grid; min-width: 68rem; position: relative;
  grid-template-columns: var(--name-w) var(--hrs-w) var(--hrs-w) repeat(var(--days), minmax(0, 1fr));
  grid-template-rows: auto repeat(7, var(--row-h)) var(--row-h) auto;
}
.row { display: contents; }
.row > * { grid-row: var(--r); }
.cell { display: flex; flex-direction: column; justify-content: center; padding-right: var(--space-sm); min-width: 0; }
.head .cell { white-space: normal; line-height: 1.3; justify-content: flex-end; padding-bottom: var(--space-xs); color: var(--color-muted); font-size: var(--text-sm); font-weight: 500; }
.cell.name b { font-family: var(--font-display); font-weight: 600; font-size: var(--text-md); line-height: 1.2; }
.cell.name small { color: var(--color-muted); font-size: var(--text-sm); line-height: 1.3; }
.cell.hrs { font-size: var(--text-sm); white-space: nowrap; }
.head .cell.hrs { white-space: normal; }
.cell.hrs sup { font-family: var(--font-body); }
.total .cell.name b { text-transform: uppercase; }
.rule { grid-column: 1 / -1; align-self: start; border-top: var(--rule-hair) solid var(--color-rule-2); pointer-events: none; }
.rule.heavy { border-top: var(--rule-heavy) solid var(--color-rule); }

/* weeks as dimension strings */
.week { display: grid; gap: var(--space-2xs); align-content: end; padding: 0 var(--space-2xs) var(--space-xs); font-size: var(--text-sm); color: var(--color-ink-2); }
.dim { position: relative; height: var(--rule-hair); background: var(--color-rule); }
.dim::before, .dim::after { content: ""; position: absolute; top: calc(var(--tick) / -2); width: var(--rule-hair); height: var(--tick); background: var(--color-rule); transform: rotate(45deg); }
.dim::before { left: 0; }
.dim::after { right: 0; }

/* the day grid under the bars: a line a working day, a stronger one a week */
.daygrid {
  grid-column: 4 / -1; grid-row: 2 / 10; pointer-events: none;
  border-right: var(--rule-hair) solid var(--color-grid-2);
  background-image: linear-gradient(to right, var(--color-grid-2) var(--rule-hair), transparent var(--rule-hair)), linear-gradient(to right, var(--color-grid) var(--rule-hair), transparent var(--rule-hair));
  background-size: calc(100% / 5) 100%, calc(100% / var(--days)) 100%;
}

/* bars */
.seg { align-self: center; height: var(--bar-h); position: relative; z-index: var(--z-raised); margin-inline: var(--space-3xs); }
.seg.build, .swatch.build { background: var(--color-ink); }
.seg.rev, .swatch.rev { border: var(--rule-hair) solid var(--color-ink); background: var(--color-paper-3); }
.seg.hl, .swatch.hl { background: var(--color-muted); }

/* milestones */
.mile { grid-row: 1 / -1; pointer-events: none; z-index: var(--z-raised); }
.mile-models { grid-column: 19; border-left: var(--rule-heavy) solid var(--color-ink); }
.mile-end { grid-column: 28; border-right: var(--rule-heavy) solid var(--color-ink); }
.marks .mark { align-self: start; padding: var(--space-xs) var(--space-xs) 0; font-size: var(--text-sm); font-weight: 500; line-height: 1.35; }
.mark-end { text-align: right; }

.sheet figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-md) var(--space-xl); padding: var(--space-md) var(--space-lg) var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule-2); }
.legend, .notes { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--space-xs); font-size: var(--text-sm); }
.legend li { display: flex; align-items: center; gap: var(--space-sm); }
.swatch { width: var(--space-xl); height: var(--bar-h); flex-shrink: 0; }
.notes { color: var(--color-ink-2); max-width: 62ch; }

/* what we need: a drawing register */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: var(--text-md); }
thead th { text-align: left; font-size: var(--text-sm); font-weight: 500; color: var(--color-muted); padding: 0 var(--space-md) var(--space-sm) 0; border-bottom: var(--rule-heavy) solid var(--color-rule); white-space: nowrap; }
tbody th, tbody td { text-align: left; vertical-align: top; padding: var(--space-md) var(--space-md) var(--space-md) 0; border-bottom: var(--rule-hair) solid var(--color-rule-2); }
tbody th { font-weight: 500; width: 38%; }
tbody td { color: var(--color-ink-2); }

/* highlights: two elevations parted by one heavy line */
.elev { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: var(--rule-hair) solid var(--color-rule); }
.elev-col { display: grid; gap: var(--space-sm); align-content: start; padding: var(--space-xl) var(--space-xl) var(--space-xl) 0; }
.elev-col + .elev-col { padding-left: var(--space-xl); border-left: var(--rule-heavy) solid var(--color-rule); }
.elev-col p { color: var(--color-ink-2); max-width: 48ch; }

/* cost: a ledger */
.ledger { margin: 0; display: grid; }
.ledger > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-lg); align-items: baseline; padding-block: var(--space-md); border-top: var(--rule-hair) solid var(--color-rule-2); }
.ledger > div:first-child { border-top: var(--rule-heavy) solid var(--color-rule); }
.ledger dt { color: var(--color-ink-2); }
.ledger dd { margin: 0; font-size: var(--text-xl); white-space: nowrap; }

/* ready today */
.ready-in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap-columns); align-items: center; }
.ready-text { display: grid; gap: var(--space-md); }
.ready-text h2 { margin-bottom: var(--space-xs); }
.fig { display: block; position: relative; border: var(--rule-hair) solid var(--color-rule); }
.fig::after { content: ""; position: absolute; inset: 5px; border: var(--rule-hair) solid var(--color-rule-2); pointer-events: none; }
.fig img { width: 100%; height: auto; }
.fig:hover { border-color: var(--color-ink); }
.fig:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.link { font-weight: 500; text-decoration-line: underline; text-decoration-thickness: var(--rule-hair); }
.link:hover { text-decoration-line: none; }
.link:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.link:active { color: var(--color-ink-2); }

.foot { border-top: var(--rule-hair) solid var(--color-rule-2); padding-block: var(--space-lg) var(--space-xl); color: var(--color-muted); font-size: var(--text-sm); }

@media (max-width: 60rem) {
  .intro-in, .ready-in { grid-template-columns: minmax(0, 1fr); }
  .elev { grid-template-columns: minmax(0, 1fr); }
  .elev-col + .elev-col { padding-left: 0; border-left: 0; border-top: var(--rule-heavy) solid var(--color-rule); }
}
@media (max-width: 40rem) {
  .figures { grid-template-columns: minmax(0, 1fr); }
  .figures > div:nth-child(even) { padding-left: 0; border-left: 0; }
  .sheet-scroll { padding: var(--space-md); }
  table, thead, tbody, tr, th, td { display: block; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  tbody tr { padding-block: var(--space-md); border-bottom: var(--rule-hair) solid var(--color-rule-2); }
  tbody th, tbody td { width: auto; padding: 0; border: 0; }
  tbody td { font-size: var(--text-sm); }
}
@media (max-width: 40rem) {
  tbody td::before { content: attr(data-label) ": "; color: var(--color-muted); }
}
