/* Shared styles for every page: colours, fonts, header, buttons, footer */
:root {
  --cream: #FAF6F0;
  --cream-2: #F3EDE3;
  --paper: #FFFDF9;
  --green: #1F3B35;
  --green-2: #2B4B44;
  --green-deep: #17302B;
  --ink-soft: #55665F;
  --line: #E4DCCF;
  --terra: #D2602F;
  --terra-soft: #F6E5D9;
  --mint: #9FD8C3;
  --mint-soft: #E5F3EC;
  --radius: 20px;
  --max: 1180px;
  --sans: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --serif: "Bodoni Moda", Georgia, serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--cream); color: var(--green);
  font-family: var(--sans); font-size: 17px; line-height: 1.7;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
html[data-lang="zh"] [lang="en"], html[data-lang="en"] [lang="zh"] { display: none !important; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-weight: 500; letter-spacing: -.02em; line-height: 1.2; }
a { color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
section { position: relative; scroll-margin-top: 72px; }
.idx { font-size: 12px; letter-spacing: .08em; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.kicker { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.kicker::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.h2 { font-size: clamp(30px, 4.6vw, 52px); max-width: 820px; }
.lead { color: var(--ink-soft); font-size: clamp(16px, 1.6vw, 19px); margin-top: 16px; max-width: 640px; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* Header */
header.site { position: fixed; inset: 0 0 auto 0; z-index: 30; background: #FFFFFF; border-bottom: 1px solid #EDE6DA; box-shadow: 0 4px 18px rgba(31, 59, 53, .08); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 38px; height: 38px; }
.brand .el { font-family: var(--serif); font-size: 30px; line-height: 1; letter-spacing: .02em; }
.brand .desc { font-size: 12.5px; line-height: 1.2; max-width: 120px; }
.nav-links { display: flex; gap: 28px; font-size: 15px; }
.nav-links a { text-decoration: none; color: var(--ink-soft); }
.nav-links a:hover, .nav-links a.on { color: var(--green); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.lang-btn { border: 1px solid var(--line); background: transparent; color: var(--green); border-radius: 999px; padding: 7px 13px; font: inherit; font-size: 13px; cursor: pointer; }
.lang-btn:hover { border-color: var(--green); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; font: inherit; font-weight: 500; font-size: 15.5px;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .2s, background .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-dark { background: var(--green); color: var(--cream); }
.btn-dark:hover { background: var(--green-2); }
.btn-soft { background: var(--cream-2); color: var(--green); }
.btn-soft:hover { background: #ECE4D7; }
.btn-light { background: var(--cream); color: var(--green); }
.btn-small { padding: 9px 16px; font-size: 14px; }
.btn .arr { transition: transform .2s; }
.btn:hover .arr { transform: translateX(3px); }

/* Photo slots: drop a file into /photos with the listed name and it appears */
.ph {
  position: relative; margin: 0; border-radius: var(--radius); overflow: hidden;
  background: repeating-linear-gradient(135deg, var(--cream-2) 0 12px, #EFE8DC 12px 24px);
  display: flex; align-items: flex-end;
}
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph figcaption { position: relative; margin: 12px; padding: 5px 10px; background: rgba(255,253,249,.92); border-radius: 999px; font-size: 12px; color: var(--ink-soft); }
.ph.has-img figcaption { display: none; }

/* Footer */
.site-foot { background: var(--green-deep); color: #B9CCC5; padding: 56px 0 34px; font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: end; }
.site-foot .brand .el { color: var(--cream); }
.site-foot .brand .desc { color: #B9CCC5; display: block; }
.foot-tag { margin-top: 16px; color: var(--cream); font-size: 15px; }
.wa-line { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; text-decoration: none; color: var(--cream); }
.wa-line svg { width: 20px; height: 20px; color: var(--mint); }
.wa-line:hover { text-decoration: underline; }
.foot-legal p + p { margin-top: 10px; }
.foot-legal a { color: var(--cream); }

.wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 40; display: none; box-shadow: 0 10px 30px rgba(0,0,0,.25); }

@media (max-width: 960px) {
  .nav-links { display: none; }
  .wa-float { display: inline-flex; }
  .nav-right .btn-dark { display: none; }
  .foot-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  header.site .brand { gap: 9px; }
  header.site .brand img { width: 34px; height: 34px; }
  header.site .brand .el { font-size: 26px; }
  header.site .brand .desc { font-size: 11.5px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
