:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang HK", "Noto Sans TC", sans-serif;
  background: #f4f0e5;
  color: #143c2d;
}

* {
  box-sizing: border-box;
}

html {
  background: #143c2d;
}

body {
  background:
    radial-gradient(circle at 90% 8%, rgb(255 241 181 / 42%), transparent 25rem),
    linear-gradient(180deg, #f8f4e9 0%, #f1ecdf 100%);
  margin: 0;
  min-height: 100vh;
}

.siteHeader {
  background: #143c2d;
  border-bottom: 1px solid rgb(255 226 139 / 40%);
  padding: 14px 22px;
}

.siteHeader a {
  align-items: center;
  color: #ffffff;
  display: flex;
  gap: 12px;
  margin: 0 auto;
  max-width: 920px;
  text-decoration: none;
}

.siteHeader img {
  flex: 0 0 52px;
}

.siteHeader span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.siteHeader strong {
  font-family: "Songti TC", "Noto Serif TC", serif;
  font-size: 1.25rem;
  letter-spacing: 0.12em;
}

.siteHeader small {
  color: rgb(255 255 255 / 72%);
  font-size: 0.88rem;
}

main {
  margin: 0 auto;
  max-width: 920px;
  padding: 58px 22px 76px;
}

.eyebrow,
.sectionLabel {
  color: #b66122;
  font-size: 1rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  margin: 0 0 12px;
}

h1,
h2 {
  font-family: "Songti TC", "Noto Serif TC", serif;
}

h1 {
  font-size: clamp(2.65rem, 9vw, 5.3rem);
  letter-spacing: 0.04em;
  line-height: 1.06;
  margin: 0;
  text-wrap: balance;
}

.lead {
  color: #40594e;
  font-size: clamp(1.15rem, 2.7vw, 1.38rem);
  line-height: 1.8;
  margin: 22px 0 34px;
  max-width: 720px;
}

figure {
  margin: 0;
}

.heroPhoto {
  background: #143c2d;
  border: 1px solid #d8b966;
  box-shadow: 0 28px 80px rgb(20 60 45 / 18%);
  overflow: hidden;
}

.heroPhoto img,
.photoGrid img {
  display: block;
  height: auto;
  width: 100%;
}

.heroPhoto img {
  max-height: 76vh;
  object-fit: cover;
  object-position: center bottom;
}

figcaption {
  color: #52685e;
  font-size: 1rem;
  line-height: 1.6;
  padding: 14px 16px;
}

.heroPhoto figcaption {
  color: #ffffff;
}

.declaration {
  align-items: flex-start;
  background: #143c2d;
  border: 1px solid #e7c565;
  box-shadow: 0 22px 60px rgb(20 60 45 / 14%);
  color: #ffffff;
  display: grid;
  gap: 24px;
  grid-template-columns: auto 1fr;
  margin-top: 28px;
  padding: clamp(24px, 5vw, 44px);
}

.seal {
  align-items: center;
  background: #da8134;
  border: 1px solid #ffd875;
  box-shadow: 0 0 26px rgb(255 219 105 / 35%);
  display: flex;
  flex: 0 0 62px;
  font-family: "Songti TC", "Noto Serif TC", serif;
  font-size: 1.65rem;
  height: 62px;
  justify-content: center;
  margin: 0;
  width: 62px;
}

.declaration .sectionLabel {
  background: linear-gradient(90deg, #fff4bd 0%, #d5a936 42%, #ffffff 76%, #d7aa39 100%);
  background-clip: text;
  color: transparent;
}

.declaration h2 {
  background: linear-gradient(100deg, #fff9d8 0%, #e0b94e 42%, #ffffff 70%, #d6a735 100%);
  background-clip: text;
  color: transparent;
  font-size: clamp(1.7rem, 4.5vw, 2.8rem);
  line-height: 1.28;
  margin: 0 0 18px;
}

.declaration p:not(.sectionLabel, .seal) {
  color: rgb(255 255 255 / 88%);
  font-size: 1.15rem;
  line-height: 1.9;
  margin: 14px 0 0;
}

.declaration strong {
  color: #fff1a8;
}

.promiseGrid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 22px;
}

.promiseGrid article,
.photoRecord,
.boundary {
  background: rgb(255 255 255 / 88%);
  border: 1px solid rgb(20 60 45 / 14%);
  box-shadow: 0 18px 45px rgb(20 60 45 / 7%);
}

.promiseGrid article {
  padding: 24px 20px;
}

.promiseGrid span {
  align-items: center;
  border: 1px solid #da8134;
  color: #b66122;
  display: flex;
  font-family: "Songti TC", "Noto Serif TC", serif;
  font-size: 1.1rem;
  height: 40px;
  justify-content: center;
  margin-bottom: 18px;
  width: 40px;
}

.promiseGrid h2,
.photoRecord h2,
.boundary h2 {
  color: #143c2d;
  font-size: 1.4rem;
  margin: 0 0 10px;
}

.promiseGrid p,
.boundary p {
  color: #40594e;
  font-size: 1.06rem;
  line-height: 1.75;
  margin: 0;
}

.photoRecord {
  margin-top: 22px;
  padding: clamp(22px, 5vw, 38px);
}

.photoGrid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.photoGrid figure {
  background: #f7f3e8;
  border: 1px solid rgb(20 60 45 / 14%);
}

.photoGrid img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.boundary {
  border-left: 6px solid #da8134;
  margin-top: 22px;
  padding: 24px 26px;
}

.pageLinks {
  align-items: stretch;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.pageLinks a {
  align-items: center;
  border: 1px solid #143c2d;
  color: #143c2d;
  display: inline-flex;
  font-size: 1.05rem;
  font-weight: 800;
  justify-content: center;
  min-height: 54px;
  padding: 12px 22px;
  text-decoration: none;
}

.pageLinks .primaryLink {
  background: #143c2d;
  color: #ffffff;
}

footer {
  align-items: center;
  background: #143c2d;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 36px 22px 46px;
  text-align: center;
}

footer strong {
  color: #ffe797;
  font-family: "Songti TC", "Noto Serif TC", serif;
  font-size: 1.25rem;
  letter-spacing: 0.12em;
}

footer small {
  color: rgb(255 255 255 / 70%);
  font-size: 1rem;
  letter-spacing: 0.16em;
}

@media (max-width: 680px) {
  main {
    padding: 38px 16px 58px;
  }

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

  .promiseGrid,
  .photoGrid {
    grid-template-columns: 1fr;
  }

  .heroPhoto img {
    max-height: none;
  }

  .pageLinks {
    flex-direction: column;
  }

  .pageLinks a {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
