@font-face { font-family: "Aire"; src: url(assets/heading.woff) format("woff"); font-display: swap; }
@font-face { font-family: "Nunito Sans"; src: url(assets/body.woff2) format("woff2"); font-display: swap; }

:root {
  --charcoal: #1e1f19; --brown: #957556; --linen: #eeeae2; --offwhite: #fafaf9; --espresso: #453a31;
  --line: #d9d2c5; --muted: #6f6a60; --warn: #a1552a; --ok: #3f6b3a;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: "Nunito Sans", system-ui, sans-serif; color: var(--charcoal); background: var(--linen); font-size: 16px; line-height: 1.45; min-height: 100vh; }
h1, h2, h3 { font-family: "Aire", Georgia, serif; font-weight: 400; margin: 0 0 8px; letter-spacing: .01em; }
h1 { font-size: 30px; } h2 { font-size: 26px; } h3 { font-size: 19px; }
p { margin: 0 0 12px; }
a { color: var(--brown); }
.wrap { max-width: 720px; margin: 0 auto; padding: 24px 16px 60px; }
header { text-align: center; padding: 10px 0 18px; }
header img { height: 30px; }
.eyebrow { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--brown); display: block; margin-bottom: 6px; }
.card { background: #fff; border-radius: 16px; padding: 26px 24px; box-shadow: 0 10px 30px rgba(30,31,25,.06); }
.card + .card { margin-top: 16px; }
.progress { display: flex; gap: 4px; margin: 0 0 18px; }
.progress span { flex: 1; height: 4px; border-radius: 2px; background: #e4ded2; }
.progress span.done { background: var(--brown); }
.progress span.now { background: var(--charcoal); }
.help { color: var(--muted); font-size: 14px; margin: -4px 0 14px; }
.q { margin-bottom: 20px; }
.q .label { display: block; font-weight: 600; margin-bottom: 6px; }
.q .hint { font-size: 13px; color: var(--muted); margin: -2px 0 6px; }
input[type=text], input[type=email], input[type=tel], input[type=date], input[type=time], select, textarea {
  font: inherit; color: inherit; width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #fff;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brown); outline-offset: 0; border-color: transparent; }
textarea { min-height: 84px; resize: vertical; }
.opts { display: flex; flex-direction: column; gap: 6px; }
.opt { display: flex; align-items: flex-start; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; cursor: pointer; }
.opt:hover { background: var(--offwhite); }
.opt.on { border-color: var(--charcoal); background: var(--offwhite); }
.opt input { margin-top: 4px; }
.row { display: flex; gap: 12px; }
.row > * { flex: 1; }
.nav { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 22px; }
button { font: inherit; cursor: pointer; border: 1px solid var(--charcoal); background: #fff; color: var(--charcoal); border-radius: 999px; padding: 10px 20px; }
button.primary { background: var(--charcoal); color: #fff; }
button.primary:hover { background: #000; }
button.ghost { border-color: transparent; color: var(--muted); }
button.small { padding: 6px 12px; font-size: 14px; }
button.link { border: none; background: none; color: var(--brown); padding: 4px 0; text-decoration: underline; }
.saved { font-size: 13px; color: var(--muted); }
.saved.err { color: var(--warn); }
.vendor { border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 12px; position: relative; }
.vendor .type { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--brown); margin-bottom: 6px; }
.vendor .remove { position: absolute; top: 10px; right: 10px; border: none; background: none; color: var(--muted); font-size: 18px; padding: 0 6px; }
.vendor .more { margin-top: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.vendor .more .full { grid-column: 1 / -1; }
.vendor .known { font-size: 13px; color: var(--ok); margin-top: 6px; }
.vendor .new { font-size: 13px; color: var(--muted); margin-top: 6px; }
.ac { position: relative; }
.suggest { position: absolute; z-index: 5; left: 0; right: 0; top: 100%; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 24px rgba(0,0,0,.1); max-height: 240px; overflow: auto; }
.suggest div { padding: 9px 12px; cursor: pointer; }
.suggest div:hover, .suggest div.on { background: var(--linen); }
.suggest small { color: var(--muted); margin-left: 6px; }
.addrow { display: flex; gap: 10px; align-items: center; margin-top: 8px; }
.addrow select { flex: 1; }
.person { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.person.three { grid-template-columns: 1.2fr 1fr .7fr; }
.sub { font-weight: 600; margin: 16px 0 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 13px; background: var(--linen); padding: 4px 10px; border-radius: 999px; }
.done-mark { font-size: 44px; text-align: center; margin: 10px 0; }
.error { background: #f6e3d6; color: var(--warn); border-radius: 10px; padding: 10px 14px; margin-bottom: 14px; }
footer { text-align: center; font-size: 13px; color: var(--muted); margin-top: 26px; }
@media (max-width: 600px) {
  .card { padding: 20px 16px; border-radius: 12px; }
  .row, .person, .person.three, .vendor .more { grid-template-columns: 1fr; display: grid; }
}

/* Home screen */
.when { color: var(--muted); margin: -2px 0 16px; }
h3.group { margin: 26px 0 6px; padding-top: 18px; border-top: 1px solid var(--line); }
.homework { background: var(--offwhite); border: 1px solid var(--line); border-left: 3px solid var(--brown); border-radius: 10px; padding: 12px 16px; margin: 8px 0 4px; }
.homework .sub { margin-top: 0; }
.homework ul { margin: 0; padding-left: 18px; }
.homework li { margin: 3px 0; }
.empty { color: var(--muted); background: var(--offwhite); border: 1px dashed var(--line); border-radius: 10px; padding: 14px 16px; font-size: 15px; }
.timeline { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin: 6px 0 8px; }
.tl-row { display: grid; grid-template-columns: 88px 1fr; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--line); }
.tl-row:first-child { border-top: none; }
.tl-row.end { background: var(--offwhite); }
.tl-time { font-weight: 600; color: var(--brown); white-space: nowrap; }
.tl-title { font-weight: 600; }
.tl-details { font-size: 14px; color: var(--muted); }
.tl-bullets { margin: 4px 0 0; padding-left: 18px; font-size: 14px; color: var(--muted); }
.tl-bullets li { margin: 2px 0; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; text-align: left; border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: #fff; }
.tile:hover { border-color: var(--charcoal); background: var(--offwhite); }
.tile.wide { width: 100%; flex-direction: row; justify-content: space-between; align-items: center; margin-top: 10px; }
.tile-title { font-weight: 600; }
.pill { font-size: 12px; padding: 2px 10px; border-radius: 999px; background: var(--linen); color: var(--muted); }
.pill.some { background: #efe4d6; color: var(--espresso); }
.pill.done { background: #e2ecdf; color: var(--ok); }
button.back { margin: -6px 0 10px; text-decoration: none; }
.onfile { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; }
.onfile > div { padding: 10px 14px; border-top: 1px solid var(--line); }
.onfile > div:first-child { border-top: none; }
.onfile .type { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--brown); }
.onfile small { color: var(--muted); }
.famlist { padding-left: 22px; }
.famlist li { margin: 0 0 10px; }
@media (max-width: 600px) {
  .tiles { grid-template-columns: 1fr; }
  .tl-row { grid-template-columns: 74px 1fr; }
  .nav { flex-wrap: wrap; }
}
