:root {
  --bg: #100e0b;
  --ink: #efe7d6;
  --gold: #c2a36b;
  --mute: #9a917f;
  --line: rgba(239, 231, 214, 0.12);
  --serif: "Noto Serif SC", "Songti SC", "STSong", "Source Han Serif SC", serif;
  --latin: "Cormorant Garamond", Georgia, serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.9;
}

::selection {
  background: rgba(194, 163, 107, 0.28);
  color: var(--ink);
}

a { color: inherit; text-decoration: none; }

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  animation: fade 1.8s ease both;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.16) 0%, rgba(0, 0, 0, 0) 38%, rgba(16, 14, 11, 0.12) 74%, rgba(16, 14, 11, 0.62) 100%);
}

.site-header,
.hero-copy,
.endpaper,
.site-footer,
.shell {
  width: min(1040px, calc(100% - 48px));
  margin-left: auto;
  margin-right: auto;
}

.hero .site-header,
.hero-copy {
  position: relative;
  z-index: 1;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0 0;
}

.logo {
  font-family: var(--latin);
  letter-spacing: 0.18em;
  font-size: 15px;
  color: rgba(232, 224, 208, 0.82);
}

nav {
  display: flex;
  gap: 28px;
  color: rgba(232, 224, 208, 0.68);
  font-size: 13px;
  letter-spacing: 0.16em;
}

nav a:hover,
nav a[aria-current="page"] {
  color: var(--ink);
}

.hero-copy {
  margin-top: auto;
  padding: 0 0 80px;
  animation: rise 1.2s ease 0.15s both;
}

.kicker {
  margin: 0 0 10px;
  font-family: var(--latin);
  letter-spacing: 0.24em;
  color: rgba(232, 224, 208, 0.7);
  font-size: 14px;
}

h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(56px, 8vw, 92px);
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.08;
}

.endpaper {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 80px;
  padding: 88px 0 16px;
}

.endpaper h2,
.legal-hero h1,
.legal .card h2 {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.endpaper p,
.legal .card p {
  margin: 0;
  color: #d2cbbd;
}

.endpaper .eyebrow {
  margin-bottom: 10px;
}

.mail {
  display: inline-block;
  margin-top: 20px;
  color: var(--gold);
  font-family: var(--latin);
  font-size: 22px;
  letter-spacing: 0.03em;
  border-bottom: 1px solid transparent;
}

.mail:hover { border-bottom-color: var(--gold); }

.meta-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 36px 0 0;
}

.meta-list dt {
  color: var(--mute);
  font-size: 12px;
  letter-spacing: 0.16em;
}

.meta-list dd {
  margin: 6px 0 0;
  font-family: var(--serif);
  font-size: 17px;
}

.site-footer {
  padding: 48px 0 64px;
  color: var(--mute);
  font-size: 12px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-bottom: 16px;
}

.footer-links a:hover,
.legal a { color: var(--gold); }

.beian { margin-top: 8px; color: #6f685c; }

.page-legal { background: var(--bg); }

.page-legal .site-header {
  padding: 32px 0 18px;
  border-bottom: 1px solid var(--line);
}

.page-legal .shell {
  width: min(800px, calc(100% - 48px));
}

.legal-hero { padding: 56px 0 20px; }

.legal-hero h1 {
  font-size: clamp(36px, 6vw, 56px);
  letter-spacing: 0.12em;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-family: var(--latin);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 13px;
}

.updated {
  margin-top: 12px;
  color: var(--mute);
  font-family: var(--latin);
  font-size: 14px;
}

.legal .card { padding: 8px 0 40px; }

.legal .card h2 {
  margin-top: 32px;
  font-size: 18px;
  letter-spacing: 0.1em;
}

.legal .card h2:first-child { margin-top: 0; }

.legal .card p + p,
.legal .card ul,
.legal .card ol { margin-top: 12px; }

.legal .card ul,
.legal .card ol {
  padding-left: 1.2em;
  color: #d2cbbd;
}

.legal .card li + li { margin-top: 6px; }

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

@keyframes fade {
  from { opacity: 0; transform: scale(1.03); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 800px) {
  .site-header,
  .hero-copy,
  .endpaper,
  .site-footer,
  .shell,
  .page-legal .shell {
    width: min(100% - 32px, 1040px);
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .endpaper,
  .meta-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-copy { padding-bottom: 48px; }
  h1 { letter-spacing: 0.08em; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy,
  .hero-photo { animation: none; }
}
