:root {
  color-scheme: light;
  --paper: #f6f6f0;
  --ink: #142627;
  --line: #d2d7d0;
  --edge: clamp(1.25rem, 6vw, 6rem);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid #e79942; outline-offset: 5px; }
.masthead { background: var(--paper); }
.masthead-inner, .cover-inner, .practice-inner, .footer-inner {
  width: min(100%, 102rem);
  margin-inline: auto;
  padding-inline: var(--edge);
}
.masthead-inner, .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}
.masthead-inner { min-height: 4.6rem; }
.signature, nav { display: inline-flex; align-items: center; }
.signature { gap: .7rem; font: 500 1.03rem/1.2 "Courier Prime", ui-monospace, monospace; }
.signature img { border-radius: 8px; }
nav { gap: clamp(1.1rem, 3.6vw, 3rem); font-size: .9rem; }
nav a:hover, footer a:hover { text-decoration: underline; text-underline-offset: .3em; }
.cover {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(30rem, 66vh, 50rem);
  overflow: hidden;
  background: #172b31;
  color: #fffdf2;
}
.cover-art, .cover::after { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.cover-art { object-fit: cover; object-position: 50% 20%; }
.cover::after {
  content: "";
  background: linear-gradient(90deg, rgba(6,17,21,.79), rgba(6,17,21,.61) 24%, rgba(6,17,21,.12) 68%);
}
.cover-inner { padding-block: clamp(3.5rem, 8vh, 7.5rem); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: "STIX Two Text", Georgia, "Songti SC", "Noto Serif CJK SC", SimSun, serif; font-weight: 500; }
h1 { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: .12em; line-height: 1.04; }
h1 .name { font-style: italic; font-size: clamp(5rem, 11vw, 10.5rem); letter-spacing: -.08em; margin-inline-end: .13em; }
h1 .title { font-size: clamp(3.3rem, 7vw, 6.5rem); letter-spacing: -.045em; }
.cover p { margin-top: 1.65rem; max-width: 30em; line-height: 1.8; font-size: clamp(1rem, 1.5vw, 1.3rem); }
.enter { display: inline-flex; margin-top: 2rem; align-items: center; justify-content: center; padding: .84rem 1.65rem; border-radius: 3px; color: #182525; background: #f5e7c6; font-weight: 600; }
.enter:hover { background: #fff1d4; }
.practice-inner { display: grid; grid-template-columns: minmax(8rem, 1fr) 4fr; align-items: start; gap: 2.5rem; padding-block: clamp(2.7rem, 5vw, 5.4rem); }
.practice-inner h2 { font-size: 1.55rem; }
.subjects { display: grid; grid-template-columns: repeat(3, 1fr); }
.subjects article { border-left: 1px solid var(--line); padding-inline: clamp(1rem, 2.8vw, 3rem); }
.subjects article:last-child { padding-right: 0; }
.subjects h3 { font-size: 1.3rem; }
.subjects p { padding-top: .8rem; font-size: 1rem; color: #4b5853; line-height: 1.85; }
footer { border-top: 1px solid var(--line); }
.footer-inner { min-height: 4.7rem; padding-block: 1rem; font-size: .86rem; color: #505d56; flex-direction: column; justify-content: center; gap: .25rem; text-align: center; }
@media (max-width: 760px) {
  .practice-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .subjects article:first-child { border: none; padding-left: 0; }
}
@media (max-width: 580px) {
  .masthead-inner { min-height: 4rem; }
  .signature { font-size: .89rem; gap: .45rem; }
  .signature img { width: 28px; height: 28px; }
  nav { gap: 1rem; }
  .cover { min-height: 29rem; }
  .cover-art { object-position: 62% center; }
  .cover-inner { padding-block: 3.5rem; }
  h1 { display: grid; row-gap: .32rem; }
  h1 .name { font-size: 5.1rem; }
  .cover p { max-width: 14em; }
  .subjects { grid-template-columns: 1fr; gap: 1.1rem; }
  .subjects article, .subjects article:first-child { border: none; border-top: 1px solid var(--line); padding: 1.1rem 0 0; }
  .subjects p { padding-top: .42rem; }
}
@media (max-width: 360px) { nav a:first-child { display: none; } }
