:root {
  --walnut: #1c140f;
  --bark: #2a1e16;
  --bark-2: #3a2a1f;
  --paper: #f3ece1;
  --kraft: #e7dccb;
  --line: #d6c7b0;
  --ink: #2a211b;
  --muted: #6a5b4d;
  --cream: #efe4d3;
  --cream-muted: #bfae98;
  --accent: #d9a95f; /* accent on dark */
  --accent-ink: #8c5a1e; /* accent on paper */
  --serif: "Noto Serif TC", "Songti TC", serif;
  --hand: "Iansui", "Klee", "Kaiti TC", cursive;
  --sans:
    "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
  --wrap: min(1180px, 100% - 48px);
  --wood: url(../img/wood-walnut-dark.jpg);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.012 0.32' numOctaves='3' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 0.85 0 0 0 0 0.62 0 0 0 0 0.4 0 0 0 0.09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
    animation: none !important;
  }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.85 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
}
.wrap {
  width: var(--wrap);
  margin-inline: auto;
}
h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
  letter-spacing: 0.02em;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  letter-spacing: 0.2em;
  color: var(--accent-ink);
  font-weight: 500;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}
.dark .eyebrow {
  color: var(--accent);
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 2px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid currentColor;
  transition:
    background 0.2s,
    color 0.2s,
    transform 0.15s;
}
.btn:active {
  transform: translateY(1px);
}
.btn--fill {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.btn--fill:hover {
  background: var(--bark-2);
}
.dark .btn--fill {
  background: var(--cream);
  color: var(--walnut);
  border-color: var(--cream);
}
.dark .btn--fill:hover {
  background: #fff;
}
.btn--line:hover {
  background: rgba(217, 169, 95, 0.12);
}
.btn .arr {
  transition: transform 0.2s;
}
.btn:hover .arr {
  transform: translateX(4px);
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* dark wood ground */
.dark {
  background: var(--walnut) var(--wood) center top/1400px auto repeat;
  color: var(--cream);
}
.dark .muted {
  color: var(--cream-muted);
}
.muted {
  color: var(--muted);
}

/* nav */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  transition:
    background 0.3s,
    box-shadow 0.3s;
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}
.logo {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 19px;
  text-decoration: none;
  color: var(--cream);
  letter-spacing: 0.06em;
}
.nav ul {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav ul a {
  color: var(--cream);
  text-decoration: none;
  font-size: 15px;
  opacity: 0.85;
  position: relative;
}
.nav ul a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -4px;
  height: 1px;
  background: var(--accent);
  transition: right 0.25s;
}
.nav ul a:hover {
  opacity: 1;
}
.nav ul a:hover::after {
  right: 0;
}
.nav .btn {
  min-height: 40px;
  padding: 0 18px;
  color: var(--cream);
  font-size: 15px;
}
.nav.solid {
  background: rgba(28, 20, 15, 0.94);
  box-shadow: 0 1px 0 rgba(239, 228, 211, 0.08);
}
@media (max-width: 860px) {
  .nav ul {
    display: none;
  }
}

/* hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--cream);
  background: var(--walnut);
}
.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 50%;
  transform: scale(1.04);
  animation: settle 2.4s ease-out forwards;
}
@keyframes settle {
  to {
    transform: scale(1);
  }
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(20, 14, 10, 0.92) 0%,
    rgba(20, 14, 10, 0.6) 55%,
    rgba(20, 14, 10, 0.2) 100%
  );
}
.hero .wrap {
  position: relative;
  z-index: 1;
  padding: 140px 0 56px;
}
.hero__copy {
  max-width: 520px;
}
.hero__title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 34px;
  line-height: 1.4;
  letter-spacing: 0.04em;
  margin: 18px 0 0;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}
.hero__title span {
  color: var(--accent);
}
.hero__rule {
  width: 48px;
  height: 2px;
  background: var(--accent);
  margin: 28px 0 24px;
  border: 0;
}
.hero__lead {
  margin: 0 0 32px;
  color: var(--cream-muted);
  font-size: 17px;
  max-width: 420px;
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero__ctas .btn--line {
  color: var(--cream);
}
.hero__scroll {
  position: absolute;
  right: 24px;
  bottom: 28px;
  z-index: 1;
  font-size: 13px;
  letter-spacing: 0.3em;
  writing-mode: vertical-rl;
  color: var(--cream-muted);
  text-decoration: none;
  display: none;
}
.hero__scroll::after {
  content: "";
  display: block;
  width: 1px;
  height: 56px;
  margin: 12px auto 0;
  background: linear-gradient(var(--cream-muted), transparent);
}
@media (min-width: 900px) {
  .hero {
    align-items: center;
    background: var(--walnut) var(--wood) center/1400px auto repeat;
  }
  .hero img {
    left: 44%;
    width: 56%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 28%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 28%);
  }
  .hero::after {
    background: linear-gradient(0deg, rgba(20, 14, 10, 0.5), transparent 28%);
  }
  .hero .wrap {
    padding: 112px 0 96px;
  }
  .hero__copy {
    max-width: min(600px, 40vw);
  }
  .hero__title {
    font-size: clamp(40px, 3.9vw, 60px);
    line-height: 1.32;
  }
  .hero__lead {
    font-size: 18px;
  }
  .hero__scroll {
    display: block;
  }
}

/* story: one screen */
.story {
  overflow: hidden;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 112px 0 96px;
}
.story .wrap {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 72px;
  align-items: center;
}
.story h2 {
  font-size: clamp(34px, 4vw, 52px);
  margin: 18px 0 22px;
}
.story__lead {
  margin: 0 0 32px;
  color: var(--cream-muted);
  font-size: 18px;
  max-width: 420px;
}
.story__quote {
  margin: 0;
  padding-left: 20px;
  border-left: 2px solid var(--accent);
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.7;
  color: var(--cream);
}
.story__quote span {
  display: inline-block;
  transform: rotate(-3deg);
  color: var(--accent);
}
/* story notebook pages */
.pages {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
  height: min(700px, calc(100svh - 170px));
}
.page {
  --rot: 0deg;
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(560px, 100%, calc((100svh - 330px) / 0.75));
  translate: -50% -50%;
  rotate: var(--rot);
  padding: 40px 36px 34px 78px;
  color: #2c3b5a;
  background:
    radial-gradient(circle at 26px 50%, #1a120d 0 7px, transparent 7.5px) 0 0 /
      100% 64px repeat-y,
    linear-gradient(
      90deg,
      transparent 54px,
      rgba(196, 84, 70, 0.55) 54px 56px,
      transparent 56px
    ),
    repeating-linear-gradient(
      180deg,
      transparent 0 31px,
      rgba(70, 110, 160, 0.22) 31px 32px
    ),
    #f7f1e3;
  background-position:
    0 18px,
    0 0,
    0 2px,
    0 0;
  border-radius: 3px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 18px 40px rgba(0, 0, 0, 0.45),
    0 2px 6px rgba(0, 0, 0, 0.3);
}
.page:nth-child(1) {
  --rot: -3deg;
}
.page:nth-child(2) {
  --rot: 2.5deg;
  margin-left: 18px;
}
.page:nth-child(3) {
  --rot: -1.5deg;
  margin-top: 14px;
}
.page:nth-child(4) {
  --rot: 3.5deg;
  margin-left: 10px;
  margin-top: -10px;
}
.page__no {
  position: absolute;
  right: 24px;
  bottom: 14px;
  font-family: var(--hand);
  font-size: 15px;
  color: rgba(44, 59, 90, 0.6);
}
.page__photo {
  position: relative;
  margin: 0 0 18px;
  padding: 8px 8px 8px;
  background: #fff;
  rotate: 1.5deg;
  box-shadow: 0 4px 12px rgba(40, 25, 10, 0.22);
}
.page:nth-child(even) .page__photo {
  rotate: -1.5deg;
}
.page__photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.page__photo::before,
.page__photo::after {
  content: "";
  position: absolute;
  width: 92px;
  height: 26px;
  background: rgba(226, 208, 160, 0.78);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  clip-path: polygon(
    3% 0,
    97% 0,
    100% 20%,
    96% 40%,
    100% 62%,
    97% 82%,
    100% 100%,
    3% 100%,
    0 80%,
    4% 60%,
    0 40%,
    4% 20%
  );
}
.page__photo::before {
  top: -10px;
  right: -26px;
  rotate: 38deg;
}
.page__photo::after {
  bottom: -10px;
  left: -26px;
  rotate: 38deg;
}
.page__title {
  display: block;
  font-family: var(--hand);
  font-size: 34px;
  line-height: 44px;
}
.page__line {
  display: block;
  font-family: var(--hand);
  font-size: 23px;
  line-height: 32px;
}
.story__progress {
  display: none;
  margin-top: 36px;
  gap: 10px;
}
.story__progress i {
  width: 28px;
  height: 2px;
  background: rgba(243, 236, 225, 0.2);
  transition: background 0.3s;
}
.story__progress i.on {
  background: var(--accent);
}
.js-pin .story__progress {
  display: flex;
}
@media (max-width: 900px) {
  .story {
    min-height: 0;
    padding: 80px 0 56px;
  }
  .story .wrap {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .story h2 {
    margin: 12px 0 14px;
  }
  .story__lead {
    margin-bottom: 20px;
  }
}
@media (max-width: 899px), (prefers-reduced-motion: reduce) {
  .pages {
    height: auto;
    display: grid;
    gap: 28px;
    padding: 8px 4px;
  }
  .page {
    position: relative;
    top: auto;
    left: auto;
    translate: none;
    margin: 0 !important;
    width: 100%;
    max-width: 520px;
    justify-self: center;
  }
}
@media (max-width: 520px) {
  .page {
    padding: 28px 20px 22px 60px;
    background-position:
      0 18px,
      -10px 0,
      0 2px,
      0 0;
  }
  .page__title {
    font-size: 26px;
  }
  .page__line {
    font-size: 19px;
  }
}

/* works */
.works {
  padding: 120px 0;
}
.head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 56px;
}
.head h2 {
  font-size: clamp(30px, 3.6vw, 44px);
  margin-top: 14px;
}
.head p {
  margin: 0;
  color: var(--muted);
}
@media (max-width: 860px) {
  .head {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 36px;
  }
}
.works__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.work {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.work__pic {
  overflow: hidden;
  background: var(--kraft);
  border-radius: 2px;
}
.work__pic img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  transition: transform 0.5s;
}
.work:hover .work__pic img {
  transform: scale(1.04);
}
.work h3 {
  font-size: 20px;
  margin: 18px 0 6px;
}
.work p {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
}
.work .price {
  margin-top: 10px;
  font-size: 14px;
  color: var(--accent-ink);
  font-weight: 500;
}
@media (max-width: 1000px) {
  .works__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 520px) {
  .works__grid {
    gap: 16px;
  }
  .work h3 {
    font-size: 17px;
  }
  .work p {
    font-size: 14px;
  }
}
.custom {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  margin-top: 72px;
  background: var(--kraft);
  border-radius: 2px;
  overflow: hidden;
}
.custom img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}
.custom__body {
  padding: 48px;
}
.custom__body h3 {
  font-size: 28px;
  margin: 12px 0 14px;
}
.custom__body p {
  margin: 0 0 24px;
  color: var(--muted);
}
@media (max-width: 860px) {
  .custom {
    grid-template-columns: 1fr;
  }
  .custom img {
    min-height: 220px;
    aspect-ratio: 16/10;
  }
  .custom__body {
    padding: 32px 24px;
  }
}

/* lessons */
.lessons {
  padding: 120px 0;
  background: var(--kraft);
}
.lessons__grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 64px;
  align-items: start;
}
.levels {
  display: grid;
  gap: 28px;
}
.level h3 {
  font-size: 18px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  margin-bottom: 10px;
}
.level h3 span {
  font-family: var(--sans);
  font-size: 16px;
  color: var(--accent-ink);
  font-weight: 500;
}
.level p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}
.lessons__note {
  margin: 32px 0;
  padding: 20px 24px;
  background: var(--paper);
  border-left: 3px solid var(--accent-ink);
  font-size: 16px;
}
.lessons__pics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.lessons__pics img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 2px;
}
.lessons__pics img:first-child {
  grid-column: 1/-1;
  aspect-ratio: 4/3;
}
.places {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.places span {
  font-size: 14px;
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
}
@media (max-width: 900px) {
  .lessons__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* more */
.more {
  padding: 120px 0;
}
.more__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(239, 228, 211, 0.16);
  border-left: 1px solid rgba(239, 228, 211, 0.16);
}
.svc {
  background: rgba(18, 12, 8, 0.35);
  border-right: 1px solid rgba(239, 228, 211, 0.16);
  border-bottom: 1px solid rgba(239, 228, 211, 0.16);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.25s;
}
.svc:hover {
  background: rgba(18, 12, 8, 0.6);
}
.svc .no {
  font-family: var(--serif);
  color: var(--accent);
  font-size: 15px;
  letter-spacing: 0.2em;
}
.svc h3 {
  font-size: 21px;
}
.svc p {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--cream-muted);
  flex: 1;
}
.svc .go {
  font-size: 14px;
  color: var(--accent);
}
@media (max-width: 1000px) {
  .more__grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .more__grid {
    grid-template-columns: 1fr;
  }
}

/* markets */
.markets {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  min-height: 560px;
  background: var(--paper);
}
.markets img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.markets__body {
  padding: 80px 56px;
  align-self: center;
}
.markets__body h2 {
  font-size: clamp(28px, 3.2vw, 40px);
  margin: 14px 0 18px;
}
.markets__body p {
  margin: 0 0 16px;
  color: var(--muted);
}
.markets__body ul {
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}
.markets__body li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
}
.gigs {
  margin: 8px 0 28px;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.gigs li {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  gap: 16px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.gig__date {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
}
.gig__date small,
.gig__place small {
  display: block;
  margin-top: 4px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
}
.gig__place {
  font-size: 16px;
  font-weight: 500;
}
.gigs li::after {
  content: "";
  font-size: 12px;
  letter-spacing: 0.1em;
}
.gigs li.next::after {
  content: "下一站";
  color: #fff;
  background: var(--accent-ink);
  padding: 2px 10px;
  border-radius: 999px;
}
.gigs li.past {
  opacity: 0.45;
}
.gigs li.past::after {
  content: "已結束";
  color: var(--muted);
}
@media (max-width: 520px) {
  .gigs li {
    grid-template-columns: 112px 1fr;
  }
  .gigs li::after {
    grid-column: 2;
    justify-self: start;
  }
  .gigs li.past::after {
    display: none;
  }
  .gig__date {
    font-size: 19px;
  }
}
@media (max-width: 860px) {
  .markets {
    grid-template-columns: 1fr;
  }
  .markets img {
    aspect-ratio: 4/3;
    height: auto;
  }
  .markets__body {
    padding: 48px 24px;
  }
}

/* footer */
footer {
  padding: 96px 0 40px;
}
.foot {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
}
.foot__slogan {
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.5;
  margin: 0 0 12px;
}
.foot h4 {
  font-size: 14px;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin: 0 0 14px;
  font-weight: 500;
}
.foot ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.foot li a {
  display: inline-block;
  padding: 5px 0;
  text-decoration: none;
  color: var(--cream-muted);
}
.foot li a:hover {
  color: var(--cream);
}
.legal {
  margin-top: 72px;
  padding-top: 24px;
  border-top: 1px solid rgba(239, 228, 211, 0.12);
  font-size: 13px;
  color: var(--cream-muted);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
@media (max-width: 760px) {
  .foot {
    grid-template-columns: 1fr 1fr;
  }
  .foot > div:first-child {
    grid-column: 1/-1;
  }
}

/* gentle reveal */
.rv {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}
.rv.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .rv {
    opacity: 1;
    transform: none;
  }
}
