/* Bark Desk's look: "the porch".

   On 2026-11-25 the owner asked for "a completely new redesign of the templates and themes focused
   around the idea that this is for a 74-year-old lady to train her [dog]", "warm and
   inviting", and then for new pictures made in Runway "so they dont look so AI canned". Of six
   pictures he liked two, a painted picture book and a calm linen magazine, and of four blends of
   those two he chose one: "I love this - can you use this style?". This file is that picture.

   A linen page with a faint weave, a large soft serif for the heading of each page, a rounded,
   friendly typeface for everything else, cream cards with gently rounded corners and a thin rule
   under their titles, apricot buttons with dark brown lettering, terracotta for the marks that
   count something, and on her home screen a painting (or the dog's own photo) in a tall arch. The
   menu runs across the top, as in the picture. Ordinary lettering everywhere: no spaced-out
   capitals, which are hard to read for older eyes.

   It replaces "Mission control" (public/report.css) in Bark Desk only. report.css is still word
   for word Whole Picture's and is no longer loaded here. styles.css lays the pages out, as before,
   and this file gives them their look: it is loaded after it, and each rule begins with the
   "look-porch" class that page() in src/render.js puts on every page's body.

   Take colours, corners and weights from the tokens below, never as literal values in a rule. */

/* The lettering: DM Serif Display for the heading of each page, and Nunito, a rounded face, for
   everything else. Both are kept in the site itself (public/fonts, with LICENSES-porch.txt).
   They were downloaded from Google Fonts on 2026-11-25, when the owner said "Yes, download
   them". No page asks Google, or anyone else outside the site, for anything. These rules are
   here and not in fonts/fonts.css, which is word for word Whole Picture's. */
@font-face {
  font-family: 'DM Serif Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/static/fonts/dm-serif-display-400-latin.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: 'DM Serif Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/static/fonts/dm-serif-display-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('/static/fonts/nunito-400-900-latin.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: 'Nunito';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('/static/fonts/nunito-400-900-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* The size of the lettering. It is larger than usual to begin with, and the control at the foot
   of each page makes it larger still (public/textsize.js). */
html[data-text="large"] { font-size: 125%; }
html[data-text="largest"] { font-size: 140%; }
@media (max-width: 760px) {
  html[data-text="large"] { font-size: 118%; }
  html[data-text="largest"] { font-size: 131%; }
}

/* ---------- The colours ---------- */

body.look-porch {
  /* The page: linen, with a weave so faint it reads as texture rather than pattern. */
  --ground: #F7F1E8;
  --weave: rgba(120, 88, 60, 0.035);
  --card: #FFFCF6;
  --white: #FFFFFF;
  /* Warm brown ink, never black. */
  --ink: #3A2318;
  --ink-2: #6B5040;
  /* Terracotta: links, the thin accents and anything she can press that is not a button. */
  --brand: #B85A2B;
  --brand-dark: #8E3F1B;
  --brand-tint: #FCEBDD;
  --brand-ink: #5E2A12;
  --line: #E7DACA;
  --line-strong: #B8A390;
  --track: #EDE2D5;
  /* The second colour, taken from the teal door in the painting. */
  --gold: #2F6F69;
  --gold-tint: #E3F0ED;
  --gold-ink: #1D4642;
  --danger: #B42318;
  --danger-tint: #FDECEA;
  --danger-ink: #55160C;
  --radius: 16px;
  /* What fills a main button, a chosen answer and a finished step, and the words on it. */
  --strong: #F2A36D;
  --strong-hover: #EA8D50;
  --on-strong: #3A2318;
  /* A plain button: a soft apricot wash. */
  --soft: #FCE4D0;
  --soft-hover: #F8D3B4;
  /* The outline of a quiet control. */
  --edge: #CDB7A2;
  /* What marks where she is: the page she is on in the menu. */
  --highlight: #F8CDA9;
  --head-weight: 800;
  --figure-weight: 800;
  --display: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --sans: 'Nunito', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --figures: 'Nunito', 'Segoe UI', system-ui, -apple-system, sans-serif;
  /* The marks that count something: days, entries, things known, a chart's line. */
  --data: #C8693A;
  /* The dial of the emblem: its eight arcs, and the one picked out. */
  --dial: #E3B596;
  --dial-picked: #B85A2B;
  /* Shadows, made from the ink, so that nothing on the page is grey. */
  --veil: rgba(58, 35, 24, 0.55);
  --lift: 0 1px 0 rgba(58, 35, 24, 0.03), 0 8px 22px rgba(58, 35, 24, 0.05);

  background-color: var(--ground);
  background-image:
    repeating-linear-gradient(0deg, var(--weave) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, var(--weave) 0 1px, transparent 1px 4px);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 500;
}

/* ---------- Lettering ---------- */

/* The heading of a page in the soft serif; every other heading in the rounded face. */
body.look-porch h1 { font-family: var(--display); font-weight: 400; font-size: 3rem; line-height: 1.08; letter-spacing: -0.005em; color: var(--ink); }
body.look-porch h2, body.look-porch h3 { font-family: var(--sans); font-weight: var(--head-weight); letter-spacing: 0; color: var(--ink); }
body.look-porch h2 { font-size: 1.4rem; }
body.look-porch h3 { font-size: 1.15rem; }
body.look-porch .voice { font-family: var(--sans); font-size: 1.15rem; font-weight: 700; line-height: 1.45; }
body.look-porch .lead { color: var(--ink-2); }
body.look-porch b, body.look-porch strong { font-weight: 800; }
body.look-porch code { font-family: var(--mono); font-size: 0.9em; overflow-wrap: anywhere; }

/* The title of a card: plain words, a little larger and bolder than the text, with a thin rule
   under it, as in the picture. */
body.look-porch .label,
body.look-porch .card.tint .label,
body.look-porch .card.gold .label {
  font-family: var(--sans);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}
body.look-porch .label .icon { display: none; }
body.look-porch .card > .label:first-child { padding-bottom: 10px; border-bottom: 1px solid var(--line); }
body.look-porch label.label { font-size: 1rem !important; }

/* ---------- The bar across the top, with the menu ---------- */

body.look-porch .site-header {
  gap: 10px 24px;
  padding: 12px 4%;
  background: transparent;
  border-bottom: 1px solid var(--line);
}
body.look-porch .brand { gap: 12px; color: var(--ink); font-family: var(--display); font-size: 1.45rem; font-weight: 400; }
body.look-porch .brand:hover { color: var(--ink); }
body.look-porch .site-header .emblem { width: 42px; height: 42px; }
/* The emblem takes its colours from the look: the eight arcs, and the one picked out. */
body.look-porch .emblem { color: var(--ink); }
body.look-porch .emblem circle:nth-of-type(2) { stroke: var(--dial); }
body.look-porch .emblem circle:nth-of-type(3) { stroke: var(--dial-picked); }
body.look-porch .nav { gap: 4px 6px; }
body.look-porch .nav a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 800;
}
body.look-porch .nav a:hover { background: var(--brand-tint); color: var(--ink); }
body.look-porch .nav a[aria-current="page"] { background: var(--highlight); color: var(--ink); }

/* The bar of the sample site: light, so that it does not sit on the page like a lid. */
body.look-porch .samplebar { background: var(--gold-tint); color: var(--gold-ink); border-bottom: 1px solid var(--line); }
body.look-porch .samplebar button, body.look-porch .samplebar a { border-color: var(--gold); border-radius: 999px; color: var(--gold-ink); }
body.look-porch .samplebar button:hover, body.look-porch .samplebar a:hover, body.look-porch .samplebar button[aria-current="true"] { background: var(--card); color: var(--gold-ink); }
body.look-porch .samplebar :focus-visible { outline-color: var(--gold-ink); }
body.look-porch .banner.warn { background: var(--brand-tint); color: var(--brand-ink); }

/* ---------- Cards, buttons and small pieces ---------- */

body.look-porch .card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); box-shadow: var(--lift); }
body.look-porch .card.tint { background: var(--brand-tint); border-color: var(--line); }
body.look-porch .card.gold { background: var(--gold-tint); border-color: var(--line); color: var(--gold-ink); }
body.look-porch .card.soft { background: var(--card); border: 1px solid var(--line); box-shadow: none; }
body.look-porch .card.danger { background: var(--danger-tint); border: 1px solid var(--danger); color: var(--danger-ink); box-shadow: none; }
body.look-porch .card.danger .label { color: var(--danger); }
body.look-porch .dial { border-radius: var(--radius); }
body.look-porch .dial-number, body.look-porch .dial-figure { font-family: var(--figures); font-weight: var(--figure-weight); }

body.look-porch .btn {
  min-height: 52px;
  padding: 6px 24px;
  border: 0;
  border-radius: 14px;
  background: var(--soft);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 800;
}
body.look-porch .btn:hover { background: var(--soft-hover); color: var(--ink); }
body.look-porch .btn.primary { background: var(--strong); color: var(--on-strong); }
body.look-porch .btn.primary:hover { background: var(--strong-hover); color: var(--on-strong); }
body.look-porch .btn.small { min-height: 48px; padding: 4px 20px; }
body.look-porch .btn.danger { background: var(--danger); color: var(--white); }
body.look-porch .btn.danger:hover { background: var(--danger-ink); color: var(--white); }
body.look-porch .btn.danger-soft { background: var(--danger-tint); color: var(--danger); }
body.look-porch .btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
body.look-porch .linkbtn, body.look-porch details > summary { color: var(--brand-dark); }

body.look-porch .pill { padding: 4px 14px; border-radius: 999px; background: var(--brand-tint); color: var(--brand-ink); font-family: var(--sans); font-size: 0.9rem; font-weight: 800; letter-spacing: 0; text-transform: none; }
body.look-porch .pill.gold { background: var(--gold-tint); color: var(--gold-ink); }
body.look-porch .pill.plain { background: var(--card); border: 1px solid var(--edge); color: var(--ink); }
body.look-porch .pill.danger { background: var(--danger-tint); color: var(--danger-ink); }
body.look-porch .flash { background: var(--brand-tint); border: 1px solid var(--line); border-radius: 14px; font-weight: 800; }
body.look-porch .flash.error { background: var(--danger-tint); border-color: var(--danger); }
body.look-porch .meter { height: 10px; border-radius: 999px; background: var(--track); }
body.look-porch .meter span { border-radius: 999px; background: var(--data); }
body.look-porch .portrait, body.look-porch .photo { border-radius: 50%; }
body.look-porch .photo { border-radius: 24px; }
body.look-porch .portrait.placeholder { background: var(--brand-tint); color: var(--brand); }

/* What is waiting: a ruled list. */
body.look-porch .waiting a strong { color: var(--brand-dark); font-weight: 800; }
body.look-porch .waiting a:hover strong { color: var(--ink); }

/* The stages of a path, as a row of dots. */
body.look-porch .journey-dots .dot { border: 2px solid var(--edge); background: var(--card); }
body.look-porch .journey-dots .dot.done { background: var(--data); border-color: var(--data); }
body.look-porch .journey-dots .dot.current { background: var(--card); border: 2px solid var(--ink); box-shadow: 0 0 0 4px var(--brand-tint); }
body.look-porch .journey-dots .join.done { background: var(--data); }

/* Charts: the marks in terracotta, the lettering in ink. */
body.look-porch .chart .tick { font-family: var(--sans); font-weight: 600; }
body.look-porch .chart .end { font-family: var(--sans); font-weight: 800; }
body.look-porch .chart .tip { border-radius: 10px; background: var(--ink); font-family: var(--sans); }
/* "One thing I'd love to know": the one card that asks her something. It is picked out with a
   warm edge, and its marks are the things worth knowing about the dog, with the open one this
   answer would fill drawn as an empty box. */
body.look-porch .card.ask { border: 2px solid var(--highlight); background: linear-gradient(180deg, var(--brand-tint), var(--card) 120px); }
body.look-porch .card.ask .voice { font-size: 1.3rem; line-height: 1.35; }
body.look-porch .ask-marks { display: flex; gap: 3px; max-width: 520px; padding: 4px 0 0; }
body.look-porch .ask-marks i { flex: 1 1 0; height: 18px; border-radius: 5px; background: var(--track); }
body.look-porch .ask-marks i.on { background: var(--data); }
body.look-porch .ask-marks i.next { background: var(--card); box-shadow: inset 0 0 0 2px var(--ink); animation: ask-next 1.8s ease-in-out infinite; }
@keyframes ask-next { 0%, 100% { box-shadow: inset 0 0 0 2px var(--ink); } 50% { box-shadow: inset 0 0 0 2px var(--data); } }
@media (prefers-reduced-motion: reduce) { body.look-porch .ask-marks i.next { animation: none; } }
/* A receipt whose row has many marks keeps them close, so that they fit on a phone. */
body.look-porch .receipt-scale:has(i:nth-child(20)) { gap: 3px; max-width: 520px; }
body.look-porch .receipt-scale:has(i:nth-child(20)) i { border-radius: 5px; }

/* The yard game. The yard is drawn small, in the square dots of an old sixteen-bit game, and
   scaled up by a whole number in the page. Above it, joined to it, is one panel: what is
   happening in words, her nose, and the points. */
body.look-porch .yard-stage { align-self: center; width: 100%; max-width: 1252px; }
body.look-porch .yard-panel { display: grid; gap: 12px; padding: 14px 16px; border: 3px solid var(--ink); border-bottom: 0; border-radius: 10px 10px 0 0; background: var(--card); }
body.look-porch .yard-says { display: flex; align-items: center; gap: 14px; min-height: 70px; }
body.look-porch .yard-face { flex: none; width: 72px; height: 66px; border-radius: 12px; background: var(--brand-tint); image-rendering: pixelated; image-rendering: crisp-edges; }
body.look-porch #yard-say { margin: 0; font-size: 1.15rem; font-weight: 700; line-height: 1.35; }
body.look-porch #yard { display: block; width: 100%; aspect-ratio: 626 / 352; height: auto; border: 3px solid var(--ink); border-radius: 0 0 10px 10px; background: var(--track); cursor: pointer; touch-action: manipulation; }
body.look-porch #yard:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
body.look-porch .yard-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 12px; border-top: 1px solid var(--line); }
/* Her nose: five bars that rise, like the signal on a phone. More bars, closer. */
body.look-porch .yard-nose { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-weight: 800; }
body.look-porch .yard-pips { display: inline-flex; align-items: flex-end; gap: 5px; height: 32px; }
body.look-porch .yard-pips i { width: 16px; border: 2px solid var(--ink); border-radius: 3px; background: var(--card); }
body.look-porch .yard-pips i:nth-child(1) { height: 12px; }
body.look-porch .yard-pips i:nth-child(2) { height: 17px; }
body.look-porch .yard-pips i:nth-child(3) { height: 22px; }
body.look-porch .yard-pips i:nth-child(4) { height: 27px; }
body.look-porch .yard-pips i:nth-child(5) { height: 32px; }
body.look-porch .yard-pips i.on { background: var(--data); }
body.look-porch .yard-nose b { min-width: 9.5em; font-size: 1.15rem; font-weight: 800; color: var(--brand-dark); }
/* Her wish for the day, the bird book, the scrapbook and the button that sets a find out. */
body.look-porch .yard-wish { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin: 0; font-weight: 800; }
body.look-porch .yard-wish b { font-size: 1.1rem; color: var(--brand-dark); }
body.look-porch .yard-wish i { font-style: normal; font-weight: 400; color: var(--ink-2); }
body.look-porch .yard-wish.done i { font-weight: 800; color: var(--ink); }
body.look-porch .yard-outbtn { margin-top: 2px; padding: 4px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--brand-tint); font: inherit; font-size: 0.82rem; font-weight: 800; color: var(--ink); cursor: pointer; }
body.look-porch .yard-outbtn[aria-pressed="true"] { background: var(--strong); color: var(--on-strong); border-color: var(--strong); }
body.look-porch .yard-birds { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
body.look-porch .yard-bird { display: flex; gap: 14px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
body.look-porch .yard-bird.none { color: var(--ink-2); }
body.look-porch .yard-bird ul { margin: 6px 0 0; }
body.look-porch .yard-diary { display: grid; gap: 14px; }
body.look-porch .yard-day { padding: 12px 14px; border-left: 4px solid var(--brand); background: var(--brand-tint); }
body.look-porch .yard-day p { margin: 0 0 4px; }
/* Her happy day: a bar that fills as she plays, and never goes down. */
body.look-porch .yard-happy { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-weight: 800; }
body.look-porch .yard-happy-bar { flex: 1 1 160px; height: 18px; border: 2px solid var(--ink); border-radius: 10px; background: var(--card); overflow: hidden; }
body.look-porch .yard-happy-bar i { display: block; height: 100%; background: var(--data); transition: width 0.6s ease-out; }
body.look-porch .yard-happy b { min-width: 9.5em; font-size: 1.05rem; color: var(--brand-dark); }
@media (prefers-reduced-motion: reduce) { body.look-porch .yard-happy-bar i { transition: none; } }
/* How to play: open until her first find, and one press away after that. */
body.look-porch .yard-how { padding: 12px 16px; border: 2px solid var(--brand); border-radius: var(--radius); background: var(--brand-tint); }
body.look-porch .yard-how summary { font-weight: 800; cursor: pointer; }
body.look-porch .yard-steps { display: grid; gap: 8px; margin: 12px 0 10px; padding-left: 1.5em; }
body.look-porch .yard-how .btn { margin-top: 12px; }
/* The points: today's stands out, the other two are quieter. */
body.look-porch .yard-score { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; }
body.look-porch .yard-score div { display: flex; flex-direction: column; justify-content: center; gap: 1px; padding: 6px 14px; border-radius: var(--radius); background: var(--brand-tint); }
body.look-porch .yard-score span { font-size: 0.74rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-2); }
body.look-porch .yard-score b { display: inline-block; font-family: var(--figures); font-weight: var(--figure-weight); font-size: 1.2rem; line-height: 1.1; font-variant-numeric: lining-nums tabular-nums; color: var(--ink); }
body.look-porch .yard-score .main { background: var(--strong); }
body.look-porch .yard-score .main span { color: var(--on-strong); }
body.look-porch .yard-score .main b { font-size: 1.6rem; color: var(--on-strong); transform-origin: left center; }
body.look-porch .yard-score b.up { animation: yard-up 0.6s ease-out; }
@keyframes yard-up { from { transform: scale(1.35); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { body.look-porch .yard-score b.up { animation: none; } }
/* On a phone the yard runs from edge to edge of its card, so it is as large as it can be. */
@media (max-width: 760px) {
  body.look-porch .yard-card .yard-stage { width: calc(100% + 32px); max-width: none; margin-inline: -16px; }
  body.look-porch .yard-panel { padding: 12px; }
  body.look-porch .yard-says { min-height: 96px; }
  body.look-porch .yard-face { width: 60px; height: 55px; }
  body.look-porch #yard-say { font-size: 1.05rem; }
  body.look-porch .yard-score { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 6px; width: 100%; }
  body.look-porch .yard-score div { padding: 6px 10px; }
}
/* Under the yard: what is left today, and when a new yard comes. */
body.look-porch .yard-daybox { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 12px 16px; border-radius: var(--radius); background: var(--brand-tint); }
body.look-porch .yard-daybox p { flex: 1 1 280px; margin: 0; font-weight: 700; }
/* Under the yard: what there is further down the page, as three large links. */
body.look-porch .yard-jump { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
body.look-porch .yard-jump a { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 2px solid var(--brand); border-radius: var(--radius); background: var(--card); color: var(--ink); text-decoration: none; }
body.look-porch .yard-jump a:hover { background: var(--brand-tint); }
body.look-porch .yard-jump b { font-family: var(--figures); font-weight: var(--figure-weight); font-size: 1.3rem; }
body.look-porch .yard-jump a > span { font-weight: 700; }
body.look-porch .yard-jump a > span::after { content: " ↓"; color: var(--brand-dark); }
@media (max-width: 760px) { body.look-porch .yard-jump { gap: 6px; } body.look-porch .yard-jump a { padding: 10px 8px; } body.look-porch .yard-jump b { font-size: 1.1rem; } body.look-porch .yard-jump a > span { font-size: 0.9rem; } }
body.look-porch .yard-today, body.look-porch .yard-shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; }
body.look-porch .yard-kind { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 6px; padding: 12px 6px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); text-align: center; font-size: 0.9rem; font-weight: 800; line-height: 1.25; }
body.look-porch .yard-kind.none { font-weight: 400; color: var(--ink-2); }
body.look-porch .yard-kind.rare { border: 2px solid var(--highlight); }
body.look-porch .yard-icon { width: 54px; height: 54px; image-rendering: pixelated; image-rendering: crisp-edges; }
body.look-porch .yard-home { border: 2px solid var(--brand); }
/* The game's title picture on her home screen, with its name across it. */
body.look-porch .yard-title-link { position: relative; display: block; border: 3px solid var(--ink); border-radius: 8px; overflow: hidden; text-decoration: none; }
body.look-porch .yard-title { display: block; width: 100%; height: auto; image-rendering: pixelated; image-rendering: crisp-edges; }
body.look-porch .yard-title-link span { position: absolute; left: 0; right: 0; top: 5%; text-align: center; white-space: nowrap; font-family: var(--figures); font-size: clamp(1.05rem, 2.3vw, 1.5rem); font-weight: 900; letter-spacing: 0.03em; text-transform: uppercase; color: var(--card); text-shadow: 2px 0 0 var(--ink), -2px 0 0 var(--ink), 0 2px 0 var(--ink), 0 -2px 0 var(--ink), 2px 2px 0 var(--ink), -2px 2px 0 var(--ink), 2px -2px 0 var(--ink), -2px -2px 0 var(--ink); }

/* The game's menus. He found the plain boxes round the game dull ("not just like a square box
   with some text inside of it") and asked for them to look like the menus of a video game. So
   the game's own panels are sheets of parchment in frames of wood, with carved plaques for the
   figures and slots like an inventory for the finds. The wood and the parchment are two small
   pictures kept in the site. Only the game's page is dressed this way. */
body.look-porch .yard-card, body.look-porch #visitors, body.look-porch #shelf, body.look-porch #birds, body.look-porch #scrapbook { border: 12px solid var(--brand-dark); border-image: url(/static/yard-wood.jpg) 64 round; border-radius: 0; background: var(--card) url(/static/yard-paper.jpg) center / 100% 100% no-repeat; box-shadow: 0 0 0 3px var(--ink), 0 8px 0 3px var(--ink); }
body.look-porch #visitors > h2, body.look-porch #shelf > h2, body.look-porch #birds > h2, body.look-porch #scrapbook > h2 { align-self: flex-start; margin: 0; padding: 8px 22px; border: 3px solid var(--ink); background: url(/static/yard-wood.jpg) center / 260px; color: var(--card); font-size: 1.15rem; letter-spacing: 0.06em; text-transform: uppercase; text-shadow: 0 2px 0 var(--ink), 2px 0 0 var(--ink), -2px 0 0 var(--ink), 0 -2px 0 var(--ink); box-shadow: 0 4px 0 var(--ink); }
body.look-porch .yard-panel { border: 4px solid var(--ink); border-bottom: 0; border-radius: 0; background: var(--card) url(/static/yard-paper.jpg) center / 100% 100% no-repeat; box-shadow: inset 0 0 0 3px var(--highlight); }
body.look-porch #yard { border: 4px solid var(--ink); border-radius: 0; box-shadow: 0 6px 0 var(--ink); }
body.look-porch .yard-face { border: 3px solid var(--highlight); border-radius: 50%; background: var(--card); box-shadow: 0 0 0 3px var(--ink); }
/* The figures are carved plaques of wood. */
body.look-porch .yard-score div, body.look-porch .yard-jump a { border: 3px solid var(--ink); border-radius: 4px; background: url(/static/yard-wood.jpg) center / 220px; box-shadow: 0 4px 0 var(--ink); }
body.look-porch .yard-score span, body.look-porch .yard-score b, body.look-porch .yard-score .main span, body.look-porch .yard-score .main b, body.look-porch .yard-jump a, body.look-porch .yard-jump b, body.look-porch .yard-jump a > span { color: var(--card); text-shadow: 0 2px 0 var(--ink), 2px 0 0 var(--ink), -2px 0 0 var(--ink), 0 -2px 0 var(--ink); }
body.look-porch .yard-score .main { background: url(/static/yard-wood.jpg) center / 220px; box-shadow: inset 0 0 0 3px var(--highlight), 0 4px 0 var(--ink); }
body.look-porch .yard-jump a:hover { background: url(/static/yard-wood.jpg) center / 220px; transform: translateY(2px); box-shadow: 0 2px 0 var(--ink); }
body.look-porch .yard-jump a > span::after { color: var(--card); }
/* The bars: her nose and her happy day, with a heavier edge. */
body.look-porch .yard-pips i { border: 3px solid var(--ink); border-radius: 2px; }
body.look-porch .yard-happy-bar { height: 22px; border: 3px solid var(--ink); border-radius: 4px; box-shadow: inset 0 3px 0 var(--line); }
/* The small headings inside the game's card are ribbons. */
body.look-porch .yard-card > .label { align-self: flex-start; margin: 0; padding: 5px 16px; border: 3px solid var(--ink); background: var(--ink); color: var(--card); letter-spacing: 0.06em; }
/* The finds and the visitors sit in slots, like the things in a pack. */
body.look-porch .yard-kind { border: 3px solid var(--ink); border-radius: 4px; background: var(--card); box-shadow: inset 0 -5px 0 var(--line), 0 3px 0 var(--ink); }
body.look-porch .yard-kind.none { background: var(--track); box-shadow: inset 0 4px 0 var(--line); }
body.look-porch .yard-kind.rare { border: 3px solid var(--ink); box-shadow: inset 0 0 0 3px var(--highlight), 0 3px 0 var(--ink); }
body.look-porch .yard-how, body.look-porch .yard-daybox, body.look-porch .yard-bird, body.look-porch .yard-day { border: 3px solid var(--ink); border-radius: 4px; background: var(--card); box-shadow: 0 3px 0 var(--ink); }
body.look-porch .yard-day { border-left: 10px solid var(--brand-dark); }
body.look-porch .yard-outbtn { border: 2px solid var(--ink); border-radius: 4px; box-shadow: 0 2px 0 var(--ink); }
body.look-porch .yard-card .btn { border: 3px solid var(--ink); border-radius: 4px; box-shadow: 0 4px 0 var(--ink); }

/* Three to look for today, the sorted field guide and its milestones. */
body.look-porch .yard-look { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-weight: 800; }
body.look-porch .yard-look ul { display: flex; flex-wrap: wrap; gap: 8px 12px; margin: 0; padding: 0; list-style: none; }
body.look-porch .yard-look li { display: flex; align-items: center; gap: 8px; padding: 6px 12px; border: 3px solid var(--ink); border-radius: 4px; background: var(--card); box-shadow: 0 3px 0 var(--ink); font-weight: 400; }
body.look-porch .yard-look li.done { background: var(--highlight); font-weight: 800; }
body.look-porch .yard-look .yard-icon { image-rendering: pixelated; flex: none; }
body.look-porch .yard-group { display: flex; align-items: baseline; gap: 12px; margin: 18px 0 8px; font-size: 1.3rem; }
body.look-porch .yard-group span { font-size: 1rem; font-weight: 400; color: var(--ink-2); }
body.look-porch .yard-miles { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; font-weight: 800; }
body.look-porch .yard-miles b { padding: 4px 12px; border: 3px solid var(--ink); border-radius: 4px; background: var(--track); color: var(--ink-2); font-weight: 800; }
body.look-porch .yard-miles b.on { background: var(--highlight); color: var(--ink); box-shadow: 0 3px 0 var(--ink); }
body.look-porch .yard-newtoday { margin: 0; padding: 10px 14px; border: 3px solid var(--ink); border-radius: 4px; background: var(--card); }
body.look-porch .yard-newtoday span { font-weight: 800; margin-right: 6px; }

/* The card that opens for one of the birds, animals or fish she has met. */
body.look-porch .yard-cardbox { width: min(560px, calc(100vw - 32px)); padding: 22px; border: 12px solid var(--brand-dark); border-image: url(/static/yard-wood.jpg) 64 round; background: var(--card) url(/static/yard-paper.jpg) center / 100% 100% no-repeat; color: var(--ink); box-shadow: 0 0 0 3px var(--ink), 0 10px 0 3px var(--ink); }
body.look-porch .yard-cardbox::backdrop { background: color-mix(in srgb, var(--ink) 55%, transparent); }
body.look-porch .yard-cardtop { display: flex; gap: 18px; align-items: center; margin-bottom: 8px; }
body.look-porch .yard-cardtop h3 { margin: 0; font-size: 1.5rem; }
body.look-porch .yard-cardtop .yard-icon { image-rendering: pixelated; flex: none; }
body.look-porch .yard-cardbox .label { margin: 14px 0 4px; }
body.look-porch .yard-cardbox p, body.look-porch .yard-cardbox li { font-size: 1.1rem; line-height: 1.5; }
body.look-porch .yard-cardbox ul { margin: 0; padding-left: 22px; }
body.look-porch .yard-cardbox form { margin-top: 18px; }
body.look-porch [data-met]:not(.none), body.look-porch [data-bird]:not(.none) { cursor: pointer; }

/* The button for speaking instead of typing: beside the box, with the word under the mark. */
body.look-porch .speak { display: flex; align-items: stretch; gap: 10px; }
body.look-porch .speak > textarea { flex: 1 1 0; min-width: 0; }
body.look-porch .mic { flex: 0 0 auto; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 72px; height: auto; min-height: 64px; padding: 8px 4px; border: 0; border-radius: var(--radius); background: var(--soft); color: var(--ink); font-family: var(--sans); font-size: 0.9rem; font-weight: 800; cursor: pointer; }
body.look-porch .mic:hover { background: var(--soft-hover); }
body.look-porch .mic:disabled { opacity: 0.5; cursor: default; }
body.look-porch .mic.listening { background: var(--strong); color: var(--on-strong); animation: mic-on 1.4s ease-in-out infinite; }
body.look-porch .mic-status { margin: 0; font-weight: 700; color: var(--ink-2); }
body.look-porch .mic-status.quiet { font-weight: 400; font-size: 0.9rem; }
body.look-porch .composer .line { flex-wrap: wrap; align-items: stretch; }
body.look-porch .composer .line textarea { flex: 1 1 180px; min-width: 0; }
body.look-porch .composer .line #send { align-self: flex-end; }
@keyframes mic-on { 0%, 100% { box-shadow: 0 0 0 0 var(--brand-tint); } 50% { box-shadow: 0 0 0 8px var(--brand-tint); } }
@media (prefers-reduced-motion: reduce) { body.look-porch .mic.listening { animation: none; } }
@media (max-width: 560px) { body.look-porch .composer .line #send { flex: 1 1 100%; } }

/* ---------- The foot of the page, and the control for larger lettering ---------- */

body.look-porch .site-footer { background: transparent; border-top: 1px solid var(--line); color: var(--ink-2); }
body.look-porch .textsize { display: inline-flex; align-items: center; gap: 6px; }
body.look-porch .textsize span { margin-right: 4px; }
body.look-porch .textsize button { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; padding: 0; border: 1px solid var(--edge); border-radius: 12px; background: var(--card); color: var(--ink); font-family: var(--sans); font-weight: 800; line-height: 1; cursor: pointer; }
body.look-porch .textsize button:nth-of-type(1) { font-size: 0.85rem; }
body.look-porch .textsize button:nth-of-type(2) { font-size: 1.1rem; }
body.look-porch .textsize button:nth-of-type(3) { font-size: 1.4rem; }
body.look-porch .textsize button:hover { background: var(--brand-tint); }
body.look-porch .textsize button[aria-pressed="true"] { background: var(--strong); border-color: var(--strong); color: var(--on-strong); }
body.look-porch .site-footer .btn { min-height: 46px; }

/* ---------- Places to type and things to tap ---------- */

body.look-porch input[type="text"],
body.look-porch input[type="tel"],
body.look-porch input[type="url"],
body.look-porch input[type="search"],
body.look-porch input[type="password"],
body.look-porch input[type="number"],
body.look-porch input[type="date"],
body.look-porch select,
body.look-porch textarea { border: 1.5px solid var(--line-strong); border-radius: 12px; background: var(--white); color: var(--ink); font-family: var(--sans); font-weight: 600; }
body.look-porch textarea:focus, body.look-porch input:focus, body.look-porch select:focus { border-color: var(--brand); outline: 3px solid var(--brand-tint); outline-offset: 0; }
body.look-porch ::placeholder { color: var(--ink-2); opacity: 0.75; }
body.look-porch .field .hint { font-size: 0.9rem; }

/* A choice to tap: an answer under a question, a tag in the log. */
body.look-porch .chip span,
body.look-porch button.chip { border: 1.5px solid var(--edge); border-radius: 999px; background: var(--card); font-weight: 700; }
body.look-porch button.chip:hover, body.look-porch .chip:hover span { border-color: var(--brand); background: var(--brand-tint); }
body.look-porch .chip input:checked + span { background: var(--strong); border-color: var(--strong); color: var(--on-strong); font-weight: 800; }
body.look-porch button.chip.quiet { border-style: dashed; color: var(--ink-2); }

body.look-porch .dropzone { border: 2px dashed var(--edge); border-radius: 20px; background: var(--card); }
body.look-porch .dropzone .icon { color: var(--brand); }
body.look-porch .dropzone.over { background: var(--brand-tint); border-color: var(--brand); }

/* A box to tick: a way to go after a research report. */
body.look-porch .pick,
body.look-porch .choice { border: 1.5px solid var(--line); border-radius: 14px; background: var(--card); }
body.look-porch .pick input, body.look-porch .choice input { accent-color: var(--brand); }
body.look-porch .pick:has(input:checked),
body.look-porch .choice:has(input:checked) { border-color: var(--brand); background: var(--brand-tint); }

/* ---------- Tiles, figures and marks used across the pages ---------- */

body.look-porch .tile { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--lift); }
body.look-porch .tile strong { font-family: var(--sans); font-size: 1.2rem; font-weight: 800; }
body.look-porch .tile:hover { border-color: var(--brand); }
body.look-porch .tile .icon { color: var(--brand); }
body.look-porch .tile.primary { background: var(--strong); border-color: var(--strong); color: var(--on-strong); }
body.look-porch .tile.primary .icon { color: var(--on-strong); }
body.look-porch .tile.primary span { color: var(--on-strong); }
body.look-porch .tile.primary:hover { background: var(--strong-hover); border-color: var(--strong-hover); color: var(--on-strong); }

body.look-porch .stat { border-radius: 14px; background: var(--brand-tint); }
body.look-porch .stat b, body.look-porch .number-tile .figure, body.look-porch .trial-days .day .v { font-family: var(--figures); font-weight: var(--figure-weight); }
body.look-porch .trial-days .day { border: 1.5px solid var(--line); border-radius: 12px; }
body.look-porch .trial-days .day.done { background: var(--brand-tint); border-color: var(--data); }
body.look-porch .trial-days .day.today { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--data); }
body.look-porch .lens { border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
body.look-porch .plain-list .icon { color: var(--brand); }
body.look-porch .photo-ask { border: 1px solid var(--line); border-radius: 14px; background: var(--gold-tint); color: var(--gold-ink); }
body.look-porch .photo-ask .icon { color: var(--gold); }
body.look-porch .sent-photo { border-radius: 14px; }
body.look-porch .urgency { border-radius: var(--radius); }
body.look-porch .urgency.ok { background: var(--gold-tint); color: var(--gold-ink); }
body.look-porch .urgency.warn { background: var(--brand-tint); color: var(--brand-ink); }
body.look-porch .urgency strong { font-family: var(--sans); font-size: 1.25rem; font-weight: 800; }
body.look-porch .overlay { background: var(--veil); }

/* ---------- A conversation with the guide ---------- */

/* The guide's words are the heart of the site, so they are set a little larger than the rest. */
body.look-porch .msg .avatar { width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 50%; background: var(--card); color: var(--ink); }
body.look-porch .msg .who { font-family: var(--sans); font-size: 0.95rem; font-weight: 800; letter-spacing: 0; text-transform: none; color: var(--brand-dark); }
body.look-porch .msg.guide .text { font-family: var(--sans); font-size: 1.2rem; font-weight: 600; line-height: 1.55; }
body.look-porch .msg.guide .text.plain { font-size: 1.05rem; }
body.look-porch .msg.you .bubble { border: 1px solid var(--line); border-radius: 20px 20px 6px 20px; background: var(--brand-tint); }
body.look-porch .msg.you .who { color: var(--ink-2); }
body.look-porch details.why p { border-left: 3px solid var(--line); }

/* While the guide is thinking (public/chat.js). It has to be plain to someone who has never
   used anything like this that her message arrived and an answer is on its way: a panel where
   the answer will appear, a bar that keeps moving, a running clock, the guide's mark turning,
   and the box she types in and the Send button both saying so. */
body.look-porch .thinking { display: flex; flex-direction: column; gap: 10px; max-width: 34rem; padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--brand-tint); }
body.look-porch .thinking-words { font-size: 1.15rem; font-weight: 800; color: var(--ink); }
body.look-porch .thinking-note { font-size: 0.95rem; line-height: 1.45; color: var(--ink-2); }
body.look-porch .thinking-time { margin-left: 6px; font-family: var(--sans); font-size: 0.9rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
body.look-porch .thinking-bar { position: relative; display: block; height: 10px; overflow: hidden; border-radius: 999px; background: var(--card); }
body.look-porch .thinking-bar span { position: absolute; top: 0; bottom: 0; left: 0; width: 34%; border-radius: 999px; background: var(--strong); animation: thinking-slide 1.7s ease-in-out infinite; }
body.look-porch .msg.guide.is-thinking .avatar .emblem { animation: thinking-turn 4s linear infinite; }
@keyframes thinking-slide { from { transform: translateX(-105%); } to { transform: translateX(300%); } }
@keyframes thinking-turn { to { transform: rotate(360deg); } }
/* The box she types in and the buttons, while an answer is on its way. */
body.look-porch #conversation.is-thinking textarea:disabled { background: var(--ground); }
body.look-porch #conversation.is-thinking #send { opacity: 1; background: var(--card); color: var(--ink-2); cursor: default; }
body.look-porch #conversation.is-thinking [data-recommend] { opacity: 0.5; cursor: default; }
/* A waiting screen for work done in the background: a report, a look-up, a plan (working() in
   src/render.js). The same moving bar and running clock as in a conversation, at the full
   width of the panel, with the real steps of the work under it where the site knows them. */
body.look-porch .working { display: flex; flex-direction: column; gap: 12px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--brand-tint); }
body.look-porch .working .thinking-bar { height: 12px; }
body.look-porch .working-words { font-size: 1.15rem; font-weight: 800; color: var(--ink); }
body.look-porch .working-words .thinking-time { font-size: 0.95rem; font-weight: 600; color: var(--ink-2); }
body.look-porch .working-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
body.look-porch .working-steps li { display: flex; align-items: center; gap: 8px; color: var(--ink-2); }
body.look-porch .working-steps i { flex: 0 0 auto; display: grid; place-items: center; width: 1.7em; height: 1.7em; border: 1.5px solid var(--edge); border-radius: 50%; background: var(--card); font-family: var(--sans); font-size: 0.8em; font-style: normal; font-weight: 800; }
body.look-porch .working-steps li.now { color: var(--ink); font-weight: 800; }
body.look-porch .working-steps li.now i { border-color: var(--data); box-shadow: 0 0 0 3px var(--card), 0 0 0 4px var(--data); animation: working-now 1.6s ease-in-out infinite; }
body.look-porch .working-steps li.done i { border-color: var(--data); background: var(--data); color: var(--card); }
@keyframes working-now { 50% { box-shadow: 0 0 0 3px var(--card), 0 0 0 7px var(--brand-tint); } }
@media (prefers-reduced-motion: reduce) {
  body.look-porch .working-steps li.now i { animation: none; }
}
@media (prefers-reduced-motion: reduce) {
  /* For someone who has asked for less movement, the clock and the changing words carry it. */
  body.look-porch .thinking-bar span { width: 100%; opacity: 0.45; animation: none; }
  body.look-porch .msg.guide.is-thinking .avatar .emblem { animation: none; }
}
body.look-porch .assessment .opening,
body.look-porch .plan .going-on { font-family: var(--sans); font-size: 1.15rem; font-weight: 600; line-height: 1.55; }
body.look-porch .plan .going-on { padding: 16px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--brand-tint); }

/* ---------- The receipt: what she is shown after she saves something ---------- */

/* A save has to be answered plainly and largely (receipt() in src/render.js). The owner pressed
   "Save today" and it did not feel as if anything had been entered. So the answer is a panel
   that cannot be missed: a mark that draws itself, what was kept, a scale of real marks with
   the one just added picked out, and what happens next. It moves once, as it arrives, and then
   it is still. A save that failed has its own colour and mark, and never looks like one that
   worked. */
body.look-porch .receipt { display: flex; align-items: flex-start; gap: 18px; padding: 22px 24px; border: 2px solid var(--data); border-radius: var(--radius); background: var(--card); scroll-margin-top: 16px; animation: receipt-in 0.45s ease-out both, receipt-glow 1.6s ease-out 0.2s both; }
body.look-porch .receipt-mark { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border: 2px solid var(--data); border-radius: 50%; background: var(--brand-tint); color: var(--data); }
body.look-porch .receipt-mark svg { width: 32px; height: 32px; }
body.look-porch .receipt-mark polyline { stroke-dasharray: 1; stroke-dashoffset: 1; animation: receipt-draw 0.5s ease-out 0.3s forwards; }
body.look-porch .receipt-body { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
body.look-porch .receipt-label { font-family: var(--sans); font-size: 0.95rem; font-weight: 800; color: var(--brand-dark); }
body.look-porch .receipt-title { margin-top: -8px; font-family: var(--display); font-size: 1.7rem; font-weight: 400; line-height: 1.2; color: var(--ink); }
body.look-porch .receipt-kept { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 0; }
body.look-porch .receipt-kept div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
body.look-porch .receipt-kept dt { font-family: var(--sans); font-size: 0.9rem; font-weight: 700; color: var(--ink-2); }
body.look-porch .receipt-kept dd { margin: 0; font-size: 1.1rem; font-weight: 800; overflow-wrap: anywhere; }
body.look-porch .receipt-count { display: flex; flex-direction: column; gap: 8px; }
body.look-porch .receipt-count p { font-weight: 700; }
body.look-porch .receipt-count .meter { max-width: 460px; }
/* The scale: one mark for each place. A filled mark is one that is there. The one with a ring
   round it is the one she has just added. */
body.look-porch .receipt-scale { display: flex; gap: 5px; max-width: 460px; padding: 4px 0; }
body.look-porch .receipt-scale i { flex: 1 1 0; height: 16px; border-radius: 999px; background: var(--track); }
body.look-porch .receipt-scale i.on { background: var(--data); }
body.look-porch .receipt-scale i.now { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--ink); animation: receipt-now 0.6s ease-out 0.7s both; }
body.look-porch .receipt-next { padding-top: 12px; border-top: 1px solid var(--line); line-height: 1.5; }
body.look-porch .receipt-next span { display: block; margin-bottom: 2px; font-family: var(--sans); font-size: 0.9rem; font-weight: 800; color: var(--ink-2); }
body.look-porch .receipt.problem { border-color: var(--danger); animation: receipt-in 0.45s ease-out both; }
body.look-porch .receipt.problem .receipt-mark { border-color: var(--danger); background: var(--danger-tint); color: var(--danger); }
body.look-porch .receipt.problem .receipt-label { color: var(--danger); }
@keyframes receipt-in { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes receipt-glow { from { box-shadow: 0 0 0 8px var(--brand-tint); } to { box-shadow: 0 0 0 0 transparent; } }
@keyframes receipt-draw { to { stroke-dashoffset: 0; } }
@keyframes receipt-now { from { transform: scaleY(2.2); } to { transform: none; } }
@media (max-width: 560px) {
  body.look-porch .receipt { gap: 12px; padding: 16px; }
  body.look-porch .receipt-mark { width: 42px; height: 42px; }
  body.look-porch .receipt-mark svg { width: 24px; height: 24px; }
  body.look-porch .receipt-title { font-size: 1.4rem; }
}
@media (prefers-reduced-motion: reduce) {
  body.look-porch .receipt, body.look-porch .receipt.problem, body.look-porch .receipt-scale i.now { animation: none; }
  body.look-porch .receipt-mark polyline { stroke-dashoffset: 0; animation: none; }
}

/* A button that has just been pressed says so at once, before the next page arrives
   (public/app.js). */
body.look-porch .btn.is-sending { opacity: 1; cursor: progress; }
body.look-porch .btn.is-sending::before { content: ''; flex: 0 0 auto; width: 0.9em; height: 0.9em; margin-right: 0.5em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: thinking-turn 0.8s linear infinite; }
body.look-porch .linkbtn.is-sending { opacity: 0.6; cursor: progress; }
@media (prefers-reduced-motion: reduce) {
  body.look-porch .btn.is-sending::before { animation: none; border-right-color: currentColor; opacity: 0.5; }
}

/* ---------- Numbered steps: a plan's path ---------- */

body.look-porch .path-mark { border: 2px solid var(--edge); background: var(--card); color: var(--ink); font-family: var(--sans); font-weight: 800; }
body.look-porch .path-step.done::before { background: var(--data); }
body.look-porch .path-step.done .path-mark { background: var(--data); border-color: var(--data); color: var(--white); }
body.look-porch .path-step.current .path-mark { background: var(--card); border-color: var(--ink); box-shadow: 0 0 0 4px var(--brand-tint); }
body.look-porch .path-step.current .path-body { border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
body.look-porch .plan-item .path-mark { background: var(--brand-tint); border-color: var(--data); }
body.look-porch .plan-item.picked .path-mark { background: var(--data); color: var(--white); }

/* ---------- The heading of every page ---------- */

/* Each page opens with its heading on the linen, and a thin rule under it. A page that opens
   with a panel (the screens that cannot wait) keeps its panel. */
body.look-porch main > section:first-child:not(.card):has(> h1) { padding: 6px 0 22px; border-bottom: 1px solid var(--line); }
body.look-porch main > section:first-child:not(.card):has(> h1) .lead { margin-top: 8px; }

/* ---------- Her home screen ---------- */

/* The top of the page: the greeting and the question on the left, and on the right the dog in a
   tall arch: her own photo once one is added, and a painting until then. */
body.look-porch .porch-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: 20px 44px;
  padding: 4px 0 26px;
  border-bottom: 1px solid var(--line);
}
body.look-porch .porch-hero .hello { font-family: var(--sans); font-size: 1.45rem; font-weight: 800; color: var(--ink); }
body.look-porch .porch-hero h1 { margin-top: 6px; font-size: 4.4rem; line-height: 1.02; }
body.look-porch .porch-hero .date { margin-top: 14px; color: var(--ink-2); font-weight: 600; }
/* A semicircle on a short wall: the radius across is half the width, and the height is three
   quarters of the width, so the radius down is two thirds of the height. */
body.look-porch .arch-wrap { justify-self: end; display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; max-width: 500px; }
body.look-porch .arch {
  width: 100%;
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 50% 50% 0 0 / 66.67% 66.67% 0 0;
  background: var(--brand-tint);
}
body.look-porch .arch img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }

/* The three cards under it, as in the picture: today's practice, the place to tell, and how
   much the guide knows. On a phone the place to tell comes first. */
body.look-porch .porch-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: stretch; }
body.look-porch .porch-row > * { min-width: 0; }
body.look-porch .porch-row .card { height: 100%; }
body.look-porch .porch-row textarea { min-height: 120px; }
body.look-porch .know { align-items: center; text-align: center; }
body.look-porch .know > .label:first-child { align-self: stretch; }
body.look-porch .known-ring { display: block; width: 100%; max-width: 190px; height: auto; }
body.look-porch .known-ring .track { stroke: var(--track); }
body.look-porch .known-ring .fill { stroke: var(--data); }
body.look-porch .known-ring .figure { font-family: var(--figures); font-size: 34px; font-weight: 800; fill: var(--ink); }
body.look-porch .known-ring .of { font-family: var(--figures); font-size: 15px; font-weight: 800; fill: var(--ink-2); }

/* The days of today's practice as round marks: a filled one is a day she told the guide about,
   and the one with a ring round it is today. */
body.look-porch .receipt-scale.dots { gap: 10px; padding: 6px 2px; }
body.look-porch .receipt-scale.dots i { flex: 0 0 auto; width: 26px; height: 26px; border: 2px solid var(--edge); border-radius: 50%; background: var(--card); }
body.look-porch .receipt-scale.dots i.on { border-color: var(--data); background: var(--data); }
body.look-porch .receipt-scale.dots i.now { border-color: var(--ink); box-shadow: none; animation: none; }

/* The parts of the page below: a heading in the soft serif, with a thin rule to the edge. */
body.look-porch .dash-title { display: flex; align-items: center; gap: 18px; margin-top: 10px; font-family: var(--display); font-size: 2rem; font-weight: 400; letter-spacing: 0; text-transform: none; }
body.look-porch .dash-title::after { content: ''; flex: 1 1 auto; height: 1px; background: var(--line-strong); }

/* Every figure in the rounded face, heavy, with lining numbers. */
body.look-porch .glance-tile b,
body.look-porch .glance-figure,
body.look-porch .gauge b,
body.look-porch .gauge-groups b,
body.look-porch .stat b { font-family: var(--figures); font-weight: var(--figure-weight); font-variant-numeric: lining-nums tabular-nums; letter-spacing: 0; color: var(--ink); }
body.look-porch .glance-tile { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--lift); }
body.look-porch .glance-tile:hover { border-color: var(--brand); }
body.look-porch .glance-tile b { font-size: 2rem; }
body.look-porch .glance-tile .words { font-size: 0.95rem; }
body.look-porch .glance-tile .label { padding-bottom: 8px; border-bottom: 1px solid var(--line); }
body.look-porch .glance.strip { gap: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--lift); }
body.look-porch .glance.strip .glance-tile { border: 0; border-left: 1px solid var(--line); border-radius: 0; box-shadow: none; }
body.look-porch .glance.strip .glance-tile:first-child { border-left: 0; }

/* How well the guide knows the dog, area by area, each with a bar. */
body.look-porch .gauge-groups { grid-template-columns: minmax(0, 1fr); gap: 8px; }
body.look-porch .gauge-groups div { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr) 3rem; align-items: center; gap: 12px; padding: 0; border-radius: 0; background: none; font-size: 0.95rem; font-weight: 700; }
body.look-porch .gauge-groups i { display: block; height: 10px; border-radius: 999px; background: linear-gradient(to right, var(--data) var(--pct, 0%), var(--track) var(--pct, 0%)); }
body.look-porch .gauge-groups b { font-weight: 800; text-align: right; }

/* The dog's picture as a ring (src/dogring.js): one mark for each thing worth knowing. */
body.look-porch .picture { display: grid; grid-template-columns: minmax(0, 230px) minmax(0, 1fr); align-items: center; gap: 12px 24px; }
body.look-porch .picture .gauge { display: block; }
body.look-porch .picture .gauge b { margin-right: 0.3em; font-size: inherit; }
body.look-porch .picture-ring { display: block; width: 100%; height: auto; }
body.look-porch .ring-track { stroke: var(--track); stroke-width: 9; }
body.look-porch .ring-fill { stroke: var(--data); stroke-width: 9; }
body.look-porch .ring-open { stroke: var(--card); stroke-width: 6; }
body.look-porch .ring-bar.hollow .ring-track { stroke: var(--line-strong); }
body.look-porch .ring-hit { fill: transparent; }
body.look-porch .ring-bar:hover .ring-track { stroke: var(--line-strong); }
body.look-porch .ring-bar:hover .ring-fill { stroke: var(--brand-dark); }
body.look-porch .ring-bar:focus-visible { outline: none; }
body.look-porch .ring-bar:focus-visible .ring-hit { stroke: var(--ink); stroke-width: 1.5; }
body.look-porch .ring-group { fill: none; stroke: var(--line-strong); stroke-width: 1.5; }
body.look-porch .ring-figure { font-family: var(--figures); font-size: 30px; font-weight: 800; fill: var(--ink); }
body.look-porch .ring-name { font-family: var(--figures); font-size: 14px; font-weight: 800; fill: var(--ink-2); }

body.look-porch .dash-side .btn { justify-content: center; }

@media (max-width: 1100px) {
  body.look-porch .porch-hero h1 { font-size: 3.6rem; }
  body.look-porch .porch-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.look-porch .porch-row > :last-child { grid-column: span 2; }
  body.look-porch .glance.strip .glance-tile:nth-child(odd) { border-left: 0; }
  body.look-porch .glance.strip .glance-tile:nth-child(n+3) { border-top: 1px solid var(--line); }
}

@media (max-width: 900px) {
  body.look-porch .porch-row { display: flex; flex-direction: column; gap: 20px; }
  body.look-porch .porch-row > #tell { order: -1; }
}

@media (max-width: 760px) {
  body.look-porch h1 { font-size: 2.3rem; }
  body.look-porch .porch-hero { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-bottom: 20px; }
  body.look-porch .porch-hero h1 { font-size: 2.6rem; }
  body.look-porch .porch-hero .hello { font-size: 1.2rem; }
  body.look-porch .arch-wrap { justify-self: center; max-width: 340px; }
  body.look-porch .dash-title { font-size: 1.6rem; }
  body.look-porch .picture { grid-template-columns: minmax(0, 1fr); }
  body.look-porch .picture-ring { max-width: 260px; margin: 0 auto; }
  body.look-porch .glance.strip .glance-tile { min-height: 0; }
  body.look-porch .glance-tile b { font-size: 1.5rem; }
  body.look-porch .site-header { padding: 10px 16px; }
  body.look-porch .site-header .emblem { width: 36px; height: 36px; }
  /* Her tabs at the foot of the screen, on a phone. */
  body.look-porch .tabbar { background: var(--card); border-top: 1px solid var(--line); box-shadow: var(--lift); }
  body.look-porch .tabbar a { color: var(--ink-2); font-weight: 700; }
  body.look-porch .tabbar a[aria-current="page"] { background: var(--highlight); color: var(--ink); font-weight: 800; }
}
