* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #263238;
  font-family: "Microsoft JhengHei", Arial, sans-serif;
  line-height: 1.7;
  background: #f7f2e8;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 16px 7%;
  background: rgba(247, 242, 232, 0.94);
  border-bottom: 1px solid #d9ccb9;
}

.brand {
  font-size: 22px;
  font-weight: 700;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.nav a {
  color: #31464d;
  text-decoration: none;
  font-weight: 700;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
  min-height: 82vh;
  padding: 56px 7%;
  background: linear-gradient(120deg, #fff7e6 0%, #dce9e7 58%, #b9d1d8 100%);
}

.tag {
  color: #9a5637;
  font-weight: 700;
}

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

h1 {
  max-width: 760px;
  font-size: clamp(36px, 6vw, 70px);
  line-height: 1.1;
}

h2 {
  font-size: 34px;
}

.hero-text p {
  max-width: 650px;
  font-size: 18px;
}

.button,
button {
  display: inline-block;
  border: 0;
  border-radius: 6px;
  padding: 12px 22px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  background: #99613d;
  cursor: pointer;
}

.button:hover,
button:hover {
  background: #76472c;
}

.hero-photo {
  position: relative;
  min-height: 430px;
  border: 8px solid #31464d;
  border-radius: 8px;
  background: #f4ead9;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(38, 50, 56, 0.2);
}

.hero-photo img {
  width: 100%;
  height: 430px;
  object-fit: cover;
  display: block;
}

.photo-note {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  padding: 16px;
  border-radius: 8px;
  color: #fff;
  background: rgba(31, 39, 43, 0.78);
}

.photo-note p,
.photo-note strong {
  margin: 0;
}

.photo-note p {
  color: #f1d8a4;
  font-weight: 700;
}

.section {
  padding: 70px 7%;
}

.intro-grid,
.event-list,
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.intro-grid article,
.event-list article,
.photo-grid article,
.book-card {
  border: 1px solid #d9ccb9;
  border-radius: 8px;
  padding: 24px;
  background: #fffaf1;
}

.soft {
  background: #e1eceb;
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
}

.book-card {
  max-width: 700px;
  margin: 18px auto 0;
  text-align: center;
}

.book-card h3 {
  font-size: 28px;
  color: #2d6f7d;
}

.gallery-text {
  max-width: 780px;
}

.photo-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  margin-bottom: 16px;
  border-radius: 6px;
  border: 1px solid #d9ccb9;
}

.date {
  color: #99613d;
  font-weight: 700;
}

.join {
  color: #fff;
  background: #263f46;
}

.join form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  max-width: 760px;
}

.form-row {
  flex: 1 1 220px;
}

.form-row label {
  display: block;
  width: 100%;
  margin-bottom: 6px;
  font-weight: 700;
}

input {
  width: 100%;
  border: 0;
  border-radius: 6px;
  padding: 13px;
  font-size: 16px;
}

.message {
  min-height: 30px;
  margin-top: 16px;
  font-weight: 700;
}

footer {
  padding: 22px 7%;
  text-align: center;
  color: #fff;
  background: #1f272b;
}

@media (max-width: 820px) {
  .topbar,
  .section-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .intro-grid,
  .event-list,
  .photo-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-photo {
    min-height: 360px;
  }

  .hero-photo img {
    height: 360px;
  }
}
