:root {
  --font-serif: "Times New Roman MT", "Times New Roman", Times, serif;
  --font-sans: "TT Interphases", system-ui, -apple-system, sans-serif;
  --font-sans-bold: "TT Interphases Bold", "TT Interphases", system-ui, -apple-system, sans-serif;
  --font-sans-bold-italic: "TT Interphases Bold Italic", "TT Interphases Bold", "TT Interphases", system-ui, -apple-system, sans-serif;
  --font-script: "Golden Hopes", "Brush Script MT", cursive;

  --color-ink: #1a1f1c;

  --layout-ref-w: 798;

  --hero-aspect-w: 1366;
  --hero-aspect-h: 774;

  --hero-mobile-aspect-w: 768;
  --hero-mobile-aspect-h: 1376;

  --speaker-aspect-w: 1747;
  --speaker-aspect-h: 993;

  --welcome-paper-aspect-w: 702;
  --welcome-paper-aspect-h: 1243;
  --welcome-paper-ref-w: 496;

  --jogja-aspect-w: 1081;
  --jogja-aspect-h: 615;
  --jogja-card-ref-w: 500;

  --explore-aspect-w: 4359;
  --explore-aspect-h: 2461;

  --schedule-aspect-w: 4269;
  --schedule-aspect-h: 2421;

  --things-to-know-aspect-w: 4269;
  --things-to-know-aspect-h: 2421;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--color-ink);
  background: #f4f2ec;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.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;
}

/* ——— Hero / header ——— */
.hero {
  position: relative;
  width: 100%;
  aspect-ratio: var(--hero-aspect-w) / var(--hero-aspect-h);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--asset-hero-bg) center / 100% 100% no-repeat;
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
}

.hero__logo {
  position: absolute;
  left: 15%;
  top: clamp(1.1rem, 3.5vw, 1.85rem);
  line-height: 0;
  text-decoration: none;
}

.hero__logo img {
  width: clamp(4.5rem, 11vw, 9.75rem);
  height: auto;
}

@media (max-width: 1023px) {
  .hero {
    aspect-ratio: var(--hero-mobile-aspect-w) / var(--hero-mobile-aspect-h);
  }

  .hero__bg {
    background-image: var(--asset-hero-bg-mobile);
    background-position: center top;
    background-size: cover;
  }

  .hero__logo {
    display: none;
  }
}

/* ——— Background music toggle ——— */
.bgm-toggle {
  --bgm-size: 3.25rem;
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 40;
  display: grid;
  place-items: center;
  width: var(--bgm-size);
  height: var(--bgm-size);
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.95), transparent 45%),
    linear-gradient(160deg, #f7f3ea 0%, #ebe3d4 100%);
  color: #1e2a3a;
  box-shadow:
    0 0 0 1px rgba(30, 42, 58, 0.08),
    0 10px 28px rgba(30, 42, 58, 0.16);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.22s ease, box-shadow 0.22s ease, color 0.22s ease;
}

.bgm-toggle__disc {
  position: absolute;
  inset: 0.35rem;
  border-radius: inherit;
  border: 1px solid rgba(30, 42, 58, 0.1);
  background:
    radial-gradient(circle at center, rgba(30, 42, 58, 0.06) 0 18%, transparent 19%),
    conic-gradient(from 210deg, rgba(30, 42, 58, 0.04), transparent 40%, rgba(30, 42, 58, 0.07), transparent 75%, rgba(30, 42, 58, 0.04));
  pointer-events: none;
  transition: transform 0.6s linear;
}

.bgm-toggle__glyph {
  position: relative;
  z-index: 1;
  grid-area: 1 / 1;
  display: grid;
  place-items: center;
  width: 1.15rem;
  height: 1.15rem;
  line-height: 0;
  opacity: 0;
  transform: scale(0.86);
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
}

.bgm-toggle__glyph svg {
  display: block;
  width: 100%;
  height: 100%;
}

.bgm-toggle__glyph--on {
  opacity: 1;
  transform: scale(1);
}

.bgm-toggle.is-playing .bgm-toggle__glyph--on {
  opacity: 0;
  transform: scale(0.86);
}

.bgm-toggle.is-playing .bgm-toggle__glyph--off {
  opacity: 1;
  transform: scale(1);
}

.bgm-toggle.is-playing .bgm-toggle__disc {
  animation: bgm-spin 4.5s linear infinite;
}

.bgm-toggle:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(30, 42, 58, 0.1),
    0 14px 32px rgba(30, 42, 58, 0.18);
}

.bgm-toggle:active {
  transform: translateY(0) scale(0.97);
}

.bgm-toggle:focus-visible {
  outline: 2px solid #1e2a3a;
  outline-offset: 3px;
}

.bgm-toggle.is-playing {
  color: #1e2a3a;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 1), transparent 48%),
    linear-gradient(160deg, #fffaf2 0%, #f0e7d6 100%);
}

@keyframes bgm-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (min-width: 1024px) {
  .bgm-toggle {
    --bgm-size: 3.5rem;
    right: 1.5rem;
    bottom: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bgm-toggle,
  .bgm-toggle__glyph,
  .bgm-toggle__disc {
    transition: none;
  }

  .bgm-toggle.is-playing .bgm-toggle__disc {
    animation: none;
  }
}
