:root {
  --plaster: #EFE7D8;
  --plaster-card: #FBF7EE;
  --ink: #1E3B3D;
  --terracotta: #C4552E;
  --sea: #3C7686;
  --salt-pink: #E3A896;
  --line: rgba(30, 59, 61, 0.16);
  --radius: 3px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--plaster);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.dossier {
  max-width: 640px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

/* ---------- Masthead ---------- */

.masthead {
  border-bottom: 1px solid var(--line);
  padding-bottom: 28px;
  margin-bottom: 28px;
}

.masthead__route {
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--sea);
  margin: 0 0 14px;
}

.masthead__title {
  font-family: 'Fraunces', serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: 40px;
  line-height: 1.12;
  margin: 0 0 16px;
  color: var(--ink);
}

.masthead__sub {
  max-width: 46ch;
  margin: 0;
  color: rgba(30, 59, 61, 0.78);
  font-size: 15.5px;
}

/* ---------- Day switcher ---------- */

.dayswitch {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.dayswitch__btn {
  flex: 1;
  text-align: left;
  background: var(--plaster-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 16px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.dayswitch__btn:hover {
  border-color: var(--sea);
}

.dayswitch__btn.is-active {
  background: var(--ink);
  border-color: var(--ink);
}

.dayswitch__num {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 18px;
  color: var(--ink);
}

.dayswitch__btn.is-active .dayswitch__num {
  color: var(--plaster-card);
}

.dayswitch__label {
  font-size: 13px;
  color: rgba(30, 59, 61, 0.65);
}

.dayswitch__btn.is-active .dayswitch__label {
  color: rgba(251, 247, 238, 0.72);
}

/* ---------- Shorten toggle ---------- */

.toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 36px;
  cursor: pointer;
  user-select: none;
  width: fit-content;
}

.toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle__box {
  width: 34px;
  height: 20px;
  border-radius: 999px;
  background: rgba(30, 59, 61, 0.18);
  position: relative;
  flex-shrink: 0;
  transition: background 0.15s ease;
}

.toggle__box::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--plaster-card);
  transition: transform 0.15s ease;
}

.toggle input:checked + .toggle__box {
  background: var(--terracotta);
}

.toggle input:checked + .toggle__box::after {
  transform: translateX(14px);
}

.toggle__text {
  font-size: 14px;
  color: rgba(30, 59, 61, 0.75);
}

/* ---------- Route / stops ---------- */

.stops {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.stop {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 4px 20px;
  padding: 22px 0;
  position: relative;
  border-bottom: 1px solid var(--line);
}

.stop:last-child {
  border-bottom: none;
}

.stop__time {
  position: relative;
  padding-left: 16px;
  font-size: 12.5px;
  color: var(--sea);
  padding-top: 3px;
}

.stop__time::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--terracotta);
}

.stop--optional .stop__time::before {
  background: var(--plaster);
  border: 2px solid var(--terracotta);
  top: 4px;
}

.stop--dinner .stop__time::before {
  background: var(--sea);
}

.stop__photo {
  grid-column: 1 / -1;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 7;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  margin-bottom: 4px;
}

.stop__photo img,
.stop__illo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.stop__illo {
  z-index: 0;
}

.stop__photo img {
  z-index: 1;
}

.stop__name {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 19px;
  margin: 0 0 6px;
}

.stop__desc {
  margin: 0 0 10px;
  font-size: 14.5px;
  color: rgba(30, 59, 61, 0.8);
  max-width: 52ch;
}

.stop--optional {
  opacity: 0.88;
}

.stop--optional .stop__name::after {
  content: ' — optional';
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 13px;
  color: var(--terracotta);
}

.stop__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.mapbtn {
  font-size: 13px;
  color: var(--sea);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}

.mapbtn:hover,
.mapbtn:focus-visible {
  border-bottom-color: var(--sea);
}

.walk {
  display: inline-block;
  font-size: 12.5px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: rgba(30, 59, 61, 0.75);
}

.walk--none {
  border-color: rgba(60, 118, 134, 0.4);
  color: var(--sea);
}

.walk--short {
  border-color: rgba(196, 85, 46, 0.4);
  color: var(--terracotta);
}

.walk--variable {
  border-color: rgba(30, 59, 61, 0.3);
}

body.is-shortened .stop--optional {
  display: none;
}

/* ---------- Dinner ---------- */

.dinner {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.dinner__title {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 26px;
  margin: 0 0 6px;
}

.dinner__intro {
  margin: 0 0 22px;
  color: rgba(30, 59, 61, 0.7);
  font-size: 14.5px;
}

.dinner__grid {
  display: grid;
  gap: 12px;
}

.dish {
  background: var(--plaster-card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--salt-pink);
  border-radius: var(--radius);
  overflow: hidden;
}

.dish__photo {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 6;
}

.dish__photo img,
.dish__illo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dish__illo { z-index: 0; }
.dish__photo img { z-index: 1; }

.dish__body {
  padding: 16px 18px;
}

.dish__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}

.dish__head h3 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 17px;
  margin: 0;
}

.dish__price {
  font-size: 13px;
  color: var(--terracotta);
}

.dish__desc {
  margin: 0 0 10px;
  font-size: 14px;
  color: rgba(30, 59, 61, 0.78);
}

/* ---------- Notes ---------- */

.notes {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.notes__title {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 18px;
  margin: 0 0 12px;
}

.notes ul {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
  color: rgba(30, 59, 61, 0.78);
}

.notes li {
  margin-bottom: 8px;
}

/* ---------- Responsive ---------- */

@media (max-width: 480px) {
  .dossier { padding: 32px 18px 60px; }
  .masthead__title { font-size: 32px; }
  .stop { grid-template-columns: 52px 1fr; gap: 4px 14px; }
  .stop__time { font-size: 11px; }
  .dinner__grid { gap: 14px; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- Focus visibility ---------- */

button:focus-visible,
.toggle:focus-within .toggle__box {
  outline: 2px solid var(--terracotta);
  outline-offset: 2px;
}
