[data-festival] {
  --paper: #f8eedb;
  --white: #fff9ef;
  --ink: #28251d;
  --muted: #5f503e;
  --green: #234b39;
  --stroke: #d9c29c;
  --sage: #dbe9db;
  --sky: #e2eae6;
  --deep: #102d22;
  --primary: #862a38;
  --gold: #ecc77c;
  --ribbon: repeating-linear-gradient(125deg, #7b2131 0 9px, #eed6a5 9px 13px, #a43746 13px 22px, #eed6a5 22px 26px);
  --theme-accent: #f2d18c;
  --theme-tint: var(--deep);
  --shape: 50%;
  --control-radius: 999px;
  --tile-radius: 22px;
  --hero-radius: 34px;
  --display: "Noto Serif TC", "Noto Serif CJK TC", "Songti TC", "PMingLiU", serif;
  background-image: radial-gradient(ellipse at 45% 4%, #fffaf0 0, transparent 64rem),
    radial-gradient(circle, #aa81452c 1px, transparent 1.6px);
  background-size: auto, 24px 24px;
}

.masthead, .site-footer {
  color: #f6e7ce;
  background: linear-gradient(110deg, var(--deep), var(--green) 56%, var(--deep));
  border: 0;
}
.masthead::after, .site-footer::before {
  content: "";
  display: block;
  height: 7px;
  border-block: 1px solid var(--gold);
  background: var(--ribbon);
}
.mast-inner { min-height: 80px; }
:is(.masthead, .site-footer) a { color: #fff4df; }
.wordmark .brand-tagline { color: #f1d193; }
.wordmark .brand-logo { border:1px solid #ead5b680; }
.top-nav { gap: .5rem; }
[data-festival] .top-nav a {
  padding: .35rem .78rem;
  border: 1px solid #d6af7466;
  color: #fff4df;
  text-decoration: none;
}
[data-festival] .top-nav a:is(:hover, [aria-current]) {
  color: #fff4df;
  background: var(--primary);
  border-color: var(--gold);
}
.masthead a:focus-visible, .site-footer a:focus-visible { outline-color: var(--gold); }
.site-footer .wrap { min-height: 100px; }

.spotlight {
  border-color: #d9ba85;
  border-inline-start: 5px solid var(--primary);
  background: linear-gradient(100deg, #f4dcaf, #fcf0d9);
  box-shadow: 0 4px 12px #69422213;
}
.spot-title, .spot-title span { color: #752733; }
.feature { border: 1px solid #e1ca9d; }

[data-festival] .hero {
  display: block;
  isolation: isolate;
  min-height: 450px;
  border: 1px solid #d7ac63;
  background: var(--deep);
  box-shadow: 0 13px 33px #3b312b27;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 7px;
  z-index: 2;
  pointer-events: none;
  border: 1px solid #f3cc8559;
  border-radius: calc(var(--hero-radius) - 7px);
}
.hero .theme-art { position: absolute; inset: 0 0 0 19%; }
.hero .theme-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--deep), color-mix(in srgb, var(--deep), transparent 9%) 13%, color-mix(in srgb, var(--deep), transparent 55%) 31%, transparent 53%);
}
.hero img { min-height: 0; object-position: 78% 9%; }
.hero-copy {
  position: relative;
  z-index: 3;
  width: 51%;
  padding: clamp(2rem, 4.3vw, 4rem);
}
.hero :is(.kicker, .hero-region) { color: #f0ce94; }
.hero .kicker { display: flex; flex-wrap: wrap; gap: 0 .36rem; letter-spacing: .08em; }
.hero .kicker::before { content: ""; align-self: center; width: 21px; border-top: 1px solid var(--gold); }
[data-festival] .hero h1 {
  color: #fff3d9;
  font: 900 clamp(2.25rem, 4.6vw, 3.8rem)/1.17 var(--display);
  letter-spacing: .02em;
  margin: .75rem 0 .8rem;
}
.hero h1 span { color: #f3cc82; }
.hero-description { color: #fff2d8; }
.search { border-color: #bfa477; }
[data-festival] :is(.search button, .primary-link) {
  background: var(--primary);
  border: 1px solid #9b434c;
  box-shadow: inset 0 0 0 3px #f1ce8a48, 0 3px 7px #431d1822;
  color: #fff8eb;
}
[data-festival] :is(.search button, .primary-link):hover { background: color-mix(in srgb, var(--primary), #231917 25%); color: #fff8eb; }

.entry-points { gap: 12px; margin-top: 21px; }
[data-festival] .entry-point {
  min-height: 77px;
  color: #fff7e8;
  border: 1px solid #bc975d;
  box-shadow: inset 0 0 0 3px #f2c57d24, 0 4px 10px #3829261b;
}
.entry-point.activities { background: var(--green); }
.entry-point.venues { background: color-mix(in srgb, var(--green), #243954 44%); }
.entry-point.deals { background: var(--primary); }
.entry-point.resources { background: color-mix(in srgb, var(--green), var(--deep) 25%); }
[data-festival] .entry-point:is(:hover, [aria-current]) { border-color: #e8b967; box-shadow: inset 0 0 0 3px #f2c57d65; }
.entry-point small { color: #f4e2c2; }
[data-festival] .category-icon { background: #fff0ce; border: 1px solid #d3ab6c; }
.weather { background: #fbefd8; border-inline-start: 4px solid #a35445; }

:is(.browse-head h2, .inner h1) { color: var(--deep); font-family: var(--display); }
.browse-head { padding: .45rem 0 .7rem; border-bottom: 2px solid var(--primary); }
.inner > h1 { padding: .6rem .8rem; border-inline-start: 6px solid var(--primary); background: linear-gradient(90deg,#f2dbb4,transparent); }
.filters select, #clear { border-color: #bc9f75; }
.badge { border-radius: 999px; }
.badge.category { color: #264b39; background: #e6eddc; }
.deals .badge.category { color: #702d37; background: #f6dfe0; }
.resources .badge.category { color: #673d21; background: #f5e7c6; }
.listing {
  border-top: 4px solid #48755b;
  box-shadow: 0 4px 12px #73471c13;
}
.listing.deals { border-top-color: #9c3c4a; }
.listing.resources { border-top-color: #af843e; }
.listing:hover { border-color: #aa7945; }
.listing-end { margin-top: auto; border-bottom: 1px solid #e8d4b0; }
.detail {
  max-width: 860px;
  border: 4px double #ba945d;
  border-top: 5px solid var(--primary);
  box-shadow: 0 6px 22px #603b2319;
}
.detail dl { padding: .85rem; background: #fbefda; border-block: 1px solid #e4cda5; }

[data-theme="newyear"][data-festival] {
  --deep:#152d4d; --green:#1d4c64; --primary:#614378; --paper:#f2eff8; --gold:#e3c893;
  --ribbon:radial-gradient(circle,#fee2a1 1px,transparent 2px) 0 0 / 18px 7px, #2f3866;
  --hero-radius:30px; --tile-radius:18px 26px;
}
[data-theme="lunar"][data-festival] {
  --deep:#581b29; --green:#773038; --primary:#8f3430; --paper:#fbecdb; --gold:#f0ce82;
  --ribbon:repeating-linear-gradient(90deg,#8f3430 0 14px,#ebbf77 14px 16px,#a84937 16px 26px);
  --hero-radius:42px; --tile-radius:24px 24px 18px 18px;
}
[data-theme="children"][data-festival] {
  --deep:#2d3d61; --green:#3a6267; --primary:#734d7a; --paper:#fcf1e6; --gold:#f0c879;
  --ribbon:repeating-linear-gradient(135deg,#e09d9c 0 13px,#f2d495 13px 26px,#83babb 26px 39px);
  --hero-radius:42px; --tile-radius:28px;
}
[data-theme="dragon"][data-festival] {
  --deep:#123e3f; --green:#1d5650; --primary:#8c5231; --paper:#edf4e7; --gold:#e4c988;
  --ribbon:radial-gradient(ellipse at bottom,#c8dfaa 50%,transparent 53%) 0 0 / 28px 8px, #3d7866;
  --hero-radius:37px; --tile-radius:23px 19px;
}
[data-theme="moon"][data-festival] {
  --deep:#292545; --green:#45365c; --primary:#79514b; --paper:#f6f0f5; --gold:#f2ce85;
  --ribbon:radial-gradient(circle,#f2ce85 2px,transparent 3px) 0 0 / 26px 7px, #43345c;
  --hero-radius:46px; --tile-radius:24px;
}
[data-theme="national"][data-festival] {
  --deep:#203651; --green:#304d73; --primary:#943745; --paper:#f6f1ea; --gold:#e8c888;
  --ribbon:repeating-linear-gradient(110deg,#9b404a 0 10px,#f5e6d4 10px 20px,#365b82 20px 30px);
  --hero-radius:34px; --tile-radius:20px 25px;
}

@media (min-width: 701px) and (max-width: 950px) {
  .hero-copy { width: 55%; padding: 2.4rem 2rem; }
  [data-festival] .hero { min-height: 370px; }
}
@media (max-width: 700px) {
  .mast-inner { padding-block: .65rem; gap: .55rem .85rem; }
  .top-nav { gap: .35rem; flex-wrap: wrap; }
  [data-festival] .top-nav a { padding: .32rem .65rem; }
  [data-festival] .hero { display: grid; grid-template-columns: 1fr; min-height: 0; }
  .hero .theme-art { position: relative; inset: auto; grid-row: 1; }
  .hero .theme-art::after { background: linear-gradient(0deg, var(--deep), transparent 30%); }
  .hero img { height: auto; aspect-ratio: 1.64; object-position: 82% 8%; }
  .hero-copy { width: auto; padding: .45rem clamp(1.1rem, 5vw, 2.2rem) 1.3rem; }
  [data-festival] .hero h1 { font-size: clamp(2rem, 8.4vw, 3.15rem); margin-block: .5rem; }
  .entry-points { gap: 6px; margin-top: 15px; }
  .detail dl { gap: .4rem .65rem; padding: .65rem .5rem; }
}
