/* ============ 基础 ============ */
:root {
  --paper: #eff1ea;
  --card: #faf9f3;
  --ink: #1f2b25;
  --muted: #68746a;
  --line: #cfd5c6;
  --seal: #a6402c;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", STSong, SimSun, serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --latin: Georgia, "Times New Roman", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1100px 620px at 18% -8%, #f8f7ef 0%, rgba(248, 247, 239, 0) 62%),
    var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

::selection {
  background: var(--seal);
  color: #f6f1e4;
}

:focus-visible {
  outline: 2px solid var(--seal);
  outline-offset: 4px;
}

.wrap {
  width: min(1120px, calc(100% - 80px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -64px;
  left: 16px;
  z-index: 10;
  padding: 8px 14px;
  background: var(--ink);
  color: #f6f1e4;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

/* ============ 页头 ============ */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

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

.brand-seal {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  background: var(--seal);
  border-radius: 2px;
  box-shadow: inset 0 0 0 2px rgba(246, 241, 228, 0.35);
  color: #f6f1e4;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  transform: rotate(-3deg);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.06rem;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.brand-en {
  margin-top: 4px;
  color: var(--muted);
  font-family: var(--latin);
  font-size: 0.6rem;
  letter-spacing: 0.27em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
}

.site-nav a {
  position: relative;
  padding: 4px 0;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-nav a + a {
  margin-left: 28px;
}

.site-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--seal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.site-nav a:hover {
  color: var(--ink);
}

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

/* ============ 首屏 ============ */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  align-items: center;
  gap: clamp(40px, 8vw, 110px);
  padding: clamp(60px, 10vw, 116px) 0 clamp(72px, 10vw, 124px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.24em;
}

.eyebrow::before {
  content: "";
  flex: none;
  width: 28px;
  height: 1px;
  background: var(--seal);
}

.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.65rem, 5.6vw, 4.3rem);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: 0.06em;
}

.lede {
  max-width: 33ch;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 2;
}

.hero-photo {
  position: relative;
  justify-self: end;
  width: min(100%, 430px);
  margin: 0;
}

.hero-frame {
  padding: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 24px 50px -34px rgba(31, 43, 37, 0.5);
}

.hero-frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.hero-photo figcaption {
  margin-top: 13px;
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-align: right;
}

.stamp {
  position: absolute;
  bottom: 54px;
  left: -30px;
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  background: var(--seal);
  border-radius: 3px;
  box-shadow: 0 10px 22px -12px rgba(70, 35, 25, 0.55);
  color: #f6f1e4;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  transform: rotate(-6deg);
}

.stamp::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(246, 241, 228, 0.55);
  border-radius: 1px;
}

/* ============ 相册 ============ */
.gallery {
  padding-bottom: clamp(80px, 11vw, 132px);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 38px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.kicker {
  margin: 0 0 10px;
  color: var(--seal);
  font-family: var(--latin);
  font-size: 0.66rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.section-head h2,
.about-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.4vw, 1.7rem);
  font-weight: 600;
  letter-spacing: 0.12em;
}

.section-meta {
  margin: 0 0 3px;
  color: var(--muted);
  font-family: var(--latin);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
}

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

.photo-card {
  margin: 0;
}

.photo-frame {
  padding: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.photo-crop {
  overflow: hidden;
  background: #e6e9df;
}

.photo-crop img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.2, 0.65, 0.25, 1);
}

.photo-card:hover .photo-frame {
  border-color: #b9c2ae;
  box-shadow: 0 18px 34px -30px rgba(31, 43, 37, 0.55);
}

.photo-card:hover .photo-crop img {
  transform: scale(1.035);
}

.photo-card figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  font-size: 0.83rem;
  letter-spacing: 0.08em;
}

.photo-card figcaption span {
  color: var(--ink);
}

.photo-card time {
  color: var(--muted);
  font-family: var(--latin);
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
}

/* ============ 关于 ============ */
.about {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(32px, 7vw, 96px);
  padding: clamp(52px, 7vw, 80px) 0 clamp(60px, 8vw, 96px);
  border-top: 1px solid var(--line);
}

.about-body p {
  max-width: 46ch;
  margin: 0;
  color: var(--muted);
  line-height: 2;
}

.about-body p + p {
  margin-top: 16px;
}

.about-body p:first-child {
  color: var(--ink);
  font-size: 1.02rem;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 38px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.facts > div {
  padding-left: 20px;
  border-left: 1px solid var(--line);
}

.facts > div:first-child {
  padding-left: 0;
  border-left: 0;
}

.facts dt {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
}

.facts dd {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.03rem;
  letter-spacing: 0.08em;
}

/* ============ 页脚 ============ */
.site-footer {
  padding: 26px 0 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 32px;
}

.site-footer p {
  margin: 0;
}

.footer-legal {
  margin-top: 14px;
  font-family: var(--latin);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-align: center;
}

.icp {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.icp:hover {
  color: var(--ink);
  border-color: currentColor;
}

/* ============ 响应式 ============ */
@media (max-width: 900px) {
  .wrap {
    width: calc(100% - 48px);
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-top: 56px;
  }

  .hero-photo {
    justify-self: start;
    width: min(100%, 420px);
  }

  .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

@media (max-width: 600px) {
  .wrap {
    width: calc(100% - 40px);
  }

  .site-header {
    padding-top: 20px;
  }

  .brand-seal {
    width: 30px;
    height: 30px;
    font-size: 1.1rem;
  }

  .brand-name {
    font-size: 0.98rem;
  }

  .site-nav a + a {
    margin-left: 20px;
  }

  .hero {
    padding-top: 48px;
    padding-bottom: 72px;
  }

  .hero h1 {
    font-size: clamp(2.3rem, 10.5vw, 3rem);
    line-height: 1.3;
  }

  .lede {
    max-width: none;
  }

  .stamp {
    bottom: 40px;
    left: -10px;
    width: 56px;
    height: 56px;
    font-size: 1.7rem;
  }

  .photo-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .section-head {
    align-items: flex-start;
  }

  .facts {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .facts > div {
    padding-left: 0;
    border-left: 0;
  }

  .facts > div + div {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
  }

  .footer-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
