:root {
  color-scheme: light;
  --ink: #242c26;
  --green: #344a3b;
  --paper: #f9f4eb;
  --card: #fffbf5;
  --muted: #56594d;
  --line: #ded3c1;
  --accent: #874d32;
  --serif: Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.65 system-ui, sans-serif; }
main { width: min(100% - 2.5rem, 72rem); margin: auto; }
header, footer {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 1rem; padding: 1.15rem max(1.25rem, calc((100% - 72rem) / 2));
  border-bottom: 1px solid var(--line);
}
header { background: var(--card); }
footer { border-top: 1px solid var(--line); border-bottom: 0; color: var(--muted); }
footer a { margin-left: auto; }
a { color: inherit; text-underline-offset: .25em; }
.brand { font: 1.4rem var(--serif); text-decoration: none; white-space: nowrap; }
nav { display: flex; flex-wrap: wrap; gap: clamp(.7rem, 3vw, 2.2rem); }
nav a { font-weight: 550; font-size: .92rem; text-decoration: none; }
nav a:hover { text-decoration: underline; }
.hero {
  display: grid; grid-template-columns: 1.13fr .87fr; gap: clamp(2rem, 7vw, 7.2rem);
  align-items: center; padding: clamp(3.5rem, 8vw, 7rem) 0;
}
.hero-intro { max-width: 34rem; font-size: clamp(1.05rem, 2vw, 1.2rem); color: var(--muted); margin: 1.4rem 0 1.75rem; }
.kicker {
  color: var(--accent); font-size: .72rem; font-weight: 750; letter-spacing: .15em;
  text-transform: uppercase; margin: 0 0 1rem;
}
h1, h2, h3 { font: 400 1.7rem/1.1 var(--serif); margin: 0 0 1rem; }
h1 { font-size: clamp(3.25rem, 7.1vw, 6.7rem); letter-spacing: -.06em; }
h1 em { color: var(--green); }
h2 { font-size: clamp(2.15rem, 4.4vw, 3.8rem); letter-spacing: -.045em; }
h3 { margin-top: 1.5rem; }
figure { margin: 0; }
.cover {
  max-width: 29rem; width: 100%; justify-self: center; padding: clamp(.65rem, 1.4vw, 1rem);
  background: #fffdf7; border: 1px solid #e1d5c3; border-radius: 1.2rem;
  box-shadow: 0 22px 48px #5d3c2521; 
}
.cover img { aspect-ratio: 4/5; object-fit: contain; background: #e9e1d4; border-radius: .62rem; }
.cover-placeholder { aspect-ratio: 4/5; display: grid; place-items: center; border-radius: .62rem; background: #dfd2bd; color: var(--green); }
.cover-placeholder span { font: clamp(3rem, 10vw, 8rem)/1 var(--serif); letter-spacing: -.1em; }
figcaption { font-size: .86rem; color: var(--muted); padding: .65rem .25rem .1rem; }
.cover img, .gallery img, .review img { display: block; width: 100%; user-select: none; -webkit-touch-callout: none; -webkit-user-drag: none; }
.section { padding: clamp(2.5rem, 5.5vw, 5rem) 0; border-top: 1px solid var(--line); scroll-margin-top: 1rem; }
.section-intro { color: var(--muted); max-width: 41rem; margin: 0 0 1.65rem; }
.contribute { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(1.5rem, 7vw, 6rem); }
.contribute form {
  padding: clamp(1rem, 3vw, 2rem); background: var(--card); border: 1px solid var(--line); border-radius: 1.15rem;
}
.gallery, .stories { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 1.25rem; }
.gallery figure, .stories article, .review {
  border: 1px solid var(--line); border-radius: .9rem; background: var(--card); padding: 1.1rem;
}
.gallery img, .review img { border-radius: .45rem; }
.review { margin-top: 1rem; }
.review img { max-width: 320px; }
.stories h3, .review h3 { margin-top: 0; }
.copy { white-space: pre-wrap; overflow-wrap: anywhere; }
.button, button {
  display: inline-block; width: max-content; max-width: 100%; padding: .7rem 1.2rem;
  border: 1px solid var(--green); border-radius: .65rem; background: var(--green); color: #fff;
  font: 600 .95rem/1.5 system-ui, sans-serif; text-decoration: none; cursor: pointer;
}
.button:hover, button:hover { background: #283c2e; }
button:disabled { opacity: .58; cursor: default; }
.secondary { color: var(--green); background: transparent; }
.secondary:hover { color: white; }
form { display: grid; gap: .9rem; max-width: 42rem; }
.inline { display: flex; flex-wrap: wrap; align-items: end; gap: .75rem; }
label { display: grid; gap: .3rem; font-weight: 600; }
.check { display: flex; align-items: baseline; font-weight: 400; }
input, textarea {
  padding: .65rem; max-width: 100%; color: inherit; font: inherit;
  background: #fffdf8; border: 1px solid #aaa38f; border-radius: .5rem;
}
input[type=file] { width: 100%; }
:focus-visible { outline: 3px solid #985e32; outline-offset: 3px; }
.locked { min-height: 100svh; display: grid; place-items: center; }
.lock-card {
  width: min(100%, 34rem); padding: clamp(1.5rem, 5vw, 3rem); background: var(--card);
  border: 1px solid var(--line); border-radius: 1.3rem; box-shadow: 0 16px 38px #5d3c251a;
}
.lock-card h1 { font-size: clamp(2.55rem, 7vw, 4.3rem); }
@media (max-width: 700px) {
  .hero, .contribute { grid-template-columns: 1fr; }
  .hero { gap: 2.25rem; }
  .cover { max-width: 23rem; justify-self: start; }
  footer a { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.brand {
  color: var(--green);
  font-family: "Segoe Script", "Snell Roundhand", "Apple Chancery", "Lucida Handwriting", cursive;
  font-size: clamp(1.65rem, 4vw, 2.25rem);
  line-height: 1.35;
  letter-spacing: -.045em;
}

.zh { display: block; color: inherit; font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif; font-size: .91em; line-height: 1.5; margin-top: .25em; letter-spacing: 0; text-transform: none; }
h1 .zh { font-size: .32em; font-weight: 600; margin: .18em 0 .35em; }
h2 .zh, h3 .zh { font-size: .55em; }
label .zh { margin-top: 0; }
.check { display: block; }
.check .zh { padding-left: 1.25rem; }
[role="status"], .notice { white-space: pre-line; }
nav a .zh { font-size: .78em; }
button .zh, .button .zh { font-size: .85em; }

.cover {
  position: relative;
  box-shadow: 0 2px 0 #d7c5ac, 0 7px 0 -2px #eadbc7, 0 24px 42px -12px #49312347;
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .cover {
    transform: perspective(1050px) rotateY(-5deg) rotateX(2deg);
    transition: transform 380ms ease, box-shadow 380ms ease;
  }
  .cover:hover {
    transform: perspective(1050px) rotateY(3deg) rotateX(-2deg);
    box-shadow: 0 2px 0 #d7c5ac, 0 7px 0 -2px #eadbc7, 0 29px 46px -12px #49312352;
  }
}

h1 .memorial-calligraphy {
  color: var(--green);
  font-family: "STKaiti", "Kaiti SC", "KaiTi", "楷体", "DFKai-SB", "BiauKai", cursive;
  font-size: clamp(1.6rem, 3.8vw, 3.2rem);
  font-weight: 400;
  letter-spacing: .085em;
  line-height: 1.35;
}
