:root {
  --cream: #faf6ef;
  --paper: #fffdf8;
  --ink: #2b2320;
  --ink-soft: #6b5d54;
  --terracotta: #c2542e;
  --terracotta-dark: #a03f1e;
  --olive: #5c6b3c;
  --gold: #c9a227;
  --line: #e8dfd2;
  --shadow: 0 1px 2px rgba(43, 35, 32, 0.05), 0 4px 16px rgba(43, 35, 32, 0.06);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 680px; margin: 0 auto; padding: 0 20px 64px; }

/* ---------- header ---------- */
header {
  text-align: center;
  padding: 48px 16px 8px;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 600;
}
h1 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(44px, 10vw, 64px);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin: 8px 0 6px;
}
.dates {
  color: var(--ink-soft);
  font-size: 15px;
}
.countdown {
  display: inline-block;
  margin-top: 14px;
  background: var(--ink);
  color: var(--cream);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
}

nav.tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 28px 0 8px;
}
nav.tabs a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 999px;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  background: var(--paper);
}
nav.tabs a.active {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: #fff;
}

/* ---------- progress ---------- */
.progress-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 18px 20px;
  margin: 20px 0 32px;
}
.progress-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}
.progress-top strong { font-size: 15px; }
.progress-top span { font-size: 13px; color: var(--ink-soft); }
.bar {
  height: 10px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--terracotta), var(--gold));
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.all-done {
  display: none;
  margin-top: 12px;
  font-size: 14px;
  color: var(--olive);
  font-weight: 600;
}
.progress-card.complete .all-done { display: block; }

/* ---------- sections ---------- */
.section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 36px 0 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.section-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.section-label.urgent { color: var(--terracotta-dark); }
.section-label.high { color: var(--olive); }
.section-label.normal { color: var(--ink-soft); }

/* ---------- checklist items ---------- */
.item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 16px 18px;
  margin-bottom: 12px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  transition: opacity 0.25s ease;
}
.item.done { opacity: 0.55; }
.item.done .item-title { text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: var(--terracotta); }

.checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 26px;
  height: 26px;
  margin-top: 2px;
  border: 2px solid #cfc4b4;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: all 0.15s ease;
}
.checkbox:checked {
  background: var(--olive);
  border-color: var(--olive);
}
.checkbox:checked::after {
  content: "✓";
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -52%);
}

.item-title {
  font-family: "Fraunces", Georgia, serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
}
.item-when {
  display: inline-block;
  margin-top: 4px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--terracotta-dark);
  background: #f7e9e1;
  padding: 2px 10px;
  border-radius: 999px;
}
.item-when.booked {
  background: #e9efdd;
  color: var(--olive);
}
.item.done .item-when.booked { text-decoration: none; }
.item-notes {
  margin-top: 8px;
  font-size: 14px;
  color: var(--ink-soft);
}
.item-notes b { color: var(--ink); font-weight: 600; }
.item-actions { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.btn {
  display: inline-block;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--cream);
}
.btn.secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid #d5c9b8;
}
.btn:active { transform: translateY(1px); }

/* ---------- itinerary page ---------- */
.day {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 22px 22px 18px;
  margin-bottom: 16px;
}
.day-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta);
}
.day h2 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  margin: 4px 0 12px;
}
.day ul { list-style: none; }
.day li {
  position: relative;
  padding: 6px 0 6px 22px;
  font-size: 14.5px;
  color: #4a3f38;
}
.day li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 13px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}
.day li b { color: var(--ink); }
.tip {
  margin-top: 10px;
  font-size: 13px;
  color: var(--olive);
  background: #f0f2e6;
  border-radius: 10px;
  padding: 8px 12px;
}

footer {
  text-align: center;
  margin-top: 48px;
  font-size: 13px;
  color: var(--ink-soft);
}
footer .sig { font-family: "Fraunces", Georgia, serif; font-style: italic; }

@media (max-width: 480px) {
  .item { padding: 14px; gap: 11px; }
  .item-title { font-size: 16.5px; }
}
