:root {
  --ink: #222725;
  --muted: #656e69;
  --accent: #087566;
  --line: #dfe5e1;
  --soft: #f4f7f5;
  --paper: #fff;
  --header: 76px;
  --measure: 1180px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-padding-top: 100px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.65 -apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
  -webkit-text-size-adjust: 100%;
}

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

a:hover {
  color: var(--accent);
}

button,
input {
  font: inherit;
}

button,
a,
input,
summary {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: wait;
}

a,
button {
  touch-action: manipulation;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}

::selection {
  background: #c9e8dc;
  color: #163d33;
}

img {
  max-width: 100%;
  height: auto;
}

svg {
  width: 22px;
  height: 22px;
  flex: none;
  vertical-align: middle;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  line-height: 1.35;
  overflow-wrap: anywhere;
}

h1 {
  font-size: 44px;
}

h2 {
  font-size: 30px;
}

h3 {
  font-size: 23px;
}

button {
  color: inherit;
}

small {
  font-size: 12px;
}

.content-width,
.header-inner,
.footer-inner {
  width: min(var(--measure),calc(100% - 96px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #fffffff5;
  border-bottom: 1px solid var(--line);
}

.header-inner {
  height: var(--header);
  display: flex;
  align-items: center;
  gap: 44px;
}

.wordmark {
  font-size: 29px;
  font-weight: 800;
  line-height: 1;
}

.wordmark-dot {
  color: var(--accent);
}

.desktop-nav {
  display: flex;
  gap: 32px;
  margin-left: auto;
  font-size: 14px;
}

.desktop-nav a {
  padding: 8px 0;
}

.desktop-nav [aria-current] {
  color: var(--accent);
  box-shadow: 0 2px var(--accent);
}

.header-tools {
  display: flex;
  gap: 6px;
}

.icon-button {
  width: 44px;
  height: 44px;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border-radius: 4px;
  flex: none;
}

.icon-button:hover {
  background: var(--soft);
  color: var(--accent);
}

.menu-toggle {
  display: none;
}

.mobile-nav {
  border-top: 1px solid var(--line);
  padding: 12px 20px 20px;
}

.mobile-nav a {
  display: block;
  padding: 12px;
}

.mobile-nav[hidden] {
  display: none;
}

.js-only {
  display: none;
}

.js-ready .js-only {
  display: inline-flex;
}

.js-ready .menu-toggle {
  display: none;
}

.skip-link {
  position: fixed;
  left: 20px;
  top: -100px;
  z-index: 100;
  background: white;
  padding: 12px;
}

.skip-link:focus {
  top: 12px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 14px;
}

.home-intro {
  padding: 66px 0 40px;
}

.home-intro h1 {
  font-size: 56px;
  font-weight: 650;
  line-height: 1.23;
}

.intro-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 26px;
  gap: 24px;
}

.intro-bottom p {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.8;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 0;
  flex: none;
}

.text-link svg {
  width: 18px;
  height: 18px;
}

.landscape {
  height: 260px;
  position: relative;
  overflow: hidden;
  background: #304c46;
}

.landscape img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 54%;
  display: block;
}

.landscape:after {
  content: "";
  position: absolute;
  inset: 0;
  background: #0002;
}

.landscape p {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font: 26px/1.8 "Songti SC","STSong",serif;
  color: #fff;
  text-shadow: 0 1px 5px #0008;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 30px;
}

.section-heading .eyebrow {
  margin-bottom: 8px;
}

.works-section {
  padding: 68px 0 0;
  scroll-margin-top: 24px;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
}

.work-item {
  padding: 28px 28px 28px 0;
  display: block;
}

.work-item+.work-item {
  border-left: 1px solid var(--line);
  padding-left: 28px;
}

.work-number {
  font-size: 12px;
  color: var(--muted);
}

.work-item h3 {
  font-size: 26px;
  line-height: 1.35;
  margin: 18px 0;
}

.work-item h3 svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

.work-item p {
  font-size: 14px;
  line-height: 1.85;
  color: var(--muted);
}

.recognition {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
  padding-top: 18px;
  flex-wrap: wrap;
}

.writing-section {
  padding: 72px 0 80px;
}

.article-row {
  display: grid;
  grid-template-columns: 110px minmax(0,1fr) 24px;
  gap: 28px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.article-row time {
  font-size: 13px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  padding-top: 7px;
}

.article-row h2,
.article-row h3 {
  font-size: 23px;
  font-weight: 600;
}

.article-row p {
  font-size: 14px;
  color: var(--muted);
  margin: 12px 0;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.row-arrow {
  padding-top: 5px;
  color: var(--muted);
}

.row-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 12px;
  color: var(--accent);
}

.row-topics a {
  padding-block: 4px;
}

.page-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 40px;
  font-size: 14px;
}

.page-nav>* {
  min-width: 40px;
  height: 40px;
  padding: 6px 12px;
  text-align: center;
}

.page-nav .current {
  background: var(--accent);
  color: white;
}

.topic-filter {
  margin-bottom: 28px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}

.topic-filter summary {
  cursor: pointer;
  font-size: 14px;
}

.topic-links {
  display: flex;
  gap: 12px 24px;
  flex-wrap: wrap;
  padding: 20px 0 4px;
}

.topic-links a {
  font-size: 14px;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.topic-links [aria-current] {
  color: var(--accent);
  text-decoration: underline;
}

.topic-links small {
  color: var(--muted);
}

.tag-links {
  border-top: 1px solid var(--line);
  margin-top: 16px;
  color: var(--muted);
}

.site-footer {
  background: var(--soft);
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  padding: 44px 0 22px;
}

.footer-inner p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 18px;
}

.footer-inner nav {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  font-size: 13px;
  flex-wrap: wrap;
}

.footer-bottom {
  grid-column: 1/-1;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}

.post-layout {
  width: min(1120px,calc(100% - 96px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0,800px) 240px;
  column-gap: 64px;
  padding: 60px 0 80px;
  align-items: start;
}

.post-heading {
  position: relative;
  grid-column: 1;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}

.post-heading>.text-link {
  color: var(--accent);
  margin-bottom: 22px;
}

.post-heading h1 {
  font-size: 40px;
  line-height: 1.4;
  font-weight: 650;
  margin-bottom: 22px;
}

.post-meta {
  display: flex;
  gap: 12px 24px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 12px;
}

.post-heading .share-button {
  position: absolute;
  right: 0;
  top: 0;
  color: var(--muted);
}

.share-status:not(:empty) {
  position: static;
  clip: auto;
  width: auto;
  height: auto;
  font-size: 12px;
  color: var(--accent);
}

.post-column {
  grid-column: 1;
  min-width: 0;
}

.post-outline {
  grid-column: 2;
  grid-row: 1/3;
  position: sticky;
  top: 112px;
  font-size: 13px;
  max-height: calc(100dvh - 140px);
  overflow: auto;
  overscroll-behavior: contain;
  border-left: 1px solid var(--line);
  padding-left: 24px;
}

.post-outline summary {
  font-weight: 600;
  cursor: pointer;
  padding-bottom: 14px;
  font-size: 14px;
}

.post-outline ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.post-outline ul ul {
  padding-left: 14px;
}

.post-outline a {
  display: block;
  padding: 6px 0;
  color: var(--muted);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.post-outline a.active {
  color: var(--accent);
  font-weight: 600;
}

.post-outline .outline-top {
  margin-top: 20px;
  color: var(--accent);
}

.reading-progress {
  position: absolute;
  bottom: -1px;
  left: 0;
  height: 2px;
  width: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}

.article-entry {
  font-size: 18px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}

.article-entry>* {
  max-width: 100%;
}

.article-entry p {
  margin: 0 0 24px;
}

.article-entry h1,
.article-entry h2,
.article-entry h3,
.article-entry h4 {
  margin: 42px 0 20px;
  line-height: 1.5;
  scroll-margin-top: 100px;
}

.article-entry>h1:first-child,
.article-entry>h2:first-child {
  margin-top: 0;
}

.article-entry h1 {
  font-size: 30px;
}

.article-entry h2 {
  font-size: 28px;
}

.article-entry h3 {
  font-size: 23px;
}

.article-entry h4 {
  font-size: 20px;
}

.article-entry ul,
.article-entry ol {
  padding-left: 1.5em;
  margin-bottom: 24px;
}

.article-entry li {
  margin: 8px 0;
}

.article-entry li p {
  margin-bottom: 8px;
}

.article-entry a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: #9ec4bc;
  text-underline-offset: 4px;
}

.article-entry blockquote {
  margin: 28px 0;
  padding: 10px 24px;
  border-left: 3px solid var(--accent);
  background: var(--soft);
  color: #4a5750;
}

.article-entry blockquote p:last-child {
  margin-bottom: 0;
}

.article-entry hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 36px 0;
}

.article-entry img {
  display: block;
  margin: 28px auto;
  height: auto;
  max-width: 100%;
}

.article-entry img[data-preview] {
  cursor: zoom-in;
}

.article-entry a.image-link {
  display: block;
}

.article-entry code {
  font-family: ui-monospace,SFMono-Regular,Consolas,"Liberation Mono",monospace;
  font-size: .86em;
  background: var(--soft);
  padding: 2px 5px;
  border-radius: 3px;
}

.article-entry pre {
  font: 14px/1.75 ui-monospace,SFMono-Regular,Consolas,"Liberation Mono",monospace;
  white-space: pre;
  overflow: auto;
  margin: 0;
  padding: 22px;
  background: #f3f6f4;
  color: #253c32;
  tab-size: 4;
}

.article-entry pre code {
  font: inherit;
  padding: 0;
  background: none;
}

.article-entry figure.highlight {
  margin: 28px 0;
  border: 1px solid var(--line);
  overflow: auto;
  background: #f3f6f4;
}

.highlight table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
}

.highlight td {
  padding: 0;
  border: 0;
}

.highlight .gutter {
  user-select: none;
  min-width: 36px;
  border-right: 1px solid var(--line);
  color: #7d8882;
}

.highlight .gutter pre {
  padding-inline: 12px;
  text-align: right;
}

.highlight .code {
  width: 100%;
}

.highlight .comment {
  color: #68766d;
}

.highlight .keyword,
.highlight .selector-tag {
  color: #864175;
}

.highlight .string,
.highlight .number,
.highlight .literal {
  color: #0b7564;
}

.highlight .title,
.highlight .built_in {
  color: #225f95;
}

.code-shell {
  position: relative;
  margin: 28px 0;
}

.code-shell>figure.highlight {
  margin: 0;
}

.code-shell>.copy-code {
  position: sticky;
  left: 100%;
  top: 4px;
  display: flex;
  margin: 0 4px 4px auto;
  width: 36px;
  height: 32px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 4px;
  align-items: center;
  justify-content: center;
}

.copy-code svg {
  width: 16px;
  height: 16px;
}

.copy-status {
  position: absolute;
  right: 46px;
  top: 3px;
  font-size: 12px;
  background: white;
}

.table-scroll {
  overflow: auto;
  max-width: 100%;
  margin: 24px 0;
}

.article-entry table:not(.highlight table) {
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.6;
  min-width: 100%;
}

.article-entry th,
.article-entry td {
  border: 1px solid var(--line);
  padding: 12px;
  text-align: left;
}

.article-entry th {
  background: var(--soft);
}

.article-entry .highlight td {
  padding: 0;
  border: 0;
}

.article-entry iframe,
.article-entry embed,
.article-entry object {
  max-width: 100%;
  border: 1px solid var(--line);
}

.article-entry .headerlink {
  display: none;
}

.note {
  padding: 18px;
  background: var(--soft);
  border-left: 3px solid var(--accent);
  font-size: 14px;
  margin: 24px 0;
}

.note p {
  margin: 0;
}

.post-author-panel {
  margin-top: 56px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
  font-size: 14px;
}

.post-author-panel p {
  color: var(--muted);
  margin: 10px 0;
}

.post-author-panel nav {
  display: flex;
  gap: 24px;
  color: var(--accent);
  font-size: 13px;
}

.post-paginator {
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin: 32px 0 48px;
}

.post-paginator li {
  min-width: 0;
}

.post-paginator li>div {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
}

.post-paginator a {
  font-weight: 600;
  line-height: 1.6;
  display: block;
  overflow-wrap: anywhere;
}

.post-comment {
  border-top: 1px solid var(--line);
  padding-top: 28px;
  font-size: 14px;
}

.comment-lazy-button {
  border: 1px solid var(--accent);
  background: white;
  color: var(--accent);
  padding: 10px 18px;
  border-radius: 4px;
}

.comment-lazy-hint {
  font-size: 13px;
  color: var(--muted);
  margin: 12px 0;
}

.license-wrapper {
  font-size: 13px;
  overflow-wrap: anywhere;
  color: var(--muted);
  margin: 24px 0;
}

.about-page {
  padding: 64px 0 80px;
}

.about-heading {
  padding-bottom: 36px;
  border-bottom: 1px solid var(--ink);
}

.about-heading h1 {
  font-size: 40px;
}

.about-hero-panel {
  display: grid;
  grid-template-columns: minmax(0,1fr) 260px;
  gap: 80px;
  padding: 44px 0;
  align-items: center;
}

.about-hero-panel h2 {
  margin-bottom: 20px;
}

.about-hero-panel p {
  margin: 16px 0;
  font-size: 17px;
  line-height: 1.95;
  color: #4c5750;
}

.about-hero-panel__wall img {
  display: block;
  width: 260px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 4px;
}

.about-proof-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 40px;
  border-top: 1px solid var(--line);
  padding: 32px 0;
}

.about-proof-grid strong {
  font-size: 17px;
}

.about-proof-grid p {
  font-size: 14px;
  line-height: 1.9;
  color: var(--muted);
  margin-top: 12px;
}

.about-section {
  padding: 44px 0;
  border-top: 1px solid var(--line);
}

.about-section__head {
  margin-bottom: 28px;
}

.about-section__head>span,
.about-contact>div>span {
  font-size: 12px;
  color: var(--accent);
}

.about-section__head h3,
.about-contact h3 {
  font-size: 28px;
  margin-top: 8px;
}

.about-section__head p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 14px;
}

.about-work-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 48px;
}

.about-work-list a {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.about-work-list span {
  display: block;
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 10px;
}

.about-work-list strong {
  font-size: 21px;
}

.about-work-list p {
  font-size: 14px;
  margin-top: 12px;
  color: var(--muted);
}

.about-section--split {
  display: grid;
  grid-template-columns: 260px minmax(0,1fr);
  gap: 60px;
}

.about-focus {
  line-height: 1.9;
}

.about-focus ul {
  padding-left: 20px;
}

.about-focus li {
  margin: 8px 0;
}

.about-gallery {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 24px;
}

.about-gallery img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  background: var(--soft);
  cursor: zoom-in;
}

.about-contact {
  border-top: 1px solid var(--ink);
  padding-top: 40px;
}

.about-contact>div>p {
  font-size: 15px;
  color: var(--muted);
  max-width: 680px;
  margin-top: 16px;
}

.about-contact__links {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 28px;
  margin-top: 32px;
}

.about-contact__links small {
  color: var(--accent);
  display: block;
}

.about-contact__links strong {
  display: block;
  margin: 8px 0;
}

.about-contact__links em {
  font-size: 12px;
  font-style: normal;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.not-found {
  padding: 100px 0;
  min-height: 60vh;
}

.not-found p {
  margin: 20px 0;
}

.not-found a {
  margin-right: 30px;
}

dialog {
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 24px 100px #0003;
  max-width: calc(100% - 32px);
  max-height: calc(100dvh - 48px);
}

dialog::backdrop {
  background: #15291f99;
  backdrop-filter: blur(4px);
}

body:has(dialog[open]) {
  overflow: hidden;
}

.dialog-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
  background: white;
  position: sticky;
  top: 0;
  z-index: 2;
}

.dialog-toolbar h2 {
  font-size: 20px;
}

.search-dialog {
  width: 720px;
  min-height: 240px;
}

.search-form {
  display: flex;
  align-items: center;
  margin: 20px;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.search-form input {
  width: 100%;
  min-width: 0;
  border: 0;
  padding: 14px;
  background: transparent;
  color: var(--ink);
}

.search-status {
  font-size: 13px;
  color: var(--muted);
  padding: 0 20px 20px;
}

.search-results {
  padding: 0 20px 20px;
}

.search-result {
  display: block;
  border-top: 1px solid var(--line);
  padding: 18px 0;
}

.search-result strong {
  font-size: 17px;
}

.search-result p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
  overflow-wrap: anywhere;
}

.image-dialog {
  width: calc(100% - 48px);
  height: calc(100dvh - 48px);
}

.image-tools {
  display: flex;
  flex: none;
}

.image-caption {
  font-size: 14px;
  overflow-wrap: anywhere;
}

.image-stage {
  height: calc(100% - 104px);
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.image-stage img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.image-stage.zoomed {
  display: block;
}

.image-stage.zoomed img {
  max-width: none;
  max-height: none;
  width: auto;
  height: auto;
}

.image-status {
  font-size: 13px;
  color: var(--muted);
  padding: 8px 20px;
}

@media (min-width:1600px) {
  :root {
    --measure: 1320px;
  }

  .home-intro {
    padding-top: 76px;
  }

  .landscape {
    height: 300px;
  }

  .post-layout {
    width: 1180px;
    grid-template-columns: 820px 260px;
    column-gap: 80px;
  }
}

@media (max-width:1100px) {
  .post-layout {
    column-gap: 32px;
    grid-template-columns: minmax(0,1fr) 200px;
  }

  .post-outline {
    padding-left: 18px;
  }

  .about-hero-panel {
    gap: 40px;
  }

  .about-contact__links {
    grid-template-columns: 1fr 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-inner nav {
    gap: 20px;
  }

  .work-item h3 {
    font-size: 23px;
  }
}

@media (max-width:800px) {
  :root {
    --header: 64px;
  }

  .content-width,
  .header-inner,
  .footer-inner {
    width: calc(100% - 40px);
  }

  .header-inner {
    gap: 16px;
  }

  .wordmark {
    font-size: 26px;
  }

  .desktop-nav {
    gap: 20px;
    font-size: 13px;
  }

  .header-tools {
    margin-left: auto;
  }

  .js-ready .desktop-nav {
    display: none;
  }

  .js-ready .menu-toggle {
    display: inline-flex;
  }

  .home-intro {
    padding: 40px 0 32px;
  }

  .home-intro h1 {
    font-size: 40px;
  }

  .intro-bottom {
    margin-top: 22px;
    align-items: flex-start;
  }

  .intro-bottom p {
    font-size: 15px;
  }

  .landscape {
    height: 220px;
  }

  .landscape p {
    font-size: 24px;
  }

  .works-section {
    padding-top: 44px;
  }

  .section-heading {
    align-items: flex-start;
    margin-bottom: 22px;
  }

  .section-heading h2,
  .section-heading h1 {
    font-size: 28px;
  }

  .section-heading .text-link {
    font-size: 12px;
  }

  .works-grid {
    grid-template-columns: 1fr;
  }

  .work-item,
  .work-item+.work-item {
    padding: 22px 0;
    border-left: 0;
  }

  .work-item+.work-item {
    border-top: 1px solid var(--line);
  }

  .work-item h3 {
    font-size: 24px;
    margin: 12px 0;
  }

  .work-item h3 br {
    display: none;
  }

  .work-item p {
    max-width: 560px;
  }

  .recognition {
    font-size: 11px;
  }

  .writing-section {
    padding: 48px 0;
  }

  .article-row {
    grid-template-columns: minmax(0,1fr) 24px;
    gap: 8px 14px;
    padding: 24px 0;
  }

  .article-row time {
    grid-column: 1;
    grid-row: 1;
    padding: 0;
    font-size: 12px;
  }

  .article-row>div {
    grid-column: 1;
    grid-row: 2;
  }

  .row-arrow {
    grid-column: 2;
    grid-row: 2;
  }

  .article-row h2,
  .article-row h3 {
    font-size: 21px;
  }

  .article-row p {
    font-size: 13px;
  }

  .post-layout {
    width: calc(100% - 40px);
    display: flex;
    flex-direction: column;
    padding: 32px 0 48px;
  }

  .post-heading {
    width: 100%;
    padding-bottom: 24px;
    margin-bottom: 20px;
  }

  .post-heading h1 {
    font-size: 30px;
    line-height: 1.45;
  }

  .post-heading>.text-link {
    margin-bottom: 16px;
  }

  .post-meta {
    font-size: 12px;
    gap: 8px 18px;
  }

  .post-outline {
    position: static;
    max-height: none;
    width: 100%;
    padding: 0;
    border-left: 0;
    border-bottom: 1px solid var(--line);
    margin-bottom: 28px;
  }

  .post-outline summary {
    padding: 10px 0 16px;
  }

  .post-outline nav {
    max-height: 50dvh;
    overflow: auto;
  }

  .post-outline .outline-top {
    display: none;
  }

  .post-column {
    width: 100%;
  }

  .article-entry {
    font-size: 17px;
    line-height: 1.85;
  }

  .article-entry h2 {
    font-size: 25px;
  }

  .article-entry h3 {
    font-size: 21px;
  }

  .article-entry pre {
    font-size: 13px;
    padding: 18px;
  }

  .post-paginator {
    gap: 24px;
  }

  .post-paginator a {
    font-size: 15px;
  }

  .post-author-panel nav {
    flex-wrap: wrap;
    gap: 18px;
  }

  .about-page {
    padding: 40px 0;
  }

  .about-heading h1 {
    font-size: 32px;
  }

  .about-hero-panel {
    grid-template-columns: minmax(0,1fr) 140px;
    gap: 24px;
    padding: 32px 0;
  }

  .about-hero-panel h2 {
    font-size: 26px;
  }

  .about-hero-panel p {
    font-size: 15px;
  }

  .about-hero-panel__wall img {
    width: 140px;
  }

  .about-proof-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .about-work-list {
    grid-template-columns: 1fr;
  }

  .about-section--split {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .about-gallery {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .about-gallery img {
    height: 180px;
  }

  .about-contact__links {
    gap: 24px 16px;
  }

  .about-contact__links em {
    font-size: 11px;
  }

  .footer-inner {
    padding-top: 32px;
  }

  .footer-bottom {
    font-size: 11px;
  }

  .image-dialog {
    width: calc(100% - 16px);
    max-width: calc(100% - 16px);
    height: calc(100dvh - 16px);
    max-height: calc(100dvh - 16px);
  }

  .dialog-toolbar {
    padding: 8px 12px;
    gap: 4px;
  }

  .image-caption {
    font-size: 12px;
  }

  .image-stage {
    height: calc(100% - 112px);
  }
}

@media (max-width:480px) {
  .home-intro h1 {
    font-size: 36px;
  }

  .intro-bottom {
    display: block;
  }

  .intro-bottom .text-link {
    margin-top: 12px;
  }

  .landscape {
    height: 190px;
  }

  .landscape p {
    font-size: 22px;
  }

  .section-heading {
    gap: 12px;
  }

  .section-heading h2 {
    font-size: 26px;
  }

  .section-heading .text-link svg {
    display: none;
  }

  .about-hero-panel {
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-start;
  }

  .about-hero-panel__wall img {
    width: 128px;
  }

  .about-contact__links {
    grid-template-columns: 1fr;
  }

  .about-gallery img {
    height: 150px;
  }

  .post-heading h1 {
    font-size: 28px;
  }

  .post-paginator {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .desktop-nav {
    gap: 12px;
  }

  .desktop-nav a {
    font-size: 12px;
  }

  .header-inner {
    gap: 10px;
  }

  .footer-inner p {
    font-size: 12px;
  }

  .footer-inner nav {
    gap: 14px;
  }
}

.copy-code img {
  width: 16px;
  height: 16px;
  margin: 0;
}

.pinned-label {
  display: block;
  color: var(--accent);
  margin-top: 6px;
}

.post-outline ol {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.post-outline ol ol {
  padding-left: 14px;
}

.landscape img {
  object-position: center 40%;
}

@media (prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *:before,
  *:after {
    animation: none!important;
    transition: none!important;
  }
}
