:root {
  color-scheme: light;
  --ink: #3c251d;
  --muted: #765f54;
  --paper: #fff8ec;
  --paper-deep: #f7ead8;
  --red: #c83b2b;
  --red-deep: #9f251f;
  --gold: #d7a948;
  --jade: #7d9b78;
  --line: rgba(104, 58, 38, 0.16);
  --shadow: 0 24px 70px rgba(133, 58, 28, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family:
    ui-rounded,
    "Hiragino Sans GB",
    "PingFang SC",
    "Microsoft YaHei",
    system-ui,
    sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 16%, rgba(215, 169, 72, 0.2), transparent 28%),
    radial-gradient(circle at 88% 12%, rgba(125, 155, 120, 0.16), transparent 26%),
    linear-gradient(135deg, #fffdf8 0%, var(--paper) 48%, #fff3e0 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(158, 92, 48, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(158, 92, 48, 0.045) 1px, transparent 1px);
  background-size: 28px 28px;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 44px;
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 64px;
  padding: 10px 12px 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 999px;
  background: rgba(255, 249, 239, 0.78);
  box-shadow: 0 14px 40px rgba(99, 48, 24, 0.1);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  font-size: 18px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  color: #fffaf0;
  background: linear-gradient(145deg, var(--red), var(--red-deep));
  box-shadow: inset 0 -3px 0 rgba(72, 17, 12, 0.16);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  font-size: 15px;
}

.nav-links a {
  padding: 10px 14px;
  border-radius: 999px;
}

.nav-links a:hover {
  color: var(--red-deep);
  background: rgba(200, 59, 43, 0.08);
}

.nav-action,
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  font-weight: 800;
  white-space: nowrap;
}

.nav-action {
  padding: 0 18px;
  color: #fff8ed;
  background: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(430px, 1.12fr);
  align-items: center;
  gap: 20px;
  min-height: calc(100vh - 118px);
  padding: 62px 0 30px;
}

.hero-copy {
  max-width: 560px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 8px 12px;
  border: 1px solid rgba(200, 59, 43, 0.14);
  border-radius: 999px;
  color: var(--red-deep);
  background: rgba(255, 250, 241, 0.72);
  font-size: 14px;
  font-weight: 800;
}

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

h1 {
  max-width: 9em;
  margin-bottom: 20px;
  font-size: clamp(46px, 7vw, 86px);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-intro {
  max-width: 420px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 21px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.primary-button,
.secondary-button {
  min-width: 148px;
  padding: 0 22px;
  border: 0;
  cursor: pointer;
}

.primary-button {
  color: #fff8ed;
  background: linear-gradient(145deg, var(--red), var(--red-deep));
  box-shadow: 0 14px 26px rgba(160, 37, 31, 0.22);
}

.primary-button:hover,
.offering-item:hover {
  transform: translateY(-2px);
}

.button-icon {
  margin-right: 7px;
  font-size: 22px;
  line-height: 1;
}

.secondary-button {
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255, 250, 242, 0.72);
}

.blessing-card {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.7);
  box-shadow: 0 10px 28px rgba(108, 51, 25, 0.08);
}

.blessing-card p {
  margin: 0;
  color: var(--muted);
}

.blessing-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: #fff9ed;
  background: var(--gold);
  font-size: 15px;
  font-weight: 900;
}

.hero-art {
  position: relative;
  align-self: stretch;
  display: grid;
  min-height: 520px;
  place-items: center;
}

.hero-art::before {
  position: absolute;
  right: 6%;
  bottom: 8%;
  left: 7%;
  height: 22%;
  border-radius: 50%;
  content: "";
  background: rgba(182, 83, 42, 0.12);
  filter: blur(8px);
}

.art-stage {
  position: relative;
  z-index: 1;
  width: min(100%, 740px);
}

.hero-art img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 28px 42px rgba(113, 53, 24, 0.16));
}

.ritual-flames {
  position: absolute;
  z-index: 3;
  inset: 0;
  pointer-events: none;
}

.flame {
  position: absolute;
  width: 34px;
  height: 58px;
  border-radius: 48% 52% 48% 52%;
  background:
    radial-gradient(circle at 50% 72%, #fff9bc 0 17%, transparent 18%),
    radial-gradient(circle at 50% 58%, #ffd96b 0 37%, transparent 38%),
    linear-gradient(160deg, #ff9e31 0%, #e94922 78%);
  box-shadow:
    0 0 20px rgba(255, 189, 61, 0.75),
    0 0 42px rgba(238, 98, 35, 0.42);
  opacity: 0;
  transform: translate(-50%, -86%) rotate(45deg) scale(0.82);
  transform-origin: 50% 86%;
  animation: none;
  mix-blend-mode: screen;
}

.flame-left {
  left: 31.55%;
  top: 50.95%;
}

.flame-right {
  left: 52.55%;
  top: 64.2%;
  width: 32px;
  height: 54px;
  animation-delay: 0.32s;
}

.ritual-flames.bright .flame {
  opacity: 0.88;
  animation: flameSurge 850ms ease-out;
}

.smoke {
  position: absolute;
  z-index: 2;
  width: 18px;
  height: 76px;
  border-radius: 50%;
  border-left: 4px solid rgba(124, 94, 70, 0.12);
  opacity: 0.55;
  animation: floatSmoke 3.6s ease-in-out infinite;
}

.smoke-one {
  left: 33%;
  top: 32%;
}

.smoke-two {
  left: 37%;
  top: 27%;
  animation-delay: 1.2s;
}

.smoke.bloom {
  animation: bloomSmoke 900ms ease-out;
}

.petal-layer {
  position: fixed;
  inset: 0;
  z-index: 30;
  overflow: hidden;
  pointer-events: none;
}

.petal {
  position: absolute;
  top: -32px;
  left: var(--petal-left);
  width: var(--petal-size);
  height: calc(var(--petal-size) * 0.72);
  border-radius: 80% 12% 80% 18%;
  background:
    radial-gradient(circle at 28% 30%, rgba(255, 255, 255, 0.62), transparent 24%),
    linear-gradient(135deg, #ffd3d2 0%, #ef8b8c 55%, #d95e6d 100%);
  box-shadow: 0 8px 16px rgba(171, 60, 65, 0.12);
  opacity: 0;
  transform: translate3d(0, 0, 0) rotate(var(--petal-rotate));
  animation: petalFall var(--petal-duration) linear forwards;
  animation-delay: var(--petal-delay);
}

.offering-panel {
  display: grid;
  grid-template-columns: 0.6fr 1.4fr;
  gap: 18px;
  align-items: stretch;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.7);
  box-shadow: var(--shadow);
}

.section-heading {
  padding: 10px;
}

.section-heading h2,
.about-band h2 {
  margin-bottom: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
}

.offering-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.offering-item {
  display: grid;
  min-height: 178px;
  justify-items: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.84);
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.offering-item.active {
  border-color: rgba(200, 59, 43, 0.35);
  box-shadow: inset 0 0 0 2px rgba(200, 59, 43, 0.08);
}

.offering-icon {
  position: relative;
  display: block;
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  border-radius: 16px;
  background: #fff1df;
}

.incense-icon::before,
.incense-icon::after {
  position: absolute;
  content: "";
}

.incense-icon::before {
  left: 23px;
  bottom: 10px;
  width: 6px;
  height: 30px;
  border-radius: 999px;
  background: var(--red);
}

.incense-icon::after {
  left: 12px;
  right: 12px;
  bottom: 7px;
  height: 8px;
  border-radius: 999px;
  background: var(--gold);
}

.flower-icon::before,
.flower-icon::after {
  position: absolute;
  content: "";
}

.flower-icon::before {
  inset: 13px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, var(--gold) 0 16%, transparent 17%),
    radial-gradient(circle at 50% 18%, #ef8b8c 0 18%, transparent 19%),
    radial-gradient(circle at 82% 50%, #ef8b8c 0 18%, transparent 19%),
    radial-gradient(circle at 50% 82%, #ef8b8c 0 18%, transparent 19%),
    radial-gradient(circle at 18% 50%, #ef8b8c 0 18%, transparent 19%);
}

.flower-icon::after {
  right: 11px;
  bottom: 10px;
  width: 16px;
  height: 9px;
  border-radius: 50%;
  background: var(--jade);
  transform: rotate(-24deg);
}

.plaque-icon::before,
.plaque-icon::after {
  position: absolute;
  content: "";
}

.plaque-icon::before {
  inset: 10px 14px 8px;
  border: 2px solid rgba(157, 102, 38, 0.45);
  border-radius: 7px 7px 11px 11px;
  background: #eac06f;
}

.plaque-icon::after {
  top: 8px;
  left: 24px;
  width: 5px;
  height: 18px;
  border-radius: 999px;
  background: var(--red);
}

.offering-title {
  display: block;
  margin-bottom: 8px;
  font-size: 22px;
  font-weight: 900;
}

.offering-copy {
  color: var(--muted);
  font-size: 15px;
}

.about-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 1fr);
  gap: 28px;
  align-items: center;
  padding: 60px 10px 20px;
}

.about-band > p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.9;
}

@keyframes floatSmoke {
  0%,
  100% {
    transform: translateY(10px) scale(0.92);
    opacity: 0.28;
  }
  50% {
    transform: translateY(-18px) scale(1.04);
    opacity: 0.7;
  }
}

@keyframes bloomSmoke {
  0% {
    transform: translateY(14px) scale(0.8);
    opacity: 0.15;
  }
  55% {
    transform: translateY(-22px) scale(1.16);
    opacity: 0.8;
  }
  100% {
    transform: translateY(-34px) scale(1.28);
    opacity: 0;
  }
}

@keyframes candleFlicker {
  0%,
  100% {
    transform: translate(-50%, -86%) rotate(45deg) scale(0.82);
    filter: brightness(0.98);
  }
  45% {
    transform: translate(-50%, -86%) rotate(42deg) scale(1.02);
    filter: brightness(1.14);
  }
  70% {
    transform: translate(-50%, -86%) rotate(48deg) scale(0.92);
    filter: brightness(1.04);
  }
}

@keyframes flameSurge {
  0% {
    transform: translate(-50%, -86%) rotate(45deg) scale(0.88);
    filter: brightness(1);
  }
  45% {
    transform: translate(-50%, -86%) rotate(44deg) scale(1.72);
    filter: brightness(1.55) saturate(1.18);
    box-shadow:
      0 0 30px rgba(255, 205, 81, 0.98),
      0 0 82px rgba(238, 98, 35, 0.58);
  }
  100% {
    transform: translate(-50%, -86%) rotate(45deg) scale(0.96);
    filter: brightness(1.06);
  }
}

@keyframes petalFall {
  0% {
    opacity: 0;
    transform: translate3d(0, -20px, 0) rotate(var(--petal-rotate));
  }
  10% {
    opacity: 0.92;
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--petal-drift), 108vh, 0)
      rotate(calc(var(--petal-rotate) + 430deg));
  }
}

@media (max-width: 860px) {
  .page-shell {
    width: min(100% - 22px, 680px);
    padding-top: 12px;
  }

  .site-header {
    top: 8px;
    border-radius: 22px;
  }

  .nav-links {
    display: none;
  }

  .nav-action {
    padding: 0 14px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 42px 0 22px;
  }

  .hero-copy {
    max-width: none;
    text-align: center;
  }

  .hero-copy .eyebrow,
  .hero-actions,
  .blessing-card {
    margin-right: auto;
    margin-left: auto;
  }

  h1 {
    max-width: none;
    font-size: clamp(42px, 13vw, 66px);
  }

  .hero-intro {
    margin-right: auto;
    margin-left: auto;
    font-size: 18px;
  }

  .hero-art {
    min-height: 340px;
  }

  .smoke-one {
    left: 33%;
    top: 32%;
  }

  .smoke-two {
    left: 37%;
    top: 27%;
  }

  .flame-left {
    left: 31.55%;
    top: 50.95%;
  }

  .flame-right {
    left: 52.55%;
    top: 64.2%;
  }

  .offering-panel,
  .about-band {
    grid-template-columns: 1fr;
  }

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

  .offering-item {
    min-height: 128px;
  }
}

@media (max-width: 480px) {
  .brand {
    font-size: 16px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .nav-action {
    min-height: 40px;
    font-size: 14px;
  }

  .hero-actions {
    display: grid;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .blessing-card {
    align-items: flex-start;
    text-align: left;
  }

  .offering-panel {
    padding: 16px;
  }
}
