@import url("https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,400;0,500;0,600;0,700&family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,500;0,8..60,600;1,8..60,400;1,8..60,500;1,8..60,600&display=swap");

:root {
  --ground: #f1ecde;
  --surface: #e6dcc4;
  --foam: #faf6eb;
  --ink: #1a1a18;
  --muted: #736d5a;
  --foil: #1b4b5a;
  --foil-ink: #f1ecde;
  --sienna: #a04a2a;
  --hairline: #c8bea4;
  --ok: #2d5a45;
  --shadow: 0 24px 48px rgba(26, 26, 24, 0.14);
  --serif: "Source Serif 4", "Palatino Linotype", Palatino, serif;
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 96px;
  --header-h: 64px;
  --nav-h: 68px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.65;
  min-height: 100dvh;
}

body {
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom));
}

img {
  max-width: 100%;
  display: block;
}

button,
a {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

a {
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 2px solid var(--foil);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--ink);
  color: var(--ground);
  padding: 8px 12px;
  z-index: 80;
}

.skip:focus {
  top: 12px;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--header-h);
  padding: 10px 16px;
  padding-top: calc(10px + env(safe-area-inset-top));
  background: color-mix(in srgb, var(--ground) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--foil);
}

.brand-title {
  font-style: italic;
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.02em;
}

.day-switch {
  display: flex;
  border: 1px solid var(--hairline);
  background: var(--foam);
}

.day-switch button {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 8px 10px;
  min-height: 40px;
  color: var(--muted);
}

.day-switch button[aria-pressed="true"] {
  background: var(--foil);
  color: var(--foil-ink);
}

.layout {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 32px;
}

.view {
  display: none;
}

.view.is-on {
  display: block;
}

.hero {
  display: grid;
  gap: 16px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(34px, 8vw, 72px);
}

.hero-photo {
  position: relative;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  background: var(--surface);
}

@media (max-width: 899px) {
  .hero {
    gap: 12px;
    margin-bottom: 16px;
  }

  .hero-photo {
    order: -1;
    aspect-ratio: 16 / 6;
  }

  .lede {
    display: none;
  }
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.88) contrast(1.02);
}

.hero-photo figcaption {
  position: absolute;
  left: 12px;
  bottom: 10px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f1ecde;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.hero h1 {
  margin: 0;
  font-size: clamp(40px, 9vw, 72px);
  font-weight: 500;
  font-style: italic;
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-wrap: pretty;
}

.lede {
  margin: 0;
  max-width: 38rem;
  color: var(--muted);
  text-wrap: pretty;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
}

.meta-row strong {
  color: var(--ink);
  font-weight: 600;
}

.now-card,
.panel,
.step-card,
.info-card {
  background: var(--foam);
  border: 1px solid var(--hairline);
}

.now-card {
  padding: 20px;
}

.kicker {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--foil);
  margin: 0 0 8px;
}

.now-card h2,
.panel h2,
.info-card h2,
.section-title {
  margin: 0 0 8px;
  font-size: clamp(26px, 5vw, 36px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
  text-wrap: pretty;
}

.time-range {
  font-family: var(--sans);
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
}

.kind-pill {
  display: inline-block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--hairline);
  padding: 4px 8px;
  color: var(--muted);
  margin-bottom: 10px;
}

.kind-pill.rest {
  color: var(--sienna);
  border-color: color-mix(in srgb, var(--sienna) 35%, var(--hairline));
}

.kind-pill.go {
  color: var(--foil);
}

.kind-pill.locked {
  color: var(--sienna);
  border-color: color-mix(in srgb, var(--sienna) 40%, var(--hairline));
}

.summary {
  margin: 0 0 16px;
  text-wrap: pretty;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid var(--ink);
  transition: background 180ms var(--ease), color 180ms var(--ease), transform 160ms var(--ease);
}

.btn:hover {
  background: var(--ink);
  color: var(--ground);
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.38;
  cursor: not-allowed;
  transform: none;
}

.btn:disabled:hover {
  background: inherit;
  color: inherit;
}

.btn.primary {
  background: var(--foil);
  border-color: var(--foil);
  color: var(--foil-ink);
}

.btn.primary:hover {
  background: #143843;
  color: var(--foil-ink);
}

.btn.ghost {
  border-color: var(--hairline);
  color: var(--ink);
}

.btn.ghost:hover {
  background: var(--surface);
  color: var(--ink);
}

.btn[aria-pressed="true"] {
  background: var(--ok);
  border-color: var(--ok);
  color: #f3f7f4;
}

.icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.map-frame {
  margin-top: 16px;
  border: 1px solid var(--hairline);
  background: var(--surface);
  min-height: 240px;
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 240px;
  border: 0;
}

.map-large iframe {
  height: min(52vh, 520px);
}

.next-hint {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
  font-size: 16px;
  color: var(--muted);
}

.next-hint strong {
  color: var(--ink);
  font-weight: 600;
}

.guide-nav {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 16px;
}

.split {
  display: grid;
  gap: 16px;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tl-item {
  display: grid;
  grid-template-columns: 72px 18px 1fr;
  gap: 10px;
}

.tl-time {
  font-family: var(--sans);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  padding-top: 14px;
  text-align: right;
}

.tl-rail {
  position: relative;
}

.tl-rail::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--hairline);
}

.tl-item:first-child .tl-rail::before {
  top: 22px;
}

.tl-item:last-child .tl-rail::before {
  bottom: auto;
  height: 22px;
}

.tl-dot {
  position: absolute;
  top: 18px;
  left: 3px;
  width: 12px;
  height: 12px;
  border: 1px solid var(--foil);
  background: var(--ground);
  z-index: 1;
}

.tl-item.is-now .tl-dot,
.tl-item.is-on .tl-dot {
  background: var(--foil);
}

.tl-item.is-done .tl-dot {
  background: var(--ok);
  border-color: var(--ok);
}

.tl-item.is-rest .tl-dot {
  border-style: dashed;
  background: transparent;
}

.step-card {
  margin: 8px 0 8px;
  padding: 14px 14px 16px;
  text-align: left;
  width: 100%;
  transition: background 180ms var(--ease), border-color 180ms var(--ease);
}

.step-card:hover {
  background: #fffaf0;
}

.tl-item.is-on .step-card {
  border-color: var(--foil);
  background: #fffaf0;
}

.step-card h3 {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.step-card p {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}

.travel-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--foil);
}

.progress {
  height: 3px;
  background: var(--surface);
  margin: 0 0 20px;
}

.progress > span {
  display: block;
  height: 100%;
  background: var(--foil);
  width: 0;
  transition: width 280ms var(--ease);
}

.place-list {
  display: grid;
  gap: 8px;
}

.place-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  min-height: 52px;
  border: 1px solid var(--hairline);
  background: var(--foam);
  font-family: var(--sans);
  font-size: 15px;
}

.place-btn[aria-pressed="true"] {
  border-color: var(--foil);
  background: #fffaf0;
}

.place-btn small {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.info-grid {
  display: grid;
  gap: 16px;
}

.info-card {
  padding: 20px;
}

.info-card p,
.info-card li {
  color: #3b382e;
}

.info-card ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.dl {
  display: grid;
  gap: 10px;
  margin: 12px 0 0;
}

.dl div {
  display: grid;
  gap: 2px;
}

.dl dt {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.dl dd {
  margin: 0;
}

.check-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}

.check-list li + li {
  border-top: 1px solid var(--hairline);
}

.check-list label {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  cursor: pointer;
}

.check-list input {
  width: 18px;
  height: 18px;
  accent-color: var(--foil);
}

.detail-box {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--hairline);
  font-size: 16px;
}

.detail-box p {
  margin: 0 0 10px;
}

.tips {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.tips li + li {
  margin-top: 4px;
}

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--foam);
  border-top: 1px solid var(--hairline);
  padding-bottom: env(safe-area-inset-bottom);
}

.bottom-nav button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 60px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.bottom-nav button[aria-current="page"] {
  color: var(--foil);
}

.welcome {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: color-mix(in srgb, var(--ground) 92%, transparent);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.welcome.is-on {
  display: flex;
}

.welcome-card {
  width: min(440px, 100%);
  background: var(--foam);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow);
  padding: 28px 24px;
}

.welcome-card h2 {
  margin: 0 0 8px;
  font-size: 32px;
  font-style: italic;
  font-weight: 500;
}

.welcome-card p {
  color: var(--muted);
  margin: 0 0 20px;
}

.welcome-card .actions {
  flex-direction: column;
}

.welcome-card .btn {
  width: 100%;
}

.note {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (min-width: 900px) {
  body {
    padding-bottom: 0;
  }

  .bottom-nav {
    display: none;
  }

  .desk-nav {
    display: flex;
    gap: 4px;
  }

  .desk-nav button {
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 8px 12px;
    min-height: 40px;
    color: var(--muted);
  }

  .desk-nav button[aria-current="page"] {
    color: var(--ink);
    box-shadow: inset 0 -2px 0 var(--foil);
  }

  .layout {
    width: min(1180px, calc(100% - 64px));
    padding-top: 32px;
  }

  .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }

  .map-sticky {
    position: sticky;
    top: calc(var(--header-h) + 16px);
  }

  .map-frame iframe,
  .map-large iframe {
    height: min(64vh, 640px);
  }

  .hero {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: end;
    gap: 32px;
    margin-bottom: 32px;
  }

  .hero-photo {
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 899px) {
  .desk-nav {
    display: none;
  }
}

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