/* Laila's Caring Hands: the site's tokens and page CSS, shared by every page.
   Load after system.css, ui/cards.css, motion/motion.css and layout/layout.css.
   The :root block is exactly as start.mjs brand printed it: the new identity, a Betuwe cherry red on cream,
   blossom blush for the surface band, espresso for the ink (warm, high contrast for older eyes, and apart
   from the blue, magenta and sage of the other providers in Elst). */
:root {
  --p-bg: #faf5ef; --p-surface: #f4e7e0; --p-ink: #2e1f1c; --p-muted: #6f625e;
  --p-accent: #8a2e3b; --p-accent-ink: #faf5ef; --p-action: #8a2e3b; --p-action-ink: #faf5ef;
  --p-inv-bg: #2e1f1c; --p-inv-surface: #3a2b28; --p-inv-ink: #faf5ef; --p-inv-muted: #a79c97;
  --p-inv-accent: #faf5ef; --p-inv-accent-ink: #2e1f1c; --p-inv-action: #faf5ef; --p-inv-action-ink: #2e1f1c;
  --font-display: "Newsreader", Georgia, serif;
  --font-text: "Hanken Grotesk", system-ui, sans-serif;
  --display-weight: 400;
  --display-tracking: -0.018em;
  --display-tracking-xl: -0.025em;
  --ly-scale: 1.06;
  /* older readers: body text at 18px (senior-friendly web guidance), the lead a step above it */
  --t-body: 18px;
}
@media (min-width: 640px) { :root { --t-lead: 21px; } }

/* the new logo: the cherry blossom mark beside the name in the display face */
.nav__logo .logo-mark { display: block; height: 32px; width: 32px; flex: none; }
.nav--split .nav__logo .logo-mark { height: 38px; width: 38px; }
.closing__links .nav__logo .logo-mark { height: 38px; width: 38px; }

/* the split hero's three facts sit on the photograph's bottom line (wide desktops only: at 1024 the column is full) */
@media (min-width: 1280px) {
  .hero--split .hero__text { display: flex; flex-direction: column; }
  .hero--split .hero__text > .hero-facts { margin-top: auto; padding-top: var(--s-6); }
}
@media (max-width: 1279px) { .hero--split .hero-facts { display: none; } }

/* a phone number never breaks across lines */
.nowrap { white-space: nowrap; }

/* a list row's second line */
.rows .rows__name small { display: block; font-weight: 400; color: var(--muted); font-size: var(--t-body); line-height: 1.5; margin-top: var(--s-1); }

/* a section's one photograph beside its words, as tall as the text column allows */
.side-photo { position: relative; margin: 0; overflow: hidden; border-radius: var(--r-lg); background: var(--surface); height: min(600px, var(--ly-fit)); }
.side-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--ly-pos, 50% 50%); }

/* picture-develops (moments.md): the section's one photograph on the split's right column */
.develop { margin: 0; border-radius: var(--r-lg); overflow: hidden; height: min(600px, var(--ly-fit)); }
.develop > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--ly-pos, 50% 50%); }

/* the contact block beside the form */
.contact-lines { display: grid; gap: var(--s-3); margin-top: var(--s-6); }
.contact-lines a { font: var(--display-weight) var(--t-h3)/1.2 var(--font-display); letter-spacing: var(--display-tracking); color: var(--ink); text-decoration: none; }
.contact-lines .t-label { color: var(--muted); }
.contact-lines a { display: inline-flex; align-items: center; min-height: 44px; }
.form-panel { background: var(--surface); border-radius: var(--r-lg); padding: var(--s-7); }
.contact-photo { margin: var(--s-6) 0 0; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 9; }
.contact-photo > img { display: block; width: 100%; height: 100%; object-fit: cover; }
#kennismaking .form-panel { background: var(--p-bg); }

/* WhatsApp: the real logo beside the line on the contact page, in the footer's socials row, and as a square
   button beside the main action in the phone bar */
.contact-lines a.wa-line { gap: var(--s-3); }
.contact-lines a.wa-line > img { width: 28px; height: 28px; flex: none; }
footer .footer__legal .socials a { display: inline-grid; place-items: center; justify-content: center; padding: 0; }
footer .footer__legal .socials a > img { display: block; width: 20px; height: 20px; margin: 0; }
@media (max-width: 639px) {
  .actionbar.actionbar--wa { grid-auto-flow: row; grid-template-columns: minmax(0, 1fr) 48px; }
  .actionbar .btn.btn--wa { width: 48px; padding: 0; display: inline-grid; place-items: center; }
  .actionbar .btn.btn--wa > img { width: 24px; height: 24px; }
}

/* under 1024 a split stacks, words first: the picture follows under them */
@media (max-width: 1023px) {
  .side-photo, .develop { height: auto; aspect-ratio: 4 / 3; margin-top: var(--s-7); }
}

/* the tablet held upright (640 to 1023): a stacked split that runs past one screen takes two there and its
   photograph grows to fill them (layout-v4.md); one that nearly fits runs its photograph 16:9; the pinned
   steps' still rows keep their pictures short so the three fit one screen; the close's one large button
   stays wider than the nav's so it reads as the close, not a second button style */
@media (min-width: 640px) and (max-width: 1023px) {
  .tablet-2 { --h: 2; }
  .tablet-2 .side-photo { aspect-ratio: 4 / 5; }
  .develop, .side-photo:not(.tablet-2 *) { aspect-ratio: 16 / 9; margin-top: var(--s-6); }
  main [data-moment="pinned-chapters"]:not(.is-live) .mo-pc__visual > img { max-height: 18svh; }
  footer .closing__cta.close--type > a.btn--xl:not(.btn--wide) { width: 100%; }
}

/* a phone: the pinned steps stand as still rows, which take two of its screens; a two-screen split's photograph
   grows to fill its second screen; the close and footer take two */
@media (max-width: 639px) {
  .develop { aspect-ratio: 3 / 4; }
  .form-panel { padding: var(--s-5); }
  .contact-lines a { font-size: 22px; }
}

/* ------------------------------------------------------------------ review fixes (older readers)
   the small print the 18px promise left behind: nav, header button, form labels, kickers, footer links, all at
   17px or more; footer links tall enough to tap (44px); anchors and focused fields land below the sticky nav */
html { scroll-padding-top: calc(var(--nav-h, 72px) + 16px); }
.nav__link, .nav__actions .btn { font-size: 17px; }
.form .field label { font-size: 17px; }
.hero__kicker, .hero-facts dt { font-size: 16px; }
.footer__col ul { gap: 0; }
.footer__col a { display: inline-block; font-size: 17px; padding-block: 10px; touch-action: manipulation; }
.footer__legal { font-size: 15px; }
a[href^="tel:"] { touch-action: manipulation; }

/* the hero's three facts on tablets too (under the buttons, not pushed to the photograph's foot) */
@media (min-width: 640px) and (max-width: 1279px) {
  .hero--split .hero-facts { display: grid; margin-top: var(--s-6); }
}

/* a phone: sections are as tall as what they hold, with no blank screen after them */
@media (max-width: 639px) {
  html body main > section:not(.hero), html body main > section[data-moment]:not(.hero) { min-height: 0 !important; }
  html body footer.closing, html body footer .closing__cta { min-height: 0 !important; }
  html body footer.closing > .wrap { grid-template-rows: auto auto !important; row-gap: var(--s-8) !important; align-content: start; }
}

/* the doorway: each page's hero photograph and the home page's tea photograph sit in a round-topped arch,
   a quiet nod to Moroccan doorways and to the front door every home visit starts at.
   9999px top corners resolve to an exact half circle of the frame's width; the bottom stays square, like a door.
   On phones the frame is wide and short, so the arch is a lower ellipse that keeps most of the photograph. */
.hero--split .hero__media, .side-photo { border-radius: 9999px 9999px 0 0; }
@media (max-width: 639px) {
  .hero--split .hero__media, .side-photo { border-radius: 50% 50% var(--r-lg) var(--r-lg) / 88px 88px var(--r-lg) var(--r-lg); }
}

/* the photo credits page: a quiet list inside the page's edges, the heading at section size, not the hero size */
.credits-list { padding-block: var(--s-9, 96px) var(--s-8, 72px); }
.credits-list h1 { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); font-size: clamp(36px, 5vw, 56px); line-height: 1.1; margin: 0 0 var(--s-4); }
.credits-list__lead { color: var(--muted); max-width: 60ch; margin: 0 0 var(--s-6); }
.credits-list ul { list-style: none; margin: 0; padding: 0; max-width: 720px; border-top: 1px solid var(--line); }
.credits-list li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.credits-list a { color: inherit; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.credits-list a:hover { text-decoration-color: currentColor; }
