:root {
  --color-ink: #25231f;
  --color-muted: #6f6b64;
  --color-soft: #9b958b;
  --color-line: #ded8cc;
  --color-bg: #ffffff;
  --color-panel: #fffdf8;
  --color-accent: #d89c2b;
  --color-teal: #5f8f8b;
  --color-washi: #f1ede3;
  --max-width: 1120px;
  --header-height: 68px;
}

* {
  box-sizing: border-box;
}

#wpadminbar {
  position: fixed;
  top: 0;
}

body {
  margin: 0;
  color: var(--color-ink);
  background:
    linear-gradient(90deg, rgba(37, 35, 31, 0.025) 1px, transparent 1px),
    linear-gradient(0deg, rgba(37, 35, 31, 0.018) 1px, transparent 1px),
    var(--color-bg);
  background-size: 72px 72px;
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  line-height: 1.75;
}

a {
  color: inherit;
  text-decoration: none;
  word-break: break-all;
  transition: all .2s;
}

img,
iframe {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
}

main {
  overflow: hidden;
}

.swiper-button-next, .swiper-button-prev {
  color: var(--color-line);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  height: var(--header-height);
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-line);
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, .7);
}

.site-logo {
  order: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0;
}

.site-logo img {
  display: block;
  height: 40px;
}

.logo-mark {
  width: 24px;
  height: 24px;
  border: 1px solid var(--color-ink);
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 48%, var(--color-ink) 48%, var(--color-ink) 52%, transparent 52%),
    linear-gradient(0deg, transparent 48%, var(--color-ink) 48%, var(--color-ink) 52%, transparent 52%);
}

.nav-toggle {
  order: 3;
  position: relative;
  z-index: 2;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 40px;
  height: 40px;
  padding: 0 10px;
  background: transparent;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
  width: 18px;
  height: 2px;
  background: var(--color-ink);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2),
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translate(-50%, -50%) rotate(45deg);
}

.site-nav {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  top: var(--header-height);
  height: calc(100svh - var(--header-height));
  padding: 24px 44px;
  text-align: center;
  background: #fff;
  border: 0;
}

.site-nav.is-open {
  display: flex;
}

.site-nav > a {
  padding: 4px 10px;
  color: var(--color-ink);
  font-size: 1.25rem;
  line-height: 1.35;
}

.site-nav > a:hover,
.site-nav > a:focus-visible {
  color: var(--color-ink);
}

.social {
  display: flex;
  flex: 0 0 auto;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--color-muted);
  border: 1px solid var(--color-line);
  border-radius: 50%;
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    transform 180ms ease;
}

.social a:hover,
.social a:focus-visible {
  color: var(--color-ink);
  background: var(--color-washi);
  border-color: var(--color-soft);
}

.social a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.social svg {
  display: block;
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--color-accent);
  font-weight: 600;
  text-transform: uppercase;
  text-align: center;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: 2.25rem;
  line-height: 1.18;
  font-weight: 400;
}

h2 {
  margin-bottom: 16px;
  font-size: 1.78rem;
  line-height: 1.25;
  font-weight: 600;
  text-align: center;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.05rem;
  font-weight: 500;
}

.hero-copy p:not(.eyebrow),
.lead,
.festival-panel p,
.highlight-copy p {
  color: var(--color-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 17px;
  border: 1px solid var(--color-ink);
  border-radius: 999px;
  font-size: 0.92rem;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--color-panel);
  background: var(--color-ink);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  color: var(--color-panel);
  background: var(--color-ink);
}

.placeholder-image {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  background:
    linear-gradient(135deg, transparent 49.7%, var(--color-line) 50%, transparent 50.3%),
    radial-gradient(circle at 72% 28%, transparent 0 52px, rgba(37, 35, 31, 0.65) 53px 54px, transparent 55px),
    var(--color-panel);
  border: 1px solid var(--color-line);
  border-radius: 2px;
}

.placeholder-image::before,
.placeholder-image::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(37, 35, 31, 0.78);
  animation: quietFloat 8s ease-in-out infinite;
}

.placeholder-image::before {
  right: 28px;
  bottom: 28px;
  width: 104px;
  height: 104px;
  animation-delay: -2s;
}

.placeholder-image::after {
  left: 30px;
  top: 34px;
  width: 96px;
  height: 96px;
  border-radius: 50%;
}

.placeholder-image span {
  position: absolute;
  right: 22px;
  top: 22px;
  width: 86px;
  height: 1px;
  background: rgba(184, 95, 73, 0.8);
  transform: rotate(-24deg);
  animation: lineDrift 7s ease-in-out infinite;
}

.placeholder-image-alt {
  background:
    repeating-linear-gradient(90deg, transparent 0 28px, rgba(23, 23, 23, 0.08) 29px 30px),
    var(--color-panel);
}

.placeholder-image-line {
  background:
    linear-gradient(90deg, transparent 0 34%, rgba(29, 138, 134, 0.18) 34% 66%, transparent 66%),
    var(--color-panel);
}

.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  max-width: var(--max-width);
  margin: 18px auto 0;
}

.slider-controls button {
  width: 34px;
  height: 34px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--color-ink);
  border-radius: 50%;
  cursor: pointer;
}

.slider-controls button:hover,
.slider-controls button:focus-visible {
  background: var(--color-ink);
}

.slider-controls button::before {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  margin: 0 auto;
  border-top: 2px solid var(--color-ink);
  border-left: 2px solid var(--color-ink);
}

.slider-controls button:hover::before,
.slider-controls button:focus-visible::before {
  border-color: var(--color-panel);
}

[data-prev]::before {
  transform: translateX(2px) rotate(-45deg);
}

[data-next]::before {
  transform: translateX(-2px) rotate(135deg);
}

.slider-dots {
  display: flex;
  gap: 8px;
}

.slider-dots button {
  width: 10px;
  height: 10px;
  border-color: var(--color-soft);
}

.slider-dots button.is-active {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px 20px;
}

.section-heading {
  position: relative;
  max-width: 680px;
}

.lead {
  max-width: 720px;
}

.section-mark {
  width: 112px;
  height: 34px;
  margin-bottom: 18px;
  overflow: visible;
}

.section-mark path,
.section-mark circle,
.section-mark rect {
  fill: none;
  stroke: var(--color-teal);
  stroke-width: 1.4;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 180;
  stroke-dashoffset: 180;
  animation: drawLine 2.4s ease forwards;
}

.program-grid {
  display: grid;
  gap: 14px;
}

.program-card,
.news-item {
  border: 1px solid var(--color-line);
}

.program-card {
  position: relative;
  min-height: 230px;
  padding: 24px;
  transition: transform 220ms ease, border-color 220ms ease;
}

.program-card:hover {
  transform: translateY(-4px);
  border-color: rgba(95, 143, 139, 0.6);
}

.program-card::after {
  content: "";
  position: absolute;
  right: 22px;
  bottom: 22px;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(184, 95, 73, 0.65);
  transform: rotate(45deg);
  animation: diamondRotate 18s linear infinite;
}

.card-index {
  display: block;
  margin-bottom: 58px;
  color: var(--color-teal);
  font-size: 0.85rem;
  font-weight: 700;
}

.program-card p,
.news-item time {
  color: var(--color-muted);
}

.brand-item h3,
.news-item h3 {
  margin: 0;
}

.festival-panel {
  position: relative;
  /* overflow: hidden; */
  display: grid;
  gap: 30px;
  padding: 8px 0;
  color: var(--color-ink);
  /* background:
    radial-gradient(circle at 12% 18%, rgba(255, 74, 74, 0.08), transparent 28%),
    radial-gradient(circle at 84% 22%, rgba(66, 255, 148, 0.07), transparent 30%),
    radial-gradient(circle at 58% 90%, rgba(72, 116, 255, 0.08), transparent 32%); */
  border: 0;
}

.festival-panel .eyebrow {
  /* color: var(--color-muted); */
  color: #E5004D;
}

.festival-panel > *:not(.rgb-halo) {
  position: relative;
  z-index: 1;
}

.festival-heading {
  max-width: 760px;
}

.festival-heading h2 {
  color: var(--color-ink);
  text-align: left;
}

.festival-gestures {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 620px;
}

.festival-gestures svg {
  width: 100%;
  height: auto;
  overflow: visible;
  color: rgba(37, 35, 31, 0.42);
  animation: quietFloat 9s ease-in-out infinite;
}

.festival-gestures svg:nth-child(2) {
  animation-delay: -2.2s;
}

.festival-gestures svg:nth-child(3) {
  animation-delay: -4.4s;
}

.festival-gestures path {
  fill: none;
  stroke: currentColor;
  stroke-width: 3.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

blockquote {
  margin: 0 0 20px;
  color: var(--color-ink);
  font-size: 1.25rem;
  line-height: 1.45;
  font-weight: 500;
}

.rgb-grid {
  display: grid;
  gap: 12px;
}

.rgb-halo {
  position: absolute;
  z-index: 0;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  opacity: 0.18;
  filter: blur(54px);
  mix-blend-mode: multiply;
  animation: haloPulse 10s ease-in-out infinite;
}

.rgb-halo-red {
  top: -80px;
  left: -80px;
  background: #ff4242;
}

.rgb-halo-green {
  top: 18%;
  right: -96px;
  background: #49f08d;
  animation-delay: -2.8s;
}

.rgb-halo-blue {
  left: 50%;
  bottom: 250px;
  background: #496dff;
  animation-delay: -5.2s;
}

.highlight {
  display: grid;
  gap: 28px;
  align-items: center;
}

.highlight-image {
  min-height: 330px;
}

.video-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--color-ink);
  border: 1px solid var(--color-line);
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.news-item {
  padding: 20px 0;
  border-width: 0 0 1px;
}

.news-item a:hover,
.news-item a:focus-visible {
  color: var(--color-accent);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes drawLine {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes quietFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(0, -10px, 0);
  }
}

@keyframes lineDrift {
  0%,
  100% {
    transform: translateX(0) rotate(-24deg);
  }

  50% {
    transform: translateX(-16px) rotate(-24deg);
  }
}

@keyframes slowRotate {
  to {
    transform: rotate(360deg);
  }
}

@keyframes diamondRotate {
  to {
    transform: rotate(405deg);
  }
}

@keyframes haloPulse {
  0%,
  100% {
    opacity: 0.1;
    transform: scale(0.92);
  }

  45% {
    opacity: 0.24;
    transform: scale(1.08);
  }

  70% {
    opacity: 0.16;
    transform: scale(1);
  }
}

@media (min-width: 768px) {
  body {
    font-size: 1.125rem;
  }
  
  .site-header {
    padding: 10px 40px;
  }

  .nav-toggle {
    display: none;
  }

  .site-nav {
    order: 2;
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 24px;
    height: 100%;
    margin-left: auto;
    padding: 0;
    text-align: left;
    background: transparent;
    border: 0;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .site-nav > a {
    padding: 0;
    color: var(--color-muted);
    font-size: 0.92rem;
  }

  .social {
    flex: 0 0 auto;
    justify-content: flex-start;
    margin-top: 0;
    margin-left: 18px;
    margin-right: 0;
  }

  .social a {
    width: 34px;
    height: 34px;
  }

  h1 {
    font-size: 4.15rem;
    line-height: 1.12;
  }

  h2 {
    font-size: 2.65rem;
    line-height: 1.2;
  }

  section {
    padding: 60px 40px;
  }
  
  .highlight {
    grid-template-columns: 0.95fr 1.05fr;
  }

  .festival-panel {
    gap: 36px;
    padding: 0;
  }

  .festival-gestures {
    max-width: 700px;
    gap: 22px;
  }

  .rgb-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .program-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .news-item {
    display: flex;
  }

  .news-item time {
    width: 160px;
  }

  .eyebrow, h2 {
    text-align: left;
  }
}

body.admin-bar .site-header {
  top: 32px;
}
@media screen and (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}