:root {
  --bg: #f3f3f3;
  --text: #0f1720;
  --line: #dddddd;
  --btn: #9a8a67;
  --btn-hover: #8a7a58;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
}

/* Default font for English text */
body {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 16px;
  line-height: 1.6;
}

/* Default font for Chinese text */
.cn,
:lang(zh),
:lang(zh-CN),
:lang(zh-Hans),
:lang(zh-TW),
:lang(zh-Hant) {
  font-family: "STFangsong", "FangSong", "华文仿宋", "仿宋", serif;
}

/* Shared page width */
.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

/* Hero section */
.hero {
  position: relative;
  min-height: 420px;
  width: 100%;
  background-image: url("./assets/hero.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.12); /* lighter overlay for testing */
}

/* No border around the name block */
.hero-inner {
  position: relative;
  z-index: 2;
  width: min(980px, 90vw);
  text-align: center;
  padding: 0.6rem 1rem;
  border: none;
}

.site-title {
  margin: 0;
  color: #fff;
  font-weight: 500;
  letter-spacing: 0.2px;
  font-size: clamp(2.1rem, 5vw, 4rem);
}

/* Header image note under hero, aligned right */
.header-note-wrap {
  margin-top: 10px;
}

.header-note {
  margin: 0;
  text-align: right;
  font-size: 1rem;
  font-family: "Times New Roman", Times, Georgia, serif;
  color: #202833;
}

.header-note a {
  color: #1b2d4f;
  text-decoration: underline;
  text-underline-offset: 2px;
}

hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 20px 0;
}

/* Four page buttons */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 12px;
  align-items: center;
}

.menu-btn {
  display: inline-block;
  text-align: center;
  padding: 10px 14px;
  border-radius: 6px;
  background: var(--btn);
  color: #fff;
  text-decoration: none;
  font-size: 1.05rem;
  transition: background 0.15s ease, transform 0.08s ease;
}

.menu-btn:hover {
  background: var(--btn-hover);
  transform: translateY(-1px);
}

/* Intro content + photo */
.intro-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 34px;
  align-items: start;
}

.intro-text p {
  margin: 0 0 14px;
  font-size: 1.1rem;
}

.intro-text a {
  color: #17355f;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.intro-aside figure {
  margin: 0;
  text-align: center;
}

.intro-aside img {
  width: 100%;
  max-width: 280px;
  border-radius: 4px;
  display: block;
  margin: 0 auto 10px;
}

.intro-aside figcaption {
  font-size: 1.05rem;
  line-height: 1.45;
}

/* Footer */
.site-footer {
  margin-top: 24px;
  padding: 12px 0 18px;
  border-top: 1px solid var(--line);
}

.copyright {
  margin: 0;
  text-align: center;
  font-size: 0.95rem;
  color: #3b4350;
}

/* Responsive */
@media (max-width: 960px) {
  .hero {
    min-height: 320px;
  }

  .header-note {
    text-align: left;
    font-size: 0.95rem;
  }

  .menu-grid {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }

  .intro-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .intro-text p {
    font-size: 1rem;
  }
}
