@font-face { font-family: 'IM FELL DW Pica'; src: url('assets/imfell-dwpica.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Special Elite'; src: url('assets/special-elite.woff2') format('woff2'); font-display: swap; }

:root {
  --paper: #fffcf5;
  --ink: #1f1c19;
  --ink-soft: #4a4540;
  --type: 'Special Elite', 'Courier New', monospace;
  --body: 'IM FELL DW Pica', Georgia, serif;
  --system: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans SC', 'PingFang SC', sans-serif;
  --zh: 'Huiwen-mincho', 'Noto Serif SC', 'Songti SC', serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--paper); }
body {
  color: var(--ink);
  font-family: var(--body);
  font-size: 19px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  background: var(--paper) url('assets/wash.jpg') center top / cover no-repeat fixed;
  min-height: 100vh;
}
a { color: inherit; text-underline-offset: 3px; }

/* ---------- Home: the entrance page, a letter ---------- */
.entrance {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 72px 40px;
}
.letter-card {
  width: fit-content;
  max-width: 100%;
}
.tagline {
  font-family: var(--type);
  font-weight: 400;
  font-size: 40px;
  line-height: 48px;
  letter-spacing: 0.8px;
  max-width: 11.5ch;
}
.signature {
  margin-top: 48px;
  text-align: right;
  font-family: var(--type);
  font-size: 18px;
  letter-spacing: 0.4px;
}

/* ---------- Letter sections ---------- */
.letter {
  max-width: 560px;
  margin: 0 auto;
  padding: 24px 40px 72px;
}
.letter h2 {
  font-family: var(--body);
  font-weight: 400;
  font-size: 28px;
  letter-spacing: 0;
  margin: 40px 0 16px;
}
.letter p { margin-bottom: 14px; color: var(--ink); }
.letter .sign { font-family: var(--body); font-weight: 400; color: var(--ink); margin-top: 20px; }

footer {
  max-width: 560px;
  margin: 0 auto;
  padding: 28px 40px 48px;
  border-top: 1px solid rgba(31, 28, 25, 0.18);
  font-family: var(--system);
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-soft);
}
footer nav { margin-top: 6px; }
footer nav a + a { margin-left: 18px; }

/* ---------- Privacy page ---------- */
.page-head { max-width: 680px; margin: 0 auto; padding: 72px 40px 8px; }
.page-head .home { font-family: var(--type); font-size: 17px; letter-spacing: 0.3px; text-decoration: none; }
.page-head h1 { font-family: var(--system); font-weight: 600; font-size: 32px; line-height: 1.2; margin-top: 36px; }
.doc { max-width: 680px; margin: 0 auto; padding: 8px 40px 64px; }
.doc h2 { font-family: var(--system); font-weight: 600; font-size: 20px; margin: 34px 0 10px; }
.doc h3 { font-family: var(--system); font-weight: 600; font-size: 17px; margin: 22px 0 6px; }
.doc p, .doc li { color: var(--ink); margin-bottom: 10px; }
.doc ul { padding-left: 20px; }
.status {
  border: 1.5px solid var(--ink);
  background: rgba(255, 252, 245, 0.78);
  padding: 16px 18px;
  margin: 18px 0 8px;
  font-size: 18px;
}
.status strong { font-weight: 400; }
.draft {
  border-left: 3px solid rgba(31, 28, 25, 0.35);
  padding-left: 18px;
  margin-top: 8px;
}
.stamp {
  display: inline-block;
  font-family: var(--body); font-weight: 400;
  font-size: 13px;
  letter-spacing: 1.5px;
  border: 1.5px solid var(--ink-soft);
  padding: 2px 8px;
  margin: 6px 0 12px;
  transform: rotate(-1.5deg);
}

@media (min-width: 900px) {
  .tagline { font-size: 60px; line-height: 70px; }
  .signature { margin-top: 80px; font-size: 22px; }
  footer { max-width: 1200px; padding-left: 8vw; padding-right: 8vw; display: flex; justify-content: space-between; align-items: baseline; }
  footer nav { margin-top: 0; }
}
@media (min-aspect-ratio: 1/1) {
  body { background-position: center 78%; }
}

em, i { font-style: normal; }

.doc, .doc p, .doc li, .page-head { font-family: var(--system); font-size: 16px; }
.status { font-family: var(--system); font-size: 15px; }
.status strong { font-weight: 600; }
.stamp { font-family: var(--system); font-weight: 600; font-size: 12px; }

.page-head .home { font-family: var(--type); }
