:root {
  --color-bg: #f5f1e6; /* 羊皮纸米白 */
  --color-text: #1c2a39; /* 深石蓝（文本） */
  --color-muted: #4a4a4a; /* 石墨灰 */
  --color-accent: #b08d57; /* 细金线 */
  --color-primary: #5b6b4d; /* 苔藓绿 */
  --color-deep: #6e2e2e; /* 陈年酒红 */
  --maxw: 1140px;
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

h1,
h2,
h3,
h4 {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  color: var(--color-text);
}
p {
  color: var(--color-muted);
}

.container {
  width: min(100% - 2rem, var(--maxw));
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(
    to bottom,
    rgba(245, 241, 230, 0.98),
    rgba(245, 241, 230, 0.85)
  );
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(2px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.brand-logo {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 6px;
}
.brand-name {
  font-weight: 700;
  letter-spacing: 0.5px;
}
.site-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.site-nav a {
  text-decoration: none;
  color: var(--color-text);
  padding: 0.5rem 0.25rem;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover {
  border-color: var(--color-accent);
}

/* Hero */
.hero {
  background: url("background.jpg") center/cover no-repeat;
  min-height: 60vh;
  position: relative;
}
.hero-overlay {
  background: linear-gradient(
    180deg,
    rgba(28, 42, 57, 0.55),
    rgba(28, 42, 57, 0.35)
  );
  min-height: 60vh;
  display: grid;
  place-items: center;
}
.hero-content {
  text-align: center;
  color: #fff;
}
.hero h1 {
  font-size: clamp(2rem, 3vw + 1rem, 3rem);
  color: #fff;
  margin: 0;
}
.hero p {
  color: #f0f4f8;
  margin: 0.75rem 0 1.25rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--color-primary);
  color: #fff;
  border-color: #0000;
}
.btn-primary:hover {
  filter: brightness(1.05);
}
.btn-secondary {
  background: #fff;
  color: var(--color-text);
  border-color: rgba(0, 0, 0, 0.1);
}

/* Sections */
.section {
  padding: 3rem 0;
  position: relative;
}
/* Innovation #1: Ledger banded separators */
.ledger {
  background-image: linear-gradient(
    to bottom,
    transparent 0,
    transparent calc(100% - 3rem),
    rgba(176, 141, 87, 0.18) calc(100% - 3rem),
    rgba(176, 141, 87, 0.18) calc(100% - 2.85rem),
    transparent calc(100% - 2.85rem)
  );
}

/* Innovation #2: Badge-like section titles with fine gold rule */
.section-title {
  position: relative;
  padding-top: 0.75rem;
  margin: 0 0 1.5rem;
  font-size: clamp(1.4rem, 1.2rem + 1vw, 2rem);
}
.section-title::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 64px;
  height: 3px;
  background: var(--color-accent);
  border-radius: 2px;
}
.title-badge {
  display: inline-block;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  margin-right: 0.5rem;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
  font-variant: small-caps;
  letter-spacing: 0.5px;
}

/* Cards grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}
.card-title {
  margin: 0 0 0.5rem;
  font-weight: 700;
}

/* Innovation #3: Noticeboard cards */
.noticeboard {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  align-items: start;
}
.notice-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 1rem;
  position: relative;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}
.notice-card::after {
  content: "";
  position: absolute;
  top: -8px;
  right: 12px;
  width: 12px;
  height: 12px;
  background: var(--color-deep);
  border-radius: 50%;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.2);
}
.notice-card h3 {
  margin-top: 0;
}

.apply-steps {
  margin-top: 1rem;
}
.apply-steps ol {
  padding-left: 1.2rem;
}

/* Innovation #4: Imprint-style footer */
.site-footer {
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding: 2rem 0;
}
.footer-inner {
  text-align: center;
}
.imprint {
  font-variant: small-caps;
  letter-spacing: 1px;
  color: var(--color-muted);
  margin: 0;
}
.small {
  color: #7a7a7a;
}

/* Innovation #5: Timeline with engraved dots */
.timeline {
  position: relative;
  margin: 1rem 0 0 0;
  padding-left: 1.25rem;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(var(--color-accent), rgba(176, 141, 87, 0.2));
}
.timeline-item {
  position: relative;
  margin: 1rem 0 1rem 0;
  padding-left: 1rem;
}
.timeline-dot {
  position: absolute;
  left: 4px;
  top: 0.4rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--color-accent);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
}
.timeline-content h3 {
  margin: 0 0 0.25rem;
}

/* Forms */
.subscribe-form {
  max-width: 520px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}
.form-row {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
input[type="text"],
input[type="email"] {
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  padding: 0.6rem 0.7rem;
  font-size: 1rem;
}
.form-help {
  color: #6b6b6b;
  font-size: 0.9rem;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.gallery-item {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}
.gallery-item img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.gallery-item figcaption {
  padding: 0.5rem 0.75rem;
  font-size: 0.95rem;
  color: var(--color-muted);
}

/* Clip-path requirement: apply to all small images (no hero background uses <img>) */
img {
  clip-path: inset(0% 0% 5% 5%);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: start;
}
address {
  font-style: normal;
  color: var(--color-muted);
}

/* Split layout for text + figure */
.split {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
  align-items: start;
}
.split-col {
  min-width: 0;
}

/* Inline figure styling */
.inline-figure {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}
.inline-figure img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 320px;
  object-fit: cover;
}
.inline-figure figcaption {
  padding: 0.5rem 0.75rem;
  color: var(--color-muted);
  font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 992px) {
  .cards-grid,
  .noticeboard,
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
  .split {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .header-inner {
    flex-direction: column;
    gap: 0.5rem;
  }
  .site-nav {
    justify-content: center;
  }
  .cards-grid,
  .noticeboard,
  .gallery-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    min-height: 50vh;
  }
}
