/* Platebook's warm monochrome: cream and ink, swapped for dark mode (Platebook/Design/Theme.swift). */
:root {
  --canvas: #ECEAE3; --surface: #F5F4EF; --fog: #E2DFD6;
  --ink: #211F1C; --charcoal: #34312D; --carbon: #4D4A44;
  --stone: #D0CCC2; --ash: #DAD7CE; --wash: #DCD9CF; --wash-line: #857F73;
  --on-accent: #ECEAE3;
  --display: ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #1B1A18; --surface: #242320; --fog: #2D2B28;
    --ink: #ECEAE3; --charcoal: #D9D6CE; --carbon: #B5B1A8;
    --stone: #3A3834; --ash: #2F2D2A; --wash: #312F2B; --wash-line: #8A867D;
    --on-accent: #1B1A18;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 16px/1.4 var(--body); -webkit-text-size-adjust: 100%; }
header { padding: 14px 20px; border-bottom: 0.5px solid var(--ash); }
.wordmark { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; font: 700 20px var(--display); letter-spacing: -0.2px; }
.mark { width: 26px; height: 23px; fill: none; stroke: currentColor; stroke-width: 32; stroke-linecap: round; stroke-linejoin: round; }
main { max-width: 560px; margin: 0 auto; padding: 28px 20px calc(40px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 10px; }
h1 { margin: 0; font: 700 34px/1.1 var(--display); letter-spacing: -0.6px; }
.from { display: flex; align-items: center; gap: 8px; color: var(--charcoal); font-size: 15px; }
.monogram { width: 28px; height: 28px; border-radius: 8px; background: var(--fog); border: 0.5px solid var(--ash); display: grid; place-items: center; font: 700 13px var(--display); color: var(--charcoal); }
.muted { color: var(--carbon); }
.meta { margin: 0 0 12px; font-size: 15px; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.card { background: var(--surface); border: 0.5px solid var(--stone); border-radius: 16px; padding: 0 16px; }
.routine + .routine { border-top: 0.5px solid var(--ash); }
.routine summary { min-height: 52px; display: flex; align-items: center; gap: 10px; cursor: pointer; list-style: none; font-size: 14px; }
.routine summary::-webkit-details-marker { display: none; }
.routine summary::before { content: ""; width: 7px; height: 7px; border: solid var(--charcoal); border-width: 0 2px 2px 0; transform: rotate(-45deg); transition: transform 0.15s; margin-right: 2px; }
.routine[open] summary::before { transform: rotate(45deg); }
.routine-title { flex: 1; font: 600 18px var(--display); color: var(--ink); }
.routine ul { list-style: none; margin: 0; padding: 0 0 12px 19px; }
.routine li { display: flex; justify-content: space-between; gap: 12px; min-height: 28px; align-items: center; font-size: 14px; }
.routine li span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.actions { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.button { min-height: 50px; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 500; text-decoration: none; }
.primary { background: var(--ink); color: var(--on-accent); }
.secondary { background: var(--surface); color: var(--ink); border: 1px solid var(--stone); }
.note { margin: 4px 8px 0; text-align: center; font-size: 14px; color: var(--carbon); }
.hero { padding-top: 12vh; text-align: center; align-items: center; }
.hero .mark { width: 72px; height: 64px; margin-bottom: 12px; }
