@import url('/brand/wordmark.css');

:root {
  color-scheme: light;
  --paper: #fbf8f4;
  --ink: #2d2230;
  --muted: #5f5263;
  --accent: #714987;
  --tint: #f2eaf5;
  --line: #ded3df;
  font-family: "Aptos", "Noto Sans CJK SC", "Microsoft YaHei", system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.shell { width: min(100% - 3rem, 70rem); margin-inline: auto; }
.skip { position: absolute; top: -6rem; padding: .8rem; background: white; }
.skip:focus { top: .5rem; z-index: 5; }
.site-header { border-bottom: 1px solid var(--line); }
.nav { min-height: 5.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.nav-links, .footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem clamp(.9rem, 3vw, 2rem); }
.nav a, .footer-links a { text-decoration: none; }
.nav a:hover, .footer-links a:hover { text-decoration: underline; text-underline-offset: .3em; }
.lang { padding: .4rem .8rem; border: 1px solid var(--line); border-radius: 4rem; }
.hero { padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(3rem, 6vw, 5.2rem); }
.hero h1, .projects h2, .about h2, .question h2 {
  font-family: Georgia, "Noto Serif CJK SC", "Songti SC", "SimSun", serif;
  font-weight: 500;
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
}
.hero h1 { max-width: 17ch; font-size: clamp(2.6rem, 7vw, 5.6rem); letter-spacing: -.048em; }
:lang(zh-CN) .hero h1 { max-width: 14em; letter-spacing: .02em; line-height: 1.2; }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero p, .about p, .question p { max-width: 42rem; font-size: 1.075rem; line-height: 1.8; color: var(--muted); }
.hero p { margin: 1.45rem 0 1.6rem; }
.button { display: inline-block; padding: .7rem 1.05rem; border-radius: .45rem; background: var(--accent); color: #fff; text-decoration: none; font-weight: 600; line-height: 1.5; }
.button:hover { background: #523065; }
.projects, .about { border-top: 1px solid var(--line); padding: 2.35rem 0 3rem; }
.projects h2, .about h2 { font-size: clamp(1.7rem, 4vw, 2.55rem); margin-bottom: 1.35rem; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.card { display: flex; flex-direction: column; align-items: start; min-width: 0; padding: clamp(1.25rem, 3.25vw, 2.4rem); border: 1px solid var(--line); border-radius: .8rem; background: #fffdfb; }
.card:nth-child(2) { background: var(--tint); }
.card .category { color: var(--accent); margin: 0 0 .9rem; font-size: .95rem; font-weight: 650; }
.card h3 { margin: 0; font-family: Georgia, "Noto Serif CJK SC", "Songti SC", "SimSun", serif; font-size: clamp(1.6rem, 4vw, 2.15rem); font-weight: 500; }
.card p { color: var(--muted); line-height: 1.75; margin: .85rem 0 1.25rem; }
.card a, .about a { color: #603876; font-weight: 650; text-underline-offset: .22em; }
.card a { margin-top: auto; padding-block: .45rem; }
.question { border-top: 1px solid var(--line); padding: 1.65rem 0 2rem; }
.question h2 { font-size: clamp(1.55rem, 4vw, 2.1rem); }
.question summary { cursor: pointer; color: #603876; font-weight: 650; padding-block: .6rem; width: fit-content; }
.question details p { margin-bottom: 0; }
.section-end { margin-bottom: 2.5rem; }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.15rem; padding-block: 1.65rem; color: var(--muted); }
@media (max-width: 44rem) {
  .shell { width: calc(100% - 2rem); }
  .nav { flex-wrap: wrap; padding-block: .85rem; }
  .nav-links { width: 100%; }
  .nav .lang { margin-left: auto; }
  .grid { grid-template-columns: 1fr; }
}
