:root {
  --ink: #111827;
  --paper: #ffffff;
  --mist: #f5f7f4;
  --line: #d9dfd7;
  --muted: #5f6b63;
  --ocean: #006f8f;
  --sun: #ffc845;
  --leaf: #1f7a5c;
  --radius: 8px;
  --shadow: 0 18px 42px rgba(17, 24, 39, 0.14);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans TC", "PingFang TC", sans-serif;
  color: var(--ink);
  background: var(--mist);
  line-height: 1.7;
}

img {
  max-width: 100%;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 20;
  padding: 10px 14px;
  color: #fff;
  background: var(--ink);
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.topbar-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
  letter-spacing: 0;
}

nav {
  display: flex;
  gap: 22px;
  align-items: center;
}

nav a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

nav a:hover,
nav a:focus-visible {
  color: var(--ocean);
}

.hero {
  position: relative;
  min-height: 560px;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
  background: var(--ink);
}

.hero-media {
  position: absolute;
  inset: 0;
  background-image: url("assets/optimized/11404103785-01-861352ee.webp");
  background-size: cover;
  background-position: center 45%;
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(17, 24, 39, 0.12) 0%, rgba(17, 24, 39, 0.74) 72%, rgba(17, 24, 39, 0.9) 100%),
    linear-gradient(90deg, rgba(0, 111, 143, 0.42), transparent 48%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 96px 0 58px;
}

.kicker,
.eyebrow {
  margin: 0;
  color: var(--sun);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.section-head h2,
#about h2 {
  margin: 0;
  font-family: "Source Serif 4", "Noto Serif TC", serif;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.05;
}

.hero h1 {
  max-width: 980px;
  margin-top: 14px;
  font-size: 5rem;
}

.hero p:not(.kicker) {
  max-width: 620px;
  margin: 20px 0 26px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.12rem;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-cta a,
.hero-cta button,
.card-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--radius);
  padding: 11px 16px;
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.primary-link,
.hero-cta button {
  color: var(--ink);
  background: var(--sun);
}

.hero-cta button {
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.meta-strip {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.meta-grid > div {
  min-width: 0;
  padding: 18px 20px;
  background: var(--paper);
}

.meta-grid span {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meta-grid p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.posts-section {
  padding: 56px 0 24px;
}

[hidden] {
  display: none !important;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: 28px;
  align-items: end;
  margin-bottom: 28px;
}

.section-head .eyebrow {
  color: var(--leaf);
}

.section-head h2,
#about h2 {
  margin-top: 8px;
  font-size: clamp(2rem, 3rem, 3rem);
}

.section-copy {
  margin: 0;
  color: var(--muted);
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 22px;
}

.card {
  grid-column: span 4;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.08);
  opacity: 0;
  transform: translateY(14px);
}

.card.revealed {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 420ms var(--ease), transform 420ms var(--ease);
}

.card.featured {
  grid-column: span 8;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
}

.card figure {
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #dce6e1;
}

.card.featured figure {
  aspect-ratio: auto;
  min-height: 420px;
}

.card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 360ms var(--ease);
}

.card:hover img {
  transform: scale(1.04);
}

.card .content {
  min-width: 0;
  padding: 22px;
}

.card .date {
  margin: 0 0 8px;
  color: var(--leaf);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.card h3 {
  margin: 0;
  font-family: "Source Serif 4", "Noto Serif TC", serif;
  font-size: 1.45rem;
  line-height: 1.18;
  letter-spacing: 0;
}

.card.featured h3 {
  font-size: 2.25rem;
}

.card .excerpt {
  display: -webkit-box;
  margin: 12px 0 18px;
  overflow: hidden;
  color: #354039;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.card-link {
  color: #fff;
  background: var(--ocean);
}

#about {
  margin: 60px auto 72px;
  padding: 42px 0 0;
  border-top: 2px solid var(--ink);
}

#about .eyebrow {
  color: var(--leaf);
}

#about p:not(.eyebrow) {
  max-width: 780px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

footer {
  padding: 28px 20px;
  color: #fff;
  text-align: center;
  background: var(--ink);
}

footer p {
  margin: 0;
  font-weight: 900;
}

.article-shell {
  width: min(980px, calc(100% - 40px));
  margin: 0 auto;
  padding: 56px 0 80px;
}

.back-link {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  margin-bottom: 28px;
  color: var(--ocean);
  font-weight: 900;
  text-decoration: none;
}

.article-hero {
  margin-bottom: 26px;
}

.article-hero .eyebrow {
  color: var(--leaf);
}

.article-hero h1 {
  max-width: 900px;
  margin: 8px 0 14px;
  font-family: "Source Serif 4", "Noto Serif TC", serif;
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0;
}

.article-hero p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.article-cover {
  width: 100%;
  max-height: 620px;
  display: block;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.article-content {
  max-width: 780px;
  margin: 42px auto 0;
  color: #202a24;
  font-size: 1.08rem;
}

.article-content p {
  margin: 0 0 1.25em;
}

.article-content img {
  width: 100%;
  height: auto;
  display: block;
  margin: 28px auto;
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.12);
}

.article-content br {
  display: none;
}

.empty-state {
  padding: 48px 0;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 960px) {
  .container {
    width: min(100% - 32px, 720px);
  }

  nav {
    gap: 14px;
  }

  .hero {
    min-height: 540px;
  }

  .hero h1 {
    font-size: 3.35rem;
  }

  .meta-grid,
  .section-head {
    grid-template-columns: 1fr;
  }

  .posts-grid {
    grid-template-columns: 1fr;
  }

  .card,
  .card.featured {
    grid-column: auto;
    display: block;
  }

  .card.featured figure {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .card.featured h3 {
    font-size: 1.65rem;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 28px, 520px);
  }

  .topbar-inner {
    min-height: 58px;
  }

  nav a {
    font-size: 0.92rem;
  }

  .hero {
    min-height: 500px;
  }

  .hero-content {
    padding: 86px 0 44px;
  }

  .hero h1 {
    font-size: 2.45rem;
  }

  .hero p:not(.kicker) {
    font-size: 1rem;
  }

  .hero-cta {
    width: 100%;
  }

  .hero-cta a,
  .hero-cta button {
    flex: 1 1 140px;
  }

  .meta-grid > div {
    padding: 14px 0;
  }

  .posts-section {
    padding-top: 46px;
  }

  .section-head h2,
  #about h2,
  .article-hero h1 {
    font-size: 2rem;
  }

  .card .content {
    padding: 18px;
  }

  .article-shell {
    width: min(100% - 28px, 520px);
    padding: 36px 0 60px;
  }

  .article-content {
    margin-top: 28px;
    font-size: 1rem;
  }
}

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

  .card,
  .card.revealed,
  .card img {
    transition: none;
    transform: none;
    opacity: 1;
  }
}

.journey-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: #f8faf5;
  border-bottom: 1px solid var(--line);
}

.journey-tile {
  min-height: 136px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 24px clamp(18px, 4vw, 56px);
  color: var(--ink);
  text-decoration: none;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255, 200, 69, 0.22), transparent 46%),
    #fff;
  transition: transform 320ms var(--ease), background 320ms var(--ease);
}

.journey-tile:last-child {
  border-right: 0;
}

.journey-tile span,
.journey-tile small {
  color: var(--muted);
  font-weight: 800;
}

.journey-tile span {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.journey-tile strong {
  font-family: "Source Serif 4", "Noto Serif TC", serif;
  font-size: clamp(2rem, 4vw, 4.8rem);
  line-height: 0.95;
}

.journey-tile:hover,
.journey-tile:focus-visible {
  background:
    linear-gradient(135deg, rgba(0, 111, 143, 0.18), transparent 52%),
    #fffdf7;
  transform: translateY(-3px);
}

.hub-hero {
  position: relative;
  min-height: 620px;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
  background: var(--ink);
}

.hub-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
}

.hub-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(17, 24, 39, 0.08), rgba(17, 24, 39, 0.88)),
    radial-gradient(circle at 18% 80%, rgba(255, 200, 69, 0.42), transparent 34%);
}

.hub-hero-content {
  position: relative;
  z-index: 1;
  padding: 112px 0 76px;
}

.hub-hero h1,
.wall-hero h1,
.trip-intro h2 {
  margin: 10px 0 18px;
  font-family: "Source Serif 4", "Noto Serif TC", serif;
  font-weight: 800;
  line-height: 0.98;
}

.hub-hero h1,
.wall-hero h1 {
  max-width: 980px;
  font-size: clamp(3.1rem, 8vw, 7.6rem);
}

.hub-hero p:not(.kicker),
.wall-hero p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.14rem;
}

.hub-hero .primary-link {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  margin-top: 28px;
  padding: 11px 18px;
  border-radius: var(--radius);
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
  background: var(--sun);
}

.journey-hub-list {
  display: grid;
  gap: 28px;
  padding: 56px 0 80px;
}

.journey-feature a {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  overflow: hidden;
  color: var(--ink);
  text-decoration: none;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.journey-feature:nth-child(even) a {
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
}

.journey-feature:nth-child(even) figure {
  order: 2;
}

.journey-feature figure,
.journey-post-card figure {
  margin: 0;
  overflow: hidden;
  background: #dce6e1;
}

.journey-feature figure {
  min-height: 360px;
}

.journey-feature img,
.journey-post-card img,
.wall-tile img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 420ms var(--ease), filter 420ms var(--ease);
}

.journey-feature div {
  display: grid;
  align-content: center;
  padding: clamp(28px, 5vw, 62px);
}

.journey-feature h2 {
  margin: 8px 0 14px;
  font-family: "Source Serif 4", "Noto Serif TC", serif;
  font-size: clamp(2.4rem, 6vw, 5.6rem);
  line-height: 0.96;
}

.journey-feature p {
  margin: 0;
  color: #354039;
  font-size: 1.06rem;
}

.journey-feature span {
  display: inline-flex;
  width: fit-content;
  margin-top: 24px;
  color: var(--leaf);
  font-weight: 900;
}

.journey-feature a:hover img,
.journey-post-card a:hover img,
.wall-tile:hover img {
  filter: saturate(1.08) contrast(1.04);
  transform: scale(1.045);
}

.trip-intro {
  padding: 48px 0 8px;
}

.trip-intro p {
  margin: 0 0 8px;
  color: var(--leaf);
  font-weight: 900;
}

.trip-intro h2 {
  max-width: 900px;
  font-size: clamp(2.2rem, 5vw, 4.6rem);
}

.journey-posts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding: 28px 0 82px;
}

.journey-post-card {
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.09);
}

.journey-post-card a {
  height: 100%;
  display: grid;
  color: var(--ink);
  text-decoration: none;
}

.journey-post-card figure {
  aspect-ratio: 4 / 3;
}

.journey-post-card div {
  padding: 20px;
}

.journey-post-card p {
  margin: 0 0 8px;
  color: var(--leaf);
  font-size: 0.82rem;
  font-weight: 900;
}

.journey-post-card h3 {
  margin: 0 0 18px;
  font-family: "Source Serif 4", "Noto Serif TC", serif;
  font-size: 1.5rem;
  line-height: 1.12;
}

.journey-post-card span {
  color: var(--ocean);
  font-weight: 900;
}

.wall-hero {
  padding: 130px 0 86px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(17, 24, 39, 0.92), rgba(0, 111, 143, 0.74)),
    url('/assets/optimized/11403021625-01-ec0480c6.webp') center / cover;
}

.photo-wall {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: 9vw;
  gap: 8px;
  padding: 8px;
  background: #101820;
}

.wall-tile {
  overflow: hidden;
  border-radius: 10px;
  background: #22313d;
}

.wall-tile.span-1,
.wall-tile.span-5 {
  grid-column: span 2;
  grid-row: span 2;
}

.wall-tile.span-3 {
  grid-column: span 2;
}

.wall-tile.span-6 {
  grid-row: span 2;
}

.wall-tile img {
  filter: saturate(0.96) contrast(1.02);
}

@media (max-width: 960px) {
  .journey-strip,
  .journey-posts {
    grid-template-columns: 1fr;
  }

  .journey-tile {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .journey-feature a,
  .journey-feature:nth-child(even) a {
    grid-template-columns: 1fr;
  }

  .journey-feature:nth-child(even) figure {
    order: 0;
  }

  .hub-hero {
    min-height: 540px;
  }

  .photo-wall {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 22vw;
  }
}

@media (max-width: 560px) {
  .journey-tile {
    min-height: 116px;
    padding: 20px 18px;
  }

  .hub-hero-content {
    padding: 96px 0 54px;
  }

  .journey-feature figure {
    min-height: 240px;
  }

  .journey-feature div,
  .journey-post-card div {
    padding: 20px;
  }

  .photo-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 34vw;
    gap: 6px;
    padding: 6px;
  }

  .wall-tile,
  .wall-tile.span-1,
  .wall-tile.span-3,
  .wall-tile.span-5,
  .wall-tile.span-6 {
    grid-column: span 1;
    grid-row: span 1;
  }
}
