@font-face { font-family: "Switzer"; src: url("/assets/fonts/Switzer-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Switzer"; src: url("/assets/fonts/Switzer-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Switzer"; src: url("/assets/fonts/Switzer-Semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }

/* Persimmon. Warm off-white ground with a faint dot grid; ink does the work. The persimmon mark is the dot by the wordmark
   and the seed on every agent, and is never used for text. Green means something a person said or chose. */
:root {
  --page: #f8efe3; --dots: #ebdecc; --paper: #fffbf5; --soft: #f3e7d8; --line: #ebddca; --track: #8f7f6c;
  --ink: #1f1913; --ink-2: #4b4036; --muted: #70635a;
  --act: #1f1913; --act-ink: #fffbf5; --act-ink-2: #d9cec2; --focus: #1f1913;
  --mark: #e0562b;
  --person: #2e7a4c; --person-soft: #e2ede1; --person-ink: #1e5636;
  --danger: #a3261f; --danger-ink: #ffffff;
  --font: "Switzer", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --r: 16px; color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --page: #16120e; --dots: #221c17; --paper: #211b16; --soft: #2b241d; --line: #352c24; --track: #7d6f61;
    --ink: #f4ece2; --ink-2: #d2c6b8; --muted: #a6998b;
    --act: #f4ece2; --act-ink: #16120e; --act-ink-2: #4b4036; --focus: #f4ece2;
    --mark: #ff7a4d;
    --person: #7cc99a; --person-soft: #1b3122; --person-ink: #a9ddbb;
    --danger: #ff8f85; --danger-ink: #16120e;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background-color: var(--page); background-image: radial-gradient(var(--dots) 1px, transparent 1.4px); background-size: 18px 18px; color: var(--ink); font: 400 16px/1.45 var(--font); -webkit-font-smoothing: antialiased; min-height: 100svh; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.shell { width: 100%; max-width: 560px; margin: 0 auto; padding: 0 16px 152px; }
.top { display: flex; align-items: center; justify-content: space-between; min-height: 56px; }
/* lowercase behalf in pixels, after the persimmon dot. */
.wordmark { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.wordmark::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--mark); flex: none; }
.wordmark svg { display: block; height: 15px; width: auto; }
a.wordmark { min-height: 44px; }
.me-btn { min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); font-weight: 500; }
.me-btn[aria-current="page"] { border-color: var(--ink); }
.alpha-note { margin: 0 0 16px; font-size: 13px; color: var(--muted); }
main:focus { outline: none; }

/* Headlines lean light: regular weight, large, tight. Switzer ships 400 to 600 here, so 400 is the lightest. */
.h, .h1 { font-size: 30px; line-height: 34px; font-weight: 400; letter-spacing: -0.03em; margin: 8px 0 8px; text-wrap: balance; }
.h2 { font-size: 17px; font-weight: 600; margin: 0 0 4px; }
.sub { color: var(--muted); font-size: 15px; margin: 0; }
.note { font-size: 13px; color: var(--muted); margin: 8px 0 0; }
/* Labels are short, so they can be mono capitals. */
.field-label { font: 500 12px/1.4 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); margin: 24px 0 8px; display: block; }

.card { background: var(--paper); border-radius: var(--r); padding: 16px; margin: 12px 0; }
.card > .field-label:first-child { margin-top: 4px; }
.card.lead { border: 1px solid var(--ink); }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.kv { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: 15px; }
.kv b { font-weight: 500; }
.tag { display: inline-flex; align-items: center; min-height: 24px; padding: 0 10px; border-radius: 999px; background: var(--soft); font-size: 13px; color: var(--ink-2); }
.tag.person { background: var(--person-soft); color: var(--person-ink); }
.tag.avatar { background: var(--soft); }

.btn { min-height: 48px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); font-weight: 500; padding: 0 20px; }
a.btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; color: inherit; }
.btn.primary { background: var(--act); border-color: var(--act); color: var(--act-ink); }
.btn.wide { width: 100%; }
.btn:disabled { opacity: .5; cursor: default; }
.link { min-height: 44px; border: 0; background: none; padding: 0 4px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.actions .btn { flex: 1 1 140px; }

input[type="text"], input[type="email"], input[type="number"], input[type="datetime-local"], select {
  width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); padding: 0 12px;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); padding: 0 16px; font-size: 15px; }
.chip[aria-pressed="true"] { background: var(--act); border-color: var(--act); color: var(--act-ink); }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.toggle .t { font-weight: 500; }
.toggle .d { display: block; font-size: 13px; color: var(--muted); }
.switch { position: relative; width: 52px; height: 44px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; width: 52px; height: 44px; }
.switch span { position: absolute; inset: 6px 0; border-radius: 16px; background: var(--track); pointer-events: none; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: var(--paper); box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch input:checked + span { background: var(--act); }
.switch input:checked + span::after { transform: translateX(20px); background: var(--act-ink); }
.switch input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 3px; }

.copy { display: flex; gap: 8px; margin-top: 8px; }
.copy input { font-size: 14px; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.thread { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.thread li { max-width: 85%; padding: 8px 12px; border-radius: 16px; background: var(--paper); font-size: 15px; }
.thread li.self { margin-left: auto; background: var(--act); color: var(--act-ink); }
.thread li.concierge { background: var(--soft); }
.thread time { display: block; font-size: 12px; color: var(--muted); }
.thread li.self time { color: var(--act-ink-2); }
.error { color: var(--danger); font-size: 14px; margin: 8px 0 0; }
.status { min-height: 20px; font-size: 13px; color: var(--muted); margin: 8px 0; }

.nav { position: fixed; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; gap: 8px; padding: 8px 16px calc(8px + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--line); }
.nav button { flex: 0 1 160px; min-height: 48px; border: 0; border-radius: 999px; background: none; font-weight: 500; color: var(--muted); }
.nav button[aria-current="page"] { color: var(--ink); background: var(--soft); }

@media (min-width: 720px) { .shell { padding-top: 16px; } .h, .h1 { font-size: 34px; line-height: 38px; } }
@media (prefers-reduced-motion: no-preference) { .switch span, .switch span::after { transition: background .15s, transform .15s; } }
.paste { margin: 16px 0 0; }
.paste > summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; color: var(--ink-2); font-weight: 500; }
.list .row .end { margin-left: auto; }
.list li.quiet { color: var(--muted); font-size: 15px; }
.list li.card { border-bottom: 0; padding: 16px; }
/* Errors and confirmations sit just above the bottom bar, where a phone user is looking, not below the fold. */
.status { position: fixed; left: 16px; right: 16px; bottom: calc(76px + env(safe-area-inset-bottom)); max-width: 528px; margin: 0 auto; padding: 10px 14px; border-radius: 12px; background: var(--act); color: var(--act-ink); font-size: 14px; z-index: 2; }
.status:empty { display: none; }
.status.error { background: var(--danger); color: var(--danger-ink); font-size: 14px; margin: 0 auto; }
.status.busy { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.list .row .end { color: var(--muted); }
input::placeholder { color: var(--muted); }
textarea { width: 100%; min-height: 88px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); padding: 10px 12px; font: inherit; color: inherit; resize: vertical; }
.sub + .chips, .sub + .chips[role] { margin-top: 12px; }
.nav[hidden] { display: none; }
.doc p { margin: 0 0 12px; }
.doc .sub { margin-bottom: 8px; }
.doc .field-label { margin-top: 24px; }
.doc a { color: inherit; }

/* Made-for-you pages opened from a text */
.page-doc { max-width: 40rem; margin: 0 auto; padding: 0 16px 48px; }
.page-doc .top { margin-bottom: 16px; }
.page-doc .card { margin: 12px 0; }

/* Your agent */
.agent { display: flex; gap: 16px; align-items: center; }
.agent-art { width: 96px; height: 96px; border-radius: 50%; flex: none; }

/* People, memories over time, pillars, account deletion */
#who { display: flex; gap: 8px; }
.list li.mem .row, .list li.person .row { justify-content: space-between; }
.list li.mem .note, .list li.person .note { margin-top: 2px; }
.month { font: 500 12px/1.4 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin: 16px 0 0; }
fieldset.chips { border: 0; padding: 0; margin: 12px 0 0; }
.pillars { list-style: none; margin: 0; padding: 0; counter-reset: p; }
.pillars li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.pillars .link { margin-top: 8px; min-height: 44px; }
.pillars .head { margin: 0 0 8px; color: var(--ink-2); }
.pillars .today { font-size: 15px; margin: 0 0 8px; }
.pillars .todo, .doc .todo { font-size: 13px; margin: 0 0 8px; padding: 8px 10px; border: 1px dashed var(--muted); border-radius: 8px; color: var(--ink-2); }
.pillars details { margin: 4px 0 0; }
.pillars summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.pillars details .sub { margin: 0 0 10px; }
.page-doc > .sub { margin: 0 0 10px; }
.btn.danger { background: var(--danger); border-color: var(--danger); color: var(--danger-ink); }
/* What one person sees: adding waits for a plain Share. */
.list li.person .sees { flex-wrap: nowrap; align-items: center; }
.list li.person .sees .note { margin: 0; flex: 1; }
.confirm { margin: 12px 0 0; padding: 12px; border: 1px solid var(--ink); border-radius: 12px; }

/* An invitation's QR code. Cameras read dark on light most reliably, so it keeps the light paper and ink in dark mode too. */
.qr { width: min(100%, 232px); margin: 16px auto 0; padding: 8px; border-radius: 12px; background: #fffbf5; color: #1f1913; }
.qr svg { display: block; width: 100%; height: auto; }
.qr + .note { text-align: center; }
