:root {
  color-scheme: light;
  --ink: #18211f;
  --muted: #61706b;
  --line: #d8e1dd;
  --paper: #f7f4ed;
  --panel: #fffdf8;
  --teal: #0d7a78;
  --coral: #e96345;
  --leaf: #5f8f3b;
  --gold: #d79b2b;
  --blue: #2f6fa3;
  --shadow: 0 18px 48px rgba(25, 38, 36, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

.hero {
  position: relative;
  min-height: 76vh;
  display: grid;
  align-content: space-between;
  overflow: hidden;
  background: #153739;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 20, 22, 0.74), rgba(7, 20, 22, 0.38), rgba(7, 20, 22, 0.1)),
    url("https://thebackpackingfamily.com/wp-content/uploads/2025/03/Osaka-with-kids-evening-sunset-711x400.jpg") center / cover;
  transform: scale(1.03);
}

.topbar {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 32px));
  margin: 20px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.topbar a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  color: #fffdf8;
  text-decoration: none;
  background: rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(12px);
  white-space: nowrap;
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto 54px;
  color: #fffdf8;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffd37a;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.7rem, 8vw, 6.8rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-copy p:last-child {
  max-width: 620px;
  margin: 18px 0 0;
  font-size: 1.15rem;
  line-height: 1.55;
}

main {
  width: min(1120px, calc(100% - 32px));
  margin: -28px auto 64px;
  position: relative;
}

section[id],
div[id] {
  scroll-margin-top: 18px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 44px;
}

.summary-grid article,
.day-card,
.idea-card,
.note-panel,
.budget-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.summary-grid article {
  min-height: 164px;
  padding: 18px;
  display: grid;
  align-content: start;
  gap: 8px;
}

.label {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.summary-grid strong {
  font-size: 1.25rem;
}

small,
.hint {
  color: var(--muted);
  line-height: 1.45;
}

.section {
  margin: 46px 0;
}

.section-heading {
  margin-bottom: 18px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.6rem, 4vw, 2.45rem);
  line-height: 1.05;
}

.row-heading,
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 22px;
  align-items: start;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.filter {
  min-height: 40px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 999px;
  padding: 0 14px;
  cursor: pointer;
}

.filter.active {
  background: var(--teal);
  color: white;
  border-color: var(--teal);
}

.day-board {
  display: grid;
  grid-template-columns: repeat(5, minmax(190px, 1fr));
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.day-card {
  min-height: 420px;
  min-width: 190px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
}

.day-head {
  min-height: 116px;
  padding: 16px;
  color: white;
  background: var(--teal);
}

.day-card:nth-child(2n) .day-head {
  background: var(--blue);
}

.day-card:nth-child(3n) .day-head {
  background: var(--leaf);
}

.day-head span {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  opacity: 0.9;
  text-transform: uppercase;
}

.day-head h3 {
  margin: 8px 0 0;
  font-size: 1.28rem;
}

.blocks {
  list-style: none;
  margin: 0;
  padding: 14px;
  display: grid;
  align-content: start;
  gap: 10px;
}

.blocks li {
  border-left: 4px solid var(--gold);
  padding-left: 10px;
  line-height: 1.35;
}

.blocks strong {
  display: block;
}

.energy {
  margin: 0 14px 14px;
  padding: 10px;
  background: #eef6f2;
  color: #35514a;
  border-radius: 6px;
  font-weight: 700;
}

.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.timeline li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.timeline i {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e8f2ef;
  color: var(--teal);
}

.timeline strong {
  display: block;
}

.note-panel,
.budget-panel {
  padding: 18px;
}

.note-panel h3 {
  margin: 0 0 14px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 750;
  line-height: 1.25;
}

input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  color: var(--ink);
  background: white;
}

.note-panel label + label {
  margin-top: 12px;
}

.idea-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.idea-card {
  overflow: hidden;
  display: grid;
  grid-template-rows: 160px 1fr;
}

.idea-image {
  background: #dbe8e6 center / cover;
}

.idea-body {
  padding: 16px;
  display: grid;
  gap: 10px;
}

.idea-body h3 {
  margin: 0;
}

.idea-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-row span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  background: #f2eadc;
  color: #6f5121;
  font-size: 0.78rem;
  font-weight: 800;
}

.checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.check-item {
  min-height: 54px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.check-item input {
  min-height: auto;
  accent-color: var(--teal);
}

.budget-row {
  display: grid;
  grid-template-columns: 1fr 145px;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.budget-row label {
  color: var(--ink);
}

output {
  display: block;
  margin-top: 16px;
  padding: 16px;
  background: #172826;
  color: white;
  border-radius: 8px;
  font-size: 1.5rem;
  font-weight: 900;
}

.source-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
}

.source-strip h2 {
  margin: 0;
  font-size: 1.35rem;
}

.source-strip a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  text-decoration: none;
  font-weight: 800;
}

@media (max-width: 900px) {
  .summary-grid,
  .idea-grid,
  .checklist {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .row-heading,
  .split {
    grid-template-columns: 1fr;
  }

  .filters {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .hero {
    min-height: 520px;
  }

  .topbar {
    width: 100%;
    margin-top: 0;
    padding: 12px 12px 8px;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .topbar::-webkit-scrollbar {
    display: none;
  }

  .topbar a {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 0 13px;
  }

  .hero-copy {
    width: min(100% - 24px, 1120px);
    margin-bottom: 30px;
  }

  .hero-copy p:last-child {
    font-size: 1rem;
    line-height: 1.5;
  }

  h1 {
    font-size: 2.65rem;
    line-height: 1;
  }

  main {
    width: calc(100% - 24px);
    margin-top: -18px;
    margin-bottom: 42px;
  }

  .summary-grid {
    gap: 10px;
    margin-bottom: 34px;
  }

  .summary-grid article {
    min-height: 0;
    padding: 15px;
  }

  .section {
    margin: 34px 0;
  }

  .section-heading h2 {
    font-size: 1.85rem;
    line-height: 1.12;
  }

  .row-heading,
  .split {
    gap: 14px;
  }

  .filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 3px;
    scrollbar-width: none;
  }

  .filters::-webkit-scrollbar {
    display: none;
  }

  .filter {
    flex: 0 0 auto;
    min-height: 44px;
  }

  .day-board {
    grid-template-columns: 1fr;
    gap: 12px;
    overflow: visible;
    padding-bottom: 0;
  }

  .day-card {
    min-width: 0;
    min-height: 0;
  }

  .day-head {
    min-height: 0;
    padding: 14px 15px;
  }

  .day-head h3 {
    font-size: 1.2rem;
  }

  .blocks {
    padding: 13px 14px;
    gap: 9px;
  }

  .energy {
    margin: 0 14px 14px;
  }

  .timeline {
    gap: 10px;
  }

  .timeline li {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 9px;
  }

  .timeline i {
    width: 34px;
    height: 34px;
  }

  .note-panel,
  .budget-panel {
    padding: 15px;
  }

  input {
    min-height: 46px;
    font-size: 16px;
  }

  .summary-grid,
  .idea-grid,
  .checklist {
    grid-template-columns: 1fr;
  }

  .budget-row {
    grid-template-columns: minmax(0, 1fr) 126px;
    gap: 9px;
  }

  .budget-row input {
    min-height: 44px;
  }

  .check-item {
    min-height: 58px;
    padding: 11px;
  }

  .source-strip {
    align-items: stretch;
    gap: 8px;
  }

  .source-strip > div,
  .source-strip a {
    width: 100%;
  }

  .source-strip a {
    min-height: 44px;
    padding: 9px 12px;
  }
}
}
