:root {
  --bg: #f8f5f1;
  --bg-soft: #fefcf9;
  --paper: #fffdfa;
  --ink: #2e2a28;
  --muted: #6f6661;
  --gold: #b89a6a;
  --olive: #9ba08d;
  --red: #c8102e;
  --red-deep: #a3001e;
  --line: rgba(184, 154, 106, 0.28);
  --shadow: 0 16px 40px rgba(87, 72, 51, 0.12);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "STSong", "Songti SC", "Noto Serif SC", serif;
  background: linear-gradient(160deg, var(--bg-soft) 0%, #f4f0ea 40%, #f8f5f1 100%);
  color: var(--ink);
  line-height: 1.65;
  min-height: 100vh;
}

.bg-layer {
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle at 12% 16%, rgba(184, 154, 106, 0.18), transparent 32%),
    radial-gradient(circle at 80% 2%, rgba(155, 160, 141, 0.18), transparent 34%),
    radial-gradient(circle at 50% 85%, rgba(200, 16, 46, 0.12), transparent 38%);
  pointer-events: none;
  z-index: -1;
}

.festival-corner {
  position: fixed;
  top: 0;
  width: 88px;
  height: 88px;
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(135deg, var(--red) 0%, var(--red-deep) 100%);
  box-shadow: 0 8px 20px rgba(163, 0, 30, 0.25);
}

.festival-corner--left {
  left: 0;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.festival-corner--right {
  right: 0;
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.hero,
.section,
.footer {
  width: min(980px, calc(100% - 2rem));
  margin: 1rem auto;
}

.hero {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: 1fr;
  align-items: center;
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 8px);
  background: rgba(255, 253, 250, 0.8);
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    120deg,
    rgba(200, 16, 46, 0.09) 0%,
    transparent 42%,
    rgba(200, 16, 46, 0.16) 100%
  );
}

.eyebrow {
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  color: var(--olive);
  margin: 0;
}

.seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 2px solid rgba(195, 22, 48, 1);
  color: var(--red-deep);
  font-size: 1.5rem;
  margin-bottom: 0.55rem;
  background: rgba(255, 245, 246, 0.96);
  box-shadow: 0 8px 20px rgba(163, 0, 30, 0.22);
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 6vw, 3.4rem);
  line-height: 1.15;
  margin: 0.4rem 0 0.8rem;
  background: linear-gradient(100deg, var(--red-deep), #d7374f 55%, #b89a6a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.subtitle {
  color: #8f4a53;
  margin-bottom: 1.2rem;
}

.hero__image-wrap {
  position: relative;
}

.hero__image-wrap::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 14px;
  pointer-events: none;
}

.hero__image {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
  border-radius: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(163, 0, 30, 0.7);
  background: linear-gradient(120deg, #b90d2b 0%, #d4203e 48%, #e3b16a 100%);
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(200, 16, 46, 0.28);
}

.btn:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #6f8e5f;
  outline-offset: 2px;
}

.section {
  padding: 1.4rem;
}

.card {
  border: 1px solid rgba(200, 16, 46, 0.22);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
  position: relative;
}

.card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg, rgba(200, 16, 46, 0.05), rgba(200, 16, 46, 0.72), rgba(200, 16, 46, 0.05));
}

h2 {
  font-size: clamp(1.45rem, 4vw, 2rem);
  margin-bottom: 0.9rem;
}

.info-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: 1fr;
}

.info-grid article {
  border: 1px dashed rgba(200, 16, 46, 0.35);
  border-radius: 14px;
  padding: 1rem;
  background: linear-gradient(140deg, #fffcf7 0%, #fff8f8 100%);
}

.info-grid h3 {
  margin-bottom: 0.45rem;
  color: #7b2f34;
}

.hint {
  color: var(--muted);
  margin-bottom: 0.9rem;
  font-size: 0.95rem;
}

.gallery {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, 1fr);
}

.gallery img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(200, 16, 46, 0.28);
  box-shadow: 0 8px 16px rgba(163, 0, 30, 0.1);
}

form {
  display: grid;
  gap: 0.75rem;
}

label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.92rem;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(200, 16, 46, 0.24);
  border-radius: 12px;
  background: #fff;
  min-height: 46px;
  padding: 0.68rem 0.8rem;
  font-size: 1rem;
  color: var(--ink);
}

textarea {
  min-height: 100px;
  resize: vertical;
}

.form-message {
  min-height: 1.4rem;
  color: #6f6661;
}

.form-message.error {
  color: #ab3b32;
}

th,
td {
  text-align: left;
  padding: 0.65rem 0.6rem;
  border-bottom: 1px solid #eee4d8;
  font-size: 0.92rem;
}

thead th {
  color: #5f554f;
  background: #fbf7f0;
}

.footer {
  text-align: center;
  color: #8e4a53;
  padding: 0.8rem 0 2.2rem;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: rise-in 0.75s ease forwards;
}

.reveal:nth-of-type(2) {
  animation-delay: 0.1s;
}

.reveal:nth-of-type(3) {
  animation-delay: 0.2s;
}

.reveal:nth-of-type(4) {
  animation-delay: 0.3s;
}

@keyframes rise-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 780px) {
  .hero {
    grid-template-columns: 1.1fr 1fr;
    padding: 2.1rem;
  }

  .hero__image {
    height: 460px;
  }

  .info-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery img {
    height: 220px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .btn {
    animation: none;
    transition: none;
    transform: none;
  }
}

@media (max-width: 640px) {
  .festival-corner {
    width: 68px;
    height: 68px;
  }
}
