:root {
  color-scheme: light;
  --cream: #f1f0e6;
  --paper: #fbfaf2;
  --pink: #eeb9c4;
  --pink-deep: #e59cac;
  --red: #df3d2d;
  --ink: #1b1b19;
  --blue: #b9dfe1;
  --leaf: #71856d;
  --sun: #f4d46a;
  --line: rgba(27, 27, 25, 0.2);
  --soft-shadow: 0 18px 46px rgba(27, 27, 25, 0.16);
  --display: "DIN Condensed", "Arial Narrow", Impact, sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  font-family: var(--sans);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 280px;
  min-height: 100vh;
  overflow-x: hidden;
  background: #deddd3;
  color: var(--ink);
}

img,
video,
svg {
  display: block;
}

img,
video {
  max-width: 100%;
}

button,
input {
  font: inherit;
}

a,
button,
label {
  -webkit-tap-highlight-color: transparent;
}

main,
.topbar {
  width: min(100%, 520px);
  margin-inline: auto;
}

main {
  overflow: clip;
  background: var(--cream);
  box-shadow: 0 0 60px rgba(27, 27, 25, 0.14);
}

.topbar {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 58px;
  padding: calc(8px + env(safe-area-inset-top)) 16px 8px;
  background: rgba(241, 240, 230, 0.93);
  border-bottom: 1px solid rgba(27, 27, 25, 0.12);
  transform: translateX(-50%);
  backdrop-filter: blur(14px);
}

.topbar a {
  color: var(--red);
  font-family: var(--display);
  font-size: 0.92rem;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

.topbar a:last-child {
  text-align: right;
}

.topbar .wordmark {
  min-width: 96px;
  padding: 6px 11px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--red);
  border-radius: 2px;
  box-shadow: 3px 3px 0 var(--sun);
  font-family: var(--sans);
  font-size: 0.76rem;
  line-height: 1;
  text-align: center;
  text-transform: none;
  white-space: nowrap;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  padding: calc(82px + env(safe-area-inset-top)) 16px 22px;
  display: flex;
  flex-direction: column;
  background: var(--cream);
}

.hero__heading {
  position: relative;
  z-index: 2;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--red);
}

.hero__heading p,
.section-kicker,
.manifesto > p,
.day-story__heading > p,
.stay p {
  margin: 0;
  color: var(--red);
  font-family: var(--display);
  font-size: 0.83rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero h1,
.section h2,
.manifesto h2,
.day-story h3,
.stay h3,
footer p {
  max-width: 100%;
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  text-wrap: balance;
}

.hero h1 {
  position: relative;
  z-index: 2;
  margin: 12px 0 0;
  color: var(--red);
  font-size: clamp(4rem, 18vw, 5.8rem);
  line-height: 0.9;
  word-break: keep-all;
}

.hero__media {
  position: relative;
  flex: 1;
  min-height: 460px;
  margin: -6px -16px 0;
  overflow: hidden;
  background: var(--leaf);
  box-shadow: var(--soft-shadow);
}

.hero__media::after {
  position: absolute;
  inset: 0;
  content: "";
  border: 10px solid var(--cream);
  pointer-events: none;
}

.hero__media video,
.hero__media .hero__cover {
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
}

.hero__media .hero__cover {
  object-position: 50% 72%;
  transform: scale(1.025);
  animation: cover-drift 12s ease-in-out infinite alternate;
}

@keyframes cover-drift {
  to {
    transform: scale(1.085) translateY(-1.5%);
  }
}

.hero__stamp {
  position: absolute;
  right: 17px;
  bottom: 16px;
  z-index: 2;
  width: 110px;
  padding: 12px 10px;
  background: var(--leaf);
  color: var(--paper);
  border: 1px solid rgba(251, 250, 242, 0.72);
  box-shadow: 0 10px 24px rgba(27, 27, 25, 0.18);
  transform: rotate(-4deg);
}

.hero__stamp span,
.hero__stamp strong,
.hero__stamp small {
  display: block;
  font-family: var(--display);
  font-weight: 900;
  line-height: 1;
}

.hero__stamp span {
  font-size: 0.78rem;
}

.hero__stamp strong {
  margin: 3px 0 6px;
  font-size: 2rem;
}

.hero__stamp small {
  font-size: 0.58rem;
  line-height: 1.25;
}

.hero__note {
  margin: 17px 6px 0;
  max-width: 23rem;
  padding-left: 13px;
  border-left: 3px solid var(--red);
  font-size: 0.84rem;
  font-weight: 750;
  line-height: 1.55;
}

.ticker {
  width: min(100%, 520px);
  margin: 0 auto;
  overflow: hidden;
  background: var(--ink);
  color: var(--cream);
}

.ticker div {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 15px;
  padding: 12px 0;
  animation: ticker 20s linear infinite;
}

.ticker span {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 900;
}

.ticker i {
  width: 7px;
  height: 7px;
  background: var(--sun);
  border-radius: 50%;
}

@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

.section {
  position: relative;
  min-height: 100svh;
  padding: 74px 16px 62px;
  scroll-margin-top: 56px;
}

.section-index {
  position: absolute;
  top: 20px;
  right: 16px;
  color: var(--red);
  font-family: var(--display);
  font-size: 2.3rem;
  font-weight: 900;
  line-height: 1;
}

.section h2 {
  margin: 11px 0 0;
  color: var(--red);
  font-size: clamp(3.75rem, 17vw, 5.4rem);
  line-height: 0.92;
  word-break: keep-all;
}

.duo {
  background: var(--pink);
}

.duo-collage {
  position: relative;
  min-height: 880px;
  margin: 34px -16px 0;
}

.duo-photo {
  position: absolute;
  margin: 0;
  overflow: hidden;
  background: var(--paper);
  border: 8px solid var(--paper);
  box-shadow: var(--soft-shadow);
}

.duo-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.duo-photo--main {
  top: 0;
  left: -28px;
  width: 74%;
  height: 500px;
  transform: rotate(-4deg);
}

.duo-photo--main img {
  object-position: 55% center;
}

.duo-photo--ticket img {
  object-position: 50% 30%;
}

.duo-photo--ticket {
  top: 250px;
  right: -28px;
  width: 64%;
  height: 430px;
  transform: rotate(5deg);
}

.duo-photo--ticket figcaption {
  position: absolute;
  right: 4px;
  bottom: 5px;
  padding: 6px 8px;
  background: var(--red);
  color: var(--cream);
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 900;
}

.duo-copy {
  position: absolute;
  top: 718px;
  left: 16px;
  right: 16px;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: auto;
  padding: 14px 16px 18px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid rgba(223, 61, 45, 0.5);
  border-top: 4px solid var(--red);
  box-shadow: 8px 8px 0 rgba(223, 61, 45, 0.13);
}

.duo-copy::before {
  grid-column: 1 / -1;
  margin-bottom: 13px;
  color: var(--red);
  content: "TRAVEL PARTNERS";
  font-family: var(--display);
  font-size: 0.7rem;
  font-weight: 900;
}

.duo-copy p {
  min-width: 0;
  margin: 0;
  padding-right: 13px;
}

.duo-copy p + p {
  padding-right: 0;
  padding-left: 13px;
  border-left: 1px solid rgba(223, 61, 45, 0.35);
}

.duo-copy strong,
.duo-copy span {
  display: block;
}

.duo-copy strong {
  color: var(--red);
  font-size: 0.9rem;
  line-height: 1.35;
}

.duo-copy span {
  margin-top: 7px;
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 750;
  line-height: 1.55;
}

.traveler-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 12px -16px -62px;
  background: var(--cream);
  border-top: 1px solid var(--red);
}

.traveler-strip article {
  min-width: 0;
  min-height: 142px;
  padding: 17px 16px;
  background: var(--pink);
  border-right: 1px solid var(--red);
}

.traveler-strip article:last-child {
  border-right: 0;
}

.traveler-strip span,
.traveler-strip strong,
.traveler-strip small {
  display: block;
}

.traveler-strip span,
.traveler-strip small {
  color: var(--red);
  font-family: var(--display);
  font-size: 0.7rem;
  font-weight: 900;
}

.traveler-strip strong {
  margin: 10px 0 8px;
  color: var(--red);
  font-size: 1.6rem;
}

.manifesto {
  min-height: 88svh;
  padding: 76px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--red);
  color: var(--cream);
}

.manifesto > p {
  color: var(--cream);
}

.manifesto h2 {
  margin: 18px 0 32px;
  font-size: clamp(2.85rem, 13vw, 4.1rem);
  line-height: 1.04;
  word-break: keep-all;
}

.manifesto span {
  width: 76%;
  max-width: 23rem;
  padding-top: 16px;
  border-top: 1px solid rgba(241, 240, 230, 0.5);
  font-size: 0.86rem;
  font-weight: 750;
  line-height: 1.6;
}

.plan {
  padding-inline: 0;
  background: var(--cream);
}

.plan > .section-index {
  right: 16px;
}

.plan > .section-kicker,
.plan > h2 {
  margin-left: 16px;
  margin-right: 16px;
}

.single-day {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  margin-top: 30px;
  padding: 14px 16px;
  background: var(--ink);
  color: var(--cream);
  border-block: 1px solid var(--ink);
}

.single-day > div {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: end;
  gap: 6px;
  color: var(--sun);
}

.single-day span,
.single-day strong,
.single-day b,
.single-day small {
  display: block;
  font-family: var(--display);
  font-weight: 900;
}

.single-day > div span {
  padding-bottom: 7px;
  font-size: 0.72rem;
}

.single-day strong {
  font-size: 3.45rem;
  line-height: 0.8;
}

.single-day p {
  min-width: 0;
  margin: 0;
  padding-left: 16px;
  border-left: 1px solid rgba(241, 240, 230, 0.34);
}

.single-day p b {
  font-size: 1rem;
}

.single-day p span {
  margin-top: 4px;
  color: var(--pink);
  font-size: 0.72rem;
}

.single-day small {
  max-width: 54px;
  color: var(--cream);
  font-size: 0.58rem;
  line-height: 1.25;
  text-align: right;
}

.day-tabs {
  position: sticky;
  top: calc(57px + env(safe-area-inset-top));
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(6, minmax(50px, 1fr));
  gap: 4px;
  margin-top: 30px;
  padding: 9px 10px 11px;
  overflow-x: auto;
  background: rgba(251, 250, 242, 0.96);
  border-block: 1px solid rgba(223, 61, 45, 0.28);
  box-shadow: 0 12px 26px rgba(27, 27, 25, 0.11);
  backdrop-filter: blur(14px);
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.day-tabs::-webkit-scrollbar {
  display: none;
}

.day-tab {
  min-width: 50px;
  height: 62px;
  padding: 8px 2px 7px;
  background: var(--paper);
  color: var(--red);
  border: 1px solid rgba(223, 61, 45, 0.22);
  border-radius: 3px;
  cursor: pointer;
  scroll-snap-align: center;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.day-tab b,
.day-tab span {
  display: block;
  font-family: var(--display);
  font-weight: 900;
}

.day-tab b {
  font-size: 1.25rem;
  line-height: 1;
}

.day-tab span {
  margin-top: 4px;
  font-size: 0.62rem;
}

.day-tab.is-active {
  background: var(--sun);
  color: var(--ink);
  border-color: var(--red);
  box-shadow: inset 0 -4px 0 var(--red), 0 3px 0 rgba(223, 61, 45, 0.14);
}

.day-tab:active {
  transform: scale(0.97);
}

.day-panel {
  display: none;
}

.day-panel.is-active {
  display: block;
  animation: panel-in 300ms ease-out;
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.day-story {
  min-height: 100svh;
  padding-bottom: 36px;
}

.day-story--cream {
  background: var(--cream);
}

.day-story--pink {
  background: var(--pink);
}

.day-story--blue {
  background: var(--blue);
}

.day-story--red {
  background: var(--red);
  color: var(--cream);
}

.day-story__media {
  position: relative;
  height: 58svh;
  min-height: 430px;
  max-height: 660px;
  overflow: hidden;
  background: var(--ink);
}

.day-story__media::after {
  position: absolute;
  inset: 10px;
  z-index: 1;
  content: "";
  border: 1px solid rgba(251, 250, 242, 0.72);
  pointer-events: none;
}

.day-story__media img,
.day-story__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.day-story__media--video video {
  object-position: center;
}

.day-story__media--wide video {
  object-position: 48% center;
}

.day-story__media--flight img {
  object-position: 52% center;
}

.day-story__media--yukata img {
  object-position: 52% center;
}

.day-story__media > span {
  position: absolute;
  left: 13px;
  bottom: 13px;
  z-index: 2;
  padding: 8px 10px;
  background: var(--red);
  color: var(--cream);
  font-family: var(--display);
  font-size: 0.74rem;
  font-weight: 900;
}

.day-story__heading {
  padding: 24px 16px 21px;
  border-bottom: 1px solid currentColor;
}

.day-story__heading h3 {
  margin: 10px 0 0;
  color: var(--red);
  font-size: clamp(2.7rem, 13vw, 4.1rem);
  line-height: 0.98;
  word-break: keep-all;
}

.day-story__heading h3.day-story__title--lyric {
  max-width: 25rem;
  padding-left: 14px;
  color: var(--ink);
  border-left: 4px solid var(--red);
  font-family: var(--sans);
  font-size: 1.7rem;
  font-weight: 850;
  line-break: strict;
  line-height: 1.34;
  text-transform: none;
  text-wrap: pretty;
  word-break: normal;
}

.day-story__heading h3.day-story__title--mixed {
  text-transform: none;
}

.day-story--red .day-story__heading > p,
.day-story--red .day-story__heading h3 {
  color: var(--cream);
}

.timeline {
  list-style: none;
  margin: 0 16px;
  padding: 0;
  border-top: 2px solid currentColor;
}

.timeline li {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 13px;
  min-height: 82px;
  padding: 15px 0;
  border-bottom: 1px solid currentColor;
}

.timeline time {
  color: var(--red);
  font-family: var(--display);
  font-size: 0.92rem;
  font-weight: 900;
}

.day-story--red .timeline time {
  color: var(--cream);
}

.timeline strong,
.timeline span {
  display: block;
}

.timeline strong {
  font-size: 1rem;
  line-height: 1.3;
}

.timeline span {
  margin-top: 4px;
  color: rgba(27, 27, 25, 0.64);
  font-size: 0.8rem;
  font-weight: 650;
  line-height: 1.45;
}

.day-story--red .timeline span {
  color: rgba(241, 240, 230, 0.72);
}

.essentials {
  background:
    linear-gradient(var(--line), var(--line)) 16px 66px / calc(100% - 32px) 1px no-repeat,
    var(--pink);
}

.boarding-pass {
  position: relative;
  margin-top: 28px;
  padding: 20px 18px;
  background: var(--paper);
  color: var(--red);
  border: 2px solid var(--red);
  box-shadow: 9px 9px 0 rgba(223, 61, 45, 0.16);
}

.boarding-pass::before,
.boarding-pass::after {
  position: absolute;
  top: 50%;
  width: 15px;
  height: 30px;
  content: "";
  background: var(--pink);
  border: 2px solid var(--red);
  transform: translateY(-50%);
}

.boarding-pass::before {
  left: -2px;
  border-left: 0;
  border-radius: 0 18px 18px 0;
}

.boarding-pass::after {
  right: -2px;
  border-right: 0;
  border-radius: 18px 0 0 18px;
}

.boarding-pass--dark {
  margin-top: 10px;
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

.boarding-pass__head,
.boarding-pass__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-family: var(--display);
  font-size: 0.75rem;
  font-weight: 900;
}

.boarding-pass__head strong {
  font-size: 1.35rem;
}

.boarding-pass__route {
  display: grid;
  grid-template-columns: 84px minmax(40px, 1fr) 84px;
  align-items: center;
  gap: 8px;
  margin: 28px 0;
  text-align: center;
}

.boarding-pass__route b,
.boarding-pass__route span {
  display: block;
  font-family: var(--display);
  font-weight: 900;
}

.boarding-pass__route b {
  font-size: 2.3rem;
  line-height: 1;
}

.boarding-pass__route span {
  margin-top: 5px;
  font-size: 0.75rem;
}

.boarding-pass__route i {
  position: relative;
  height: 1px;
  background: currentColor;
}

.boarding-pass__route i::before,
.boarding-pass__route i::after {
  position: absolute;
  top: 50%;
  width: 7px;
  height: 7px;
  content: "";
  background: currentColor;
  border-radius: 50%;
  transform: translateY(-50%);
}

.boarding-pass__route i::before {
  left: 0;
}

.boarding-pass__route i::after {
  right: 0;
}

.boarding-pass__foot {
  padding-top: 12px;
  border-top: 1px dashed currentColor;
}

.stay {
  position: relative;
  min-height: 680px;
  margin: 36px -16px 0;
  background: var(--cream);
  overflow: hidden;
}

.stay > img {
  width: 100%;
  height: 290px;
  object-fit: cover;
  filter: grayscale(1) contrast(1.1);
}

.stay > div {
  padding: 27px 18px 36px;
}

.stay h3 {
  margin: 8px 0 22px;
  color: var(--red);
  font-size: clamp(2.75rem, 13vw, 3.45rem);
  line-height: 0.98;
  word-break: keep-all;
}

.stay span {
  display: block;
  max-width: 23rem;
  padding-top: 14px;
  border-top: 1px solid var(--red);
  color: var(--red);
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.55;
}

.prep-list {
  margin: 0 -16px -62px;
  padding: 32px 18px calc(34px + env(safe-area-inset-bottom));
  background: var(--red);
  color: var(--cream);
}

.prep-list h3 {
  margin: 0 0 18px;
  font-family: var(--display);
  font-size: 2rem;
  line-height: 1.12;
}

.prep-list label {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  border-top: 1px solid rgba(241, 240, 230, 0.45);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 800;
}

.prep-list label:last-child {
  border-bottom: 1px solid rgba(241, 240, 230, 0.45);
}

.prep-list input {
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--cream);
}

.prep-list input:checked + span {
  opacity: 0.62;
  text-decoration: line-through;
}

footer {
  min-height: 64svh;
  padding: 64px 18px calc(36px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--ink);
  color: var(--cream);
}

footer p,
footer strong,
footer span,
footer a {
  display: block;
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
}

footer p {
  margin: 0;
  color: var(--pink);
  font-size: clamp(3.1rem, 14vw, 4.6rem);
  line-height: 0.98;
  overflow-wrap: anywhere;
}

footer strong {
  margin-top: 24px;
  color: var(--red);
  font-size: 1.55rem;
}

footer span {
  margin-top: 5px;
  font-size: 0.72rem;
}

footer a {
  width: fit-content;
  margin-top: 38px;
  padding-bottom: 3px;
  color: var(--cream);
  border-bottom: 1px solid var(--cream);
  font-size: 0.8rem;
  text-decoration: none;
}

.day-tab:focus-visible,
.topbar a:focus-visible,
footer a:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

@media (max-width: 359px) {
  .hero h1,
  .section h2 {
    font-size: 3.65rem;
  }

  .duo-photo--main {
    width: 78%;
  }

  .duo-photo--ticket {
    width: 68%;
  }

  .boarding-pass__route {
    grid-template-columns: 72px minmax(30px, 1fr) 72px;
  }

  .single-day {
    grid-template-columns: 80px minmax(0, 1fr);
  }

  .single-day small {
    display: none;
  }
}

@media (min-width: 700px) {
  body {
    padding-block: 22px;
  }

  main {
    border-radius: 12px;
  }

  .topbar {
    top: 22px;
    border-radius: 12px 12px 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .ticker div,
  .day-panel.is-active,
  .hero__media .hero__cover {
    animation: none;
  }

  video {
    display: none;
  }

  .day-story__media--video {
    background-position: center;
    background-size: cover;
  }

  .day-story__media--video {
    background-image: url("./assets/trip-koshien-poster.png");
  }

  .day-story__media--wide {
    background-image: url("./assets/trip-suma-poster.png");
  }
}
