:root {
  --ink: #14213d;
  --peacock: #0b6e6e;
  --silk: #b5245f;
  --turmeric: #f2b01e;
  --paper: #f5f6f2;
  --line: #d9ddd5;
  --muted: #55607a;
  --hero-ink: #14213d;
  --font-display: "Tiro Tamil", Georgia, "Times New Roman", serif;
  --font-body: "Hind Madurai", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
a { color: inherit; }
:focus-visible { outline: 3px solid var(--turmeric); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--turmeric); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 0; }

/* Hero */
.hero { background: var(--ink); color: #fff; --hero-ink: var(--ink); }
.nav {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
  max-width: 1100px; margin: 0 auto; padding: 1.25rem 1.5rem;
}
.brand { font-family: var(--font-display); font-size: 1.25rem; }
.nav ul { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.nav a { text-decoration: none; }
.nav a:hover { text-decoration: underline; text-underline-offset: 4px; }

.hero-body {
  display: grid; grid-template-columns: 1.3fr 1fr; align-items: end; gap: 2rem;
  max-width: 1100px; margin: 0 auto; padding: 2rem 1.5rem 0;
}
.greeting { font-family: var(--font-display); font-size: clamp(3.5rem, 11vw, 7.5rem); line-height: 1; margin: 0 0 1rem; color: var(--turmeric); }
.hero h1 { font-family: var(--font-body); font-weight: 600; font-size: clamp(1.6rem, 3.4vw, 2.4rem); line-height: 1.2; margin: 0 0 1rem; }
.lede { max-width: 52ch; color: #d6dbea; margin: 0 0 1.75rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; padding-bottom: 3rem; }
.gopuram { width: 100%; max-width: 360px; justify-self: end; color: var(--silk); display: block; }

.btn {
  display: inline-block; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  padding: .7rem 1.4rem; border-radius: 4px; border: 2px solid transparent;
}
.btn.primary { background: var(--turmeric); color: var(--ink); }
.btn.primary:hover { background: #ffc43d; }
.btn.ghost { border-color: #fff; color: #fff; }
.btn.ghost:hover { background: rgba(255,255,255,.12); }

/* Sections */
.section { max-width: 1100px; margin: 0 auto; padding: 4rem 1.5rem 1rem; }
.section h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.7rem, 3vw, 2.2rem); margin: 0 0 .5rem; }
.section-note { color: var(--muted); max-width: 60ch; margin: 0 0 1.5rem; }

.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.chip {
  font: inherit; padding: .4rem 1rem; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--ink); background: transparent; color: var(--ink);
}
.chip:hover { background: #e6e9e2; }
.chip.is-active { background: var(--ink); color: #fff; }

/* Place list: rows with a coloured band by type */
.place-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.place {
  display: grid; grid-template-columns: 8px 1fr auto; gap: 1.25rem; align-items: start;
  padding: 1.1rem 0; border-bottom: 1px solid var(--line);
}
.place .band { align-self: stretch; border-radius: 4px; background: var(--peacock); }
.place[data-type="hill"] .band { background: #3f7d20; }
.place[data-type="beach"] .band { background: #1d75bd; }
.place[data-type="nature"] .band { background: var(--silk); }
.place[data-type="temple"] .band { background: var(--turmeric); }
.place h3 { margin: 0; font-size: 1.2rem; }
.place p { margin: .25rem 0 0; color: var(--muted); max-width: 62ch; }
.place .meta { text-align: right; font-size: .95rem; color: var(--muted); white-space: nowrap; }
.place .meta strong { display: block; color: var(--ink); font-weight: 600; }

/* Planner */
.planner { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: start; }
.planner-form label { display: block; font-weight: 600; margin-bottom: .35rem; }
.planner-form input[type="number"] {
  font: inherit; width: 6rem; padding: .5rem .7rem; border: 1.5px solid var(--ink); border-radius: 4px; background: #fff; margin-bottom: 1.25rem;
}
fieldset { border: 0; padding: 0; margin: 0 0 1.5rem; }
legend { font-weight: 600; padding: 0; margin-bottom: .35rem; }
.check { font-weight: 400 !important; display: flex !important; align-items: center; gap: .5rem; padding: .2rem 0; }
.check input { width: 1.1rem; height: 1.1rem; accent-color: var(--peacock); }
.planner .btn.primary { background: var(--peacock); color: #fff; }
.planner .btn.primary:hover { background: #08595a; }

.itinerary { list-style: none; margin: 0; padding: 0; counter-reset: day; }
.itinerary li { counter-increment: day; padding: 1rem 0 1rem 4.5rem; position: relative; border-bottom: 1px solid var(--line); }
.itinerary li::before {
  content: "Day " counter(day); position: absolute; left: 0; top: 1rem;
  font-family: var(--font-display); color: var(--silk); font-size: 1.1rem;
}
.itinerary li.empty { counter-increment: none; padding-left: 0; color: var(--muted); }
.itinerary li.empty::before { content: none; }
.itinerary strong { display: block; font-size: 1.1rem; }
.itinerary span { color: var(--muted); }

/* Food */
.food-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem 2.5rem; margin: 0; }
.food-list dt { font-family: var(--font-display); font-size: 1.2rem; color: var(--peacock); }
.food-list dd { margin: .15rem 0 0; color: var(--muted); }

.footer { margin-top: 4rem; padding: 2rem 1.5rem; background: var(--ink); color: #c9cfe0; text-align: center; }
.footer p { margin: 0 auto; max-width: 60ch; }

.error-page main { max-width: 560px; margin: 18vh auto; padding: 0 1.5rem; }
.error-page h1 { font-family: var(--font-display); font-weight: 400; }
.error-page .btn.primary { background: var(--peacock); color: #fff; }

@media (max-width: 760px) {
  .hero-body { grid-template-columns: 1fr; }
  .gopuram { max-width: 220px; justify-self: start; }
  .place { grid-template-columns: 6px 1fr; }
  .place .meta { grid-column: 2; text-align: left; white-space: normal; }
  .planner { grid-template-columns: 1fr; gap: 2rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
