/* GENERATED by packages/tokens/scripts/build.js — do not edit.
 * Source: docs/design/handoff/tokens/tokens.json (v1.0.0) + packages/tokens/overlay.json.
 * Light is the default. Dark applies under data-theme="dark", or under the system preference when
 * no explicit theme is set (data-theme="light" wins over the system preference).
 *
 * data-theme is not tied to the root: a section of a page may carry it and take the dark palette with
 * it. The public profile's Ink style is always dark, whatever the visitor's system says.
 */
:root {
  color-scheme: light;
  --color-bg-default: #FAFAF8;
  --color-surface-card: #FFFFFF;
  --color-surface-elevated: #FFFFFF;
  --color-surface-paper: #F6F3EC;
  --color-text-primary: #191918;
  --color-text-secondary: #70706C;
  --color-text-placeholder: #9A9892;
  --color-border-subtle: #E8E7E2;
  --color-border-strong: #DCDAD4;
  --color-brand-primary: #245C4F;
  --color-brand-pressed: #1D4C41;
  --color-brand-soft: #E9F2EE;
  --color-brand-onPrimary: #FFFFFF;
  --color-accent-warm: #D99A3E;
  --color-accent-soft: #FDF6EB;
  --color-accent-ink: #7A5418;
  --color-status-success: #39865F;
  --color-status-successText: #2E7050;
  --color-status-error: #C85C55;
  --color-status-errorText: #B04B45;
  --privacy-public-bg: #E9F2EE;
  --privacy-public-border: #BBD5CB;
  --privacy-public-ink: #245C4F;
  --privacy-private-bg: #F1EFE9;
  --privacy-private-border: #DCDAD4;
  --privacy-private-ink: #4A4A46;
  --privacy-shared-bg: #FDF6EB;
  --privacy-shared-border: #EBD3A8;
  --privacy-shared-ink: #7A5418;
  --focus-ring-color: #245C4F;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --radius-control: 10px;
  --radius-card: 14px;
  --radius-sheet: 18px;
  --radius-pill: 999px;
  --radius-androidCard: 16px;
  --size-target-ios: 44px;
  --size-target-android: 48px;
  --size-button: 52px;
  --size-row: 56px;
  --size-icon: 24px;
  --size-iconStroke: 1.75px;
  --type-title-page-size: 30px;
  --type-title-page-line-height: 34px;
  --type-title-page-weight: 600;
  --type-title-page-tracking: -0.02em;
  --type-title-section-size: 19px;
  --type-title-section-line-height: 24px;
  --type-title-section-weight: 600;
  --type-title-section-tracking: -0.01em;
  --type-body-size: 16px;
  --type-body-line-height: 23px;
  --type-body-weight: 400;
  --type-bodyStrong-size: 16px;
  --type-bodyStrong-line-height: 23px;
  --type-bodyStrong-weight: 500;
  --type-support-size: 14px;
  --type-support-line-height: 21px;
  --type-support-weight: 400;
  --type-meta-size: 12.5px;
  --type-meta-line-height: 17px;
  --type-meta-weight: 500;
  --type-meta-tracking: 0.04em;
  --type-meta-transform: uppercase;
  --type-journal-title-size: 20px;
  --type-journal-title-line-height: 26px;
  --type-journal-title-weight: 600;
  --type-journal-body-size: 17px;
  --type-journal-body-line-height: 31px;
  --type-journal-body-weight: 400;
  --type-label-size: 12.5px;
  --type-label-line-height: 16px;
  --type-label-weight: 700;
  --type-label-tracking: 0.04em;
  --type-label-transform: uppercase;
  --type-serif-quote-size: 17px;
  --type-serif-quote-line-height: 25px;
  --type-serif-quote-weight: 400;
  --type-serif-prompt-size: 25px;
  --type-serif-prompt-line-height: 32px;
  --type-serif-prompt-weight: 500;
  --type-serif-promptQuiet-size: 19px;
  --type-serif-promptQuiet-line-height: 26px;
  --type-serif-promptQuiet-weight: 400;
  --font-serif: ui-serif, Georgia, serif;
  --elevation-flat: none;
  --elevation-raised: 0 2px 8px rgba(25,25,24,.08);
  --elevation-sheet: 0 8px 28px rgba(25,25,24,.14);
  --elevation-dialog: 0 12px 40px rgba(25,25,24,.22);
  --motion-sheet-in: 320ms;
  --motion-sheet-out: 240ms;
  --motion-check: 180ms;
  --motion-tab: 160ms;
  --motion-toast-in: 220ms;
  --motion-toast-dwell: 5000ms;
  --motion-toast-out: 180ms;
  --motion-page: 280ms;
  --motion-skeleton: 1400ms;
  --easing-sheet-in: cubic-bezier(.32,.72,0,1);
  --easing-sheet-out: cubic-bezier(.4,0,1,1);
  --focus-ring-width: 2px;
  --focus-ring-offset: 2px;
}

[data-theme='dark'] {
  color-scheme: dark;
  --color-bg-default: #111311;
  --color-surface-card: #191C19;
  --color-surface-elevated: #202420;
  --color-surface-paper: #161714;
  --color-text-primary: #F5F5F0;
  --color-text-secondary: #A7AAA4;
  --color-text-placeholder: #5A5E58;
  --color-border-subtle: #30352F;
  --color-border-strong: #3E443D;
  --color-brand-primary: #74B8A0;
  --color-brand-pressed: #5FA68E;
  --color-brand-soft: #1B2C26;
  --color-brand-onPrimary: #111311;
  --color-accent-warm: #E3AD60;
  --color-accent-soft: #2A2218;
  --color-accent-ink: #E3AD60;
  --color-status-success: #6FBF90;
  --color-status-error: #E98D85;
  --color-status-successText: #6FBF90;
  --color-status-errorText: #E98D85;
  --privacy-public-bg: #1B2C26;
  --privacy-public-border: #2E4A40;
  --privacy-public-ink: #74B8A0;
  --privacy-private-bg: #1C1B18;
  --privacy-private-border: #33312B;
  --privacy-private-ink: #A7AAA4;
  --privacy-shared-bg: #2A2218;
  --privacy-shared-border: #4A3B22;
  --privacy-shared-ink: #E3AD60;
  --focus-ring-color: #74B8A0;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;
    --color-bg-default: #111311;
    --color-surface-card: #191C19;
    --color-surface-elevated: #202420;
    --color-surface-paper: #161714;
    --color-text-primary: #F5F5F0;
    --color-text-secondary: #A7AAA4;
    --color-text-placeholder: #5A5E58;
    --color-border-subtle: #30352F;
    --color-border-strong: #3E443D;
    --color-brand-primary: #74B8A0;
    --color-brand-pressed: #5FA68E;
    --color-brand-soft: #1B2C26;
    --color-brand-onPrimary: #111311;
    --color-accent-warm: #E3AD60;
    --color-accent-soft: #2A2218;
    --color-accent-ink: #E3AD60;
    --color-status-success: #6FBF90;
    --color-status-error: #E98D85;
    --color-status-successText: #6FBF90;
    --color-status-errorText: #E98D85;
    --privacy-public-bg: #1B2C26;
    --privacy-public-border: #2E4A40;
    --privacy-public-ink: #74B8A0;
    --privacy-private-bg: #1C1B18;
    --privacy-private-border: #33312B;
    --privacy-private-ink: #A7AAA4;
    --privacy-shared-bg: #2A2218;
    --privacy-shared-border: #4A3B22;
    --privacy-shared-ink: #E3AD60;
    --focus-ring-color: #74B8A0;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --motion-sheet-in: 120ms;
    --motion-sheet-out: 120ms;
    --motion-check: 0ms;
    --motion-tab: 0ms;
    --motion-page: 120ms;
    --motion-skeleton: 0ms;
  }
}

/* Source Serif 4 and Source Sans 3 (SIL Open Font License; public/assets/fonts/LICENSE-*), as daysli.com served them on
 * 2026-10-14 (scripts/vendor-fonts.mjs). */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/source-sans-3-3b486b3bad.woff2) format('woff2');
  unicode-range: U+460-52F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/source-sans-3-ff707ba947.woff2) format('woff2');
  unicode-range: U+301, U+400-45F, U+490-491, U+4B0-4B1, U+2116;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/source-sans-3-1797482db5.woff2) format('woff2');
  unicode-range: U+1F??;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/source-sans-3-19f0cf6ed7.woff2) format('woff2');
  unicode-range: U+370-377, U+37A-37F, U+384-38A, U+38C, U+38E-3A1, U+3A3-3FF;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/source-sans-3-c5df199160.woff2) format('woff2');
  unicode-range:
    U+102-103, U+110-111, U+128-129, U+168-169, U+1A0-1A1, U+1AF-1B0, U+300-301, U+303-304,
    U+308-309, U+323, U+329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/source-sans-3-5d0f1b280d.woff2) format('woff2');
  unicode-range:
    U+100-2BA, U+2BD-2C5, U+2C7-2CC, U+2CE-2D7, U+2DD-2FF, U+304, U+308, U+329, 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: 'Source Sans 3';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/source-sans-3-770a5bd209.woff2) format('woff2');
  unicode-range:
    U+??, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, U+2000-206F,
    U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Sans 3 Fallback';
  src: local(Arial);
  ascent-override: 109.21%;
  descent-override: 42.66%;
  line-gap-override: 0%;
  size-adjust: 93.76%;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/source-serif-4-4d72739b0e.woff2) format('woff2');
  unicode-range: U+460-52F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/source-serif-4-7683b72ed3.woff2) format('woff2');
  unicode-range: U+301, U+400-45F, U+490-491, U+4B0-4B1, U+2116;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/source-serif-4-303d60869f.woff2) format('woff2');
  unicode-range: U+370-377, U+37A-37F, U+384-38A, U+38C, U+38E-3A1, U+3A3-3FF;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/source-serif-4-752875b4c3.woff2) format('woff2');
  unicode-range:
    U+102-103, U+110-111, U+128-129, U+168-169, U+1A0-1A1, U+1AF-1B0, U+300-301, U+303-304,
    U+308-309, U+323, U+329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/source-serif-4-231f594ad8.woff2) format('woff2');
  unicode-range:
    U+100-2BA, U+2BD-2C5, U+2C7-2CC, U+2CE-2D7, U+2DD-2FF, U+304, U+308, U+329, 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: 'Source Serif 4';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/source-serif-4-8e38e3fbd7.woff2) format('woff2');
  unicode-range:
    U+??, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, U+2000-206F,
    U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/source-serif-4-4d72739b0e.woff2) format('woff2');
  unicode-range: U+460-52F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/source-serif-4-7683b72ed3.woff2) format('woff2');
  unicode-range: U+301, U+400-45F, U+490-491, U+4B0-4B1, U+2116;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/source-serif-4-303d60869f.woff2) format('woff2');
  unicode-range: U+370-377, U+37A-37F, U+384-38A, U+38C, U+38E-3A1, U+3A3-3FF;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/source-serif-4-752875b4c3.woff2) format('woff2');
  unicode-range:
    U+102-103, U+110-111, U+128-129, U+168-169, U+1A0-1A1, U+1AF-1B0, U+300-301, U+303-304,
    U+308-309, U+323, U+329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/source-serif-4-231f594ad8.woff2) format('woff2');
  unicode-range:
    U+100-2BA, U+2BD-2C5, U+2C7-2CC, U+2CE-2D7, U+2DD-2FF, U+304, U+308, U+329, 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: 'Source Serif 4';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/source-serif-4-8e38e3fbd7.woff2) format('woff2');
  unicode-range:
    U+??, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, U+2000-206F,
    U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Serif 4 Fallback';
  src: local(Times New Roman);
  ascent-override: 87.87%;
  descent-override: 28.41%;
  line-gap-override: 0%;
  size-adjust: 117.91%;
}

/* Every value is a token from @daysli/tokens/css; nothing here is typed in by hand. */

html,
body {
  margin: 0;
}

body {
  min-height: 100dvh;
  background: var(--color-bg-default);
  color: var(--color-text-primary);
  /* The UI face is the platform's system font (design.md: SF Pro / Roboto / Inter). */
  font-family:
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    Inter,
    sans-serif;
  font-size: var(--type-body-size);
  line-height: var(--type-body-line-height);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-brand-primary);
}

:focus-visible {
  outline: var(--focus-ring-width) solid var(--focus-ring-color);
  outline-offset: var(--focus-ring-offset);
}

/* ui.css */
/* The public pages' one stylesheet. Every colour, space, radius and type value is a token from
   @daysli/tokens/css (design.md, Stage 2). Under 900px one column; from 900px two columns where a
   page asks for it (screens.md "Adaptation"). */

.u-page {
  box-sizing: border-box;
  width: 100%;
  max-width: 40rem;
  min-height: 100dvh;
  margin: 0 auto;
  padding: var(--space-4) var(--space-4) var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

@media (min-width: 900px) {
  .u-wide {
    max-width: 64rem;
  }

  .u-columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--space-8);
    align-items: start;
  }
}

/* Header: the page's address in meta type, and a back link when the page has a parent. */
.u-header {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.u-address {
  margin: 0;
  font-size: var(--type-support-size);
  line-height: var(--type-support-line-height);
  color: var(--color-text-secondary);
  overflow-wrap: anywhere;
}

.u-back {
  display: inline-flex;
  align-items: center;
  min-height: var(--size-target-ios);
  gap: var(--space-2);
  color: var(--color-text-primary);
  text-decoration: none;
  font-weight: var(--type-title-section-weight);
}

.u-back:hover {
  text-decoration: underline;
}

.u-main {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.u-footer {
  margin-top: auto;
  padding-top: var(--space-6);
  display: flex;
  justify-content: center;
}

.u-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--size-target-ios);
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: var(--type-support-size);
  line-height: var(--type-support-line-height);
}

.u-brandMark {
  display: block;
  width: var(--size-icon);
  height: var(--size-icon);
}

/* Type */
.u-h1 {
  margin: 0;
  font-size: var(--type-title-page-size);
  line-height: var(--type-title-page-line-height);
  font-weight: var(--type-title-page-weight);
  letter-spacing: var(--type-title-page-tracking);
  overflow-wrap: anywhere;
}

.u-h2 {
  margin: 0;
  font-size: var(--type-title-section-size);
  line-height: var(--type-title-section-line-height);
  font-weight: var(--type-title-section-weight);
  letter-spacing: var(--type-title-section-tracking);
  overflow-wrap: anywhere;
}

.u-body {
  margin: 0;
  overflow-wrap: anywhere;
}

.u-support {
  margin: 0;
  font-size: var(--type-support-size);
  line-height: var(--type-support-line-height);
  color: var(--color-text-secondary);
}

.u-meta {
  margin: 0;
  font-size: var(--type-meta-size);
  line-height: var(--type-meta-line-height);
  font-weight: var(--type-meta-weight);
  letter-spacing: var(--type-meta-tracking);
  text-transform: var(--type-meta-transform);
  color: var(--color-text-secondary);
}

/*
 * V1 · 07: what somebody wrote, in the face the product writes in.
 *
 * The bio on a profile and the owner's note on a status page are theirs; everything around them is
 * the app arranging things. The family is a token, the size is the `serif.quote` role.
 */
.u-serif {
  font-family: var(--font-serif);
  font-size: var(--type-serif-quote-size);
  line-height: var(--type-serif-quote-line-height);
  font-weight: var(--type-serif-quote-weight);
  margin: 0;
  overflow-wrap: anywhere;
}

/* V1 · 07: "Available for appointments" is a dot plus words, not words alone. */
.u-availability {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.u-availability::before {
  content: '';
  width: var(--space-2);
  height: var(--space-2);
  border-radius: var(--radius-pill);
  background: var(--color-status-success);
  flex: none;
}

/*
 * Somebody's own words, quoted (V1 · 07: "the owner's note in serif").
 *
 * Every `.quote` on these pages is writing — the owner's note when they decline, and the requester's
 * message echoed back on the review step and the status page. The product's rule is that writing is
 * serif and arranging is sans, so the class carries the face rather than each use remembering to.
 */
.u-quote {
  margin: 0;
  padding-left: var(--space-3);
  border-left: 2px solid var(--color-border-strong);
  overflow-wrap: anywhere;
  font-family: var(--font-serif);
  font-size: var(--type-serif-quote-size);
  line-height: var(--type-serif-quote-line-height);
  font-weight: var(--type-serif-quote-weight);
}

.u-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.u-stackTight {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.u-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-3);
}

/* Cards and rows */
.u-card {
  box-sizing: border-box;
  padding: var(--space-4);
  background: var(--color-surface-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-card);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.u-soft {
  background: var(--color-brand-soft);
  border-color: var(--color-brand-soft);
  color: var(--color-text-primary);
}

/* accessibility.md: on a brand.soft ground all text uses text.primary (secondary is 4.36:1). */
.u-soft .u-support,
.u-soft .u-meta,
.u-heroSplit .u-support,
.u-heroSplit .u-meta {
  color: var(--color-text-primary);
}

.u-person {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.u-avatar {
  flex: none;
  width: var(--size-row);
  height: var(--size-row);
  border-radius: var(--radius-pill);
  background: var(--color-brand-soft);
  color: var(--color-brand-primary);
  display: grid;
  place-items: center;
  font-weight: var(--type-title-section-weight);
  overflow: hidden;
}

.u-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.u-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--color-border-subtle);
}

.u-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: var(--size-row);
  padding: 0;
  border-bottom: 1px solid var(--color-border-subtle);
  color: inherit;
  text-decoration: none;
}

a.u-row:hover .u-rowTitle {
  text-decoration: underline;
}

.u-rowTitle {
  flex: 1;
  overflow-wrap: anywhere;
}

.u-rowValue {
  color: var(--color-text-secondary);
  text-align: right;
  flex: none;
}

.u-chevron {
  color: var(--color-text-secondary);
  flex: none;
}

/* Definition rows on review and status pages */
.u-facts {
  margin: 0;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: var(--space-2) var(--space-4);
}

.u-facts dt {
  color: var(--color-text-secondary);
}

.u-facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}

/* Buttons: 52 tall primaries, 44 minimum for everything (components.md) */
.u-button {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: var(--size-button);
  padding: var(--space-2) var(--space-5);
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  font: inherit;
  font-weight: var(--type-title-section-weight);
  text-decoration: none;
  cursor: pointer;
  text-align: center;
}

.u-button:disabled {
  opacity: 0.5;
  cursor: default;
}

.u-primary {
  background: var(--color-brand-primary);
  color: var(--color-bg-default);
}

.u-primary:hover:not(:disabled) {
  background: var(--color-brand-pressed);
}

.u-secondary {
  background: transparent;
  color: var(--color-text-primary);
  border-color: var(--color-border-strong);
}

.u-secondary:hover:not(:disabled) {
  background: var(--color-surface-card);
}

.u-quiet {
  background: transparent;
  color: var(--color-brand-primary);
  min-height: var(--size-target-ios);
  padding-left: var(--space-2);
  padding-right: var(--space-2);
}

.u-quiet:hover:not(:disabled) {
  text-decoration: underline;
}

/* components.md: destructive fills with status.errorText so its label holds 5.33:1. */
.u-destructive {
  background: var(--color-status-errorText);
  color: var(--color-bg-default);
}

.u-full {
  width: 100%;
}

.u-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

/* Chips: a radio or link that reads as a pill. The checked one carries a fill and weight. */
.u-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.u-chip {
  position: relative;
  display: inline-flex;
}

.u-chip input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}

.u-chip label,
.u-chipLink {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--size-target-ios);
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-pill);
  background: var(--color-surface-card);
  color: var(--color-text-primary);
  text-decoration: none;
  cursor: pointer;
}

.u-chip input:checked + label,
.u-chipCurrent {
  background: var(--color-brand-primary);
  border-color: var(--color-brand-primary);
  color: var(--color-bg-default);
  font-weight: var(--type-title-section-weight);
}

.u-chip input:focus-visible + label {
  outline: var(--focus-ring-width) solid var(--focus-ring-color);
  outline-offset: var(--focus-ring-offset);
}

.u-slots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.u-slots .u-chip,
.u-slots .u-chip label {
  width: 100%;
}

.u-dayStrip {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  padding-bottom: var(--space-1);
  margin: 0;
  list-style: none;
  padding-left: 0;
}

.u-dayStrip .u-chipLink {
  white-space: nowrap;
}

/* Fields */
.u-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.u-fieldset legend {
  padding: 0;
  margin-bottom: var(--space-1);
}

.u-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.u-label {
  font-weight: var(--type-title-section-weight);
}

.u-optional {
  color: var(--color-text-secondary);
  font-weight: var(--type-body-weight);
}

.u-input,
.u-select {
  box-sizing: border-box;
  width: 100%;
  min-height: var(--size-button);
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-control);
  background: var(--color-surface-card);
  color: var(--color-text-primary);
  font: inherit;
}

.u-input::placeholder {
  color: var(--color-text-placeholder);
}

.u-textarea {
  min-height: calc(var(--size-button) * 2);
  resize: vertical;
}

.u-inputError {
  border-color: var(--color-status-error);
}

.u-error {
  margin: 0;
  color: var(--color-status-error);
  font-size: var(--type-support-size);
  line-height: var(--type-support-line-height);
}

/*
 * V1 · 07: the "Save this link." card on the sent page is a **warning**, not a soft aside.
 *
 * Somebody who gave no email has one way back to their request and this is it, so the card wears the
 * amber the rest of the product uses for "this needs you" rather than the quiet grey of an aside.
 */
.u-warning {
  border-color: var(--color-accent-warm);
  background: var(--color-accent-soft);
  color: var(--color-accent-ink);
}

.u-warning .u-support,
.u-warning .u-body {
  color: var(--color-accent-ink);
}

.u-notice {
  margin: 0;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-control);
  background: var(--color-accent-soft);
  color: var(--color-accent-ink);
}

/* The honeypot field: off-screen for people, present for scripts (api.md §5.3). */
.u-hidden {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.u-srOnly {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.u-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.u-details summary {
  cursor: pointer;
  color: var(--color-brand-primary);
  min-height: var(--size-target-ios);
  display: flex;
  align-items: center;
  list-style: none;
}

.u-details summary::-webkit-details-marker {
  display: none;
}

.u-challenge {
  min-height: var(--size-target-ios);
}

/* The owner column beside the picker on wide screens; the back link covers it on narrow ones. */
.u-aside {
  display: none;
}

@media (min-width: 900px) {
  .u-aside {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
  }
}

.u-check {
  color: var(--color-brand-primary);
  flex: none;
}

/* The profile, continued from the card (design of 30 September 2026) --------------------------
   One page, one order: who they are, Stay in touch, Work, Elsewhere. The owner's card style
   changes the header and the palette and nothing else; every action below is the one that was
   already there. Ink is always dark, so it carries data-theme rather than following the visitor. */

.u-dark {
  background: var(--color-bg-default);
  color: var(--color-text-primary);
}

/* Cover: the owner's image, or the plain dark band when there is none. */
.u-heroCover {
  position: relative;
  box-sizing: border-box;
  min-height: calc(var(--size-row) * 4);
  display: flex;
  align-items: flex-end;
  padding: var(--space-6);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--color-surface-card);
}

.u-heroImage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* The wash is what makes any photograph safe to put white type on. */
.u-heroWash {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 25%,
    color-mix(in srgb, var(--color-bg-default) 55%, transparent) 60%,
    color-mix(in srgb, var(--color-bg-default) 92%, transparent) 100%
  );
}

.u-heroBody {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  width: 100%;
}

.u-heroSplit {
  box-sizing: border-box;
  padding: var(--space-6);
  border-radius: var(--radius-card);
  background: var(--color-brand-soft);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.u-heroInk {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.u-avatarLarge {
  width: calc(var(--size-row) * 1.5);
  height: calc(var(--size-row) * 1.5);
  font-size: var(--type-title-page-size);
}

/*
 * The white edge the designs put round a photograph that sits on an image.
 *
 * `text.primary` rather than `surface.card`: this sits inside the cover band, which carries the dark
 * palette whatever the visitor's system says, and there the card surface is nearly black.
 */
.u-ringed {
  box-shadow: 0 0 0 3px var(--color-text-primary);
}

.u-serifName {
  font-family: var(--font-serif);
  font-weight: var(--type-serif-prompt-weight);
}

.u-rule {
  width: var(--space-8);
  height: 2px;
  background: var(--color-accent-warm);
  border-radius: var(--radius-pill);
}

.u-ruleBrand {
  background: var(--color-brand-primary);
}

/* Stay in touch: the existing actions, under a human heading. */
.u-panel {
  box-sizing: border-box;
  padding: var(--space-5);
  border-radius: var(--radius-sheet);
  background: var(--color-surface-card);
  box-shadow: inset 0 0 0 1px var(--color-border-subtle);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.u-panelTitle {
  margin: 0;
  font-family: var(--font-serif);
  font-size: var(--type-serif-prompt-size);
  line-height: var(--type-serif-prompt-line-height);
  font-weight: var(--type-serif-prompt-weight);
  overflow-wrap: anywhere;
}

/* Work: the card's own businesses, and only when the owner has put them on the page. */
.u-tile {
  flex: none;
  width: var(--size-target-ios);
  height: var(--size-target-ios);
  border-radius: var(--radius-control);
  background: var(--color-brand-soft);
  color: var(--color-brand-primary);
  display: grid;
  place-items: center;
  font-weight: var(--type-title-section-weight);
}

.u-workRow {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: var(--size-row);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border-subtle);
}

.u-workLink {
  color: var(--color-brand-primary);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.u-workLink:hover {
  text-decoration: underline;
}

/*
 * Elsewhere, as chips. The WeChat row still copies rather than links. Their own names: these were once
 * `.chip`/`.chips`, the booking picker's classes in this same file, which gave every time and day in the
 * picker a second pill and pushed it wider than a phone (found 2026-10-06).
 */
.u-linkChips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  /* A list of chips, not a bulleted list: no markers, no indent. */
  list-style: none;
  margin: 0;
  padding: 0;
}

.u-linkChip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--size-target-ios);
  padding: 0 var(--space-4);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-pill);
  color: inherit;
  text-decoration: none;
  overflow-wrap: anywhere;
}

a.u-linkChip:hover {
  text-decoration: underline;
}

/* One column on a phone, in the order the design reads: bio, Stay in touch, Work, Elsewhere. */
.u-profileColumns {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

@media (min-width: 900px) {
  /*
   * The same order in two columns. The DOM order is the phone's, and the panel is placed into the
   * right-hand column from the first row, so nothing has to be said twice or moved to read correctly
   * with a screen reader.
   */
  .u-profileColumns {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 22rem;
    column-gap: var(--space-8);
    row-gap: var(--space-5);
    align-items: start;
  }

  .u-profileColumns > * {
    grid-column: 1;
  }

  .u-panelCol {
    grid-column: 2;
    grid-row: 1 / span 30;
    /* It rises into the header, so the ways to get in touch are above the fold. */
    margin-top: calc(var(--space-12) * -1);
  }

  .u-heroCover {
    min-height: calc(var(--size-row) * 6);
  }
}

/* What a chosen time is for the owner in another zone (international booking, 17 October 2026): a quiet line
   with a small clock, never an alert. Early or late for them reads a shade warmer, nothing more. */
.u-zoneNote {
  margin: 0;
  display: flex;
  gap: 0.4em;
  align-items: baseline;
  font-size: var(--type-support-size);
  line-height: var(--type-support-line-height);
  color: var(--color-text-secondary);
}

.u-zoneNote::before {
  content: '';
  flex: none;
  width: 0.9em;
  height: 0.9em;
  transform: translateY(0.1em);
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round'%3E%3Ccircle cx='8' cy='8' r='6.25'/%3E%3Cpath d='M8 4.5V8l2.25 1.5'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.u-zoneNoteGentle {
  color: var(--color-accent-ink);
}

/* page.css */
.p-main {
  box-sizing: border-box;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-6) var(--space-4);
  text-align: center;
}

/* Clear space around the lockup is the height of the mark (assets/README.md). */
.p-lockup {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-12);
  margin: calc(-1 * var(--space-12));
}

.p-mark {
  display: block;
  width: var(--space-12);
  height: var(--space-12);
}

/* Source Sans 3, 600, −0.015em: the wordmark spec, as live text. */
.p-wordmark {
  margin: 0;
  font-size: var(--type-title-page-size);
  line-height: var(--type-title-page-line-height);
  letter-spacing: -0.015em;
  color: var(--color-brand-primary);
}

.p-title {
  margin: 0;
  font-size: var(--type-title-section-size);
  line-height: var(--type-title-section-line-height);
  font-weight: var(--type-title-section-weight);
}

.p-line {
  margin: 0;
  max-width: 32rem;
  color: var(--color-text-secondary);
}

/* The paragraphs under the tagline: the same measure and colour, stacked with breathing room. */
.p-about {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: 32rem;
  text-align: left;
}

.p-footer {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.p-footer a {
  color: var(--color-text-secondary);
  font-size: var(--type-support-size);
  line-height: var(--type-support-line-height);
  text-decoration: none;
}

.p-footer a:hover {
  color: var(--color-text-primary);
  text-decoration: underline;
}

/* legal.css */
/* The two legal pages. Long-form reading rather than the marketing lockup of the home page:
   one column, a comfortable measure, and the same tokens as everything else. */

.g-page {
  max-width: 44rem;
  margin: 0 auto;
  padding: var(--space-8) var(--space-4) var(--space-12);
  color: var(--color-text-primary);
}

.g-back {
  display: inline-block;
  margin-bottom: var(--space-6);
  color: var(--color-text-secondary);
  font-size: var(--type-support-size);
  line-height: var(--type-support-line-height);
  text-decoration: none;
}

.g-back:hover {
  color: var(--color-text-primary);
  text-decoration: underline;
}

.g-title {
  margin: 0 0 var(--space-1);
  font-size: var(--type-title-page-size);
  line-height: var(--type-title-page-line-height);
  color: var(--color-brand-primary);
}

.g-updated {
  margin: 0 0 var(--space-6);
  color: var(--color-text-secondary);
  font-size: var(--type-support-size);
  line-height: var(--type-support-line-height);
}

.g-lede {
  margin: 0 0 var(--space-6);
  font-size: var(--type-body-size);
  line-height: var(--type-body-line-height);
}

.g-page h2 {
  margin: var(--space-8) 0 var(--space-3);
  font-size: var(--type-title-section-size);
  line-height: var(--type-title-section-line-height);
}

.g-page h3 {
  margin: var(--space-5) 0 var(--space-2);
  font-size: var(--type-body-size);
  line-height: var(--type-body-line-height);
  font-weight: var(--type-title-section-weight);
}

.g-page p,
.g-page li {
  font-size: var(--type-body-size);
  line-height: var(--type-body-line-height);
}

.g-page p {
  margin: 0 0 var(--space-3);
}

.g-page ul {
  margin: 0 0 var(--space-4);
  padding-left: var(--space-5);
}

.g-page li {
  margin-bottom: var(--space-2);
}

.g-page a {
  color: var(--color-brand-primary);
}

.g-page code {
  padding: 0 var(--space-1);
  border-radius: var(--radius-control);
  background: var(--color-brand-soft);
  font-size: 0.95em;
}

/* Unmissable while these pages are unreviewed. If one is ever deployed by accident, it should
   be obvious at a glance that it is not final. */
.g-draft {
  margin: 0 0 var(--space-6);
  padding: var(--space-4);
  border: 1px solid var(--color-status-error);
  border-radius: var(--radius-card);
  color: var(--color-status-error);
}

.g-draft p:last-child {
  margin-bottom: 0;
}

/* The one thing worth pulling out of the prose on each page. */
.g-callout {
  margin: var(--space-5) 0;
  padding: var(--space-4);
  border-left: 3px solid var(--color-brand-primary);
  background: var(--color-brand-soft);
  border-radius: var(--radius-card);
}

.g-callout p:last-child {
  margin-bottom: 0;
}

.g-table {
  width: 100%;
  margin: 0 0 var(--space-5);
  border-collapse: collapse;
  font-size: var(--type-support-size);
  line-height: var(--type-support-line-height);
}

.g-table th,
.g-table td {
  padding: var(--space-2) var(--space-3);
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--color-border-subtle);
}

.g-table th {
  color: var(--color-text-secondary);
}

.g-footer {
  margin-top: var(--space-8);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border-subtle);
  color: var(--color-text-secondary);
  font-size: var(--type-support-size);
  line-height: var(--type-support-line-height);
}

/* developers.css */
/* The developer docs (developer-api-webhooks.md §17): long-form reading with code. The same tokens as
   the rest of the site; the one thing typed by hand is the monospace stack, which has no token. */

.d-shell {
  max-width: 64rem;
  margin: 0 auto;
  padding: var(--space-8) var(--space-4) var(--space-12);
  display: grid;
  gap: var(--space-8);
  color: var(--color-text-primary);
}

@media (min-width: 860px) {
  .d-shell {
    grid-template-columns: 13rem minmax(0, 1fr);
  }
}

.d-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  align-content: start;
}

@media (min-width: 860px) {
  .d-nav {
    flex-direction: column;
    position: sticky;
    top: var(--space-6);
  }
}

.d-brand {
  color: var(--color-brand-primary);
  font-weight: var(--type-title-section-weight);
  text-decoration: none;
  margin-bottom: var(--space-2);
}

.d-navLink {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: var(--type-support-size);
  line-height: var(--type-support-line-height);
}

.d-navLink:hover,
.d-navLink:focus-visible {
  color: var(--color-text-primary);
  text-decoration: underline;
}

.d-page {
  min-width: 0;
}

.d-page h1 {
  margin: 0 0 var(--space-3);
  font-size: var(--type-title-page-size);
  line-height: var(--type-title-page-line-height);
  color: var(--color-brand-primary);
}

.d-page h2 {
  margin: var(--space-8) 0 var(--space-3);
  font-size: var(--type-title-section-size);
  line-height: var(--type-title-section-line-height);
}

.d-page h3 {
  margin: var(--space-5) 0 var(--space-2);
  font-size: var(--type-body-size);
  line-height: var(--type-body-line-height);
  font-weight: var(--type-title-section-weight);
}

.d-page p,
.d-page li,
.d-page td,
.d-page th {
  font-size: var(--type-body-size);
  line-height: var(--type-body-line-height);
}

.d-page p {
  margin: 0 0 var(--space-3);
}

.d-page ul {
  margin: 0 0 var(--space-4);
  padding-left: var(--space-5);
}

.d-page a {
  color: var(--color-brand-primary);
}

.d-lede {
  color: var(--color-text-secondary);
}

.d-promise {
  margin: var(--space-4) 0 var(--space-6);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-card);
  background: var(--privacy-private-bg);
  border: 1px solid var(--privacy-private-border);
  color: var(--privacy-private-ink);
}

.d-code,
.d-page code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
}

.d-code {
  margin: 0 0 var(--space-4);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-control);
  background: var(--color-surface-paper);
  border: 1px solid var(--color-border-subtle);
  overflow-x: auto;
  font-size: var(--type-support-size);
  line-height: var(--type-support-line-height);
  white-space: pre;
}

.d-page code {
  font-size: 0.92em;
}

.d-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 var(--space-4);
  display: block;
  overflow-x: auto;
}

.d-table th,
.d-table td {
  text-align: left;
  vertical-align: top;
  padding: var(--space-2) var(--space-3) var(--space-2) 0;
  border-bottom: 1px solid var(--color-border-subtle);
}

.d-table th {
  color: var(--color-text-secondary);
  font-weight: var(--type-title-section-weight);
}

.d-method {
  display: inline-block;
  min-width: 3.25rem;
  font-weight: var(--type-title-section-weight);
  color: var(--color-brand-primary);
}

.d-route {
  margin: var(--space-6) 0 var(--space-2);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border-subtle);
}

.d-meta {
  color: var(--color-text-secondary);
  font-size: var(--type-support-size);
  line-height: var(--type-support-line-height);
}

/* On a phone a row reads as a little block — name, then what it means — rather than three columns
   squeezed into a width that has room for one. */
@media (max-width: 600px) {
  .table thead {
    display: none;
  }

  .d-table tr {
    display: block;
    padding: var(--space-2) 0;
    border-bottom: 1px solid var(--color-border-subtle);
  }

  .d-table td {
    display: block;
    padding: 0 0 var(--space-1);
    border-bottom: none;
  }
}

/* landing.css */
/*
 * daysli.com homepage (docs/website/01 and 02). Mobile first; wider layouts by container queries. Sizes in em/rem, every
 * row wraps, nothing clips at 200% text. No inline styles (the Content-Security-Policy allows stylesheets only).
 *
 * The Living theme (docs/website/02 §5): the page's colours are the site's tokens, set again for each time of day on
 * <html data-phase> (src/home/phase.ts). They are registered as colours, so when a time of day passes while someone is
 * reading the page drifts into the next over a minute and a half rather than changing at once; a choice made in the
 * Appearance switch (data-quick) applies in under a second. Without JavaScript there is no data-phase, and the tokens'
 * own light or dark (the device's setting) apply.
 */
@property --color-bg-default {
  syntax: '<color>';
  inherits: true;
  initial-value: #fafaf8;
}
@property --color-surface-card {
  syntax: '<color>';
  inherits: true;
  initial-value: #ffffff;
}
@property --color-text-primary {
  syntax: '<color>';
  inherits: true;
  initial-value: #191918;
}
@property --color-text-secondary {
  syntax: '<color>';
  inherits: true;
  initial-value: #63635f;
}
@property --color-brand-primary {
  syntax: '<color>';
  inherits: true;
  initial-value: #245c4f;
}
@property --home-glow {
  syntax: '<color>';
  inherits: true;
  initial-value: #e9f2ee;
}

:root[data-phase] {
  transition:
    --color-bg-default 90s linear,
    --color-surface-card 90s linear,
    --color-text-primary 90s linear,
    --color-text-secondary 90s linear,
    --color-brand-primary 90s linear,
    --home-glow 90s linear;
}

:root[data-quick] {
  transition-duration: 0.6s;
}

@media (prefers-reduced-motion: reduce) {
  :root[data-phase] {
    transition: none;
  }
}

/* Morning: warm ivory, a sunrise, soft green. */
:root[data-phase='morning'] {
  color-scheme: light;
  --color-bg-default: #fbf6ee;
  --color-surface-card: #fffdf9;
  --color-surface-paper: #fff8ef;
  --color-text-primary: #22261f;
  --color-text-secondary: #5b5d52;
  --color-border-subtle: #eadfd1;
  --color-border-strong: #b9ad9c;
  --color-brand-primary: #2e6a4f;
  --color-brand-pressed: #24553f;
  --color-brand-onPrimary: #ffffff;
  --color-brand-soft: #e7f0e8;
  --home-glow: #f6dcc3;
}

/* Daylight: Daysli's own paper, evergreen, white surfaces. */
:root[data-phase='day'] {
  color-scheme: light;
  --color-bg-default: #fafaf8;
  --color-surface-card: #ffffff;
  --color-surface-paper: #ffffff;
  --color-text-primary: #191918;
  --color-text-secondary: #63635f;
  --color-border-subtle: #e6e6e1;
  --color-border-strong: #a9a9a3;
  --color-brand-primary: #245c4f;
  --color-brand-pressed: #1b4a3f;
  --color-brand-onPrimary: #ffffff;
  --color-brand-soft: #e9f2ee;
  --home-glow: #e9f2ee;
}

/* Evening: blush, terracotta, muted mauve. */
:root[data-phase='evening'] {
  color-scheme: light;
  --color-bg-default: #f6edea;
  --color-surface-card: #fff9f7;
  --color-surface-paper: #fff6f2;
  --color-text-primary: #2e2228;
  --color-text-secondary: #66545d;
  --color-border-subtle: #e7d6d3;
  --color-border-strong: #b7a09f;
  --color-brand-primary: #9a4a35;
  --color-brand-pressed: #7f3c2a;
  --color-brand-onPrimary: #ffffff;
  --color-brand-soft: #f3e1df;
  --home-glow: #ebd2dc;
}

/* Night: deep navy, charcoal, soft sage, warm white. */
:root[data-phase='night'] {
  color-scheme: dark;
  --color-bg-default: #121a2a;
  --color-surface-card: #1a2338;
  --color-surface-paper: #1d2740;
  --color-text-primary: #f1ece3;
  --color-text-secondary: #b3b9c6;
  --color-border-subtle: #2a3550;
  --color-border-strong: #5d6a86;
  --color-brand-primary: #a9c4a8;
  --color-brand-pressed: #c0d6bf;
  --color-brand-onPrimary: #13201a;
  --color-brand-soft: #22304a;
  --home-glow: #22304a;
}

.l-page {
  container-type: inline-size;
  min-height: 100dvh;
  font-size: 1rem;
  line-height: 1.5;
  background: var(--color-bg-default);
  color: var(--color-text-primary);
  overflow-x: clip;
}

.l-page a {
  color: var(--color-brand-primary);
}

.l-wrap {
  box-sizing: border-box;
  max-width: 74em;
  margin: 0 auto;
  padding-inline: clamp(1em, 5cqi, 4em);
}

/* Off-screen until it has focus, then the first thing on the page. */
.l-skip {
  position: absolute;
  left: -9999px;
  top: 0.75em;
  z-index: 5;
  padding: 0.75em 1em;
  border-radius: 0.6em;
  background: var(--color-brand-primary);
  color: var(--color-brand-onPrimary);
  font-weight: 600;
  text-decoration: none;
}

.l-skip:focus {
  left: 1em;
}

.l-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25em 1em;
  padding-block: 1em;
}

.l-brand {
  display: flex;
  align-items: center;
  gap: 0.6em;
  min-height: 2.75em;
  text-decoration: none;
}

.l-page .l-brand {
  color: var(--color-text-primary);
}

.l-mark,
.l-footMark {
  display: block;
  width: 2em;
  height: 2em;
}

.l-footMark {
  width: 1.5em;
  height: 1.5em;
}

.l-markDark {
  display: none;
}

:root[data-phase='night'] .l-markLight {
  display: none;
}

:root[data-phase='night'] .l-markDark {
  display: block;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-phase]) .l-markLight {
    display: none;
  }
  :root:not([data-phase]) .l-markDark {
    display: block;
  }
}

.l-brandName {
  font-size: 1.25em;
  letter-spacing: -0.015em;
}

.l-headerLink {
  margin-left: auto;
  min-height: 2.75em;
  display: flex;
  align-items: center;
  padding: 0 0.9em;
  border-radius: 0.6em;
  font-weight: 600;
  text-decoration: none;
}

.l-page .l-headerLink {
  color: var(--color-text-primary);
}

/* Type ---------------------------------------------------------------------------------------------------- */

.l-h1,
.l-h2,
.l-h3,
.l-h2Small {
  margin: 0;
  overflow-wrap: break-word;
  text-wrap: balance;
}

.l-h1 {
  font-weight: 500;
  font-size: clamp(2.6em, 9cqi, 4.6em);
  line-height: 1.02;
  letter-spacing: -0.025em;
}

.l-h2 {
  font-weight: 500;
  font-size: clamp(1.9em, 5.5cqi, 3em);
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 16em;
}

.l-h2Small {
  font-weight: 600;
  font-size: 1.35em;
  line-height: 1.2;
}

.l-h3 {
  font-size: 1.05em;
  font-weight: 600;
}

.l-subtitle {
  margin: 0.9em 0 0;
  font-size: clamp(1.1em, 2.6cqi, 1.35em);
  font-weight: 600;
  color: var(--color-text-primary);
}

.l-lede,
.l-bodyLarge {
  margin: 0.8em 0 0;
  font-size: 1.15em;
  line-height: 1.55;
  color: var(--color-text-secondary);
  max-width: 34em;
}

.l-body {
  margin: 0.7em 0 0;
  line-height: 1.6;
  color: var(--color-text-secondary);
  max-width: 36em;
}

.l-small {
  margin: 0.9em 0 0;
  font-size: 0.9em;
  color: var(--color-text-secondary);
  max-width: 40em;
}

.l-eyebrow {
  margin: 0 0 0.6em;
  font-size: 0.78em;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-brand-primary);
}

.l-closing {
  margin: 1em 0 0;
  font-size: clamp(1.25em, 3cqi, 1.6em);
  font-style: italic;
  line-height: 1.3;
  color: var(--color-text-primary);
  max-width: 24em;
}

.l-note {
  margin: 1.2em 0 0;
  padding: 0.8em 1em;
  border-radius: 0.8em;
  background: var(--color-brand-soft);
  color: var(--color-text-primary);
  font-size: 0.95em;
  max-width: 34em;
}

.l-tagline {
  margin: 1.2em 0 0;
  font-style: italic;
  font-size: 1.2em;
  color: var(--color-text-secondary);
}

/* Actions ------------------------------------------------------------------------------------------------- */

.l-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75em 1.5em;
  margin-top: 1.6em;
}

.l-primary {
  box-sizing: border-box;
  min-height: 3.25em;
  display: inline-flex;
  align-items: center;
  padding: 0 1.7em;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1.05em;
  text-decoration: none;
  background: var(--color-brand-primary);
  border: none;
  cursor: pointer;
}

.l-page .l-primary {
  color: var(--color-brand-onPrimary);
}

.l-primary:hover {
  background: var(--color-brand-pressed);
}

.l-quietLink {
  min-height: 2.75em;
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  text-underline-offset: 0.25em;
}

/* Pictures ------------------------------------------------------------------------------------------------ */

.l-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1.4em;
}

.l-phone,
.l-window {
  position: relative;
  overflow: hidden;
  background: var(--color-surface-card);
  border: 1px solid var(--color-border-subtle);
  box-shadow: 0 1.2em 3em -1.2em rgb(0 0 0 / 0.28);
}

.l-phone {
  border-radius: 1.6em;
  border-width: 0.4em;
  border-color: var(--color-text-primary);
}

.l-window {
  border-radius: 0.9em;
}

.l-phone img,
.l-window img {
  display: block;
  width: 100%;
  height: auto;
}

.l-shotDark {
  display: none !important;
}

:root[data-phase='night'] .l-shotLight {
  display: none !important;
}

:root[data-phase='night'] .l-shotDark {
  display: block !important;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-phase]) .l-shotLight {
    display: none !important;
  }
  :root:not([data-phase]) .l-shotDark {
    display: block !important;
  }
}

/* Hero ---------------------------------------------------------------------------------------------------- */

.l-hero {
  display: grid;
  gap: 2em;
  padding-block: 1em 3em;
}

.l-heroText {
  max-width: 34em;
}

.l-heroVisual {
  position: relative;
  padding-bottom: 3em;
}

.l-heroPhoto {
  aspect-ratio: 3 / 2;
}

.l-heroScreen {
  position: absolute;
  right: 4%;
  bottom: 0;
  width: 34%;
  max-width: 15em;
}

.l-heroScreen .l-phone {
  aspect-ratio: 9 / 15;
}

.l-heroScreen .l-phone img {
  height: 100%;
  object-fit: cover;
  object-position: top;
}

@container (min-width: 56em) {
  .l-hero {
    grid-template-columns: 1fr 1.25fr;
    align-items: center;
    gap: 3em;
    padding-block: 2em 5em;
  }
  .l-heroScreen {
    right: -1em;
    bottom: -1em;
    width: 32%;
  }
}

/* Sections ------------------------------------------------------------------------------------------------ */

.l-section,
.l-story,
.l-final {
  padding-block: clamp(3em, 9cqi, 6.5em);
}

.l-sectionQuiet {
  padding-block: 2.2em;
  border-top: 1px solid var(--color-border-subtle);
}

.l-sectionRule {
  padding-block: 3em;
  border-top: 1px solid var(--color-border-subtle);
}

/* Recognition: small everyday moments that gather into one place. */
.l-moments {
  list-style: none;
  margin: 1.8em 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7em;
  max-width: 48em;
}

.l-moment {
  padding: 0.75em 1.1em;
  border-radius: 999px;
  background: var(--color-surface-card);
  border: 1px solid var(--color-border-subtle);
  box-shadow: 0 0.4em 1.2em -0.6em rgb(0 0 0 / 0.18);
  font-size: 1.02em;
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .l-moment {
      animation: gather linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 35%;
    }
    .l-moment:nth-child(2n) {
      --from: 1.6em;
    }
    .l-moment:nth-child(2n + 1) {
      --from: -1.6em;
    }
  }
}

@keyframes gather {
  from {
    opacity: 0;
    transform: translateX(var(--from, 1em)) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* The answer: the places, and two real screens. */
.l-places {
  list-style: none;
  margin: 1.6em 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
}

.l-places li {
  padding: 0.4em 0.9em;
  border-radius: 999px;
  background: var(--color-brand-soft);
  color: var(--color-text-primary);
  font-weight: 600;
  font-size: 0.92em;
}

.l-windows {
  display: grid;
  gap: 1.2em;
  margin-top: 2.2em;
}

@container (min-width: 56em) {
  .l-windows {
    grid-template-columns: 1.15fr 1fr;
    align-items: start;
  }
  .l-windows > :last-child {
    margin-top: 3em;
  }
}

/* Stories: a photograph for the feeling, a real screen for the help. */
.l-story {
  display: grid;
  gap: 2.2em;
  align-items: center;
}

.l-storyVisual {
  position: relative;
  padding-bottom: 2.5em;
}

.l-storyPhoto {
  aspect-ratio: 4 / 5;
  max-height: 34em;
  width: 78%;
}

.l-storyScreen {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 44%;
  max-width: 15em;
}

/* Each screen keeps its own proportions (scripts/images.py cuts them to what tells the story). */
.l-storyScreen .l-phone img {
  height: auto;
}

.l-privacy .l-storyPhoto {
  width: 100%;
  aspect-ratio: 3 / 2;
}

@container (min-width: 56em) {
  .l-story {
    grid-template-columns: 1fr 1.1fr;
    gap: 4em;
  }
  .l-storyFlip .l-storyText {
    order: 2;
  }
}

.l-storyText {
  max-width: 34em;
}

/* It all comes together. */
.l-connectedLines {
  margin-top: 0.6em;
}

.l-steps {
  list-style: none;
  counter-reset: step;
  margin: 2em 0 0;
  padding: 0;
  display: grid;
  gap: 1em;
  grid-template-columns: repeat(auto-fit, minmax(14em, 1fr));
}

.l-step {
  counter-increment: step;
  padding: 1.1em 1.2em 1.2em;
  border-radius: 1em;
  background: var(--color-surface-card);
  border: 1px solid var(--color-border-subtle);
}

.l-step::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 1.8em;
  height: 1.8em;
  margin-bottom: 0.6em;
  border-radius: 50%;
  background: var(--color-brand-soft);
  color: var(--color-brand-primary);
  font-weight: 700;
  font-size: 0.85em;
}

.l-step .l-body {
  margin-top: 0.3em;
}

/* Privacy. */
.l-points {
  margin: 1.4em 0 0;
  display: grid;
  gap: 0.9em;
}

.l-points dt {
  font-weight: 600;
}

.l-points dd {
  margin: 0.2em 0 0;
  color: var(--color-text-secondary);
  line-height: 1.55;
}

.l-principles {
  margin: 1.4em 0 0;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-text-primary);
}

/* Quiet sections: costs, where it runs, questions, about. */
.l-list,
.l-platforms {
  margin: 0.8em 0 0;
  padding-left: 1.2em;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.l-platforms {
  list-style: none;
  padding: 0;
}

.l-faq {
  margin-top: 0.8em;
  display: grid;
  gap: 0.4em;
  max-width: 48em;
}

.l-faqItem {
  border-bottom: 1px solid var(--color-border-subtle);
  padding-block: 0.7em;
}

.l-faqItem summary {
  cursor: pointer;
  font-weight: 600;
  min-height: 2em;
  display: flex;
  align-items: center;
}

.l-about {
  max-width: 48em;
}

/* The invitation. */
.l-final {
  text-align: center;
  background: radial-gradient(60em 30em at 50% 0%, var(--home-glow), transparent 70%);
}

.l-final .l-h2,
.l-final .l-bodyLarge,
.l-final .l-closing {
  margin-inline: auto;
}

.l-final .l-bodyLarge {
  margin-top: 0.3em;
}

.l-final .l-actions {
  justify-content: center;
}

/* Footer ---------------------------------------------------------------------------------------------------- */

.l-footerRule {
  border-top: 1px solid var(--color-border-subtle);
  margin-top: 1em;
}

.l-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1.5em 2.5em;
  padding-block: 2.2em 3em;
}

.l-footBrand {
  display: flex;
  align-items: center;
  gap: 0.5em;
  flex-wrap: wrap;
}

.l-footName {
  font-weight: 600;
}

.l-footTag {
  font-style: italic;
  color: var(--color-text-secondary);
}

.l-footNav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em 1.2em;
}

.l-footNav a {
  min-height: 2.75em;
  display: inline-flex;
  align-items: center;
}

.l-copyright {
  color: var(--color-text-secondary);
  font-size: 0.9em;
  align-self: center;
}

.l-appearance {
  border: none;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.l-appearanceLegend {
  padding: 0;
  font-weight: 600;
  font-size: 0.9em;
  margin-bottom: 0.4em;
}

.l-appearanceChoices {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.25em;
  padding: 0.25em;
  border-radius: 999px;
  background: var(--color-brand-soft);
}

.l-appearanceChoice {
  position: relative;
  display: inline-flex;
}

.l-appearanceChoice input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}

.l-appearanceChoice span {
  min-height: 2.5em;
  display: inline-flex;
  align-items: center;
  padding: 0 1em;
  border-radius: 999px;
  font-size: 0.9em;
  font-weight: 600;
  color: var(--color-text-secondary);
}

.l-appearanceChoice input:checked + span {
  background: var(--color-surface-card);
  color: var(--color-text-primary);
  box-shadow: 0 0.2em 0.6em -0.3em rgb(0 0 0 / 0.3);
}

.l-appearanceChoice input:focus-visible + span {
  outline: var(--focus-ring-width, 2px) solid var(--focus-ring-color, currentColor);
  outline-offset: 2px;
}

.l-appearanceNote {
  margin: 0.5em 0 0;
  font-size: 0.85em;
  color: var(--color-text-secondary);
}

/* invite.css */
/*
 * The homepage's Request an invite. Only what the homepage's own stylesheet does not already have: the
 * card, the field, the phone choice. Tokens only, em sizes, rows that wrap, no inline styles (the
 * Content-Security-Policy allows stylesheets only).
 */
.i-card {
  box-sizing: border-box;
  max-width: 44em;
  padding: clamp(1.25em, 3cqi, 2em);
  border-radius: 1.1em;
  border: 1px solid var(--color-border-subtle);
  background: var(--color-surface-card);
  display: flex;
  flex-direction: column;
  gap: 0.9em;
}

.i-form {
  display: flex;
  flex-direction: column;
  gap: 0.6em;
  margin-top: 0.4em;
}

.i-label {
  font-weight: 600;
}

.i-phones {
  margin: 0.4em 0 0;
  padding: 0;
  border: none;
}

.i-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6em;
  margin-top: 0.5em;
}

.i-choice {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  min-height: 2.75em;
  padding: 0 1em;
  border: 1px solid var(--color-border-strong);
  border-radius: 0.65em;
  cursor: pointer;
}

.i-choice:has(input:checked) {
  border-color: var(--color-brand-primary);
  background: var(--color-brand-soft);
}

.i-choice input {
  accent-color: var(--color-brand-primary);
  margin: 0;
}

.i-input {
  box-sizing: border-box;
  width: 100%;
  min-height: 3.25em;
  padding: 0 1em;
  border: 1px solid var(--color-border-strong);
  border-radius: 0.65em;
  background: var(--color-bg-default);
  color: var(--color-text-primary);
  font: inherit;
}

.i-inputError {
  border-color: var(--color-status-error);
}

.i-button {
  align-self: flex-start;
  margin-top: 0.4em;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.i-button:disabled {
  cursor: progress;
  opacity: 0.75;
}

.i-small {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 0.9em;
}

.i-error {
  margin: 0;
  color: var(--color-status-error);
}

.i-success {
  margin: 0.4em 0 0;
  font-weight: 600;
  color: var(--color-text-primary);
}

/* site.css */
/*
 * The site's own few classes (prefixed `s-` by scripts/build.mjs). The two faces stand in for next/font's classes on
 * the Next.js site: the same families, the same metric-matched fallbacks (styles/fonts.css).
 */
.s-serif {
  font-family: 'Source Serif 4', 'Source Serif 4 Fallback', serif;
  font-style: normal;
}

.s-wordmark {
  font-family: 'Source Sans 3', 'Source Sans 3 Fallback', sans-serif;
  font-weight: 600;
  font-style: normal;
}

/* `hidden` wins over a class's display (.field and .stack-tight are flex): the site's own scripts hide and show
   with the attribute. */
[hidden] {
  display: none !important;
}

/* A photograph offered in several sizes (src/pages/home.ts `photo`): the frame lays out the image, not the wrapper. */
.s-picture {
  display: contents;
}
