:root {
  --ink: #151512;
  --paper: #f4f1e8;
  --paper-deep: #e7dfd1;
  --muted: #6d675e;
  --rule: rgba(21, 21, 18, 0.16);
  --rule-strong: rgba(21, 21, 18, 0.34);
  --rust: #b24b37;
  --moss: #5e6b53;
  --clay: #c99161;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--paper);
}

body {
  display: flex;
  flex-direction: column;
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.45;
}

main {
  flex: 1;
  background:
    linear-gradient(90deg, var(--rule) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(0deg, rgba(21, 21, 18, 0.08) 1px, transparent 1px) 0 0 / 48px 48px,
    var(--paper);
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  border-bottom: 1px solid var(--rule);
  background: rgba(244, 241, 232, 0.78);
  padding: 0 clamp(18px, 4vw, 56px);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-size: 15px;
  font-weight: 650;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid currentColor;
  background: var(--ink);
  color: var(--paper);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1;
}

.site-nav {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.site-nav a {
  border-bottom: 1px solid transparent;
  padding-bottom: 4px;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  border-color: currentColor;
  color: var(--ink);
}

.hero {
  position: relative;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.72fr);
  gap: clamp(28px, 7vw, 96px);
  min-height: min(820px, calc(100svh - 92px));
  overflow: hidden;
  padding: clamp(118px, 16vh, 180px) clamp(18px, 4vw, 56px)
    clamp(54px, 8vw, 88px);
}

#line-field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero::before,
.hero::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.hero::before {
  top: 72px;
  bottom: 0;
  left: clamp(18px, 4vw, 56px);
  width: 1px;
  background: var(--rule);
}

.hero::after {
  right: clamp(18px, 7vw, 110px);
  bottom: clamp(120px, 16vw, 210px);
  width: clamp(140px, 18vw, 260px);
  height: clamp(140px, 18vw, 260px);
  border: 1px solid var(--rule-strong);
  border-radius: 50%;
}

.hero-kicker {
  position: absolute;
  z-index: 2;
  top: 96px;
  right: clamp(18px, 4vw, 56px);
  left: clamp(18px, 4vw, 56px);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 14px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  text-transform: uppercase;
}

.hero-copy {
  position: relative;
  z-index: 2;
  align-self: end;
  padding-left: clamp(22px, 4vw, 64px);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--rust);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 900px;
  margin: 0;
  font-family: Georgia, "Times New Roman", "Noto Serif SC", serif;
  font-size: clamp(5.5rem, 15vw, 14.5rem);
  font-weight: 450;
  letter-spacing: 0;
  line-height: 0.88;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.hero-title {
  max-width: min(100%, 980px);
  font-size: clamp(4.2rem, 9.6vw, 9.4rem);
  line-height: 0.92;
  overflow-wrap: normal;
  word-break: keep-all;
}

.hero-title span {
  display: block;
}

.portrait {
  position: relative;
  z-index: 2;
  align-self: center;
  width: min(100%, 400px);
  margin: 0;
  justify-self: end;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 14px 0;
}

.portrait::before,
.portrait::after {
  position: absolute;
  right: -20px;
  left: -20px;
  height: 1px;
  background: var(--rule);
  content: "";
}

.portrait::before {
  top: 28px;
}

.portrait::after {
  bottom: 28px;
}

.portrait img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rule-strong);
  object-fit: contain;
  object-position: 50% 50%;
  filter: saturate(0.82) contrast(1.02);
}

.line-stack {
  position: absolute;
  z-index: 1;
  right: clamp(18px, 4vw, 56px);
  bottom: clamp(58px, 8vw, 96px);
  left: clamp(18px, 4vw, 56px);
  display: grid;
  gap: clamp(8px, 1.2vw, 15px);
  opacity: 0.68;
}

.line-stack span {
  display: block;
  width: var(--w, 100%);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ink), transparent);
}

.line-stack span:nth-child(1) {
  --w: 66%;
}

.line-stack span:nth-child(2) {
  --w: 82%;
}

.line-stack span:nth-child(3) {
  --w: 52%;
}

.line-stack span:nth-child(4) {
  --w: 74%;
}

.line-stack span:nth-child(5) {
  --w: 44%;
}

.resume-section {
  position: relative;
  border-top: 1px solid var(--ink);
  background:
    linear-gradient(90deg, rgba(94, 107, 83, 0.08), transparent 40%),
    linear-gradient(0deg, rgba(178, 75, 55, 0.045), transparent 48%),
    var(--paper);
}

.resume-section::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: clamp(18px, 4vw, 56px);
  width: 1px;
  background: var(--rule);
  content: "";
}

.resume-shell,
.hobbies-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(260px, 0.74fr) minmax(0, 1.26fr);
  gap: clamp(34px, 7vw, 96px);
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto;
  padding: clamp(70px, 10vw, 122px) 0 clamp(78px, 11vw, 136px);
}

.resume-heading,
.hobbies-heading,
.contact-heading {
  max-width: 390px;
}

.resume-heading h2,
.hobbies-heading h2,
.contact-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", "Noto Serif SC", serif;
  font-size: clamp(2.4rem, 5vw, 5.2rem);
  font-weight: 450;
  letter-spacing: 0;
  line-height: 0.95;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.bilingual-title span {
  display: block;
}

.bilingual-title span + span {
  margin-top: 0.14em;
  color: rgba(21, 21, 18, 0.74);
  font-size: 0.52em;
  line-height: 1.08;
}

.resume-heading p:last-child,
.hobbies-summary {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.22rem);
}

.profile-summary span,
.hobbies-summary span {
  display: block;
}

.profile-summary span + span,
.hobbies-summary span + span {
  margin-top: 12px;
  color: rgba(21, 21, 18, 0.68);
}

.resume-content {
  border-top: 1px solid var(--ink);
}

.resume-block {
  display: grid;
  grid-template-columns: minmax(220px, 0.38fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 54px);
  border-bottom: 1px solid var(--rule-strong);
  padding: clamp(30px, 5vw, 54px) 0;
}

.resume-block-heading {
  display: grid;
  align-content: start;
  gap: 10px;
}

.resume-block-heading > span {
  color: var(--rust);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
}

.resume-block-heading h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.38rem, 1.75vw, 1.7rem);
  font-weight: 450;
  letter-spacing: 0;
  line-height: 1;
  overflow-wrap: normal;
  word-break: normal;
}

.resume-block-heading h3 span {
  display: block;
}

.resume-block-heading h3 span + span {
  margin-top: 8px;
  color: var(--muted);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 0.48em;
  font-weight: 650;
  line-height: 1.2;
}

.resume-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.resume-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(92px, 0.28fr) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 42px);
  border-top: 1px solid var(--rule);
  padding: 22px 0 24px;
}

.resume-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.resume-item::before {
  position: absolute;
  top: 29px;
  left: 0;
  width: 7px;
  height: 7px;
  border: 1px solid var(--ink);
  background: var(--clay);
  content: "";
  transform: translateX(-18px);
}

.resume-item:first-child::before {
  top: 7px;
}

.resume-period {
  color: var(--moss);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.resume-item h4 {
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.62rem);
  font-weight: 720;
  letter-spacing: 0;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.resume-item p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.4vw, 1.08rem);
}

.resume-points {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.resume-points li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.35vw, 1.06rem);
}

.resume-points li::before {
  position: absolute;
  top: 0.64em;
  left: 0;
  width: 7px;
  height: 1px;
  background: var(--rust);
  content: "";
}

.writing-section {
  position: relative;
  border-top: 1px solid var(--ink);
  background:
    linear-gradient(90deg, rgba(94, 107, 83, 0.07), transparent 42%),
    linear-gradient(0deg, rgba(201, 145, 97, 0.07), transparent 50%),
    var(--paper);
}

.writing-section::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: clamp(18px, 4vw, 56px);
  width: 1px;
  background: var(--rule);
  content: "";
}

.writing-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(260px, 0.74fr) minmax(0, 1.26fr);
  gap: clamp(34px, 7vw, 96px);
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto;
  padding: clamp(70px, 10vw, 122px) 0 clamp(78px, 11vw, 136px);
}

.writing-heading {
  max-width: 410px;
}

.writing-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", "Noto Serif SC", serif;
  font-size: 4.7rem;
  font-weight: 450;
  letter-spacing: 0;
  line-height: 0.95;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.writing-summary {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.16rem;
}

.writing-summary span {
  display: block;
}

.writing-summary span + span {
  margin-top: 12px;
  color: rgba(21, 21, 18, 0.68);
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: 34px;
  border-bottom: 1px solid currentColor;
  padding-bottom: 8px;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.3;
  text-transform: uppercase;
}

.section-link::after {
  width: 44px;
  height: 1px;
  background: currentColor;
  content: "";
}

.section-link:hover,
.section-link:focus-visible {
  color: var(--rust);
}

.section-link:focus-visible {
  outline: 1px solid var(--rust);
  outline-offset: 6px;
}

.writing-list {
  display: grid;
  margin: 0;
  border-top: 1px solid var(--ink);
  padding: 0;
  list-style: none;
}

.writing-item {
  border-bottom: 1px solid var(--rule-strong);
}

.writing-link {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: clamp(18px, 3vw, 42px);
  min-height: 148px;
  padding: 28px 0 30px;
}

.writing-link:hover .writing-title,
.writing-link:focus-visible .writing-title {
  color: var(--rust);
}

.writing-link:focus-visible {
  outline: 1px solid var(--rust);
  outline-offset: 8px;
}

.writing-number,
.writing-era,
.blog-note-tags span,
.blog-year-heading span,
.article-aside,
.tag-list li,
.article-pager span {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.3;
  text-transform: uppercase;
}

.writing-number {
  color: var(--rust);
}

.writing-copy {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.writing-era {
  color: var(--moss);
}

.writing-title {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", "Noto Serif SC", serif;
  font-size: 1.7rem;
  font-weight: 450;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.writing-subtitle {
  max-width: 760px;
  color: var(--moss);
  font-size: 1.02rem;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.writing-excerpt {
  max-width: 660px;
  color: var(--muted);
  font-size: 1rem;
}

.writing-excerpt-secondary {
  color: rgba(21, 21, 18, 0.56);
}

.hobbies-section {
  position: relative;
  border-top: 1px solid var(--ink);
  background:
    linear-gradient(90deg, rgba(201, 145, 97, 0.08), transparent 38%),
    linear-gradient(0deg, rgba(94, 107, 83, 0.055), transparent 48%),
    var(--paper);
}

.hobbies-section::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: clamp(18px, 4vw, 56px);
  width: 1px;
  background: var(--rule);
  content: "";
}

.hobbies-list {
  display: grid;
  margin: 0;
  border-top: 1px solid var(--ink);
  padding: 0;
  list-style: none;
}

.hobby-item {
  display: grid;
  grid-template-columns: minmax(42px, 0.12fr) minmax(0, 1fr) auto;
  gap: clamp(18px, 3.4vw, 46px);
  align-items: start;
  border-bottom: 1px solid var(--rule-strong);
  padding: clamp(30px, 5vw, 54px) 0;
}

.hobby-number {
  color: var(--rust);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}

.hobby-copy h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", "Noto Serif SC", serif;
  font-size: clamp(1.42rem, 2.1vw, 2.15rem);
  font-weight: 450;
  letter-spacing: 0;
  line-height: 1;
}

.hobby-copy h3 span {
  display: block;
}

.hobby-copy h3 span + span {
  margin-top: 8px;
  color: var(--muted);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 0.48em;
  font-weight: 650;
  line-height: 1.2;
}

.hobby-copy p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.35vw, 1.08rem);
}

.hobby-copy p span {
  display: block;
}

.hobby-copy p span + span {
  margin-top: 8px;
  color: rgba(21, 21, 18, 0.68);
}

.hobby-media-button {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  min-height: 31px;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  padding: 0 0 7px;
  color: var(--moss);
  cursor: pointer;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.3;
  text-transform: uppercase;
}

.hobby-dashboard-link {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  min-height: 31px;
  border-bottom: 1px solid currentColor;
  padding: 0 0 7px;
  color: var(--moss);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
}

.hobby-dashboard-link:hover,
.hobby-dashboard-link:focus-visible {
  color: var(--ink);
}

.hobby-dashboard-link:focus-visible {
  outline: 1px solid var(--rust);
  outline-offset: 6px;
}

.hobby-media-button:hover,
.hobby-media-button:focus-visible,
.hobby-media-button[aria-expanded="true"] {
  color: var(--ink);
}

.hobby-media-button:focus-visible {
  outline: 1px solid var(--rust);
  outline-offset: 6px;
}

.hobby-media {
  grid-column: 2 / -1;
  width: min(100%, 560px);
  border-top: 1px solid var(--rule);
  padding-top: clamp(16px, 2vw, 22px);
}

.hobby-media img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(68vh, 760px);
  margin: 0 auto;
  border: 1px solid var(--rule-strong);
  background: var(--paper);
  object-position: 50% 50%;
  filter: saturate(0.92) contrast(1.02);
}

.contact-section {
  position: relative;
  border-top: 1px solid var(--ink);
  background:
    linear-gradient(90deg, rgba(178, 75, 55, 0.06), transparent 38%),
    linear-gradient(0deg, rgba(94, 107, 83, 0.055), transparent 48%),
    var(--paper);
}

.contact-section::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: clamp(18px, 4vw, 56px);
  width: 1px;
  background: var(--rule);
  content: "";
}

.contact-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(260px, 0.74fr) minmax(0, 1.26fr);
  gap: clamp(34px, 7vw, 96px);
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto;
  padding: clamp(62px, 8vw, 104px) 0 clamp(68px, 9vw, 116px);
}

.contact-list {
  display: grid;
  margin: 0;
  border-top: 1px solid var(--rule);
  padding: 0;
  list-style: none;
}

.contact-list li {
  border-bottom: 1px solid var(--rule);
}

.contact-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(14px, 2.8vw, 34px);
  width: 100%;
  min-height: 66px;
  padding: 17px 0;
}

button.contact-link {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.contact-link:hover .contact-action,
.contact-link:focus-visible .contact-action {
  color: var(--ink);
}

.contact-link:focus-visible {
  outline: 1px solid var(--rust);
  outline-offset: 6px;
}

.contact-label,
.contact-action {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.3;
  text-transform: uppercase;
}

.contact-label {
  color: var(--rust);
  min-width: 0;
  overflow-wrap: anywhere;
}

.contact-action {
  color: var(--moss);
  justify-self: end;
}

.contact-email[data-revealed="true"] .contact-label {
  color: var(--ink);
  text-transform: none;
}

.blog-page .blog-main {
  padding-top: 72px;
}

.blog-hero,
.article-hero {
  position: relative;
  border-bottom: 1px solid var(--ink);
  background:
    linear-gradient(90deg, rgba(178, 75, 55, 0.06), transparent 34%),
    linear-gradient(0deg, rgba(94, 107, 83, 0.07), transparent 56%),
    var(--paper);
}

.blog-hero::before,
.article-hero::before,
.blog-index-section::before,
.article-shell::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: clamp(18px, 4vw, 56px);
  width: 1px;
  background: var(--rule);
  content: "";
}

.blog-hero-shell,
.article-hero-shell,
.blog-index-shell,
.article-shell,
.article-pager {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto;
}

.blog-hero-shell {
  min-height: 430px;
  padding: 86px 0 82px;
}

.blog-hero h1,
.article-title {
  max-width: 1120px;
  margin: 0;
  font-family: Georgia, "Times New Roman", "Noto Serif SC", serif;
  font-size: 6.8rem;
  font-weight: 450;
  letter-spacing: 0;
  line-height: 0.92;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.blog-hero-summary,
.article-summary {
  max-width: 720px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.32rem;
}

.blog-hero-meta,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.blog-hero-meta span,
.tag-list li {
  border: 1px solid var(--rule-strong);
  background: rgba(244, 241, 232, 0.62);
  padding: 8px 10px;
  color: var(--moss);
}

.blog-index-section {
  position: relative;
  background: var(--paper);
}

.blog-index-shell {
  display: grid;
  gap: 0;
  padding: 72px 0 108px;
}

.blog-year-group {
  display: grid;
  grid-template-columns: minmax(190px, 0.35fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 72px);
  border-top: 1px solid var(--ink);
  padding: 38px 0 0;
}

.blog-year-group + .blog-year-group {
  margin-top: 54px;
}

.blog-year-heading {
  display: grid;
  align-content: start;
  gap: 12px;
}

.blog-year-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", "Noto Serif SC", serif;
  font-size: 2.2rem;
  font-weight: 450;
  line-height: 1;
}

.blog-year-heading span {
  color: var(--moss);
}

.blog-note-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.blog-note-list li {
  border-bottom: 1px solid var(--rule);
}

.blog-note-list li:first-child {
  border-top: 1px solid var(--rule);
}

.blog-note-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 0.34fr);
  gap: clamp(22px, 4vw, 58px);
  padding: 28px 0;
}

.blog-note-link:hover .blog-note-title,
.blog-note-link:focus-visible .blog-note-title {
  color: var(--rust);
}

.blog-note-link:focus-visible {
  outline: 1px solid var(--rust);
  outline-offset: 8px;
}

.blog-note-copy {
  display: grid;
  gap: 10px;
}

.blog-note-title {
  font-family: Georgia, "Times New Roman", "Noto Serif SC", serif;
  font-size: 1.55rem;
  font-weight: 450;
  line-height: 1.12;
}

.blog-note-subtitle {
  color: var(--moss);
  font-size: 1rem;
  line-height: 1.42;
}

.blog-note-summary {
  color: var(--muted);
  font-size: 1rem;
}

.blog-note-summary-secondary {
  color: rgba(21, 21, 18, 0.56);
}

.blog-note-tags {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  justify-content: flex-end;
  gap: 8px;
}

.blog-note-tags span {
  border-bottom: 1px solid var(--rule-strong);
  padding-bottom: 5px;
  color: var(--moss);
}

.article-hero-shell {
  padding: 68px 0 58px;
}

.article-hero .section-link {
  margin-top: 0;
  margin-bottom: 42px;
}

.article-title {
  font-size: 4.6rem;
}

.article-title-en {
  max-width: 980px;
  margin: 20px 0 0;
  color: var(--moss);
  font-size: 1.52rem;
  font-weight: 600;
  line-height: 1.24;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.article-summary {
  max-width: 820px;
  font-size: 1.22rem;
}

.article-summary-en {
  max-width: 820px;
  margin: 12px 0 0;
  color: rgba(21, 21, 18, 0.58);
  font-size: 1.06rem;
  line-height: 1.5;
}

.article-shell {
  display: grid;
  grid-template-columns: minmax(180px, 0.28fr) minmax(0, 0.72fr);
  gap: clamp(34px, 7vw, 96px);
  padding: 64px 0 92px;
}

.article-shell::before {
  left: 0;
}

.article-aside {
  position: sticky;
  top: 104px;
  display: grid;
  align-content: start;
  gap: 16px;
  height: fit-content;
  color: var(--moss);
}

.article-aside a {
  width: fit-content;
  border-bottom: 1px solid currentColor;
  color: var(--rust);
}

.article-content {
  max-width: 780px;
  min-width: 0;
  color: rgba(21, 21, 18, 0.86);
  font-family: Georgia, "Times New Roman", "Noto Serif SC", serif;
  font-size: 1.14rem;
  line-height: 1.72;
}

.article-content h2 {
  margin: 2.1em 0 0.72em;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 1.5rem;
  font-weight: 760;
  line-height: 1.18;
}

.article-content h3,
.article-content h4 {
  margin: 1.8em 0 0.62em;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 760;
  line-height: 1.24;
}

.article-content h3 {
  font-size: 1.18rem;
}

.article-content h4 {
  font-size: 1.04rem;
}

.article-content h2:first-child {
  margin-top: 0;
}

.article-content p {
  margin: 0 0 1.16em;
}

.article-content a {
  border-bottom: 1px solid rgba(178, 75, 55, 0.42);
  color: var(--rust);
}

.article-content strong {
  color: var(--ink);
  font-weight: 760;
}

.article-content ul,
.article-content ol {
  display: grid;
  gap: 0.46em;
  margin: 0 0 1.35em;
  padding-left: 1.2em;
}

.article-content code {
  background: rgba(21, 21, 18, 0.08);
  padding: 0.08em 0.28em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9em;
}

.article-content pre {
  overflow-x: auto;
  margin: 0 0 1.45em;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: rgba(21, 21, 18, 0.06);
  padding: 18px;
  font-size: 0.9rem;
  line-height: 1.55;
}

.article-content pre code {
  background: transparent;
  padding: 0;
  font-size: inherit;
}

.article-content figure {
  margin: 1.9em 0 0.9em;
}

.article-content figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: #fff;
}

.markdown-table-scroll {
  overflow-x: auto;
  margin: 0 0 1.55em;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.3);
}

.article-content table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 0.9rem;
  line-height: 1.45;
}

.article-content th,
.article-content td {
  border-bottom: 1px solid var(--rule);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}

.article-content th {
  background: rgba(94, 107, 83, 0.08);
  color: var(--ink);
  font-weight: 760;
}

.article-content tr:last-child td {
  border-bottom: 0;
}

.article-pager {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 4vw, 54px);
  border-top: 1px solid var(--ink);
  padding: 28px 0 78px;
}

.article-pager a {
  display: grid;
  gap: 8px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 18px;
}

.article-pager a:last-child {
  text-align: right;
}

.article-pager span {
  color: var(--moss);
}

.article-pager strong {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", "Noto Serif SC", serif;
  font-size: 1.2rem;
  font-weight: 450;
  line-height: 1.18;
}

.article-pager a:hover strong,
.article-pager a:focus-visible strong {
  color: var(--rust);
}

.article-pager a:focus-visible {
  outline: 1px solid var(--rust);
  outline-offset: 8px;
}

.error-hero {
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.48fr);
}

.error-copy {
  max-width: 1060px;
}

.error-copy h1 {
  font-size: clamp(8rem, 24vw, 22rem);
}

.error-note {
  max-width: 520px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.15rem, 2vw, 1.7rem);
}

.home-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: 38px;
  border-bottom: 1px solid currentColor;
  padding-bottom: 8px;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.home-link::after {
  width: 44px;
  height: 1px;
  background: currentColor;
  content: "";
}

.error-mark {
  position: relative;
  z-index: 2;
  align-self: center;
  justify-self: end;
  display: grid;
  width: min(100%, 390px);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 18px 0;
  color: rgba(21, 21, 18, 0.72);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4rem, 8vw, 8rem);
  line-height: 0.9;
}

.error-mark::before,
.error-mark::after {
  position: absolute;
  right: -20px;
  left: -20px;
  height: 1px;
  background: var(--rule);
  content: "";
}

.error-mark::before {
  top: 34px;
}

.error-mark::after {
  bottom: 34px;
}

.error-mark span:nth-child(2) {
  justify-self: end;
  color: var(--rust);
}

.site-footer {
  position: relative;
  z-index: 3;
  flex-shrink: 0;
  border-top: 1px solid var(--rule);
  background: var(--ink);
  color: rgba(244, 241, 232, 0.76);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  width: min(1240px, calc(100% - 44px));
  margin: 0 auto;
  padding: 24px 0;
  font-size: 14px;
}

.footer-inner p {
  margin: 0;
}

.footer-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}

.footer-credit {
  color: rgba(244, 241, 232, 0.52);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.footer-credit::before {
  padding-right: 14px;
  color: rgba(244, 241, 232, 0.28);
  content: "/";
}

.beian-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 18px;
}

.beian-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.beian-links a:hover,
.beian-links a:focus-visible {
  color: var(--paper);
}

@media (max-width: 860px) {
  .site-header {
    position: absolute;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 122px;
  }

  .hero-kicker {
    top: 86px;
  }

  .hero-copy {
    align-self: start;
    padding-left: 18px;
  }

  .portrait {
    justify-self: start;
    width: min(100%, 360px);
    margin-left: 18px;
  }

  .error-mark {
    justify-self: start;
    width: min(100%, 430px);
    margin-left: 18px;
  }

  .hero::after {
    top: 52%;
    right: -86px;
    bottom: auto;
  }

  .line-stack {
    bottom: 34px;
  }

  .resume-shell,
  .writing-shell,
  .hobbies-shell,
  .contact-shell {
    grid-template-columns: 1fr;
    width: min(100% - 36px, 1180px);
  }

  .resume-heading,
  .writing-heading,
  .hobbies-heading,
  .contact-heading {
    max-width: 680px;
  }

  .writing-heading h2 {
    font-size: 3.6rem;
  }

  .resume-block {
    grid-template-columns: 1fr;
  }

  .resume-item {
    padding-left: 18px;
  }

  .resume-item::before {
    left: 0;
    transform: none;
  }

  .resume-item:first-child::before {
    top: 6px;
  }

  .hobby-item {
    grid-template-columns: minmax(34px, auto) minmax(0, 1fr);
  }

  .hobby-media-button,
  .hobby-dashboard-link,
  .hobby-media {
    grid-column: 2;
    justify-self: start;
  }

  .blog-hero-shell {
    min-height: 360px;
    padding-top: 72px;
    padding-bottom: 64px;
  }

  .blog-hero h1 {
    font-size: 4.8rem;
  }

  .blog-year-group,
  .article-shell {
    grid-template-columns: 1fr;
  }

  .blog-note-link {
    grid-template-columns: 1fr;
  }

  .blog-note-tags {
    justify-content: flex-start;
  }

  .article-title {
    font-size: 3.35rem;
  }

  .article-title-en {
    font-size: 1.28rem;
  }

  .article-aside {
    position: static;
    display: flex;
    flex-wrap: wrap;
  }

  .footer-inner {
    display: grid;
    justify-content: start;
  }

  .beian-links {
    justify-content: start;
  }
}

@media (max-width: 420px) {
  .brand > span:last-child {
    display: none;
  }
}

@media (max-width: 520px) {
  .site-header {
    gap: 12px;
    min-height: 64px;
    padding-right: 16px;
    padding-left: 16px;
  }

  .brand {
    gap: 8px;
    font-size: 14px;
  }

  .site-nav {
    gap: 9px;
    font-size: 9px;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
    font-size: 16px;
  }

  .hero {
    gap: 34px;
    padding-right: 16px;
    padding-bottom: 78px;
    padding-left: 16px;
  }

  .hero-kicker {
    right: 16px;
    left: 16px;
  }

  .hero-copy,
  .portrait {
    margin-left: 0;
    padding-left: 0;
  }

  h1 {
    font-size: clamp(4.45rem, 26vw, 7.2rem);
  }

  .hero-title {
    font-size: clamp(3.35rem, 17vw, 5rem);
  }

  .portrait {
    width: min(46vw, 180px);
  }

  .resume-shell,
  .writing-shell,
  .hobbies-shell,
  .contact-shell {
    width: min(100% - 32px, 1180px);
    padding-top: 58px;
    padding-bottom: 72px;
  }

  .writing-heading h2 {
    font-size: 2.8rem;
  }

  .writing-summary {
    font-size: 1rem;
  }

  .writing-link {
    grid-template-columns: 1fr;
    gap: 10px;
    min-height: 0;
  }

  .writing-title {
    font-size: 1.38rem;
  }

  .writing-subtitle,
  .blog-note-subtitle {
    font-size: 0.95rem;
  }

  .resume-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .hobby-item {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .hobby-media-button,
  .hobby-media {
    grid-column: 1;
  }

  .blog-page .blog-main {
    padding-top: 64px;
  }

  .blog-hero-shell,
  .article-hero-shell,
  .blog-index-shell,
  .article-shell,
  .article-pager {
    width: min(100% - 32px, 1180px);
  }

  .blog-hero-shell {
    min-height: 300px;
    padding-top: 52px;
    padding-bottom: 56px;
  }

  .blog-hero h1 {
    font-size: 3.45rem;
  }

  .blog-hero-summary,
  .article-summary {
    font-size: 1rem;
  }

  .blog-index-shell {
    padding-top: 52px;
    padding-bottom: 72px;
  }

  .blog-year-heading h2 {
    font-size: 1.8rem;
  }

  .blog-note-title {
    font-size: 1.28rem;
  }

  .article-hero-shell {
    padding-top: 48px;
  }

  .article-title {
    font-size: 2.55rem;
  }

  .article-title-en {
    font-size: 1.08rem;
  }

  .article-content {
    font-size: 1.02rem;
  }

  .article-content table {
    min-width: 640px;
  }

  .article-pager {
    grid-template-columns: 1fr;
  }

  .article-pager a:last-child {
    text-align: left;
  }

  .error-mark {
    width: 82%;
    margin-left: 0;
  }

  .portrait::before,
  .portrait::after,
  .error-mark::before,
  .error-mark::after {
    right: -12px;
    left: -12px;
  }

  .footer-inner {
    width: min(100% - 32px, 1240px);
    font-size: 13px;
  }
}

@media (max-width: 390px) {
  .brand span:last-child {
    display: none;
  }

  .site-nav {
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
