/* 连誠 · liancheng.one — personal page */

:root {
  --paper: #eeeae1;
  --ink: #1c1814;
  --muted: #6a625a;
  --cinnabar: #921a22;
  --rule: #d4cec3;
}

* { box-sizing: border-box; }

html {
  background: var(--paper);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: "Noto Serif SC", "Noto Serif CJK SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.8;
  font-synthesis: none;
}

main {
  width: min(36rem, calc(100% - 3rem));
  margin: 0 auto;
  padding: 4.75rem 0 2.5rem;
}

.masthead {
  text-align: center;
  margin: 0 0 2.4rem;
}

.masthead.compact {
  margin-bottom: 1.8rem;
}

.seal {
  display: block;
  width: 7rem;
  height: 7rem;
  margin: 0 auto 2rem;
  border-radius: 2px;
}

h1 {
  margin: 0 0 0.4rem;
  font-size: clamp(2.1rem, 5vw, 2.7rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  text-align: center;
}

.masthead.compact h1 {
  letter-spacing: 0.18em;
  text-indent: 0.18em;
  font-size: clamp(1.8rem, 4.5vw, 2.2rem);
}

.roman {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-align: center;
}

.roman a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
}

.roman a:hover { color: var(--cinnabar); }

.bio {
  margin: 0 0 0.4rem;
  text-align: justify;
  text-justify: inter-ideograph;
  text-wrap: pretty;
  font-size: 1.02rem;
}

.bio p { margin: 0 0 1.05em; }
.bio p:last-child { margin-bottom: 0; }

.block {
  margin: 2.3rem 0 0;
  padding-top: 1.4rem;
  border-top: 1px solid var(--rule);
}

h2 {
  margin: 0 0 0.7rem;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.block p {
  margin: 0;
  text-align: justify;
  text-justify: inter-ideograph;
  text-wrap: pretty;
}

.more {
  margin-top: 0.85rem !important;
  text-align: left !important;
}

.more a,
nav a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--cinnabar);
  padding-bottom: 0.08rem;
}

.more a:hover,
nav a:hover { color: var(--cinnabar); }

.more a:focus-visible,
nav a:focus-visible,
.roman a:focus-visible {
  outline: 2px solid var(--cinnabar);
  outline-offset: 3px;
}

.creds {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.98rem;
  line-height: 1.95;
}

.creds li { margin: 0; }

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.85rem 1.6rem;
  margin-top: 2.5rem;
}

footer {
  margin-top: 1rem;
  padding: 2rem 0 2.8rem;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-align: center;
}

footer p { margin: 0; }

@media (max-width: 520px) {
  body { font-size: 17px; }
  main { padding-top: 3.4rem; }
  .bio,
  .block p { text-align: left; }
}
