:root {
  --color-ink: #312b24;
  --color-muted: #71665b;
  --color-soft: #f7f2e8;
  --color-stone: #e8dfd0;
  --color-paper: #fffdf8;
  --color-wood: #8a6846;
  --color-gold: #b79a63;
  --color-red: #7d3e32;
  --color-line: rgba(105, 82, 56, 0.18);
  --shadow-soft: 0 18px 40px rgba(62, 49, 35, 0.08);
  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-ink);
  background: var(--color-paper);
  font-family:
    "Noto Serif TC", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei",
    serif;
  line-height: 1.85;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
}

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

.container {
  width: min(100% - 40px, var(--container));
  margin: 0 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;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 78px;
  padding: 0 clamp(20px, 4vw, 48px);
  background: rgba(255, 253, 248, 0.92);
  border-bottom: 1px solid var(--color-line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(138, 104, 70, 0.42);
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 36%, rgba(183, 154, 99, 0.24) 37% 41%, transparent 42%),
    linear-gradient(90deg, transparent 48%, rgba(125, 62, 50, 0.34) 49% 51%, transparent 52%),
    linear-gradient(0deg, transparent 48%, rgba(125, 62, 50, 0.34) 49% 51%, transparent 52%);
}

.brand-title {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-logo {
  width: 92px;
  height: auto;
}

.brand-subtitle {
  display: block;
  margin-top: -2px;
  color: var(--color-muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.76rem;
}

.header-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.language-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
  justify-content: flex-end;
  color: rgba(113, 102, 91, 0.7);
  font-size: 0.8rem;
  line-height: 1.4;
}

.language-current {
  color: var(--color-red);
  font-weight: 700;
}

.language-disabled {
  color: rgba(113, 102, 91, 0.5);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  color: var(--color-muted);
  font-size: 0.96rem;
}

.site-nav a {
  position: relative;
  text-decoration: none;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 1px;
  content: "";
  background: var(--color-gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
}

.section {
  padding: clamp(72px, 9vw, 124px) 0;
}

.section-band {
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.76), rgba(247, 242, 232, 0.94)),
    var(--color-soft);
}

.hero {
  position: relative;
  min-height: calc(100vh - 78px);
  display: grid;
  align-items: center;
  overflow: hidden;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  background-image: url("../images/hero-pattern.svg");
  background-position: center;
  background-size: cover;
  opacity: 0.62;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 880px;
  padding: clamp(52px, 8vw, 100px) 0 clamp(72px, 9vw, 112px);
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--color-red);
  font-size: 0.88rem;
  font-weight: 700;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  line-height: 1.45;
}

h1 {
  max-width: 760px;
  font-size: clamp(2.1rem, 5vw, 4.45rem);
}

h1 span {
  display: block;
}

h2 {
  font-size: clamp(1.65rem, 3vw, 2.5rem);
}

h3 {
  font-size: 1.35rem;
}

.hero-text {
  max-width: 760px;
  margin: 28px 0 0;
  color: var(--color-muted);
  font-size: clamp(1rem, 1.4vw, 1.16rem);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button-row.centered {
  justify-content: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 22px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-weight: 700;
  text-decoration: none;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  color: #fffdf8;
  background: var(--color-red);
  border-color: var(--color-red);
}

.button-secondary {
  color: var(--color-ink);
  background: rgba(255, 253, 248, 0.72);
  border-color: rgba(138, 104, 70, 0.36);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(220px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(38px, 7vw, 84px);
  align-items: start;
}

.prose p,
.sacred-copy p,
.closing-inner p,
.contact-layout p {
  margin: 0;
  color: var(--color-muted);
  font-size: 1.05rem;
}

.prose p + p {
  margin-top: 20px;
}

.section-heading {
  max-width: 720px;
  margin-bottom: clamp(32px, 5vw, 52px);
}

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

.entry-card {
  display: flex;
  min-height: 360px;
  flex-direction: column;
  padding: 28px;
  background: #fffaf0;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.muted-card {
  background: #fbf7ef;
}

.card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.card-topline img {
  width: 42px;
  height: 42px;
}

.status {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 28px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.status-done {
  color: #5f4b24;
  background: rgba(183, 154, 99, 0.17);
}

.status-preparing {
  color: #695240;
  background: rgba(113, 102, 91, 0.12);
}

.entry-card p {
  margin: 18px 0 26px;
  color: var(--color-muted);
}

.text-link {
  margin-top: auto;
  color: var(--color-red);
  font-weight: 700;
  text-decoration-color: rgba(125, 62, 50, 0.3);
  text-underline-offset: 5px;
}

.text-link.subdued {
  color: var(--color-muted);
}

.simple-mark {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(138, 104, 70, 0.28);
  border-radius: 50%;
  background:
    linear-gradient(45deg, transparent 46%, rgba(138, 104, 70, 0.38) 47% 53%, transparent 54%),
    radial-gradient(circle at center, transparent 38%, rgba(183, 154, 99, 0.22) 39% 42%, transparent 43%);
}

.quiet-panel {
  padding-left: clamp(0px, 3vw, 36px);
  border-left: 1px solid rgba(138, 104, 70, 0.32);
}

.overview-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--color-line);
}

.overview-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 18px;
  padding: 26px 18px 26px 0;
  color: inherit;
  border-bottom: 1px solid var(--color-line);
  text-decoration: none;
}

.overview-item:nth-child(odd) {
  padding-right: 32px;
  border-right: 1px solid var(--color-line);
}

.overview-item:nth-child(even) {
  padding-left: 32px;
}

.overview-number {
  color: var(--color-gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
}

.overview-item strong,
.overview-item em,
.overview-item span span {
  display: block;
}

.overview-item strong {
  font-size: 1.18rem;
}

.overview-item em {
  margin: 2px 0 8px;
  color: var(--color-red);
  font-size: 0.86rem;
  font-style: normal;
  font-weight: 700;
}

.overview-item span span {
  color: var(--color-muted);
}

.overview-item.active:hover strong,
.overview-item.active:focus-visible strong {
  text-decoration: underline;
  text-decoration-color: rgba(125, 62, 50, 0.35);
  text-underline-offset: 5px;
}

.sacred-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(320px, 1.12fr);
  gap: clamp(40px, 7vw, 86px);
  align-items: start;
}

.sacred-copy p {
  margin-top: 22px;
}

.note {
  display: inline-block;
  padding: 10px 14px;
  background: rgba(255, 253, 248, 0.72);
  border-left: 3px solid var(--color-gold);
}

.sites-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: site;
}

.sites-list li {
  display: grid;
  grid-template-columns: 34px minmax(110px, 0.72fr) minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-line);
  color: var(--color-muted);
  counter-increment: site;
}

.sites-list li::before {
  content: counter(site, decimal-leading-zero);
  color: var(--color-gold);
  font-family: Georgia, "Times New Roman", serif;
}

.sites-list span {
  color: var(--color-ink);
  font-weight: 700;
}

.closing-inner {
  max-width: 820px;
  text-align: center;
}

.closing-inner p {
  margin-top: 20px;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(36px, 7vw, 84px);
  align-items: start;
}

.contact-layout p {
  margin-top: 18px;
}

.contact-form {
  display: grid;
  gap: 18px;
  padding: 28px;
  background: rgba(255, 253, 248, 0.74);
  border: 1px solid var(--color-line);
  border-radius: 8px;
}

.contact-form label {
  display: grid;
  gap: 6px;
  color: var(--color-muted);
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(105, 82, 56, 0.24);
  border-radius: 4px;
  background: #fffdf8;
  color: var(--color-ink);
  font: inherit;
}

.contact-form input {
  min-height: 46px;
  padding: 8px 12px;
}

.contact-form textarea {
  resize: vertical;
  padding: 10px 12px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(183, 154, 99, 0.34);
  border-color: rgba(138, 104, 70, 0.58);
}

.contact-form .button {
  width: fit-content;
  cursor: pointer;
  font: inherit;
}

.site-footer {
  padding: 42px 0;
  background: #2f2922;
  color: #f8f1e6;
}

.footer-inner {
  display: grid;
  gap: 24px;
}

.site-footer strong {
  display: block;
  font-size: 1.1rem;
}

.site-footer p {
  margin: 6px 0 0;
  color: rgba(248, 241, 230, 0.72);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
}

.site-footer a {
  color: rgba(248, 241, 230, 0.86);
  text-decoration-color: rgba(248, 241, 230, 0.24);
  text-underline-offset: 5px;
}

.copyright {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    gap: 12px;
  }

  .header-actions {
    flex: 1;
    min-width: 0;
  }

  .language-switch {
    width: 100%;
    font-size: 0.7rem;
  }

  .nav-toggle {
    display: inline-grid;
    width: 44px;
    height: 44px;
    place-items: center;
    padding: 9px;
    border: 1px solid var(--color-line);
    border-radius: 4px;
    background: rgba(255, 253, 248, 0.78);
  }

  .nav-toggle span:not(.sr-only) {
    width: 20px;
    height: 1px;
    background: var(--color-ink);
  }

  .site-nav {
    position: fixed;
    inset: 78px 0 auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 20px 22px;
    background: rgba(255, 253, 248, 0.98);
    border-bottom: 1px solid var(--color-line);
    box-shadow: var(--shadow-soft);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 14px 0;
    border-bottom: 1px solid rgba(105, 82, 56, 0.11);
  }

  .site-nav a::after {
    display: none;
  }

  .two-column,
  .sacred-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

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

  .entry-card {
    min-height: auto;
  }

  .overview-list {
    grid-template-columns: 1fr;
  }

  .overview-item,
  .overview-item:nth-child(odd),
  .overview-item:nth-child(even) {
    padding-right: 0;
    padding-left: 0;
    border-right: 0;
  }

  .quiet-panel {
    padding-left: 20px;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .site-header {
    min-height: 70px;
    padding-inline: 14px;
  }

  .language-switch {
    max-width: 210px;
  }

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

  .brand-logo {
    width: 78px;
  }

  .site-nav {
    inset: 70px 0 auto;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding-top: 70px;
  }

  .button,
  .contact-form .button {
    width: 100%;
  }

  .button-row {
    width: 100%;
  }

  .sites-list li {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .sites-list span {
    grid-column: 2;
  }

  .sites-list li {
    align-items: start;
  }

  .contact-form {
    padding: 20px;
  }
}
