@import url('https://fonts.googleapis.com/css2?family=Cormorant+Infant:wght@300;400;500;600;700&family=Great+Vibes&display=swap');

:root {
  --paper: #fdfbf7;
  --paper-2: #f5f5f5;
  --ink: #1a1a1a;
  --ink-soft: #4c4943;
  --ink-faint: #8b857b;
  --line: #e2ded5;
  --card: #fffefb;
  --radius: 18px;
  --shadow: 0 12px 26px rgba(26, 26, 26, 0.07);
  --maxw: 1160px;
  --serif: 'Cormorant Infant', 'Songti SC', 'Noto Serif SC', Georgia, 'Times New Roman', serif;
  --script: 'Great Vibes', 'Cormorant Infant', cursive;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.8;
  font-weight: 400;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.32'/%3E%3C/svg%3E");
}

a {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  padding: 10px 16px;
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 999px;
  z-index: 70;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

/* 页头 */
.site-head {
  padding: 18px clamp(16px, 4vw, 46px) 12px;
  border-bottom: 1px solid var(--line);
}

.brand-row {
  text-align: center;
  padding: 4px 0 8px;
}

.brand {
  display: inline-block;
  font-family: var(--script);
  font-size: clamp(32px, 6.5vw, 46px);
  line-height: 1.3;
  letter-spacing: 0.03em;
  padding: 2px 8px;
  text-decoration: none;
  color: var(--ink);
}

.menu-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.menu-btn,
.contact {
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: 0.16em;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 22px;
  min-height: 44px;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.4;
}

.menu-btn:hover,
.contact:hover {
  border-color: var(--ink);
}

.menu-btn {
  position: relative;
  z-index: 60;
}

/* 全屏遮罩菜单 */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 84px 20px 40px;
  overflow-y: auto;
  background-color: var(--paper);
  background-image: radial-gradient(rgba(26, 26, 26, 0.14) 1px, transparent 1px);
  background-size: 18px 18px;
  visibility: hidden;
  opacity: 0;
  transition: none;
}

body.menu-open .drawer {
  visibility: visible;
  opacity: 1;
}

body.menu-open {
  overflow: hidden;
}

body.menu-open .menu-btn {
  position: fixed;
  top: 14px;
  right: 14px;
  background: var(--paper);
  border-color: var(--ink);
}

.drawer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: center;
  max-width: 30rem;
}

.drawer-list li + li {
  border-top: 1px solid var(--line);
}

.drawer-list a {
  display: block;
  padding: 14px 20px;
  min-height: 48px;
  font-size: clamp(20px, 4.4vw, 27px);
  line-height: 1.6;
  text-decoration: none;
  color: var(--ink);
}

.drawer-list a:hover {
  text-decoration: underline;
  text-underline-offset: 8px;
}

/* 首屏 */
.paper {
  display: block;
}

.hero {
  min-height: 70vh;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(26px, 5vw, 60px) clamp(16px, 4vw, 46px);
  display: grid;
  align-content: center;
  align-items: center;
  gap: 16px;
  grid-template-columns: 0.85fr minmax(0, 1.6fr) 0.85fr;
  grid-template-areas:
    'a head b'
    'a lede b';
  text-align: center;
  border-bottom: 1px solid var(--line);
  background-image: radial-gradient(rgba(26, 26, 26, 0.16) 1px, transparent 1px);
  background-size: 20px 20px;
  background-position: center;
}

.hero-h1 {
  grid-area: head;
  margin: 0;
  font-size: clamp(29px, 5vw, 50px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.02em;
  text-wrap: balance;
}

.hero-lede {
  grid-area: lede;
  margin: 0 auto;
  max-width: 32em;
  color: var(--ink-soft);
  font-size: 17px;
}

.plate {
  margin: 0;
  aspect-ratio: 3 / 4;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--card);
  background-image: radial-gradient(rgba(26, 26, 26, 0.13) 1px, transparent 1px);
  background-size: 14px 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.plate img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.plate-1 {
  grid-area: a;
  transform: translateY(-16px) rotate(-1.5deg);
}

.plate-2 {
  grid-area: b;
  transform: translateY(16px) rotate(1.5deg);
}

/* 正文与侧栏 */
.sheet {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 60px) clamp(16px, 4vw, 46px) clamp(40px, 7vw, 84px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 19rem;
  gap: clamp(24px, 4vw, 46px);
  align-items: start;
}

.sheet-body {
  min-width: 0;
}

.sheet-body > section {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(20px, 3.4vw, 38px);
  margin: 0 0 clamp(18px, 3vw, 30px);
}

.sheet-body > section:last-child {
  margin-bottom: 0;
}

.sheet-body section[id] {
  scroll-margin-top: 22px;
}

.sheet-body h2 {
  margin: 0 0 14px;
  font-size: clamp(23px, 3vw, 31px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.sheet-body h3 {
  margin: 24px 0 10px;
  font-size: clamp(19px, 2.4vw, 23px);
  font-weight: 600;
  line-height: 1.4;
}

.sheet-body p {
  margin: 0 0 14px;
  max-width: 42em;
}

.sheet-body small {
  display: block;
  margin: 0 0 4px;
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.24em;
  color: var(--ink-faint);
}

.sheet-body p small,
.sheet-body li small,
.sheet-body figcaption small {
  display: inline;
  letter-spacing: 0.06em;
}

.sheet-body ul,
.sheet-body ol {
  margin: 0 0 16px;
  padding-left: 1.3em;
}

.sheet-body li {
  margin: 0 0 8px;
}

.sheet-body img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 16px 0;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.sheet-body figure {
  margin: 18px 0;
}

.sheet-body blockquote {
  margin: 18px 0;
  padding: 2px 0 2px 18px;
  border-left: 2px solid var(--ink);
  color: var(--ink-soft);
}

.side {
  position: sticky;
  top: 20px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 20px;
}

.side > small {
  display: block;
  margin: 0 0 4px;
  font-size: 14px;
  letter-spacing: 0.3em;
  color: var(--ink-faint);
}

.side h2 {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.4;
}

.side-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}

.side-list li + li {
  border-top: 1px solid var(--line);
}

.side-list a {
  display: block;
  padding: 10px 2px;
  min-height: 44px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  text-decoration: none;
}

.side-list a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.side-contact {
  display: inline-block;
  padding: 10px 20px;
  min-height: 44px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 16px;
  letter-spacing: 0.14em;
  text-decoration: none;
}

/* 页脚 */
.site-foot {
  border-top: 1px solid var(--line);
  background-color: var(--paper-2);
  background-image: radial-gradient(rgba(26, 26, 26, 0.1) 1px, transparent 1px);
  background-size: 18px 18px;
  padding: clamp(26px, 4vw, 44px) clamp(16px, 4vw, 46px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px 30px;
}

.foot-brand .brand {
  font-size: 27px;
  padding: 0;
}

.foot-desc {
  display: block;
  margin: 4px 0 0;
  max-width: 24em;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-faint);
}

.foot-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 2px 16px;
  margin: 0;
  padding: 0;
}

.foot-list a {
  display: inline-block;
  padding: 11px 2px;
  min-height: 44px;
  font-size: 16px;
  color: var(--ink-soft);
  text-decoration: none;
}

.foot-list a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.foot-legal {
  text-align: center;
}

.foot-legal p {
  margin: 0;
  font-size: 16px;
  color: var(--ink-soft);
}

.to-top {
  display: inline-block;
  padding: 8px 2px;
  min-height: 40px;
  font-size: 16px;
  color: var(--ink-faint);
  text-decoration: none;
}

.to-top:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* 滚动出现 */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.18s linear, transform 0.2s ease-out;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.plate.reveal.in.plate-1 {
  transform: translateY(-16px) rotate(-1.5deg);
}

.plate.reveal.in.plate-2 {
  transform: translateY(16px) rotate(1.5deg);
}

.plate.reveal {
  transform: translateY(8px);
}

@media (max-width: 900px) {
  .sheet {
    grid-template-columns: minmax(0, 1fr);
  }

  .side {
    position: static;
  }
}

@media (max-width: 860px) {
  .hero {
    min-height: 0;
    padding-top: 26px;
    padding-bottom: 34px;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      'head head'
      'lede lede'
      'a b';
    gap: 12px 14px;
  }

  .hero-lede {
    margin-bottom: 8px;
  }

  .plate {
    aspect-ratio: 4 / 3;
    transform: none;
  }

  .plate.reveal.in.plate-1,
  .plate.reveal.in.plate-2 {
    transform: none;
  }

  .site-foot {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
    gap: 10px;
  }

  .foot-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .foot-list {
    justify-content: center;
  }
}

@media (max-width: 420px) {
  body {
    font-size: 17px;
  }

  .menu-btn,
  .contact {
    padding: 10px 16px;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

button[aria-expanded]{min-width:44px;min-height:44px}
