@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage-grotesque-latin-standard-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}

:root {
  --sand: #f2e9d6;
  --card: #fffaf1;
  --forest: #1f3d2e;
  --pine: #2f6b4f;
  --pine-tint: #dcebdf;
  --lake: #2f6f8f;
  --lake-tint: #dbeaf0;
  --sunset: #e4572e;
  --sunset-tint: #fbe1d6;
  --amber: #f0a43a;
  --muted: #5d6a5f;
  --line: #e0d4bb;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.45;
  color: var(--forest);
  background-color: var(--sand);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320' viewBox='0 0 320 320'%3E%3Cg fill='none' stroke='%23d9cbae' stroke-width='1.2'%3E%3Cpath d='M-20 60c40-30 80 10 120-10s70-40 110-10 70 20 130-10'/%3E%3Cpath d='M-20 90c40-26 84 14 124-6s66-34 106-6 74 18 130-8'/%3E%3Cpath d='M-20 200c50-20 70 30 120 10s80-50 120-20 60 30 120 0'/%3E%3Cpath d='M-20 232c50-16 74 26 122 8s76-44 118-16 62 26 120-2'/%3E%3Cpath d='M-20 264c50-12 78 22 124 6s72-38 116-12 64 22 120-4'/%3E%3Cellipse cx='250' cy='150' rx='34' ry='18'/%3E%3Cellipse cx='250' cy='150' rx='18' ry='8'/%3E%3C/g%3E%3C/svg%3E");
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--sunset); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }

/* Demo bar */
.demo-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 14px; padding: 2px 14px; background: var(--forest); color: #f2e9d6; font-size: 14px; }
.demo-bar__note { margin: 0; display: flex; align-items: center; gap: 8px; padding: 6px 0; }
.demo-bar__note strong { padding: 1px 10px; border-radius: 999px; background: var(--amber); color: var(--forest); font-weight: 700; }
.demo-bar__actions { display: flex; gap: 4px; margin-left: auto; }
.demo-bar__reset, .demo-bar__made { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; border: 0; background: none; color: #f2e9d6; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.demo-bar__made { color: #f6c493; }

.shell { max-width: 1180px; margin: 0 auto; padding: 18px 14px 48px; }

/* Poster */
.poster {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  border: 3px solid var(--forest);
  border-radius: 26px;
  background: #f6c493;
  box-shadow: 0 6px 0 var(--forest);
}
.poster__art { position: absolute; inset: 0; width: 100%; height: 100%; }
.poster__top { position: relative; padding: 20px 20px 0; }
.poster__place { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 4px 12px; border-radius: 999px; background: rgb(255 250 241 / 0.75); font-size: 14px; font-weight: 700; }
.poster h1 {
  margin: 8px 0 0;
  font-size: clamp(52px, 15vw, 112px);
  line-height: 0.86;
  font-weight: 800;
  font-stretch: 78%;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--forest);
}
.poster__bottom { position: absolute; left: 20px; right: 20px; bottom: 16px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.poster__dates { margin: 0; color: #fffaf1; font-weight: 700; font-size: 18px; text-shadow: 0 1px 2px rgb(0 0 0 / 0.35); }
.poster__badge {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  margin: 0;
  border: 3px solid var(--forest);
  border-radius: 50%;
  background: var(--amber);
  color: var(--forest);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  transform: rotate(-8deg);
  box-shadow: 0 3px 0 var(--forest);
}
.poster__badge strong { display: block; font-size: 38px; font-stretch: 80%; }

/* Who's this */
.me { margin: 18px 0; padding: 14px; border-radius: 20px; background: rgb(255 250 241 / 0.75); border: 2px dashed #c9b991; }
.me__label { margin: 0 0 8px; font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.me__people { display: flex; flex-wrap: wrap; gap: 8px; }
.me__person { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 4px 14px 4px 4px; border: 2px solid var(--line); border-radius: 999px; background: #fff; font-weight: 700; }
.me__person--on { border-color: var(--forest); background: var(--forest); color: #fffaf1; }
.me__summary { margin: 12px 0 0; font-size: 16px; color: var(--muted); }
.me__summary strong { color: var(--forest); }
.avatar { display: inline-grid; place-items: center; flex: none; border-radius: 50%; background: var(--c); color: #fff; font-weight: 800; }
.avatar--md { width: 38px; height: 38px; font-size: 17px; }
.avatar--sm { width: 32px; height: 32px; font-size: 14px; box-shadow: 0 0 0 2px #fffaf1; }
.me__person--on .avatar { box-shadow: 0 0 0 2px #fffaf1; }

/* Layout and cards */
.layout { display: grid; gap: 16px; }
.card { min-width: 0; padding: 18px 16px; border: 2.5px solid var(--forest); border-radius: 22px; background: var(--card); box-shadow: 0 5px 0 var(--forest); }
.card__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 12px; }
.card__head h2 { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-size: 23px; font-weight: 800; letter-spacing: -0.01em; }
.card__head h2 .icon { width: 26px; height: 26px; padding: 4px; border-radius: 10px; background: var(--pine-tint); color: var(--pine); box-sizing: content-box; }
.card__head p { margin: 0; font-size: 14px; font-weight: 600; color: var(--muted); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border: 2.5px solid var(--forest);
  border-radius: 999px;
  background: #fff;
  font-weight: 800;
  font-size: 15px;
  transition: transform 0.1s ease;
}
.btn:active { transform: translateY(2px); }
.btn--small { min-height: 44px; padding: 0 14px; font-size: 14px; }
.btn--on { background: var(--pine); border-color: var(--pine); color: #fff; }
.btn--line { width: 100%; margin-top: 12px; }
.btn--forest { background: var(--forest); color: #fffaf1; }

/* Plan */
.days { display: grid; gap: 14px; }
.day h3 { display: flex; align-items: baseline; gap: 8px; margin: 0 0 8px; font-size: 19px; font-weight: 800; color: var(--sunset); }
.day h3 span { font-size: 14px; font-weight: 600; color: var(--muted); }
.day ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.day li { display: grid; grid-template-columns: 46px 36px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 16px; background: #fff; border: 1.5px solid var(--line); }
.plan__time { font-weight: 800; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.plan__icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--lake-tint); color: var(--lake); }
.plan__text { display: grid; min-width: 0; }
.plan__text strong { font-weight: 700; line-height: 1.2; }
.plan__text small { color: var(--muted); font-size: 13px; }

/* Cars */
.cars__list { display: grid; gap: 12px; }
.car { padding: 14px; border-radius: 18px; background: #fff; border: 1.5px solid var(--line); }
.car--mine { border-color: var(--pine); background: #f3faf4; }
.car__name { display: flex; justify-content: space-between; gap: 10px; margin: 0 0 10px; }
.car__name small { font-weight: 700; color: var(--pine); }
.car__note { margin: 12px 0 0; font-weight: 600; color: var(--pine); }
.seats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.seat { display: grid; justify-items: center; gap: 4px; padding: 10px 4px 8px; border-radius: 14px; background: var(--sand); }
.seat small { font-size: 12px; font-weight: 700; color: var(--muted); }
.seat--driver { background: var(--sunset-tint); }
.seat--free span { width: 32px; height: 32px; border: 2px dashed #b9a781; border-radius: 50%; }

/* Kit */
.kit__list, .pack__list, .expenses, .moves { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.kit__list li { display: flex; align-items: center; gap: 12px; padding: 6px 6px 6px 10px; border-radius: 16px; background: #fff; border: 1.5px solid var(--line); }
.kit__list li.kit--needed { border-style: dashed; border-color: var(--sunset); background: #fff6f1; }
.kit__icon { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 12px; background: var(--pine-tint); color: var(--pine); }
.kit--needed .kit__icon { background: var(--sunset-tint); color: var(--sunset); }
.kit__text { display: grid; flex: 1; min-width: 0; }
.kit__text small { font-size: 13px; color: var(--muted); }
.kit__list .avatar { margin-right: 6px; }

/* Packing */
.pack__item { position: relative; display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 4px 10px; border-radius: 14px; background: #fff; border: 1.5px solid var(--line); font-weight: 600; cursor: pointer; }
.pack__item input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.pack__box { display: grid; place-items: center; width: 26px; height: 26px; flex: none; border: 2.5px solid var(--forest); border-radius: 8px; color: transparent; }
.pack__item--done { background: var(--pine-tint); border-color: transparent; }
.pack__item--done .pack__box { background: var(--pine); border-color: var(--pine); color: #fff; }
.pack__item--done span:last-child { text-decoration: line-through; color: var(--muted); }
.pack__item input:focus-visible + .pack__box { outline: 3px solid var(--sunset); outline-offset: 2px; }

/* Kitty */
.kitty__sum { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.kitty__sum p { display: grid; margin: 0; padding: 12px 14px; border-radius: 16px; background: var(--forest); color: #fffaf1; }
.kitty__sum span { font-size: 13px; font-weight: 600; opacity: 0.8; }
.kitty__sum strong { font-size: 30px; line-height: 1.05; font-stretch: 85%; }
.expenses li { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 14px; background: #fff; border: 1.5px solid var(--line); }
.expenses__text { display: grid; flex: 1; min-width: 0; }
.expenses__text small { font-size: 13px; color: var(--muted); }
.expenses__amount { font-weight: 800; font-variant-numeric: tabular-nums; }
.kitty__h { margin: 16px 0 8px; font-size: 18px; font-weight: 800; }
.moves li { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 10px; border-radius: 14px; background: var(--sunset-tint); }
.moves__arrow { color: var(--sunset); }
.moves__text { display: grid; flex: 1; min-width: 0; margin-left: 4px; }
.moves__text small { font-weight: 800; color: var(--sunset); font-size: 15px; }
.kitty__square, .kitty__done { display: flex; align-items: center; gap: 8px; margin: 8px 0 0; font-weight: 600; color: var(--pine); }
.kitty__note { margin: 12px 0 0; font-size: 13px; color: var(--muted); }

/* Make your own */
.own { margin-top: 30px; padding: 20px; border: 2.5px dashed var(--forest); border-radius: 22px; background: rgb(255 250 241 / 0.7); }
.own__label { margin: 0; font-size: 13px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sunset); }
.own__words { margin: 8px 0; font-size: 22px; font-weight: 700; line-height: 1.3; }
.own__note { margin: 0; font-size: 14px; color: var(--muted); }

/* Dialog */
.dialog { width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 2.5px solid var(--forest); border-radius: 24px; background: var(--card); color: var(--forest); box-shadow: 0 6px 0 var(--forest); }
.dialog::backdrop { background: rgb(31 61 46 / 0.55); }
.dialog__body { padding: 18px 18px 22px; }
.dialog__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.dialog__title { margin: 0; font-size: 26px; font-weight: 800; }
.dialog__close { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border: 2px solid var(--line); border-radius: 999px; background: #fff; }
.dialog__close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.form { display: grid; gap: 14px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field__label { padding: 0; font-weight: 800; font-size: 14px; }
.field input, .field select { width: 100%; min-height: 48px; padding: 0 12px; border: 2px solid var(--forest); border-radius: 14px; background: #fff; font-size: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; }
.chip input, .icon-pick input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 2px solid var(--line); border-radius: 999px; background: #fff; font-weight: 700; }
.chip input:checked + span { border-color: var(--c); background: var(--c); color: #fff; }
.chip input:focus-visible + span, .icon-pick input:focus-visible + span { outline: 3px solid var(--sunset); outline-offset: 2px; }
.icons { display: grid; grid-template-columns: repeat(auto-fill, minmax(48px, 1fr)); gap: 8px; }
.icon-pick { position: relative; }
.icon-pick span { display: grid; place-items: center; height: 48px; border: 2px solid var(--line); border-radius: 14px; background: #fff; }
.icon-pick input:checked + span { border-color: var(--forest); background: var(--lake-tint); color: var(--lake); }
.form__problem { margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--sunset-tint); color: #a83a17; font-weight: 700; }
.form__actions { display: flex; justify-content: flex-end; }

.toast-region { position: fixed; left: 0; right: 0; bottom: 18px; z-index: 20; display: grid; justify-items: center; pointer-events: none; }
.toast { margin: 0 16px; padding: 12px 18px; border: 2.5px solid var(--forest); border-radius: 999px; background: var(--amber); color: var(--forest); font-weight: 800; box-shadow: 0 4px 0 var(--forest); animation: toast-in 0.25s ease; }
@keyframes toast-in { from { transform: translateY(10px); opacity: 0; } }

@media (min-width: 760px) {
  .poster { min-height: 380px; }
  .poster__top { padding: 30px 34px 0; }
  .poster__bottom { left: 34px; right: 34px; bottom: 26px; }
  .poster__badge { width: 118px; height: 118px; font-size: 15px; }
  .poster__badge strong { font-size: 52px; }
  .layout { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .plan { grid-column: 1 / -1; }
  .days { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .day li { grid-template-columns: 44px minmax(0, 1fr) auto; }
  .plan__icon { display: none; }
}

@media (min-width: 1080px) {
  .shell { padding: 28px 28px 64px; }
  .layout { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .kitty { grid-column: span 2; grid-row: span 2; }
  .day li { grid-template-columns: 46px 36px minmax(0, 1fr) auto; }
  .plan__icon { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
