/* Hallmark · shape: app screen · genre: modern-minimal · theme: Dose (deal 1/3, seed family-care-hub-app-d56e·9a26cb0d·2026-12-03·r0)
 * nav: top bar with a wordmark and a scrolling tab strip; Dad's view has no nav, only back and next · signature: the today band, a Monday-tinted plastic strip with the leave time set like a pharmacy label · states: full, unset (no driver, paper not found, plan fact not written) · dose: white
 * axes: light/grotesk-sans/chromatic-green · posture: committed · contrast: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R4 V4 · weakest: S on the six home cards, so each carries the family's own line and the attention line, not an icon tile */
/* Hallmark · answered: body set at 18px and Dad's view at 26px and up, above the app scale, because the brief asks for big type and large print; 25: the large-print lines hold 28ch on purpose, one short sentence each */
@import url("./tokens.css");
@import url("./base.css");

:root {
  --text-sm: 1rem; --text-md: 1.125rem; --text-lg: 1.3rem; --text-xl: 1.6rem; --text-2xl: 2rem;
  --text-display: clamp(2rem, 1.6rem + 2vw, 2.75rem); --text-section: 1.5rem; --text-title: 1.25rem;
  --text-print: clamp(1.6rem, 1.3rem + 1.2vw, 2rem); --text-print-head: clamp(2.4rem, 1.8rem + 3vw, 3.6rem);
  --container: 60rem; --gutter: 32px;
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.3 0 0 0 0 0.28 0 0 0 0 0.2 0 0 0 0.05 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
@media (max-width: 40rem) { :root { --gutter: 16px; } }

body { font-size: var(--text-md); line-height: 1.55; background: var(--grain), var(--color-paper); }
.container { max-width: var(--container); }
main { padding-block: var(--space-xl) var(--space-2xl); }

/* Shell */
.bar { position: sticky; top: 0; z-index: var(--z-sticky-nav); background: color-mix(in oklab, var(--color-paper) 94%, transparent); border-bottom: 1px solid var(--color-rule); }
.bar__top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); min-height: 60px; }
.wordmark { font-family: var(--font-display); font-weight: 700; font-size: var(--text-lg); letter-spacing: var(--tracking-display); text-decoration: none; color: var(--color-ink); border-radius: 6px; }
.bar__dad { font-size: var(--text-sm); font-weight: 500; color: var(--color-accent-deep); text-decoration: underline; text-underline-offset: 0.2em; min-height: 44px; display: inline-flex; align-items: center; border-radius: 6px; }
.bar__dad:hover { color: var(--color-ink); }
.tabs { display: flex; gap: var(--space-2xs); overflow-x: auto; padding-bottom: var(--space-xs); scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
.tabs a { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-md); border-radius: var(--radius-pill); font-size: var(--text-sm); font-weight: 500; color: var(--color-ink-2); text-decoration: none; transition: background-color var(--dur-short) var(--ease-out); }
.tabs a:hover { background: var(--color-paper-3); }
.tabs a[aria-current="page"] { background: var(--color-ink); color: var(--color-paper); }
.tabs a:focus-visible, .wordmark:focus-visible, .bar__dad:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

.page-head { display: grid; gap: var(--space-sm); margin-bottom: var(--space-xl); }
.page-head h1 { font-size: var(--text-display); line-height: 1.04; max-width: 18ch; }
.page-head p { font-size: var(--text-lg); color: var(--color-ink-2); max-width: 46ch; }

section + section { margin-top: var(--space-2xl); }
section > h2 { font-size: var(--text-section); margin-bottom: var(--space-md); }
.sub { color: var(--color-ink-2); max-width: 46ch; margin-bottom: var(--space-md); }

/* Plastic, the theme's surface */
.plastic { --t: var(--p-thu); position: relative; border-radius: var(--radius-card); background: linear-gradient(color-mix(in oklab, var(--glint) 32%, transparent), transparent 18%), color-mix(in oklab, var(--t) 62%, transparent); box-shadow: inset 0 1.5px 0 var(--glint), inset 0 -24px 36px -28px color-mix(in oklab, var(--t) 45%, var(--color-ink)); }
.t-mon { --t: var(--p-mon); } .t-wed { --t: var(--p-wed); } .t-fri { --t: var(--p-fri); } .t-thu { --t: var(--p-thu); } .t-tue { --t: var(--p-tue); } .t-sat { --t: var(--p-sat); }

/* White surface */
.sheet { background: var(--color-paper); border-radius: var(--radius-card); box-shadow: var(--shadow-lift); padding: var(--space-lg); }

/* Pharmacy-label figures */
.mono { font-family: var(--font-outlier); font-variant-numeric: tabular-nums; font-weight: 500; }

/* The today band: the signature */
.today { padding: var(--space-lg); display: grid; gap: var(--space-lg); }
.today__day { font-family: var(--font-display); font-weight: 700; font-size: var(--text-display); letter-spacing: var(--tracking-display); line-height: 1; }
.today__kind { font-size: var(--text-lg); color: var(--color-ink-2); margin-top: var(--space-2xs); }
.ticket { background: var(--grain), var(--color-paper); border-radius: var(--radius-input); box-shadow: var(--shadow-card); padding: var(--space-md) var(--space-lg); display: grid; gap: var(--space-sm); }
.ticket__row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-md); flex-wrap: wrap; }
.ticket__row + .ticket__row { border-top: 1px dashed var(--color-rule); padding-top: var(--space-sm); }
.ticket__label { color: var(--color-ink-2); }
.ticket__value { font-size: var(--text-xl); }
.ticket__value--big { font-size: var(--text-2xl); color: var(--color-accent-deep); }
.today__note { color: var(--color-ink-2); max-width: 44ch; }
@media (min-width: 48rem) { .today { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: center; padding: var(--space-xl); } }

/* Home cards */
.cards { display: grid; gap: var(--space-md); grid-template-columns: minmax(0, 1fr); padding: 0; margin: 0; list-style: none; }
@media (min-width: 40rem) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 60rem) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { display: grid; grid-template-rows: auto 1fr auto; gap: var(--space-sm); height: 100%; padding: var(--space-lg); background: var(--color-paper); border-radius: var(--radius-card); box-shadow: var(--shadow-lift); color: var(--color-ink); text-decoration: none; transition: transform var(--dur-short) var(--ease-out); }
a.card:hover { transform: translateY(-2px); }
a.card:active { transform: translateY(1px); }
a.card:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }
.card__head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-sm); }
.card h3 { font-size: var(--text-xl); }
.card__go { font-family: var(--font-body); font-weight: 500; font-size: var(--text-sm); letter-spacing: 0; color: var(--color-accent-deep); }
a.card:hover .card__go { text-decoration: underline; text-underline-offset: 0.2em; }
.card__status { color: var(--color-ink-2); }
.attn { display: block; padding: var(--space-sm) var(--space-md); border-radius: var(--radius-input); background: var(--color-paper-3); color: var(--color-ink); }
.attn strong { font-weight: 500; color: var(--color-accent-deep); }

/* Rides roster */
.roster { display: grid; gap: var(--space-md); padding: 0; margin: 0; list-style: none; }
.ride { display: grid; gap: var(--space-md); padding: var(--space-lg); }
@media (min-width: 40rem) { .ride { grid-template-columns: 11rem minmax(0, 1fr) auto; align-items: center; } }
.ride__day { font-family: var(--font-display); font-weight: 700; font-size: var(--text-2xl); letter-spacing: var(--tracking-display); line-height: 1; }
.ride__driver { font-size: var(--text-xl); font-weight: 500; }
.ride__driver--unset { color: var(--color-muted); }
.ride__times { display: grid; gap: var(--space-2xs); color: var(--color-ink-2); }
.ride.is-unset { --t: var(--color-rule); }

/* Key-value list */
.facts { margin: 0; display: grid; gap: 0; }
.facts > div { display: grid; gap: var(--space-2xs); padding: var(--space-md) 0; border-top: 1px solid var(--color-rule); }
.facts > div:first-child { border-top: 0; padding-top: 0; }
.facts dt { font-weight: 500; }
.facts dd { margin: 0; color: var(--color-ink-2); }
.fill { padding: 0 0.3em; border: 1px dashed var(--color-muted); border-radius: 4px; color: var(--color-muted); -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* Two columns that stack */
.pair { display: grid; gap: var(--space-md); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 48rem) { .pair { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sheet h3 { font-size: var(--text-title); margin-bottom: var(--space-sm); }
.plain-list { margin: 0; padding-left: 1.2em; display: grid; gap: var(--space-xs); }

.figure-big { font-family: var(--font-outlier); font-weight: 500; font-variant-numeric: tabular-nums; font-size: var(--text-2xl); color: var(--color-accent-deep); line-height: 1.1; }
.small { font-size: var(--text-sm); color: var(--color-muted); }

/* Ink band */
.band--ink { background: var(--color-ink); color: var(--color-paper); border-radius: var(--radius-card); padding: var(--space-xl) var(--space-lg); display: grid; gap: var(--space-sm); }
.band--ink h2 { font-size: var(--text-2xl); max-width: 24ch; }
.band--ink p { max-width: 48ch; }
.band--ink .mint { color: var(--color-accent-soft); }
.band--ink a { color: var(--color-accent-soft); }

/* Three calls */
.calls { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-md); }
.call { display: grid; gap: var(--space-xs); }
.call h3 { font-size: var(--text-title); margin: 0; }
.call__why { color: var(--color-ink-2); }
.call__ask { font-weight: 500; }
.call address { font-style: normal; color: var(--color-ink-2); }

/* Buttons, moulded plastic */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); min-height: 52px; padding: 0 var(--space-lg); border: 0; border-radius: var(--radius-input); background: var(--color-paper); color: var(--color-ink); font: 500 var(--text-md)/1 var(--font-body); text-decoration: none; cursor: pointer; white-space: nowrap; box-shadow: inset 0 1px 0 var(--glint), 0 0 0 1px var(--color-rule), 0 3px 0 var(--color-rule); transition: transform var(--dur-micro) var(--ease-out), background-color var(--dur-short) var(--ease-out); }
.btn:hover { background: var(--color-paper-2); }
.btn:active { transform: translateY(3px); box-shadow: inset 0 1px 0 var(--glint), 0 0 0 1px var(--color-rule); }
.btn:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }
.btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; pointer-events: none; }
.btn--primary { background: linear-gradient(var(--color-accent), var(--color-accent-deep)); color: var(--color-accent-ink); box-shadow: 0 0 0 1px var(--color-accent-deep), 0 3px 0 var(--color-accent-deep); }
.btn--primary:hover { background: var(--color-accent-deep); }
.btn--primary:active { box-shadow: 0 0 0 1px var(--color-accent-deep); }
.btn--wide { width: 100%; }
.call .btn { justify-self: start; margin-top: var(--space-xs); }

/* Medicines */
.meds { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-sm); }
.med { display: grid; gap: var(--space-xs); padding: var(--space-md) var(--space-lg); background: var(--grain), var(--color-paper); border-radius: var(--radius-input); box-shadow: var(--shadow-card); }
@media (min-width: 40rem) { .med { grid-template-columns: minmax(0, 1fr) 14rem; align-items: center; } }
.med__purpose { font-weight: 500; font-size: var(--text-lg); }
.med__plain { color: var(--color-ink-2); }
.med__when { font-family: var(--font-outlier); font-weight: 500; color: var(--color-accent-deep); }
.tray { padding: var(--space-lg); display: grid; gap: var(--space-sm); }

/* Money */
.ledger { width: 100%; border-collapse: collapse; font-size: var(--text-md); }
.ledger caption { text-align: left; font-family: var(--font-display); font-weight: 700; font-size: var(--text-title); letter-spacing: var(--tracking-display); padding-bottom: var(--space-sm); }
.ledger td { padding: var(--space-sm) 0; border-top: 1px solid var(--color-rule); }
.ledger td.num { text-align: right; font-family: var(--font-outlier); font-weight: 500; }
.ledger tfoot td { border-top: 2px solid var(--color-ink); font-weight: 500; }
.left-over { display: grid; gap: var(--space-xs); padding: var(--space-lg); }

/* Papers */
.papers { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-sm); }
.paper { display: grid; gap: var(--space-sm); padding: var(--space-md) var(--space-lg); background: var(--color-paper); border-radius: var(--radius-card); box-shadow: var(--shadow-lift); }
@media (min-width: 40rem) { .paper { grid-template-columns: minmax(0, 1fr) auto; align-items: center; } }
.paper__name { font-weight: 500; font-size: var(--text-lg); }
.paper__plain, .paper__where { color: var(--color-ink-2); }
.stamp { justify-self: start; display: inline-block; padding: var(--space-2xs) var(--space-md); border: 2px solid currentColor; outline: 1px solid currentColor; outline-offset: 2px; border-radius: 6px; font-family: var(--font-outlier); font-weight: 500; transform: rotate(-2deg); white-space: nowrap; }
.stamp--found { color: var(--color-accent-deep); }
.stamp--missing { color: var(--color-muted); border-style: dashed; outline-style: dashed; transform: none; }

/* Dad's view: large print */
.print { min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto; font-size: var(--text-print); line-height: 1.45; }
.print__bar { display: flex; justify-content: space-between; align-items: center; gap: var(--space-md); padding-block: var(--space-md); font-size: var(--text-md); }
.print__clark { color: var(--color-ink-2); text-decoration: underline; text-underline-offset: 0.2em; min-height: 44px; display: inline-flex; align-items: center; border-radius: 6px; white-space: nowrap; }
.print__clark:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.print__page { display: grid; align-content: center; gap: var(--space-lg); padding-block: var(--space-xl); }
.print__page h1 { font-size: var(--text-print-head); line-height: 1.05; max-width: 16ch; }
.print__page p { max-width: 28ch; }
.print__count { font-size: var(--text-md); color: var(--color-muted); }
.print__phone { display: inline-flex; flex-direction: column; gap: var(--space-2xs); padding: var(--space-md) var(--space-lg); border-radius: var(--radius-card); text-decoration: none; color: var(--color-ink); justify-self: start; }
.print__phone .mono { white-space: nowrap; font-size: clamp(1.75rem, 7.4vw, 3.4rem); line-height: 1.05; letter-spacing: -0.02em; }
.print__phone:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }
.print__nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-md); padding-block: var(--space-lg); }
.print__nav .btn { min-height: 72px; font-size: var(--text-print); border-radius: var(--radius-card); }
.print__nav .btn:only-child { grid-column: 2; }
.print__dots { display: flex; gap: var(--space-xs); padding: 0; margin: 0; list-style: none; }
.print__dots li { width: 28px; height: 6px; border-radius: var(--radius-pill); background: var(--color-rule); }
.print__dots li[aria-current="step"] { background: var(--color-accent); }

/* Footer */
.foot { border-top: 1px solid var(--color-rule); padding-block: var(--space-lg); color: var(--color-muted); font-size: var(--text-sm); }
.foot p { max-width: none; }
.print .foot { padding-block: var(--space-md); }
