/* ── Reset ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Tokens ────────────────────────────────────── */
:root {
  --paper:    #f6f2ea;      /* off-white, 米色 */
  --paper-2:  #ede7db;
  --ink:      #221f1c;      /* 深墨 */
  --ink-2:    #4a453e;      /* 次级文字 */
  --ink-3:    #837c72;      /* 弱文字 */
  --line:     #d6cfc2;
  --accent:   #b7452b;      /* 朱砂 */
  --accent-2: #8f3520;
  --shadow:   0 1px 2px rgba(34,31,28,.04), 0 8px 24px -12px rgba(34,31,28,.12);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper:   #1a1815;
    --paper-2: #24211d;
    --ink:     #e7e2d6;
    --ink-2:   #b8b1a3;
    --ink-3:   #7d766a;
    --line:    #34302a;
    --accent:  #e88670;
    --accent-2:#f3a892;
    --shadow:  0 1px 2px rgba(0,0,0,.3), 0 8px 24px -12px rgba(0,0,0,.5);
  }
}

/* ── Base ──────────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
  font-family: "Inter", "Noto Serif SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  padding: 0 24px;
}

main {
  max-width: 640px;
  margin: 0 auto;
  padding: 80px 0 120px;
}

/* ── Site head ─────────────────────────────────── */
.site-head {
  margin-bottom: 96px;
}
.mark {
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .02em;
  color: var(--ink-2);
}

/* ── Hero ──────────────────────────────────────── */
.hero { margin-bottom: 88px; }
.eyebrow {
  color: var(--accent);
  font-size: .95rem;
  letter-spacing: .04em;
  margin-bottom: 20px;
}
h1 {
  font-family: "Fraunces", "Noto Serif SC", serif;
  font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 24px;
}
h1 em {
  font-family: "Noto Serif SC", "Fraunces", serif;
  font-style: normal;
  font-weight: 700;
  color: var(--accent);
  position: relative;
  padding: 0 2px;
}
h1 em::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 4px;
  height: 8px;
  background: linear-gradient(180deg, transparent 60%, rgba(183,69,43,.18) 60%);
  z-index: -1;
}
.lede {
  font-family: "Fraunces", "Noto Serif SC", serif;
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--ink-2);
  max-width: 32em;
}

/* ── Sections ──────────────────────────────────── */
section { margin-bottom: 72px; }
section:last-of-type { margin-bottom: 40px; }

h2 {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 20px;
}

section p {
  font-size: 1.02rem;
  color: var(--ink-2);
  margin-bottom: 12px;
}
section p:last-child { margin-bottom: 0; }

.quiet { color: var(--ink-3); }
.tiny  { font-size: .9rem; }

.mono {
  font-family: "SF Mono", "JetBrains Mono", "Menlo", ui-monospace, monospace;
  font-size: .95em;
  color: var(--ink);
  background: var(--paper-2);
  padding: 1px 6px;
  border-radius: 4px;
  margin: 0 2px;
}

/* ── Now list ──────────────────────────────────── */
.now ul { list-style: none; }
.now li {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.now li:last-child { border-bottom: none; }
.now .dot {
  flex-shrink: 0;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 12px;
  box-shadow: 0 0 0 4px rgba(183,69,43,.15);
}
@media (prefers-color-scheme: dark) {
  .now .dot { box-shadow: 0 0 0 4px rgba(232,134,112,.15); }
}
.now .soon .dot {
  background: transparent;
  border: 2px solid var(--ink-3);
  box-shadow: none;
  width: 8px; height: 8px;
}
.now li strong {
  font-family: "Fraunces", "Noto Serif SC", serif;
  font-weight: 600;
  color: var(--ink);
  font-size: 1.05rem;
}
.now li p {
  font-size: .95rem;
  color: var(--ink-3);
  margin-top: 2px;
}

/* ── Contact / mail button ─────────────────────── */
.mail {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "SF Mono", "JetBrains Mono", ui-monospace, monospace;
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 16px;
  margin-top: 4px;
  cursor: pointer;
  transition: border-color .2s, transform .1s, background .2s;
  box-shadow: var(--shadow);
}
.mail:hover {
  border-color: var(--accent);
}
.mail:active { transform: translateY(1px); }

.mail-hint {
  font-family: "Inter", sans-serif;
  font-size: .8rem;
  color: var(--ink-3);
  padding-left: 12px;
  border-left: 1px solid var(--line);
}
.mail.copied {
  background: rgba(183,69,43,.08);
  border-color: var(--accent);
}
.mail.copied .mail-hint {
  color: var(--accent);
}

.contact .tiny { margin-top: 12px; }
.contact a {
  color: var(--ink-2);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--line);
  transition: text-decoration-color .2s, color .2s;
}
.contact a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

/* ── Footer ────────────────────────────────────── */
footer {
  margin-top: 96px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: .85rem;
}

/* ── Fade in ───────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .8s ease, transform .8s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* ── Small screens ─────────────────────────────── */
@media (max-width: 520px) {
  main { padding: 56px 0 80px; }
  .site-head { margin-bottom: 64px; }
  .hero { margin-bottom: 64px; }
  section { margin-bottom: 56px; }
  .mail { flex-wrap: wrap; padding: 10px 14px; }
  .mail-hint { padding-left: 0; border-left: none; }
}
