/* Her app's look: "Plum". Deep plum on a pale lilac ground, white surfaces with
   a soft shadow in place of outlines, Bricolage Grotesque for headings and
   numbers, DM Sans for everything read, and drawn pictures in place of emoji.

   It is written on top of look 2 (the end of checkin.css): the page says
   data-look="2" and data-skin="plum" together (src/worker/checkin/page.ts), so
   look 2's layout, sizes and targets all still apply, and every rule here
   starts with both attributes so that it wins over the look 2 rule it changes.
   Nothing here makes a target smaller than look 2 has it.

   The colours are the custom properties in the first rule and nowhere else,
   except the shadows, which are plum at a low strength. */

@font-face { font-family: "DM Sans"; src: url(/fonts/dm-sans-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url(/fonts/dm-sans-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url(/fonts/dm-sans-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url(/fonts/dm-sans-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url(/fonts/bricolage-grotesque-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url(/fonts/bricolage-grotesque-latin-800-normal.woff2) format("woff2"); font-weight: 800; font-display: swap; }

html[data-look="2"][data-skin="plum"] {
  --paper: #F7F4FA; --card: #FFFFFF; --rule: #E6DDEE; --control: #7A6690;
  --ink: #1E1326; --soft: #5B4D66; --on-ink: #FFFFFF;
  --action: #3A1D4E; --action-dark: #2A1339; --action-tint: #EFE7F6;
  --plum-mid: #54306E; --plum-soft: #E9DDF3; --row: #F5F0F9; --mint: #8FDCCB;
  --display: "Bricolage Grotesque", "DM Sans", system-ui, sans-serif;
  --text: "DM Sans", system-ui, -apple-system, sans-serif;
  --r: 22px; --t-ask: 2rem;
  --shadow: 0 1px 2px rgba(58, 29, 78, 0.06), 0 6px 16px rgba(58, 29, 78, 0.08);
  --shadow-card: 0 1px 2px rgba(58, 29, 78, 0.05), 0 12px 32px rgba(58, 29, 78, 0.09);
  --lift: 0 10px 24px rgba(58, 29, 78, 0.28);
}

/* the page */
html[data-look="2"][data-skin="plum"] body { font-family: var(--text); }
html[data-look="2"][data-skin="plum"] h1 { font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; line-height: 1.12; }
html[data-look="2"][data-skin="plum"] .sub { font-weight: 500; }

/* a drawn picture: lines in the colour of the words beside it, as big as their type */
html[data-look="2"][data-skin="plum"] .pic { display: block; flex: none; width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
html[data-look="2"][data-skin="plum"] .chip { display: flex; align-items: center; justify-content: center; flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--action-tint); color: var(--action); }
html[data-look="2"][data-skin="plum"] .chip .pic { font-size: 2rem; }

/* the top bar: Back, her name over the count, Read aloud, and how far along she is */
html[data-look="2"][data-skin="plum"] .top { row-gap: var(--like); }
html[data-look="2"][data-skin="plum"] .back, html[data-look="2"][data-skin="plum"] .say { border-color: transparent; border-radius: 999px; box-shadow: var(--shadow); font-size: 1.125rem; font-weight: 600; }
html[data-look="2"][data-skin="plum"] .back { display: flex; align-items: center; gap: 2px; padding: 4px 16px 4px 8px; }
html[data-look="2"][data-skin="plum"] .back .pic, html[data-look="2"][data-skin="plum"] .say .pic { font-size: 1.5rem; }
html[data-look="2"][data-skin="plum"] .say { display: grid; grid-template-columns: auto auto; align-items: center; justify-content: center; column-gap: 8px; padding: 4px 14px; line-height: 1.15; text-align: left; }
html[data-look="2"][data-skin="plum"] .say .pic { grid-row: 1 / span 2; }
html[data-look="2"][data-skin="plum"] .say[aria-pressed="true"] { background: var(--action); border-color: var(--action); color: var(--on-ink); }
html[data-look="2"][data-skin="plum"] .mid { font-size: 1.125rem; }
html[data-look="2"][data-skin="plum"] .count { color: var(--soft); font-weight: 600; white-space: nowrap; }
html[data-look="2"][data-skin="plum"] .track { grid-column: 1 / -1; height: 8px; overflow: hidden; border-radius: 4px; background: var(--rule); }
html[data-look="2"][data-skin="plum"] .track > span { display: block; min-width: 8px; height: 100%; border-radius: 4px; background: var(--action); }

/* buttons: a white surface with a soft shadow, no outline */
/* a tap shows at once: no fade between a button's states */
html[data-look="2"][data-skin="plum"] .btn { border-color: transparent; box-shadow: var(--shadow); transition: none; }
html[data-look="2"][data-skin="plum"] .btn:active { background: var(--action-tint); }
html[data-look="2"][data-skin="plum"] .btn.primary { background: var(--action); border-color: var(--action); color: var(--on-ink); box-shadow: var(--lift); }
html[data-look="2"][data-skin="plum"] .btn.primary:active { background: var(--action-dark); border-color: var(--action-dark); }
html[data-look="2"][data-skin="plum"] .btn.quiet { border-color: transparent; background: var(--action-tint); color: var(--action); box-shadow: none; font-weight: 600; }
html[data-look="2"][data-skin="plum"] .btn[disabled] { box-shadow: none; }
/* the button that starts her check-in: its words, then an arrow in a white circle */
html[data-look="2"][data-skin="plum"] .btn.start { justify-content: space-between; min-height: 84px; padding: 8px 14px 8px 24px; text-align: left; }
html[data-look="2"][data-skin="plum"] .go { display: flex; align-items: center; justify-content: center; flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--on-ink); color: var(--action); }
html[data-look="2"][data-skin="plum"] .go .pic { font-size: 1.625rem; stroke-width: 2.5; }

/* answers: one tap fills the answer with plum, with a tick in a white circle */
html[data-look="2"][data-skin="plum"] .choices .btn { gap: 16px; min-height: 76px; padding: 8px 56px 8px 20px; font-size: var(--t-say); }
html[data-look="2"][data-skin="plum"] .choices .btn .chip { margin-left: -6px; }
html[data-look="2"][data-skin="plum"] .btn[aria-pressed="true"] { background: var(--action); border-color: var(--action); color: var(--on-ink); box-shadow: var(--lift); }
html[data-look="2"][data-skin="plum"] .btn[aria-pressed="true"] .chip { background: var(--plum-mid); color: var(--on-ink); }
html[data-look="2"][data-skin="plum"] .choices .btn[aria-pressed="true"]::after, html[data-look="2"][data-skin="plum"] .row .btn[aria-pressed="true"]::after, html[data-look="2"][data-skin="plum"] .tile[aria-pressed="true"]::after, html[data-look="2"][data-skin="plum"] .cup.picked::after { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--card); color: var(--action); font-family: system-ui, sans-serif; font-size: 1.25rem; font-weight: 700; line-height: 1; }
/* the ticks show at once (look 2 fades them in) */
html[data-look="2"][data-skin="plum"] .btn[aria-pressed="true"]::after, html[data-look="2"][data-skin="plum"] .cup.picked::after, html[data-look="2"][data-skin="plum"] .swatch[aria-pressed="true"]::after { animation: none; }
/* the seven days fit on one screen */
html[data-look="2"][data-skin="plum"] .choices.days { gap: 10px; }
html[data-look="2"][data-skin="plum"] .choices.days .btn { min-height: 60px; padding-top: 4px; padding-bottom: 4px; }
html[data-look="2"][data-skin="plum"] .row .btn { padding-bottom: 38px; }
html[data-look="2"][data-skin="plum"] .row .btn[aria-pressed="true"]::after { bottom: 6px; width: 26px; height: 26px; margin: 0 auto; font-size: 1rem; }

/* picture tiles: the picture in a chip over the words */
html[data-look="2"][data-skin="plum"] .tile { gap: 8px; min-height: 124px; padding: 14px 8px 12px; font-weight: 500; }
html[data-look="2"][data-skin="plum"] .tile .chip { width: 48px; height: 48px; }
html[data-look="2"][data-skin="plum"] .tile .chip .pic { font-size: 1.75rem; }
html[data-look="2"][data-skin="plum"] .tile[aria-pressed="true"] { font-weight: 500; }
html[data-look="2"][data-skin="plum"] .tile[aria-pressed="true"]::after { top: 8px; right: 8px; width: 28px; height: 28px; font-size: 1.125rem; }

/* months: the months are tapped, never chosen, so they stay white until done */
html[data-look="2"][data-skin="plum"] .month { min-height: 72px; padding: 4px 0; font-size: 1.125rem; font-weight: 600; }
html[data-look="2"][data-skin="plum"] .month.done, html[data-look="2"][data-skin="plum"] .month.done[disabled] { border-color: var(--clear); box-shadow: none; }

/* number entry */
html[data-look="2"][data-skin="plum"] .field { border-color: transparent; box-shadow: var(--shadow); }
html[data-look="2"][data-skin="plum"] .field[aria-current="true"] { border-color: var(--action); background: var(--action-tint); box-shadow: none; }
html[data-look="2"][data-skin="plum"] .field .value, html[data-look="2"][data-skin="plum"] .key, html[data-look="2"][data-skin="plum"] .stepper .btn, html[data-look="2"][data-skin="plum"] .stepper .count, html[data-look="2"][data-skin="plum"] .cup, html[data-look="2"][data-skin="plum"] .code span { font-family: var(--display); font-weight: 700; }
html[data-look="2"][data-skin="plum"] .key.del { background: var(--action-tint); color: var(--action); box-shadow: none; }
html[data-look="2"][data-skin="plum"] .key.del .pic { margin: 0 auto; font-size: 2.25rem; }
html[data-look="2"][data-skin="plum"] .card.check { border: var(--edge) solid var(--action); }
html[data-look="2"][data-skin="plum"] .code span { border-color: var(--rule); }
html[data-look="2"][data-skin="plum"] .code span.on { border-color: var(--action); }

/* steppers, cups, swatches */
html[data-look="2"][data-skin="plum"] .stepper .btn { border-radius: 50%; }
html[data-look="2"][data-skin="plum"] .stepper .count { font-weight: 800; }
html[data-look="2"][data-skin="plum"] .cup .icon .pic { margin: 0 auto; }
html[data-look="2"][data-skin="plum"] .cup.goal { box-shadow: inset 0 -6px 0 var(--clear), var(--shadow); }
html[data-look="2"][data-skin="plum"] .cup.goal[aria-pressed="true"] { box-shadow: inset 0 -6px 0 var(--mint); }
html[data-look="2"][data-skin="plum"] .cup.picked::after { top: -8px; right: -8px; width: 28px; height: 28px; border: 2px solid var(--action); font-size: 1rem; }
html[data-look="2"][data-skin="plum"] .swatch { border: 2px solid rgba(30, 19, 38, 0.28); border-radius: 18px; }
html[data-look="2"][data-skin="plum"] .swatch[aria-pressed="true"] { border-color: var(--action); box-shadow: 0 0 0 3px var(--paper), 0 0 0 7px var(--action); }
html[data-look="2"][data-skin="plum"] .swatch[aria-pressed="true"]::after { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0; border-radius: 50%; background: var(--action); color: var(--on-ink); font-family: system-ui, sans-serif; font-size: 1.125rem; line-height: 1; }
html[data-look="2"][data-skin="plum"] .swatch-labels { font-weight: 600; }

/* cards */
html[data-look="2"][data-skin="plum"] .card { padding: 20px; border: 0; border-radius: 28px; box-shadow: var(--shadow-card); }
html[data-look="2"][data-skin="plum"] .card.message { background: var(--card); }
html[data-look="2"][data-skin="plum"] .body > .stack + .card { margin-top: 20px; }
html[data-look="2"][data-skin="plum"] .body > .card { margin-bottom: 16px; }
html[data-look="2"][data-skin="plum"] .card.told { background: var(--clear-tint); box-shadow: none; }
html[data-look="2"][data-skin="plum"] .card.call-now { border: 2px solid var(--urgent); background: var(--urgent-tint); box-shadow: none; }
html[data-look="2"][data-skin="plum"] .card.help { background: var(--action-tint); box-shadow: none; }
html[data-look="2"][data-skin="plum"] .card h2 { font-family: var(--display); font-weight: 700; line-height: 1.2; }
html[data-look="2"][data-skin="plum"] .card .from { color: var(--soft); }
html[data-look="2"][data-skin="plum"] .card.video { padding: 12px; }
html[data-look="2"][data-skin="plum"] .card.video h2 { margin: 4px 8px var(--like); font-size: var(--t-say); }
html[data-look="2"][data-skin="plum"] .card.video .btn { min-height: 64px; background: var(--action-tint); color: var(--action); box-shadow: none; }

/* a call button: a phone in a plum chip, the name, the number under it */
html[data-look="2"][data-skin="plum"] .btn.call { justify-content: flex-start; gap: 14px; padding: 8px 14px; background: var(--row); box-shadow: none; text-align: left; }
html[data-look="2"][data-skin="plum"] .call .chip { width: 44px; height: 44px; background: var(--action); color: var(--on-ink); }
html[data-look="2"][data-skin="plum"] .call .chip .pic { font-size: 1.375rem; }
html[data-look="2"][data-skin="plum"] .call .words { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
html[data-look="2"][data-skin="plum"] .call .num { font-size: 1.125rem; font-weight: 400; color: var(--soft); }
html[data-look="2"][data-skin="plum"] .btn.call.primary { background: var(--action); color: var(--on-ink); box-shadow: var(--lift); }
html[data-look="2"][data-skin="plum"] .call.primary .chip { background: var(--on-ink); color: var(--action); }
html[data-look="2"][data-skin="plum"] .card.told .btn.call:not(.primary), html[data-look="2"][data-skin="plum"] .card.call-now .btn.call:not(.primary), html[data-look="2"][data-skin="plum"] .card.help .btn.call:not(.primary) { background: var(--card); }
html[data-look="2"][data-skin="plum"] .if-911 { margin: 16px 0 0; }

/* her start screen and the finished screen open with a block of plum */
html[data-look="2"][data-skin="plum"] .hero { margin: calc(-1 * max(8px, env(safe-area-inset-top))) -16px 0; padding: max(8px, env(safe-area-inset-top)) 16px 28px; border-radius: 0 0 32px 32px; background: var(--action); color: var(--on-ink); }
html[data-look="2"][data-skin="plum"] .hero .top { margin-bottom: 0; }
html[data-look="2"][data-skin="plum"] .hero .back, html[data-look="2"][data-skin="plum"] .hero .say { background: var(--plum-mid); color: var(--on-ink); box-shadow: none; }
html[data-look="2"][data-skin="plum"] .hero .say[aria-pressed="true"] { background: var(--on-ink); border-color: var(--on-ink); color: var(--action); }
html[data-look="2"][data-skin="plum"] .hero .count { color: var(--on-ink); }
html[data-look="2"][data-skin="plum"] .hero .practice { border-color: var(--on-ink); }
html[data-look="2"][data-skin="plum"] .hero h1 { margin: 24px 4px 0; font-size: 3.5rem; line-height: 1.04; overflow-wrap: anywhere; }
html[data-look="2"][data-skin="plum"] .hero h1 .hi { display: block; margin-bottom: 4px; font-family: var(--text); font-size: var(--t-say); font-weight: 500; letter-spacing: 0; line-height: 1.3; color: var(--plum-soft); }
html[data-look="2"][data-skin="plum"] .hero .sub { margin: 10px 4px 0; color: var(--plum-soft); }
html[data-look="2"][data-skin="plum"] .hero + .body, html[data-look="2"][data-skin="plum"] .hero + .card { margin-top: 20px; }
/* the family's video, half over the block's lower edge */
html[data-look="2"][data-skin="plum"] main.lead-card .hero { padding-bottom: 108px; }
html[data-look="2"][data-skin="plum"] main.lead-card .hero + .body { margin-top: -80px; }
html[data-look="2"][data-skin="plum"] main.lead-card .card.video { box-shadow: 0 16px 40px rgba(58, 29, 78, 0.2); }
/* the finished screen: a drawn tick in a white circle, then the thanks */
html[data-look="2"][data-skin="plum"] .hero .done-check { width: 88px; height: 88px; margin: 24px 4px 0; border-radius: 50%; background: var(--on-ink); color: var(--action); }
html[data-look="2"][data-skin="plum"] .hero .done-check .pic { font-size: 3rem; stroke-width: 3; }
html[data-look="2"][data-skin="plum"] main[data-pane="end"] .hero h1 { font-size: 3rem; }

/* the note */
html[data-look="2"][data-skin="plum"] textarea { border: 2px solid var(--rule); border-radius: 20px; box-shadow: var(--shadow); }
html[data-look="2"][data-skin="plum"] .mic { background: var(--action-tint); color: var(--action); box-shadow: none; font-weight: 600; }
html[data-look="2"][data-skin="plum"] .mic[aria-pressed="true"] { border-color: var(--urgent); background: var(--urgent-tint); color: var(--urgent); }
html[data-look="2"][data-skin="plum"] .toast { border-radius: 20px; }

/* the bottom bar: no rule over it, and no room kept for it on a screen that has none */
html[data-look="2"][data-skin="plum"] main.no-bar { padding-bottom: calc(var(--apart) + env(safe-area-inset-bottom)); }
html[data-look="2"][data-skin="plum"] .bottom { border-top: 0; }

/* a wide screen: the block of colour spans the page, or stands beside the cards on the finished screen */
@media (min-width: 900px) {
  html[data-look="2"][data-skin="plum"] main > .hero { max-width: none; margin: -12px -24px 0; padding: 12px 24px 28px; }
  html[data-look="2"][data-skin="plum"] main[data-pane="end"] > .hero { grid-area: tick; align-self: start; margin: 12px 0 0; padding: 4px 24px 28px; border-radius: 32px; }
  html[data-look="2"][data-skin="plum"] main.lead-card .hero { padding-bottom: 108px; }
}

/* "My medicines": the button on her start screen, a pill in a chip and then the words */
html[data-look="2"][data-skin="plum"] .btn.meds { justify-content: flex-start; gap: 14px; padding: 8px 14px; text-align: left; }
/* The screen she shows a nurse or a doctor. What must not be stopped suddenly is a
   block of plum, as her start screen's heading is: it is the first thing read. */
html[data-look="2"][data-skin="plum"] .card.meds-stop { background: var(--action); color: var(--on-ink); box-shadow: var(--lift); }
html[data-look="2"][data-skin="plum"] .card.meds-stop h2, html[data-look="2"][data-skin="plum"] .card.meds-all h2 { margin: 0 0 4px; font-size: 1.5rem; font-weight: 800; }
html[data-look="2"][data-skin="plum"] .med { padding: 12px 0; border-top: 1px solid var(--rule); }
html[data-look="2"][data-skin="plum"] .card h2 + .med { border-top: 0; }
html[data-look="2"][data-skin="plum"] .meds-all .med:last-child { padding-bottom: 0; }
html[data-look="2"][data-skin="plum"] .meds-stop .med { border-top-color: var(--plum-mid); }
html[data-look="2"][data-skin="plum"] .med-name { margin: 0; font-size: 1.25rem; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
html[data-look="2"][data-skin="plum"] .meds-stop .med-name { font-size: 1.5rem; font-weight: 700; line-height: 1.2; }
html[data-look="2"][data-skin="plum"] .med-dose { margin: 2px 0 0; font-size: 1.125rem; color: var(--soft); }
html[data-look="2"][data-skin="plum"] .meds-stop .med-dose { color: var(--plum-soft); }
html[data-look="2"][data-skin="plum"] .meds-ask { margin: 2px 0 14px; padding-top: 14px; border-top: 1px solid var(--plum-mid); font-size: 1.125rem; font-weight: 500; }
html[data-look="2"][data-skin="plum"] .meds-stop .btn.call { min-height: 72px; background: var(--card); color: var(--action); }
html[data-look="2"][data-skin="plum"] .meds-checked { margin: 4px 4px 0; color: var(--soft); }
