:root {
  --bg: #f3efe7;
  --bg-deep: #ebe4d8;
  --ink: #1c1a17;
  --muted: #6d655a;
  --line: rgba(28, 26, 23, 0.12);
  --card: #fffaf2;
  --accent: #2f5d50;
  --max: 1080px;
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(47, 93, 80, 0.08), transparent 34%),
    linear-gradient(180deg, #f7f2ea 0%, var(--bg) 42%, #efe8dc 100%);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  line-height: 1.7;
  min-height: 100vh;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent);
}

.wrap {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  background: rgba(243, 239, 231, 0.82);
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
}

.brand {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 1.15rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.nav a {
  text-decoration: none;
}

.hero {
  padding: 4.5rem 0 2.5rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--accent);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 600;
}

.hero h1 {
  margin: 0;
  max-width: 12em;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.18;
  letter-spacing: 0.02em;
  font-weight: 700;
}

.lede {
  margin: 1.25rem 0 0;
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.section {
  padding: 2.5rem 0 1rem;
}

.section-head {
  margin-bottom: 1.5rem;
}

.section-head h2 {
  margin: 0;
  font-size: 1.45rem;
  letter-spacing: 0.04em;
}

.section-head p,
.about p {
  margin: 0.55rem 0 0;
  color: var(--muted);
  max-width: 40rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.tile {
  grid-column: span 6;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(28, 26, 23, 0.04);
}

.tile-wide {
  grid-column: span 12;
}

.tile img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 420ms ease;
}

.tile-wide img {
  aspect-ratio: 16 / 9;
}

.tile:hover img {
  transform: scale(1.03);
}

.tile figcaption {
  padding: 0.85rem 1rem 1rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.notes {
  display: grid;
  gap: 1rem;
}

.note {
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius);
  background: rgba(255, 250, 242, 0.78);
  border: 1px solid var(--line);
}

.note time {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
  letter-spacing: 0.04em;
}

.note h3 {
  margin: 0.35rem 0 0.55rem;
  font-size: 1.12rem;
}

.note h3 a {
  text-decoration: none;
}

.note p {
  margin: 0;
  color: var(--muted);
}

.about {
  padding-bottom: 3rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(235, 228, 216, 0.7);
  padding: 1.6rem 0 2rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-inner p {
  margin: 0;
}

.beian {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.beian:hover {
  color: var(--accent);
}

.note-page {
  padding: 3.5rem 0 4rem;
}

.note-page .back {
  display: inline-block;
  margin-bottom: 1.5rem;
  color: var(--muted);
  text-decoration: none;
}

.note-page article {
  max-width: 42rem;
}

.note-page h1 {
  margin: 0.4rem 0 1.2rem;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1.25;
}

.note-page .body p {
  margin: 0 0 1rem;
  color: #3b352e;
}

@media (max-width: 760px) {
  .wrap {
    width: min(var(--max), calc(100% - 1.5rem));
  }

  .hero {
    padding-top: 3rem;
  }

  .tile,
  .tile-wide {
    grid-column: span 12;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
