/* Hallmark · genre: editorial · macrostructure: Long Document · theme: Almanac
 * nav: N9 Edge-aligned minimal · footer: Ft2 Inline single line
 * enrichment: none (typography only)
 * accent: cinnabar oklch(55% 0.18 25) · paper: warm cream oklch(96% 0.008 35)
 */

/* ── Tokens ── */
:root {
  /* colour */
  --color-paper:    oklch(96% 0.008 35);
  --color-paper-2:  oklch(93.5% 0.010 35);
  --color-paper-3:  oklch(90% 0.012 35);
  --color-rule:     oklch(82% 0.010 35);
  --color-neutral:  oklch(56% 0.008 35);
  --color-muted:    oklch(42% 0.008 30);
  --color-ink:      oklch(18% 0.010 35);
  --color-accent:   oklch(55% 0.18 25);
  --color-accent-light: oklch(92% 0.04 25);
  --color-focus:    oklch(55% 0.18 25);
  /* typography */
  --font-display: "Newsreader", "Noto Serif SC", "Songti SC", Georgia, serif;
  --font-body:    "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", system-ui, sans-serif;
  --font-outlier: "JetBrains Mono", "Noto Sans SC", ui-monospace, monospace;
  /* scale — major third 1.25 */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-md:   1.25rem;
  --text-lg:   1.5625rem;
  --text-xl:   1.9531rem;
  --text-2xl:  2.4414rem;
  --text-3xl:  3.0518rem;
  --text-display: clamp(2.2rem, 4vw + 0.8rem, 3.8rem);
  /* spacing — 4pt scale, fluid on major values */
  --space-3xs: 0.125rem;
  --space-2xs: 0.25rem;
  --space-xs:  0.5rem;
  --space-sm:  0.75rem;
  --space-md:  1rem;
  --space-lg:  clamp(1.25rem, 1vw + 0.75rem, 1.5rem);
  --space-xl:  clamp(2rem, 1.5vw + 1rem, 2.5rem);
  --space-2xl: clamp(3rem, 2vw + 1.5rem, 4rem);
  --space-3xl: clamp(4.5rem, 3vw + 2rem, 6rem);
  /* page width */
  --page-max:  min(42rem, 100vw - 2rem);
  /* motion */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:     cubic-bezier(0.7, 0, 0.84, 0);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-micro:   120ms;
  --dur-short:   220ms;
  --dur-long:    420ms;
  /* radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
}

/* ── Reset & base ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: 4.5rem;
}
body {
  overflow-x: clip;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-ink);
  background: var(--color-paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Page wrapper ── */
.page {
  max-width: var(--page-max);
  margin: 0 auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
  padding-bottom: var(--space-3xl);
}

/* ── Hero ── */
.hero {
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid var(--color-rule);
}
.hero__eyebrow {
  font-family: var(--font-outlier);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-xs);
}
.hero__title {
  font-family: var(--font-display);
  font-size: var(--text-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--color-ink);
  margin-bottom: var(--space-md);
  font-style: normal;
  overflow-wrap: anywhere;
}
.hero__meta {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 300;
  line-height: 1.5;
  color: var(--color-muted);
}
.hero__meta span {
  display: inline;
}
.hero__meta .sep {
  margin: 0 var(--space-xs);
  color: var(--color-rule);
}
.hero__people {
  margin-top: var(--space-sm);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-neutral);
  letter-spacing: 0.01em;
}

/* ── Section ── */
.section {
  padding-top: var(--space-2xl);
}
.section__head {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--color-ink);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--color-rule);
  margin-bottom: var(--space-lg);
  font-style: normal;
}

/* ── Day selector (sticky nav) ── */
.day-selector {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky, 200);
  background: var(--color-paper);
  border-bottom: 1px solid var(--color-rule);
  padding: var(--space-xs) 0;
  margin-inline: calc(-1 * clamp(1rem, 4vw, 3rem));
  padding-inline: clamp(1rem, 4vw, 3rem);
}
.day-selector__inner {
  display: flex;
  gap: var(--space-2xs);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: var(--space-2xs);
}
.day-selector__inner::-webkit-scrollbar { display: none; }
.day-btn {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: var(--space-2xs) var(--space-sm);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background: none;
  cursor: pointer;
  font-family: var(--font-outlier);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-neutral);
  transition: color var(--dur-micro) var(--ease-out),
              background var(--dur-micro) var(--ease-out),
              border-color var(--dur-micro) var(--ease-out);
  white-space: nowrap;
  line-height: 1.3;
}
.day-btn:hover {
  color: var(--color-ink);
  background: var(--color-paper-2);
}
.day-btn:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}
.day-btn.active {
  color: var(--color-accent);
  background: var(--color-accent-light);
  border-color: oklch(80% 0.06 25);
}
.day-btn__date {
  font-weight: 400;
  font-size: var(--text-xs);
  opacity: 0.7;
}

/* ── Day panel ── */
.day-panel {
  display: none;
}
.day-panel.active {
  display: block;
}
.day-panel__title {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-ink);
  margin-bottom: var(--space-lg);
  font-style: normal;
}
.day-panel__title .day-ruby {
  font-family: var(--font-outlier);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  display: block;
  margin-bottom: var(--space-2xs);
}

/* ── Timeline ── */
.timeline {
  position: relative;
  padding-left: 2rem;
  margin-bottom: var(--space-lg);
}
.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--color-rule);
}
.tl-item {
  position: relative;
  margin-bottom: var(--space-lg);
}
.tl-item:last-child {
  margin-bottom: 0;
}
.tl-dot {
  position: absolute;
  left: -2rem;
  top: 3px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--color-accent);
  border: 2px solid var(--color-paper);
  box-shadow: 0 0 0 1px var(--color-rule);
  z-index: 1;
}
.tl-dot--flight { background: oklch(55% 0.12 240); }
.tl-dot--stay   { background: oklch(50% 0.14 145); }
.tl-dot--food   { background: oklch(60% 0.14 80); }
.tl-dot--sight  { background: var(--color-accent); }
.tl-dot--transport { background: var(--color-neutral); }

.tl-time {
  font-family: var(--font-outlier);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-neutral);
  margin-bottom: var(--space-2xs);
}
.tl-title {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1.5;
  color: var(--color-ink);
  margin-bottom: var(--space-2xs);
}
.tl-desc {
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: 1.65;
  max-width: 55ch;
}

/* ── Flight card ── */
.flight {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--color-paper-2);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
}
.flight__header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  width: 100%;
  margin-bottom: var(--space-2xs);
}
.flight__date {
  font-family: var(--font-outlier);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-neutral);
  letter-spacing: 0.04em;
}
.flight__no {
  font-family: var(--font-outlier);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-accent);
  background: var(--color-accent-light);
  padding: 2px 10px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.06em;
  border: 1px solid oklch(80% 0.06 25);
}
.flight__people {
  font-size: var(--text-xs);
  color: var(--color-accent);
  margin-left: auto;
  font-weight: 600;
}
.flight__route {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  width: 100%;
  justify-content: center;
}
.flight__ep {
  text-align: center;
  min-width: 0;
}
.flight__ep-time {
  font-family: var(--font-outlier);
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--color-ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.flight__ep-airport {
  font-size: var(--text-xs);
  color: var(--color-neutral);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.flight__arrow {
  font-size: var(--text-md);
  color: var(--color-accent);
  flex-shrink: 0;
}

/* ── Action buttons ── */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-top: var(--space-sm);
}
.act-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  padding: 4px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-rule);
  background: var(--color-paper);
  color: var(--color-muted);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  cursor: pointer;
  transition: background var(--dur-micro) var(--ease-out),
              color var(--dur-micro) var(--ease-out),
              border-color var(--dur-micro) var(--ease-out);
  text-decoration: none;
  white-space: nowrap;
}
.act-btn:hover {
  background: var(--color-paper-2);
  color: var(--color-ink);
}
.act-btn:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}
.act-btn--map {
  border-color: oklch(75% 0.06 240);
  color: oklch(45% 0.12 240);
}
.act-btn--map:hover {
  background: oklch(94% 0.03 240);
}
.act-btn.copied {
  background: oklch(92% 0.06 145);
  border-color: oklch(70% 0.10 145);
  color: oklch(35% 0.10 145);
}

/* ── Accommodation card ── */
.accom {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--color-paper-2);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-md);
}
.accom__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4em;
  flex-shrink: 0;
  background: var(--color-paper-3);
}
.accom__body {
  flex: 1;
  min-width: 0;
}
.accom__name {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--color-ink);
  margin-bottom: var(--space-2xs);
  font-style: normal;
}
.accom__loc {
  font-size: var(--text-sm);
  color: var(--color-neutral);
  margin-bottom: var(--space-sm);
}

/* ── Info chips ── */
.info-row {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
  flex-wrap: wrap;
}
.info-chip {
  padding: var(--space-xs) var(--space-sm);
  background: var(--color-paper);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  flex: 1;
  min-width: 140px;
}
.info-chip__label {
  color: var(--color-neutral);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.info-chip__value {
  color: var(--color-ink);
  font-weight: 600;
}

/* ── Note box ── */
.note {
  background: oklch(94% 0.04 80);
  border-left: 3px solid oklch(65% 0.14 80);
  padding: var(--space-sm) var(--space-md);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: var(--text-sm);
  color: oklch(35% 0.06 60);
  line-height: 1.65;
  margin: var(--space-sm) 0;
}
.note a {
  color: oklch(45% 0.12 240);
}

/* ── Quick links ── */
.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}
.quick-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-rule);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-ink);
  background: var(--color-paper);
  transition: background var(--dur-micro) var(--ease-out),
              border-color var(--dur-micro) var(--ease-out);
  white-space: nowrap;
}
.quick-link:hover {
  background: var(--color-paper-2);
  border-color: var(--color-accent);
}
.quick-link:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

/* ── Special day highlight ── */
.day-panel--split {
  border-left: 3px solid oklch(55% 0.12 280);
  padding-left: var(--space-md);
}
.day-panel--fuji {
  border-left: 3px solid oklch(60% 0.14 80);
  padding-left: var(--space-md);
}

/* ── Footer ── */
.footer {
  margin-top: var(--space-3xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-rule);
  font-size: var(--text-sm);
  color: var(--color-neutral);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-xs);
}
.footer__copy {
  font-family: var(--font-outlier);
  font-size: var(--text-xs);
  letter-spacing: 0.02em;
}

/* ── Entrance animation ── */
.reveal {
  opacity: 0;
  transform: translateY(6px);
  animation: reveal var(--dur-long) var(--ease-out) forwards;
  animation-delay: calc(var(--i, 0) * 50ms);
}
@keyframes reveal {
  to { opacity: 1; transform: none; }
}

/* ── Inline expandable card ── */
.tl-title--clickable {
  cursor: pointer;
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.tl-title--clickable:hover {
  color: var(--color-accent);
}
.expand-icon {
  display: inline-block;
  font-size: 0.7em;
  color: var(--color-muted);
  transition: transform var(--dur-short) var(--ease-out);
}
.tl-item.expanded .expand-icon {
  transform: rotate(90deg);
}
.info-card {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows var(--dur-short) var(--ease-out),
              opacity var(--dur-short) var(--ease-out);
}
.tl-item.expanded .info-card {
  grid-template-rows: 1fr;
  opacity: 1;
}
.info-card__inner {
  overflow: hidden;
  padding: var(--space-sm) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: 1.65;
}
.info-card__row {
  display: flex;
  gap: var(--space-sm);
}
.info-card__label {
  font-weight: 600;
  color: var(--color-ink);
  min-width: 2.5em;
  flex-shrink: 0;
}
.info-card__tips {
  margin-top: var(--space-2xs);
  padding: var(--space-2xs) var(--space-sm);
  background: var(--color-paper-2);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--color-accent);
  font-size: var(--text-xs);
}

/* ═══════════════════════════════════════════
   Packing List page
   ═══════════════════════════════════════════ */

/* ── Progress bar ── */
.progress-bar {
  height: 4px;
  background: var(--color-rule);
  border-radius: 2px;
  margin-bottom: var(--space-lg);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.5s ease;
  background: var(--color-accent);
}

/* ── Stats row ── */
.stats {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}
.stat-card {
  flex: 1;
  background: var(--color-paper-2);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-md);
  text-align: center;
}
.stat-card__num {
  font-family: var(--font-outlier);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-accent);
  line-height: 1.2;
}
.stat-card__label {
  font-size: var(--text-xs);
  color: var(--color-neutral);
  margin-top: 2px;
  letter-spacing: 0.02em;
}

/* ── Legend ── */
.legend {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  margin-bottom: var(--space-lg);
  font-size: var(--text-xs);
  color: var(--color-muted);
}
.legend span {
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
}
.legend__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.legend__dot--c1 { background: oklch(55% 0.14 145); }
.legend__dot--c2 { background: oklch(55% 0.12 240); }
.legend__dot--both {
  background: linear-gradient(135deg, oklch(55% 0.14 145), oklch(55% 0.12 240));
}

/* ── Notice ── */
.notice {
  background: var(--color-accent-light);
  border: 1px solid oklch(85% 0.05 25);
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-md);
  margin-bottom: var(--space-lg);
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: 1.7;
}
.notice__title {
  font-weight: 600;
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-2xs);
}

/* ── Packing section ── */
.p-section {
  background: var(--color-paper-2);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-sm);
  overflow: hidden;
}
.p-section__header {
  padding: var(--space-sm) var(--space-md);
  font-weight: 600;
  font-size: var(--text-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  transition: background var(--dur-micro) var(--ease-out);
}
.p-section__header:hover {
  background: var(--color-paper-3);
}
.p-section__header-left {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}
.p-section__count {
  font-family: var(--font-outlier);
  font-size: var(--text-xs);
  color: var(--color-neutral);
  font-weight: 400;
}
.p-section__arrow {
  transition: transform var(--dur-short) var(--ease-out);
  color: var(--color-neutral);
  font-size: var(--text-xs);
}
.p-section__arrow.collapsed {
  transform: rotate(-90deg);
}
.p-section__body {
  max-height: 2000px;
  overflow: hidden;
  transition: max-height var(--dur-short) ease;
}
.p-section__body.collapsed {
  max-height: 0;
}

/* ── Packing item ── */
.p-item {
  display: flex;
  align-items: center;
  padding: var(--space-xs) var(--space-md);
  border-top: 1px solid var(--color-rule);
  gap: var(--space-xs);
  transition: background var(--dur-micro) var(--ease-out);
}
.p-item:hover {
  background: var(--color-paper);
}
.p-item.done {
  background: oklch(96% 0.02 145);
}
.p-item.done .p-item__name {
  text-decoration: line-through;
  color: var(--color-neutral);
}
.p-item__name {
  flex: 1;
  font-size: var(--text-sm);
  cursor: pointer;
}
.p-item__note {
  font-size: var(--text-xs);
  color: var(--color-neutral);
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.p-check {
  width: 26px;
  height: 26px;
  border: 1.5px solid var(--color-rule);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: var(--text-xs);
  transition: all var(--dur-micro) var(--ease-out);
  flex-shrink: 0;
  color: transparent;
  font-weight: 700;
}
.p-check--c1 { border-color: oklch(60% 0.12 145); }
.p-check--c1.checked {
  background: oklch(55% 0.14 145);
  border-color: oklch(55% 0.14 145);
  color: #fff;
}
.p-check--c2 { border-color: oklch(60% 0.10 240); }
.p-check--c2.checked {
  background: oklch(55% 0.12 240);
  border-color: oklch(55% 0.12 240);
  color: #fff;
}

/* ── Packing toolbar ── */
.toolbar {
  display: flex;
  gap: var(--space-xs);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}
.toolbar__btn {
  padding: var(--space-xs) var(--space-md);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-md);
  background: var(--color-paper);
  color: var(--color-muted);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  cursor: pointer;
  transition: background var(--dur-micro) var(--ease-out),
              color var(--dur-micro) var(--ease-out),
              border-color var(--dur-micro) var(--ease-out);
  white-space: nowrap;
}
.toolbar__btn:hover {
  background: var(--color-paper-2);
  color: var(--color-ink);
  border-color: var(--color-accent);
}

/* ── Modal ── */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: oklch(18% 0.010 35 / 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
}
.modal-overlay.show {
  display: flex;
}
.modal {
  background: var(--color-paper);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  width: 100%;
  max-width: 400px;
  box-shadow: 0 20px 60px oklch(18% 0.010 35 / 0.2);
}
.modal__title {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--color-ink);
  margin-bottom: var(--space-md);
  font-style: normal;
}
.modal__label {
  display: block;
  font-size: var(--text-xs);
  color: var(--color-neutral);
  margin-bottom: var(--space-2xs);
  margin-top: var(--space-sm);
  letter-spacing: 0.04em;
}
.modal__input,
.modal__select {
  width: 100%;
  padding: var(--space-xs) var(--space-sm);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-ink);
  background: var(--color-paper);
  outline: none;
  transition: border-color var(--dur-micro) var(--ease-out);
}
.modal__input:focus,
.modal__select:focus {
  border-color: var(--color-accent);
}
.modal__actions {
  display: flex;
  gap: var(--space-xs);
  margin-top: var(--space-lg);
}
.modal__btn {
  flex: 1;
  text-align: center;
  padding: var(--space-xs) var(--space-md);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  cursor: pointer;
  transition: background var(--dur-micro) var(--ease-out),
              color var(--dur-micro) var(--ease-out);
}
.modal__btn--cancel {
  background: var(--color-paper-2);
  color: var(--color-muted);
}
.modal__btn--save {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}
.modal__btn--delete {
  background: none;
  color: oklch(55% 0.18 25);
  border-color: oklch(80% 0.08 25);
  flex: 0;
  padding: var(--space-xs) var(--space-sm);
  font-size: var(--text-xs);
}

/* ═══════════════════════════════════════════
   Index / landing page
   ═══════════════════════════════════════════ */

.landing-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 4vw, 2rem);
}
.landing-hero {
  text-align: center;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-lg);
  max-width: 600px;
  width: 100%;
}
.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-xl) var(--space-lg);
  background: var(--color-paper-2);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--color-ink);
  transition: background var(--dur-micro) var(--ease-out),
              border-color var(--dur-micro) var(--ease-out),
              transform var(--dur-micro) var(--ease-out),
              box-shadow var(--dur-micro) var(--ease-out);
}
.card:hover {
  background: var(--color-paper-3);
  border-color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px oklch(50% 0.02 35 / 0.08);
}
.card:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}
.card__icon {
  font-size: 2.5rem;
  line-height: 1;
}
.card__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  line-height: 1.3;
  font-style: normal;
}
.card__desc {
  font-size: var(--text-sm);
  color: var(--color-muted);
  text-align: center;
  line-height: 1.6;
}

/* ═══════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════ */

/* ── Breakpoint 1: ≤ 767px — mobile & small tablet ── */
@media (max-width: 47.9375rem) {
  .hero {
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-xl);
  }
  .hero__title {
    font-size: clamp(1.6rem, 6vw + 0.5rem, 2.4rem);
  }
  .hero__meta {
    font-size: var(--text-base);
  }
  .section {
    padding-top: var(--space-xl);
  }
  .section__head {
    font-size: var(--text-md);
  }
  .flight {
    padding: var(--space-sm);
  }
  .flight__ep-time {
    font-size: var(--text-base);
  }
  .flight__ep-airport {
    font-size: var(--text-xs);
  }
  .accom {
    flex-direction: column;
    gap: var(--space-sm);
    padding: var(--space-md);
  }
  .accom__icon {
    width: 36px;
    height: 36px;
    font-size: 1.1em;
  }
  .timeline {
    padding-left: 1.5rem;
  }
  .tl-dot {
    left: -1.5rem;
    width: 13px;
    height: 13px;
  }
  .day-selector {
    margin-inline: calc(-1 * clamp(0.5rem, 3vw, 1rem));
    padding-inline: clamp(0.5rem, 3vw, 1rem);
  }
  .day-btn {
    padding: var(--space-2xs) var(--space-xs);
    font-size: var(--text-xs);
  }
  .quick-links {
    gap: var(--space-xs);
  }
  .quick-link {
    padding: var(--space-xs) var(--space-sm);
    font-size: var(--text-xs);
  }
  .info-row {
    flex-direction: column;
    gap: var(--space-xs);
  }
  .info-chip {
    min-width: 0;
  }
  .footer {
    flex-direction: column;
    gap: var(--space-2xs);
  }
  .stats {
    gap: var(--space-xs);
  }
  .stat-card {
    padding: var(--space-xs) var(--space-2xs);
  }
  .stat-card__num {
    font-size: var(--text-md);
  }
  .stat-card__label {
    font-size: var(--text-xs);
  }
  .legend {
    gap: var(--space-sm);
    flex-wrap: wrap;
    justify-content: center;
  }
  .toolbar {
    gap: var(--space-2xs);
  }
  .toolbar__btn {
    flex: 1 1 calc(50% - var(--space-2xs));
    min-width: 0;
    text-align: center;
    padding: var(--space-xs) var(--space-2xs);
    font-size: var(--text-xs);
  }
  .p-section__header {
    padding: var(--space-sm) var(--space-sm);
    font-size: var(--text-sm);
    min-height: 44px;
  }
  .p-item {
    padding: var(--space-sm) var(--space-sm);
    gap: var(--space-2xs);
    min-height: 44px;
  }
  .p-item__name {
    font-size: var(--text-sm);
  }
  .p-item__note {
    display: none;
  }
  .modal {
    padding: var(--space-lg);
    max-width: 100%;
    border-radius: var(--radius-md);
  }
  .modal__title {
    font-size: var(--text-base);
  }
  .modal__actions {
    flex-direction: column;
    gap: var(--space-2xs);
  }
  .modal__btn {
    padding: var(--space-sm);
    font-size: var(--text-sm);
  }
}

/* ── Breakpoint 2: 768px–1023px — tablet ── */
@media (min-width: 48rem) and (max-width: 63.9375rem) {
  :root {
    --page-max: min(38rem, 100vw - 3rem);
  }
  .hero {
    padding-top: clamp(4rem, 6vw, 6rem);
    padding-bottom: var(--space-2xl);
  }
  .hero__title {
    font-size: clamp(2rem, 3.5vw + 0.5rem, 3rem);
  }
  .hero__meta {
    font-size: var(--text-md);
  }
  .section {
    padding-top: var(--space-2xl);
  }
  .flight {
    padding: var(--space-md);
  }
  .flight__ep-time {
    font-size: var(--text-lg);
  }
  .flight__ep-airport {
    font-size: var(--text-xs);
  }
  .accom {
    padding: var(--space-lg);
  }
  .timeline {
    padding-left: 2rem;
  }
  .tl-dot {
    left: -2rem;
    width: 15px;
    height: 15px;
  }
  .day-selector {
    margin-inline: calc(-1 * clamp(0.75rem, 3vw, 1.5rem));
    padding-inline: clamp(0.75rem, 3vw, 1.5rem);
  }
  .info-row {
    flex-wrap: wrap;
    gap: var(--space-sm);
  }
  .info-chip {
    flex: 1 1 140px;
    min-width: 140px;
  }
  .footer {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ── Breakpoint 3: ≥ 1024px — desktop ── */
@media (min-width: 64rem) {
  :root {
    --page-max: min(44rem, 100vw - 4rem);
  }
  .hero {
    padding-top: clamp(5rem, 8vw, 9rem);
    padding-bottom: var(--space-2xl);
  }
  .hero__title {
    font-size: var(--text-display);
  }
  .hero__meta {
    font-size: var(--text-md);
  }
  .section {
    padding-top: var(--space-2xl);
  }
  .flight {
    padding: var(--space-md) var(--space-lg);
  }
  .flight__ep-time {
    font-size: var(--text-md);
  }
  .flight__ep-airport {
    font-size: var(--text-xs);
  }
  .accom {
    padding: var(--space-lg);
  }
  .timeline {
    padding-left: 2.5rem;
  }
  .tl-dot {
    left: -2.5rem;
    width: 15px;
    height: 15px;
  }
  .day-selector {
    margin-inline: calc(-1 * clamp(1rem, 4vw, 3rem));
    padding-inline: clamp(1rem, 4vw, 3rem);
  }
  .info-row {
    flex-wrap: wrap;
    gap: var(--space-sm);
  }
  .info-chip {
    flex: 1 1 160px;
    min-width: 160px;
  }
  .footer {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 150ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 150ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { animation: none; opacity: 1; transform: none; }
  .card:hover { transform: none; }
}

/* ── Pointer queries ── */
@media (hover: hover) and (pointer: fine) {
  .day-btn:hover { transform: translateY(-1px); }
}
@media (pointer: coarse) {
  .day-btn { min-height: 40px; }
  .act-btn { min-height: 36px; }
  .quick-link { min-height: 44px; }
  .p-check { min-width: 32px; min-height: 32px; }
  .toolbar__btn { min-height: 40px; }
}

/* ── Focus-visible (instant ring) ── */
:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}
