:root {
  --body-font: Archivo, Arial, sans-serif;
  --display-font: var(--body-font);
  --display-weight: 900;
  --display-tracking: -.055em;
  /* Edisi 2026 · ungu motif, kelopak, hijau lambang, dan semburat latar. */
  --pattern-base: #7b168c;
  --pigment: #fe819d;
  --companion: #aecf55;
  --highlight: #f1cdc5;
  --ground: #2b102f;
  --ink: #fff5fa;
  --muted: #ead0e4;
  --accent: color-mix(in srgb, var(--pigment) 58%, var(--ink));
  --accent-ink: #321330;
  --story: color-mix(in srgb, var(--highlight) 58%, var(--ink));
  --story-ink: #4b1b4d;
  --story-pattern: url("../img/bg/2026/bg-pattern-putih.webp");
  --campus: #35153b;
  --campus-ink: var(--ink);
  --campus-muted: var(--muted);
  --campus-accent: var(--companion);
  --footer: #210d25;
  --footer-muted: var(--muted);
  --on-stage: #fff0f5;
  --stage-shape: polygon(0 0, 93% 0, 100% 9%, 100% 100%, 7% 100%, 0 91%);
  --stage-radius: 0;
  --corner: 100px;
  --frame: 82rem;
  --gutter: clamp(1.25rem, 5vw, 5rem);
  --header-height: 5.25rem;
  --ease: cubic-bezier(.2, .7, .3, 1);
  color-scheme: dark;
}

:root[data-edition="2025"] {
  /* Burgundi motif dan warna pada sayap lambang. */
  --pattern-base: #8c3550;
  --highlight: #f5b170;
  --display-font: "Bohemian Soul", Georgia, serif;
  --display-weight: 400;
  --display-tracking: -.035em;
  --ground: #3e1827;
  --ink: #fff4ed;
  --muted: #eecbd1;
  --accent: var(--highlight);
  --accent-ink: #3f1a28;
  --story: color-mix(in srgb, var(--highlight) 23%, var(--ink));
  --story-ink: #502038;
  --story-pattern: url("../img/bg/2025/bg-pattern-putih.webp");
  --campus: #172c48;
  --campus-ink: #f4f7ff;
  --campus-muted: #d2e0f2;
  --campus-accent: #b1d6fa;
  --footer: #2d1420;
  --on-stage: #fff1e0;
  --stage-shape: none;
  --stage-radius: 48% 48% 0 0 / 31% 31% 0 0;
}

:root[data-edition="2024"] {
  /* Merah motif, merah jingga sayap, biru lambang, dan hijau lingkaran sigma. */
  --pattern-base: #810909;
  --pigment: #ec4525;
  --display-font: "Barlow Condensed", "Arial Narrow", var(--body-font);
  --display-weight: 800;
  --display-tracking: -.025em;
  --ground: #fff8f5;
  --ink: #401315;
  --muted: #695151;
  --accent: color-mix(in srgb, var(--pattern-base) 86%, var(--pigment));
  --accent-ink: #fff9f6;
  --story: var(--pattern-base);
  --story-ink: #fff6f2;
  --story-pattern: url("../img/bg/2024/bg-pattern-merah.png");
  --campus: #edf5fb;
  --campus-ink: #18334d;
  --campus-muted: #385169;
  --campus-accent: #155e9b;
  --footer: #3e1214;
  --footer-muted: #eececc;
  --on-stage: #fff8eb;
  --stage-shape: none;
  --corner: .2rem;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body-font);
  line-height: 1.55;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}

::selection { background: var(--accent); color: var(--accent-ink); }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, p, figure, blockquote { margin: 0; }
section[id], nav[id] { scroll-margin-top: 1.25rem; }

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
}

.page-frame {
  width: min(100% - var(--gutter) * 2, var(--frame));
  margin-inline: auto;
}

.visually-hidden, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link:focus {
  position: fixed;
  z-index: 2;
  inset: .75rem auto auto .75rem;
  padding: .6rem 1rem;
  background: var(--accent);
  color: var(--accent-ink);
}

.site-header {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  line-height: 1.15;
  font-size: .875rem;
  text-decoration: none;
}

.site-brand strong {
  display: block;
  font-size: 1.125rem;
  font-weight: 800;
}

.opening {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: calc(100svh - var(--header-height));
}

.edition-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.4rem, 1.1vw, .9rem);
}

.edition-picker__tile {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  min-height: 3.5rem;
  padding: .55rem clamp(.55rem, 1.25vw, 1.1rem);
  border-radius: .45rem;
  background: color-mix(in srgb, var(--ground), var(--pattern-base) 15%);
  font-size: clamp(1.05rem, 2.4vw, 2rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: -.025em;
  text-decoration: none;
  transition: background-color .2s, color .2s;
}

.edition-picker__tile:hover {
  background: color-mix(in srgb, var(--ground), var(--accent) 22%);
}

.edition-picker.is-rotating { grid-template-columns: repeat(3, minmax(0, 1fr)) 2.75rem; }
.edition-progress {
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
}
.edition-playback {
  border: 1px solid currentColor;
  border-radius: .45rem;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.edition-playback::before {
  content: "";
  display: block;
  box-sizing: border-box;
  width: 10px;
  height: 12px;
  margin: auto;
  border-inline: 3px solid currentColor;
}
.edition-playback.is-paused::before {
  width: 0;
  height: 0;
  border: solid transparent;
  border-width: 6px 0 6px 10px;
  border-left-color: currentColor;
}

.edition-picker__tile[aria-current] {
  background: var(--accent);
  color: var(--accent-ink);
}

.edition-picker__tile:focus-visible, .action:focus-visible { outline-color: var(--accent); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  grid-template-areas: "copy art";
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding-block: clamp(1.25rem, 4svh, 3.5rem);
}

.hero__copy { grid-area: copy; min-width: 0; }
.hero__event { margin-bottom: .55rem; color: var(--accent); font-size: 1rem; font-weight: 700; }

.hero h1, .campus h2 {
  font-family: var(--display-font);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  word-spacing: .055em;
  overflow-wrap: break-word;
  text-wrap: balance;
}

.hero h1 {
  margin-bottom: .27em;
  font-size: clamp(3.25rem, min(7.8vw, 15svh), 8.3rem);
  line-height: .91;
}

.hero__intro {
  max-width: 38ch;
  font-size: clamp(1rem, 1.55vw, 1.2rem);
  color: var(--muted);
}

.action {
  --stub-width: 3.65rem;
  --notch-radius: 5px;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: stretch;
  min-height: 3.5rem;
  max-width: 100%;
  overflow: hidden;
  margin-top: 1.5rem;
  border-radius: .45rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
}

.action__label {
  align-self: center;
  padding: .65rem clamp(.85rem, 2vw, 1.5rem);
  font-variant-numeric: tabular-nums;
}

.action__stub {
  position: relative;
  display: grid;
  flex: none;
  place-items: center;
  width: var(--stub-width);
  border-radius: 0 .45rem .45rem 0;
  background: var(--pattern-base) var(--story-pattern) center / auto 190%;
  background-blend-mode: soft-light;
  color: white;
}

.action__stub::before {
  position: absolute;
  left: -1px;
  inset-block: calc(var(--notch-radius) + 2px);
  width: 2px;
  background: linear-gradient(to bottom, transparent 25%, var(--ground) 25% 75%, transparent 75%)
    top / 100% 20% repeat-y;
  content: "";
}

.action::before, .action::after {
  position: absolute;
  z-index: 1;
  right: var(--stub-width);
  width: calc(2 * var(--notch-radius));
  height: calc(2 * var(--notch-radius));
  border-radius: 50%;
  background: var(--ground);
  content: "";
  pointer-events: none;
}

.action::before { top: 0; transform: translate(50%, -50%); }
.action::after { bottom: 0; transform: translate(50%, 50%); }
.action__arrow {
  width: 14px;
  height: 10px;
  background: currentColor;
  clip-path: polygon(0 40%, 72% 40%, 48% 8%, 58% 0, 100% 50%, 58% 100%, 48% 92%, 72% 60%, 0 60%);
}

@media (prefers-reduced-motion: no-preference) {
  .action__label::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(110deg, transparent 36%, rgb(255 255 255 / 32%) 50%, transparent 64%);
    transform: translateX(-100%);
    animation: ticket-shine-idle 7s ease-in-out 1s 2;
  }

  .action:focus-visible .action__label::before {
    animation: ticket-shine .7s ease-out;
  }

  @media (hover: hover) {
    .action:hover .action__label::before {
      animation: ticket-shine .7s ease-out;
    }
  }

  @keyframes ticket-shine-idle {
    from { transform: translateX(-100%); }
    14%, to { transform: translateX(100%); }
  }

  @keyframes ticket-shine {
    from { transform: translateX(-100%); }
    to { transform: translateX(100%); }
  }
}

.poster {
  grid-area: art;
  justify-self: end;
  width: min(100%, calc(max(14rem, 100svh - 13rem) * 1.23));
  min-width: 0;
}

.poster__stage {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  aspect-ratio: 1.23;
  overflow: hidden;
  container-type: inline-size;
  border-radius: var(--stage-radius);
  clip-path: var(--stage-shape);
  background: var(--pattern-base);
  color: var(--on-stage);
}

.poster__pattern {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poster__stage::after {
  position: absolute;
  z-index: -1;
  inset: 6%;
  border: 1px solid currentColor;
  border-radius: inherit;
  content: "";
  opacity: .33;
  pointer-events: none;
}

.poster__year {
  position: absolute;
  inset: auto auto 3% 50%;
  translate: -50% 0;
  color: transparent;
  font-size: 39cqi;
  font-weight: 900;
  line-height: .85;
  letter-spacing: -.09em;
  opacity: .46;
  -webkit-text-stroke: 1px var(--on-stage);
  user-select: none;
}

.poster__year::before { content: attr(data-poster-year); }

.poster__logo {
  position: relative;
  width: 51%;
  height: 66%;
  object-fit: contain;
}

[data-edition="2025"] .hero {
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  grid-template-areas: "art copy";
}

[data-edition="2025"] .poster { justify-self: start; }
[data-edition="2025"] .poster__year { bottom: 8%; opacity: .62; }
[data-edition="2025"] .poster__logo { margin-top: 5%; }
[data-edition="2025"] .hero h1 { font-size: clamp(3rem, min(6.7vw, 14svh), 7.25rem); }
[data-edition="2024"] .hero h1 { text-transform: uppercase; font-size: clamp(3.25rem, min(7.3vw, 15svh), 7.8rem); }
[data-edition="2024"] .poster__year {
  left: 8%;
  bottom: 10%;
  translate: none;
  font-family: var(--display-font);
  font-size: 33cqi;
  letter-spacing: -.045em;
  opacity: .58;
}
[data-edition="2024"] .poster__logo {
  max-height: 18rem;
  margin-left: 22%;
  margin-bottom: 7%;
}

.edition-story {
  position: relative;
  isolation: isolate;
  padding-block: clamp(2.75rem, 6vw, 5rem);
  background: var(--story);
  color: var(--story-ink);
  transition: background-color .25s var(--ease), color .25s var(--ease);
}

.edition-story::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--story-pattern) center / cover;
  opacity: .14;
  content: "";
}

.edition-story__grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
}

.edition-story figure figcaption {
  font-size: 1rem;
  font-weight: 800;
}

.edition-story figure {
  padding-inline-start: clamp(1rem, 2.5vw, 2rem);
  border-inline-start: .2rem solid color-mix(in srgb, var(--story-ink), var(--story) 55%);
}

.edition-story blockquote {
  max-width: 54ch;
  margin-top: .55rem;
  font-size: clamp(1.25rem, 2.2vw, 1.875rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.025em;
  text-wrap: pretty;
}

.campus {
  padding-block: clamp(3rem, 7vw, 6rem);
  background: var(--campus);
  color: var(--campus-ink);
  transition: background-color .25s var(--ease), color .25s var(--ease);
}

.campus__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 3.25rem);
}

.campus__header {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: subgrid;
  align-items: end;
}

.campus__photo {
  position: relative;
  min-height: 24rem;
  overflow: hidden;
  border-radius: .75rem;
  background: var(--campus);
}

.campus__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 45% center;
}

.campus h2 {
  max-width: 15ch;
  font-size: clamp(2.65rem, 5.5vw, 5.5rem);
  line-height: .97;
}

.campus__intro {
  max-width: 47ch;
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  color: var(--campus-muted);
}

.campus__chapters {
  display: flex;
  flex-direction: column;
  gap: .55rem;
}

.campus__chapters details {
  padding-inline: clamp(1rem, 2.5vw, 1.6rem);
  border-radius: .55rem;
  background: color-mix(in srgb, var(--campus), var(--campus-ink) 6%);
  transition: background-color .2s;
}

.campus__chapters details[open] {
  background: color-mix(in srgb, var(--campus), var(--campus-accent) 13%);
}

.campus__chapters details:not([open]):hover {
  background: color-mix(in srgb, var(--campus), var(--campus-ink) 10%);
}

.campus__chapters summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
  min-height: 3.6rem;
  padding-block: .6rem;
  list-style: none;
  font-weight: 700;
  cursor: pointer;
}

.campus__chapters summary::-webkit-details-marker { display: none; }
.campus__chapters summary:hover { color: var(--campus-accent); }

.campus__chapters summary span {
  display: grid;
  flex: none;
  place-items: center;
  width: 2rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: color-mix(in srgb, var(--campus-accent) 82%, var(--campus));
  color: var(--campus);
}

.campus__chapters summary span::before,
.campus__chapters summary span::after {
  grid-area: 1 / 1;
  width: .75rem;
  height: 2px;
  background: currentColor;
  content: "";
}

.campus__chapters summary span::after {
  transform: rotate(90deg);
  transition: transform .2s var(--ease);
}

.campus__chapters details[open] summary span::after { transform: rotate(0); }
.campus__chapters details p { max-width: 62ch; color: var(--campus-muted); }
.campus__chapters details p + p { margin-top: .8rem; }
.campus__chapters details p:last-child { margin-bottom: 1.2rem; }

.site-footer {
  position: relative;
  isolation: isolate;
  background: var(--footer);
  color: var(--footer-muted);
  transition: background-color .25s var(--ease), color .25s var(--ease);
}

.site-footer::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--story-pattern) center / cover;
  opacity: .09;
  content: "";
}

.site-footer__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: clamp(1.65rem, 4vw, 3.75rem);
  text-decoration: none;
}

.site-footer__label { font-size: .9375rem; }
.site-footer__label strong {
  display: block;
  margin-top: .25rem;
  font-family: var(--display-font);
  font-size: clamp(1.6rem, 5vw, 4.5rem);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  line-height: 1.1;
}

.site-footer__arrow {
  display: grid;
  flex: none;
  place-items: center;
  width: clamp(2.75rem, 6vw, 4.75rem);
  aspect-ratio: 1;
  border-radius: var(--corner);
  background: var(--story);
  color: var(--story-ink);
  font-size: clamp(1.3rem, 2.4vw, 2rem);
  line-height: 1;
}

.site-footer__link:focus-visible { outline-offset: -3px; }

@media (max-width: 52rem) {
  .hero, [data-edition="2025"] .hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(7rem, 1fr);
    grid-template-areas: "copy" "art";
    align-content: center;
    gap: clamp(.9rem, 2.5svh, 1.6rem);
    padding-block: clamp(1rem, 3svh, 2rem);
  }

  .hero h1, [data-edition="2024"] .hero h1 { font-size: clamp(2.5rem, min(10vw, 7svh), 6.25rem); }
  [data-edition="2025"] .hero h1 { font-size: clamp(2.4rem, min(11vw, 7svh), 5.85rem); }
  .hero h1 { max-width: 13ch; }
  .poster, [data-edition="2025"] .poster {
    display: grid;
    grid-template-rows: minmax(0, 1fr);
    justify-self: start;
    align-self: stretch;
    width: min(100%, 38rem);
    max-height: 34rem;
  }
  .poster__stage {
    contain: size;
    grid-template-rows: minmax(0, 1fr);
    aspect-ratio: auto;
  }
  .campus__grid { grid-template-columns: minmax(0, 1fr); }
  .campus__header { gap: .8rem; }
  .campus__photo {
    min-height: 0;
    aspect-ratio: 1.7;
  }
}

@media (max-width: 35rem) {
  .edition-story__grid { grid-template-columns: minmax(0, 1fr); }
  :root { --header-height: 3.9rem; }
  .site-brand { gap: .45rem; font-size: .8125rem; }
  .site-brand img { width: 34px; height: 34px; }
  .site-brand strong { font-size: .94rem; }
  .edition-picker__tile { min-height: 2.75rem; }
  .hero__event { font-size: .875rem; }
  .hero__intro { line-height: 1.4; }
  .action { min-height: 2.85rem; margin-top: .85rem; }
  .action { --stub-width: 3rem; }
}

@media (min-width: 38rem) and (max-width: 52rem) and (max-height: 32rem) {
  :root { --header-height: 3.5rem; }
  .edition-picker__tile { min-height: 2.75rem; }
  .hero, [data-edition="2025"] .hero {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
    grid-template-areas: "copy art";
  }
  .hero h1, [data-edition] .hero h1 { font-size: clamp(2rem, 9svh, 3rem); }
  .hero__intro { line-height: 1.35; }
  .action { min-height: 2.85rem; margin-top: .7rem; }
  .action { --stub-width: 3rem; }
  .poster, [data-edition="2025"] .poster {
    align-self: center;
    height: max(7rem, calc(100svh - 9rem));
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
