/* Jasach — paper and ink, the tokens MedList paints with (MedList/Theme.swift, Paper). */
:root {
  --paper: #F3EDE2;
  --card: #FAF6EE;
  --ink: #2B2620;
  --rule: #D9D1C3;
  --secondary: rgba(43, 38, 32, 0.62);
  --accent: #4A4590;
  --accent-soft: #E8E5F4;
  --given: #2E6B4F;
  --due: #8A5A0E;
  --missed: #9A3D33;
  --given-fill: #3A9A6A;
  --due-fill: #D9A233;
  --missed-fill: #C4493F;
  --track: #E6DECF;
  --radius: 10px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1F1B17;
    --card: #2A2521;
    --ink: #F1EAE0;
    --rule: #413A33;
    --secondary: rgba(241, 234, 224, 0.62);
    --accent: #A39FE8;
    --accent-soft: #2C2A48;
    --given: #7FC49F;
    --due: #D9AE55;
    --missed: #E08A7E;
    --given-fill: #4FA87A;
    --due-fill: #D2A23A;
    --missed-fill: #CF5F55;
    --track: #3A342E;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.serif { font-family: "New York", "Iowan Old Style", Georgia, "Times New Roman", serif; font-variant-numeric: tabular-nums; }
.wrap { max-width: 720px; margin: 0 auto; padding: 0 22px; }
a { color: var(--accent); }
a:hover { color: var(--ink); }

header { display: flex; align-items: center; gap: 12px; padding: 22px 0; }
header img { width: 34px; height: 34px; border-radius: 9px; }
header .name { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
header .name a { color: inherit; text-decoration: none; }
header .house { color: var(--secondary); font-weight: 500; font-size: 15px; }
header nav { margin-left: auto; display: flex; gap: 18px; }
header nav a { font-size: 15px; color: var(--secondary); text-decoration: none; }
header nav a:hover { color: var(--ink); }

.hero { text-align: center; padding: 40px 0 16px; }
.hero img.mark { width: 104px; height: 104px; border-radius: 24px; box-shadow: 0 16px 32px -18px rgba(43, 38, 32, 0.5); }
.hero h1 { font-size: 34px; line-height: 1.15; margin: 22px 0 10px; letter-spacing: -0.01em; }
.hero .lede { font-size: 19px; color: var(--secondary); margin: 0 auto 22px; max-width: 540px; }
.cta small { display: block; margin-top: 10px; color: var(--secondary); font-size: 14px; }
.store-badge { height: 48px; }
.soon { display: inline-block; padding: 10px 16px; border: 1px solid var(--rule); border-radius: 999px; color: var(--secondary); font-size: 15px; }

section { padding: 26px 0; }
section h2 { font-size: 22px; margin: 0 0 14px; }
.cards { display: grid; gap: 12px; }
.cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) { .cards.three, .cards.two { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 0.5px solid var(--rule); border-radius: var(--radius); padding: 16px; }
.card h3 { margin: 0 0 6px; font-size: 17px; }
.card p { margin: 0; color: var(--secondary); font-size: 15px; }
.card a.app { text-decoration: none; color: inherit; display: block; }
.card .badge { display: inline-block; font-size: 12px; color: var(--secondary); border: 0.5px solid var(--rule); border-radius: 999px; padding: 2px 9px; margin-top: 8px; }

/* The ledger, as a figure: one ruled line per dose, the way the app draws it. */
.ledger { background: var(--card); border: 0.5px solid var(--rule); border-radius: var(--radius); overflow: hidden; margin: 8px 0 0; }
.ledger .cols { display: flex; gap: 8px; padding: 10px 14px 6px; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--secondary); border-bottom: 1.5px solid var(--ink); }
.ledger .row { display: flex; align-items: center; gap: 8px; padding: 0 14px; height: 44px; border-top: 0.5px solid var(--rule); }
.ledger .row:first-of-type { border-top: none; }
.ledger .due { width: 74px; flex: none; font-size: 15px; font-weight: 500; }
.ledger .name { flex: 1; min-width: 0; font-size: 16px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ledger .given { width: 84px; flex: none; text-align: right; font-size: 15px; font-weight: 600; }
.ledger .mark { width: 22px; flex: none; text-align: center; font-size: 16px; }
.g { color: var(--given); } .d { color: var(--due); } .m { color: var(--missed); }
.ring { display: inline-block; width: 18px; height: 18px; border-radius: 50%; border: 1.6px solid var(--due-fill); vertical-align: middle; }
.ring.quiet { border-color: var(--secondary); }

.rows { display: flex; flex-direction: column; gap: 14px; }
.row-item { display: flex; gap: 14px; align-items: flex-start; }
.row-item .dot { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.row-item h3 { margin: 0 0 2px; font-size: 17px; }
.row-item p { margin: 0; color: var(--secondary); font-size: 15px; }

article { padding: 10px 0 40px; }
article h1 { font-size: 30px; margin: 10px 0 6px; }
article h2 { font-size: 20px; margin: 30px 0 8px; }
article p, article li { color: var(--ink); }
article .updated { color: var(--secondary); font-size: 15px; margin-bottom: 20px; }
article ul { padding-left: 20px; }
article strong { font-weight: 600; }
.note { background: var(--card); border: 0.5px solid var(--rule); border-radius: var(--radius); padding: 14px 16px; color: var(--secondary); font-size: 15px; }

footer { border-top: 0.5px solid var(--rule); margin-top: 20px; padding: 22px 0 40px; color: var(--secondary); font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px 18px; }
footer a { color: var(--secondary); text-decoration: none; }
footer a:hover { color: var(--ink); }
