:root {
  --ivory: #f4f0e7;
  --paper: #fbf8f1;
  --ink: #20251f;
  --muted: #6e7468;
  --soft: #dcd5c6;
  --line: rgba(32, 37, 31, .14);
  --moss: #52624b;
  --forest: #263327;
  --clay: #a36d4f;
  --sand: #c9b891;
  --white: #fffdf7;
  --shadow: 0 24px 80px rgba(32, 37, 31, .12);
  --max: 1180px;
  --gutter: clamp(18px, 4vw, 56px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
  line-height: 1.8;
  letter-spacing: 0;
  overflow-x: hidden;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.label {
  margin: 0 0 18px;
  color: var(--clay);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-weight: 500;
  letter-spacing: 0;
}

h1 {
  max-width: 920px;
  color: var(--white);
  font-size: clamp(48px, 7vw, 104px);
  line-height: 1;
  text-wrap: balance;
}

h2 {
  font-size: clamp(34px, 5vw, 68px);
  line-height: 1.02;
}

h3 {
  font-size: clamp(25px, 3.2vw, 42px);
  line-height: 1.12;
}

.site-hero {
  min-height: 100svh;
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  color: var(--white);
  background: #1d2a23;
}

.topbar {
  position: absolute;
  z-index: 4;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: flex-end;
  gap: clamp(16px, 3vw, 34px);
  padding: 28px var(--gutter);
  color: rgba(255, 253, 247, .86);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.topbar a {
  text-decoration: none;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(180deg, rgba(17, 30, 24, .12) 0%, rgba(17, 30, 24, .42) 48%, rgba(17, 30, 24, .88) 100%),
    url("https://images.unsplash.com/photo-1710348672935-ffddef5b03a7?auto=format&fit=crop&w=2400&q=88");
  background-size: cover;
  background-position: center;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 30, 24, .62), transparent 58%);
}

.hero-content {
  width: min(var(--max), calc(100% - var(--gutter) * 2));
  margin: 0 auto;
  padding: 150px 0 190px;
}

.hero-lead {
  max-width: 680px;
  margin: 30px 0 0;
  color: rgba(255, 253, 247, .84);
  font-size: clamp(16px, 2vw, 22px);
  line-height: 1.9;
}

.hero-facts {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 0;
  width: min(var(--max), calc(100% - var(--gutter) * 2));
  transform: translate(-50%, 50%);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: rgba(251, 248, 241, .96);
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, .65);
  box-shadow: var(--shadow);
}

.hero-facts div {
  min-height: 132px;
  padding: 28px;
  border-right: 1px solid var(--line);
}

.hero-facts div:last-child {
  border-right: 0;
}

.hero-facts span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.hero-facts strong {
  display: block;
  margin-top: 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(25px, 3vw, 38px);
  font-weight: 500;
  line-height: 1.05;
}

.mini-ribbon {
  display: inline-flex;
  width: fit-content;
  margin-top: 14px;
  padding: 4px 10px;
  background: rgba(163, 109, 79, .12);
  color: var(--clay);
  border: 1px solid rgba(163, 109, 79, .28);
  border-radius: 999px;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: .12em;
}

.intro,
.highlights,
.itinerary,
.experience-notes,
.access-summary,
.sources {
  width: min(var(--max), calc(100% - var(--gutter) * 2));
  margin: 0 auto;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(320px, .85fr);
  gap: clamp(42px, 8vw, 110px);
  padding: 190px 0 116px;
}

.intro-text {
  display: grid;
  gap: 24px;
  color: var(--muted);
  font-size: 16px;
}

.intro-text p {
  margin: 0;
}

.route-panel {
  width: min(calc(100% - var(--gutter) * 2), 1360px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, .8fr);
  min-height: 680px;
  background: var(--forest);
  color: var(--white);
  box-shadow: var(--shadow);
}

.route-image {
  margin: 0;
  min-height: 520px;
}

.route-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(36px, 6vw, 72px);
}

.route-copy h2 {
  color: var(--white);
  font-size: clamp(33px, 4vw, 58px);
}

.route-steps {
  display: grid;
  gap: 22px;
  margin: 42px 0 0;
  padding: 0;
  list-style: none;
}

.route-steps li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 18px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 253, 247, .18);
}

.route-steps span {
  color: var(--sand);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
}

.route-steps strong,
.route-steps em {
  display: block;
  font-style: normal;
}

.route-steps strong {
  font-size: 17px;
}

.route-steps em {
  color: rgba(255, 253, 247, .68);
  font-size: 13px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(300px, .75fr);
  gap: clamp(32px, 7vw, 86px);
  align-items: end;
  margin-bottom: 48px;
}

.section-heading.narrow {
  display: block;
  max-width: 800px;
  margin-bottom: 72px;
}

.section-heading p:not(.label) {
  margin: 22px 0 0;
  color: var(--muted);
}

.highlights {
  padding: 128px 0 88px;
}

.highlight-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 24px;
}

.highlight-card {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  background: var(--forest);
}

.highlight-card.large {
  grid-row: span 2;
  min-height: 744px;
}

.highlight-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(15, 24, 18, .78));
}

.highlight-card div {
  position: absolute;
  z-index: 2;
  left: 28px;
  right: 28px;
  bottom: 26px;
  color: var(--white);
}

.highlight-card p {
  margin: 0 0 8px;
  color: var(--sand);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.highlight-card h3 {
  color: var(--white);
}

.highlight-card span {
  display: block;
  max-width: 560px;
  margin-top: 12px;
  color: rgba(255, 253, 247, .78);
  font-size: 14px;
}

.itinerary {
  padding: 70px 0 110px;
}

.day-block {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: clamp(26px, 5vw, 62px);
  padding: 54px 0;
  border-top: 1px solid var(--line);
}

.day-block:last-child {
  border-bottom: 1px solid var(--line);
}

.day-meta {
  position: sticky;
  top: 24px;
  align-self: start;
  display: grid;
  gap: 7px;
}

.day-meta span {
  color: var(--clay);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.day-meta strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.15;
}

.day-meta em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.day-story {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(360px, .78fr);
  gap: clamp(26px, 5vw, 58px);
  align-items: center;
}

.day-story.reverse {
  grid-template-columns: minmax(360px, .78fr) minmax(0, .86fr);
}

.day-story.reverse figure {
  order: 2;
}

.day-story figure {
  margin: 0;
  min-height: 520px;
  background: var(--soft);
  overflow: hidden;
}

.day-content h3 {
  margin-bottom: 34px;
}

.timeline-list {
  display: grid;
  gap: 22px;
}

.timeline-list div {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 22px;
  align-items: start;
}

.timeline-list time {
  color: var(--moss);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding-top: 4px;
}

.timeline-list p {
  margin: 0;
  padding-left: 22px;
  border-left: 1px solid var(--line);
}

.timeline-list b,
.timeline-list span {
  display: block;
}

.timeline-list b {
  line-height: 1.45;
}

.timeline-list span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

.experience-notes {
  padding: 20px 0 120px;
}

.note-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.note-grid article {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.note-grid span {
  color: var(--clay);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
}

.note-grid h3 {
  margin-top: 46px;
  font-size: 28px;
}

.note-grid p {
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.access-summary {
  display: grid;
  grid-template-columns: .9fr .85fr;
  gap: clamp(34px, 7vw, 92px);
  align-items: center;
  padding: clamp(42px, 7vw, 74px);
  background: var(--forest);
  color: var(--white);
}

.access-summary h2 {
  color: var(--white);
}

.access-summary p {
  margin: 0;
  color: rgba(255, 253, 247, .78);
}

.sources {
  padding: 90px 0 82px;
  color: var(--muted);
  font-size: 13px;
}

.sources h2 {
  color: var(--ink);
  font-size: 28px;
}

.sources ul {
  margin: 18px 0 0;
  padding-left: 1.2em;
}

/* Travel library landing page */
.lp-page {
  background: #f3f6f8;
}

.lp-hero {
  min-height: 430px;
  position: relative;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(18, 83, 57, .96), rgba(16, 159, 78, .9)),
    url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1800&q=80");
  background-size: cover;
  background-position: center;
}

.lp-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  gap: 24px;
  justify-content: flex-end;
  padding: 26px var(--gutter);
  font-size: 13px;
  font-weight: 800;
}

.lp-nav a {
  color: #fff;
  text-decoration: none;
}

.lp-hero-inner {
  width: min(900px, calc(100% - var(--gutter) * 2));
  margin: 0 auto;
  text-align: center;
  padding: 90px 0 72px;
}

.lp-hero h1 {
  max-width: none;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
  font-size: clamp(42px, 6vw, 76px);
  font-weight: 900;
  line-height: 1.18;
}

.lp-hero p:not(.label) {
  max-width: 720px;
  margin: 22px auto 0;
  color: rgba(255, 255, 255, .86);
  font-size: 17px;
  overflow-wrap: anywhere;
}

.lp-intro,
.trip-list,
.lp-note,
.memory-summary,
.memory-grid {
  width: min(1080px, calc(100% - var(--gutter) * 2));
  margin: 0 auto;
}

.lp-intro {
  display: grid;
  grid-template-columns: .9fr 1fr;
  gap: clamp(32px, 7vw, 86px);
  padding: 86px 0 46px;
}

.lp-hero-inner,
.lp-intro > *,
.trip-copy {
  min-width: 0;
}

.lp-intro p:not(.label),
.lp-note p,
.memory-summary p {
  margin: 0;
  color: var(--muted);
}

.lp-intro h2,
.lp-note h2 {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
  font-size: clamp(34px, 4.2vw, 56px);
  font-weight: 900;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.trip-list {
  display: grid;
  gap: 28px;
  padding: 28px 0 100px;
}

.trip-card {
  display: grid;
  grid-template-columns: minmax(260px, .56fr) minmax(0, .94fr);
  min-height: 330px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  background: var(--white);
  border: 1px solid rgba(32, 37, 31, .08);
  border-radius: 28px;
  box-shadow: 0 22px 56px rgba(32, 37, 31, .09);
  transition: transform .2s ease, box-shadow .2s ease;
}

.trip-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 28px 70px rgba(32, 37, 31, .14);
}

.trip-card figure {
  margin: 0;
  min-height: 320px;
}

.trip-copy {
  display: grid;
  align-content: center;
  padding: clamp(28px, 5vw, 54px);
}

.trip-copy h2 {
  margin-top: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 900;
  line-height: 1.28;
  overflow-wrap: anywhere;
}

.trip-date {
  margin: 14px 0 0;
  color: #718096;
  font-size: 17px;
  font-weight: 800;
}

.trip-copy p:not(.trip-date) {
  margin: 20px 0 0;
  color: #4a5568;
  font-size: 16px;
  overflow-wrap: anywhere;
}

.trip-copy ul {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.trip-copy li {
  padding: 7px 12px;
  color: #64748b;
  background: #edf2f7;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
}

.status {
  display: inline-flex;
  width: fit-content;
  min-height: 34px;
  align-items: center;
  padding: 5px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
}

.status.upcoming {
  color: #9a4c1f;
  background: #fff0bf;
}

.status.memory {
  color: #34615d;
  background: #dcefed;
}

.lp-note {
  display: grid;
  grid-template-columns: .82fr 1fr;
  gap: clamp(30px, 7vw, 80px);
  padding: 70px 0 100px;
  border-top: 1px solid rgba(32, 37, 31, .12);
}

/* Simple memory detail pages */
.memory-hero {
  min-height: 70svh;
  position: relative;
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.memory-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 24, 18, .12), rgba(15, 24, 18, .84));
}

.memory-hero.osaka {
  background-image: url("https://images.unsplash.com/photo-1590559899731-a382839e5549?auto=format&fit=crop&w=1800&q=84");
}

.memory-hero.iriomote {
  background-image: url("https://images.unsplash.com/photo-1542640244-7e672d6cef4e?auto=format&fit=crop&w=1800&q=84");
}

.memory-hero-content {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - var(--gutter) * 2));
  margin: 0 auto;
  padding: 130px 0 90px;
}

.memory-hero-content h1 {
  max-width: 860px;
  font-size: clamp(44px, 7vw, 98px);
  line-height: 1.05;
}

.memory-hero-content p:not(.label) {
  max-width: 680px;
  color: rgba(255, 255, 255, .82);
  font-size: 18px;
}

.memory-summary {
  display: grid;
  grid-template-columns: .9fr 1fr;
  gap: clamp(32px, 7vw, 80px);
  padding: 92px 0 54px;
}

.memory-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-bottom: 100px;
}

.memory-grid article {
  min-height: 260px;
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 18px 48px rgba(32, 37, 31, .08);
}

.memory-grid span {
  color: var(--clay);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
}

.memory-grid h3 {
  margin-top: 48px;
  font-size: 30px;
}

.memory-grid p {
  color: var(--muted);
}

@media (max-width: 980px) {
  .hero-facts,
  .intro,
  .route-panel,
  .section-heading,
  .highlight-grid,
  .day-block,
  .day-story,
  .day-story.reverse,
  .note-grid,
  .access-summary {
    grid-template-columns: 1fr;
  }

  .lp-intro,
  .lp-note,
  .memory-summary,
  .memory-grid {
    grid-template-columns: 1fr;
  }

  .trip-card {
    grid-template-columns: 1fr;
  }

  .hero-facts {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    width: min(var(--max), calc(100% - var(--gutter) * 2));
    margin: -86px auto 0;
  }

  .intro {
    padding-top: 128px;
  }

  .day-meta {
    position: relative;
    top: auto;
    grid-template-columns: auto 1fr auto;
    align-items: baseline;
  }

  .day-story.reverse figure {
    order: 0;
  }

  .day-story figure {
    min-height: 420px;
  }
}

@media (max-width: 680px) {
  .topbar {
    justify-content: flex-start;
    overflow-x: auto;
    padding: 20px var(--gutter);
  }

  .site-hero {
    min-height: 92svh;
  }

  .hero-content {
    padding: 116px 0 140px;
  }

  h1 {
    font-size: clamp(35px, 10.4vw, 41px);
    line-height: 1.12;
    max-width: 100%;
  }

  h2 {
    font-size: clamp(32px, 11vw, 46px);
  }

  .hero-facts div {
    min-height: 100px;
    padding: 22px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .hero-facts div:last-child {
    border-bottom: 0;
  }

  .route-panel {
    width: 100%;
  }

  .route-image,
  .day-story figure {
    min-height: 340px;
  }

  .route-copy {
    padding: 36px var(--gutter) 44px;
  }

  .highlight-card,
  .highlight-card.large {
    min-height: 420px;
  }

  .day-block {
    padding: 44px 0;
  }

  .day-meta {
    grid-template-columns: 1fr;
  }

  .timeline-list div {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .timeline-list p {
    padding-left: 16px;
  }

  .note-grid article {
    min-height: 240px;
  }

  .lp-nav {
    justify-content: flex-start;
    overflow-x: auto;
    white-space: nowrap;
  }

  .lp-hero-inner {
    text-align: left;
    padding-top: 108px;
  }

  .lp-hero h1 {
    font-size: clamp(34px, 9.4vw, 38px);
    overflow-wrap: anywhere;
    word-break: break-all;
  }

  .lp-hero p:not(.label) {
    font-size: 15px;
    line-height: 1.85;
    word-break: break-all;
  }

  .lp-intro h2,
  .lp-note h2 {
    font-size: clamp(28px, 8vw, 32px);
    word-break: break-all;
  }

  .lp-intro p,
  .lp-note p {
    word-break: break-all;
  }

  .trip-card {
    border-radius: 22px;
  }

  .trip-card figure {
    min-height: 230px;
  }

  .trip-copy {
    padding: 28px 24px 32px;
  }

  .trip-copy h2 {
    font-size: 23px;
    word-break: break-all;
  }

  .trip-copy p:not(.trip-date) {
    font-size: 14px;
    word-break: break-all;
  }

  .memory-grid {
    gap: 14px;
  }
}
