:root {
  --bg: #f6efe8;
  --surface: #fffaf4;
  --text: #2b1a16;
  --muted: #5f463f;
  --accent: #9b2f2f;
  --accent-dark: #6d2021;
  --gold: #b57d2f;
  --border: #e8d6c6;
  --shadow: 0 10px 25px rgb(0 0 0 / 0.12);
  --nav-bg: rgb(255 250 244 / 0.95);
  --chip-bg: #fff7ef;
  --chip-border: #d9bfa4;
  --hero-overlay-start: rgb(43 26 22 / 0.1);
  --hero-overlay-mid: rgb(43 26 22 / 0.74);
  --hero-overlay-end: rgb(43 26 22 / 0.9);
  --toggle-bg: #2b1a16;
  --toggle-text: #fef3e2;
}

body.dark-theme {
  --bg: #0b0a0c;
  --surface: #161216;
  --text: #efe0ca;
  --muted: #c6b29a;
  --accent: #9a3138;
  --accent-dark: #e7c998;
  --gold: #d2a95f;
  --border: #3a2b2f;
  --shadow: 0 14px 32px rgb(0 0 0 / 0.5);
  --nav-bg: rgb(11 10 12 / 0.92);
  --chip-bg: #231a1d;
  --chip-border: #5a3e47;
  --hero-overlay-start: rgb(0 0 0 / 0.35);
  --hero-overlay-mid: rgb(0 0 0 / 0.78);
  --hero-overlay-end: rgb(0 0 0 / 0.94);
  --toggle-bg: #e7c998;
  --toggle-text: #2a1713;
}

@font-face {
  font-family: "Balladeer";
  src: url("fonts/balladeer-light.otf") format("opentype");
  font-weight: 300;
}

@font-face {
  font-family: "Balladeer";
  src: url("fonts/balladeer-medium.otf") format("opentype");
  font-weight: 500;
}

@font-face {
  font-family: "Kunaroh";
  src: url("fonts/Kunaroh.ttf") format("truetype");
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
}

.hero {
  position: relative;
  min-height: 56vh;
  display: grid;
  place-items: end start;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--banner-x, 50%) var(--banner-y, 74%);
  transform: scale(var(--banner-zoom, 1));
  transform-origin: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    var(--hero-overlay-start) 0%,
    var(--hero-overlay-mid) 60%,
    var(--hero-overlay-end) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 1.25rem 1rem 1.4rem;
  color: #fff8f1;
}

h1 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, serif;
  font-size: clamp(2.8rem, 12vw, 5.2rem);
  line-height: 0.95;
  font-weight: 700;
}

.hero-subtitle {
  margin: 0.25rem 0 0;
  max-width: 15ch;
  color: #f6d8a4;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, serif;
  font-size: clamp(1.25rem, 5vw, 2.1rem);
  font-weight: 600;
  line-height: 1.05;
}

.event-meta {
  margin: 0.35rem 0 0;
}

.section-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  gap: 0.5rem;
  padding: 0.65rem 0.65rem;
  overflow-x: auto;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.section-nav a {
  flex: 0 0 auto;
  text-decoration: none;
  color: var(--accent-dark);
  border: 1px solid var(--chip-border);
  background: var(--chip-bg);
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.92rem;
  padding: 0.45rem 0.9rem;
  font-family: "Balladeer", "Iowan Old Style", serif;
}

.theme-toggle {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  border: 1px solid var(--chip-border);
  background: var(--toggle-bg);
  color: var(--toggle-text);
  border-radius: 999px;
  font-size: 0.88rem;
  padding: 0.45rem 0.9rem;
  font-family: "Balladeer", "Iowan Old Style", serif;
  cursor: pointer;
}

.theme-toggle:hover {
  filter: brightness(1.04);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.section-nav a.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

main {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 0.9rem 0.9rem 4.2rem;
}

.section {
  scroll-margin-top: 4rem;
  margin-top: 1.6rem;
}

h2 {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, serif;
  font-size: clamp(1.5rem, 7vw, 2.2rem);
  color: var(--accent-dark);
  margin: 0 0 0.75rem;
}

h3 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
  color: var(--accent-dark);
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, serif;
}

.split,
.artist-grid,
.program-grid {
  display: grid;
  gap: 0.8rem;
}

.card,
.program-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 0.9rem;
}

.card p,
.program-card p {
  line-height: 1.58;
}

.portrait {
  width: 100%;
  border-radius: 10px;
  display: block;
  border: 1px solid var(--chip-border);
  margin: 0.5rem 0 0.7rem;
}

.artist-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid var(--chip-border);
  margin: 0.5rem 0 0.7rem;
}

.program-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid var(--chip-border);
  margin: 0.5rem 0 0.7rem;
}

.artist-image-wrap .tunable-image,
.program-image-wrap .tunable-image {
  width: 100%;
  height: 100%;
  margin: 0;
  border: 0;
  object-fit: cover;
  object-position: center;
}

body.tuning-mode {
  padding-bottom: 16rem;
}

body.tuning-mode .program-grid,
body.tuning-mode .artist-grid {
  grid-template-columns: 1fr !important;
}

@media (min-width: 980px) {
  body.tuning-mode .program-grid,
  body.tuning-mode .artist-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.tuning-mode main {
    width: min(760px, calc(100vw - 470px));
    margin-left: 1rem;
    margin-right: auto;
  }

  body.tuning-mode .section-nav {
    width: min(760px, calc(100vw - 470px));
    margin-left: 1rem;
    margin-right: auto;
    justify-content: flex-start;
  }
}

.tuning-panel {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 1000;
  max-height: 42vh;
  overflow: auto;
  padding: 0.8rem;
  border-radius: 12px;
  border: 1px solid var(--chip-border);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.7rem;
}

.tuning-panel h4 {
  margin: 0;
  font-size: 1rem;
}

.tune-row {
  padding: 0.55rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgb(255 255 255 / 0.35);
}

.tune-row p {
  margin: 0 0 0.4rem;
  font-weight: 600;
}

.tune-row label {
  display: block;
  font-size: 0.82rem;
  margin: 0.25rem 0;
}

.tune-row input[type="range"] {
  width: 100%;
}

.tune-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tuning-panel button {
  border: 1px solid var(--chip-border);
  background: var(--chip-bg);
  color: var(--accent-dark);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-family: "Balladeer", "Iowan Old Style", serif;
  cursor: pointer;
}

.tuning-panel textarea {
  width: 100%;
  min-height: 5rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  padding: 0.55rem;
  font-size: 0.78rem;
}

.tuning-note {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.meta {
  margin: 0 0 0.4rem;
  color: var(--gold);
  font-weight: 500;
  font-size: 0.92rem;
  font-family: "Balladeer", "Iowan Old Style", serif;
  letter-spacing: 0.02em;
}

.placeholder {
  border: 2px dashed #c4a78d;
  border-radius: 10px;
  padding: 1.2rem 0.8rem;
  text-align: center;
  color: var(--muted);
  margin: 0.45rem 0 0.7rem;
  background: #fff4e7;
}

.credits-list {
  display: grid;
  gap: 0.55rem;
}

.credit-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  font-size: 0.98rem;
}

.credits-layout {
  display: grid;
  gap: 0.9rem;
}

.emcee-card {
  margin: 0;
}

.emcee-photo {
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.to-top {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  text-decoration: none;
  background: var(--accent);
  color: #fff;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  font-size: 0.86rem;
  box-shadow: var(--shadow);
}

body.dark-theme .section-nav a.active {
  color: #fff6e8;
}

@media (min-width: 720px) {
  .hero {
    min-height: 72vh;
  }

  .hero-content {
    padding: 1.8rem 2rem 2rem;
  }

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

  .program-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .artist-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

  .section-nav {
    justify-content: center;
  }

  main {
    padding: 1.2rem 1.2rem 4.4rem;
  }
}

@media (min-width: 1100px) {
  .hero-content {
    max-width: 780px;
    padding: 2.2rem 2.4rem 2.4rem;
  }

  h1 {
    font-size: clamp(3.4rem, 7vw, 5.4rem);
  }

  .hero-subtitle {
    max-width: 20ch;
    font-size: clamp(1.4rem, 2.8vw, 2.3rem);
  }

  .program-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
  }

  .artist-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
  }

  .artist-card {
    display: block;
  }

  .artist-image-wrap {
    float: left;
    width: 200px;
    margin: 0 1rem 0.75rem 0;
  }

  .artist-card::after {
    content: "";
    display: table;
    clear: both;
  }

  .emcee-card {
    max-width: 800px;
  }

  .emcee-card .emcee-photo {
    float: right;
    width: min(42%, 320px);
    margin: 0 0 0.8rem 1rem;
  }

  .credits-list {
    max-width: 560px;
  }

  .tuning-panel {
    left: auto;
    right: 1rem;
    width: min(430px, calc(100vw - 2rem));
    max-height: calc(100vh - 2rem);
  }
}
