@import url("/theme.css");
@import url("/admin.css");
:root {
  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
  --sans:
    Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", "Songti SC", "STSong", serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 32px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.75 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
a,
button {
  touch-action: manipulation;
}
img {
  max-width: 100%;
  height: auto;
}
::selection {
  background: var(--selection);
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}
.wrap {
  width: min(1140px, calc(100% - 80px));
  margin-inline: auto;
}
.site-header {
  height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.wordmark {
  font-size: 29px;
  letter-spacing: -1.5px;
  font-weight: 750;
  line-height: 1;
}
.wordmark span {
  color: var(--green);
}
.wordmark.small {
  font-size: 24px;
}
.site-header nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14px;
}
.site-header nav a {
  padding: 12px 0;
  position: relative;
  color: var(--body);
}
.site-header nav a:hover,
.site-header nav a[aria-current] {
  color: var(--green);
}
.site-header nav a[aria-current]:after {
  content: "";
  position: absolute;
  bottom: 3px;
  left: 50%;
  width: 4px;
  height: 4px;
  background: var(--green);
  border-radius: 50%;
}
.nav-rss {
  margin-left: 4px;
  display: flex;
  align-items: center;
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 64px;
  padding: 86px 0 84px;
  align-items: center;
}
.eyebrow,
.mono {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.25px;
  line-height: 1.6;
}
.eyebrow {
  color: var(--muted);
  margin: 0 0 20px;
}
.hero .eyebrow {
  font-size: 10px;
  letter-spacing: 1.5px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.tiny-square {
  width: 6px;
  height: 6px;
  display: inline-block;
  background: var(--green);
}
h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}
h1,
h2,
h3 {
  line-height: 1.4;
}
h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 51px;
  letter-spacing: -1.8px;
  margin: 0 0 28px;
  line-height: 1.4;
}
.intro {
  font-size: 15px;
  color: var(--body);
  line-height: 2.05;
  margin: 0;
}
.hero-links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 32px;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  background: var(--green);
  color: var(--on-accent);
  border: 1px solid var(--green);
  border-radius: 3px;
  font-size: 13px;
  padding: 11px 20px;
  min-height: 44px;
  font-weight: 500;
}
.button:hover {
  background: var(--green-hover);
}
.text-link {
  font-size: 13px;
  display: inline-flex;
  gap: 16px;
  align-items: center;
  min-height: 36px;
}
.text-link:hover {
  color: var(--green);
}
.text-link span {
  transition: transform 0.15s;
}
.text-link:hover span {
  transform: translateX(3px);
}
.hero-note {
  background: var(--surface-alt);
  border: 1px solid var(--line);
  padding: 22px 24px;
  transform: rotate(2deg);
  height: 286px;
  display: flex;
  flex-direction: column;
  box-shadow: 3px 5px 0 var(--shadow);
}
.note-top,
.note-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.note-top {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.note-top .mono {
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--muted);
}
.note-top > span:last-child {
  font-size: 22px;
  color: var(--green);
  line-height: 1;
}
.terminal-art {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-family: var(--mono);
  line-height: 1.4;
}
.terminal-prompt {
  font-size: 11px;
  color: var(--muted);
}
.terminal-art strong {
  font-size: 48px;
  font-weight: 500;
  letter-spacing: -4px;
  color: var(--green);
  padding: 5px 0 6px;
}
.terminal-line {
  font-size: 11px;
  color: var(--muted);
}
.cursor {
  color: var(--green);
}
.note-bottom {
  justify-content: flex-start;
  gap: 8px;
  font-size: 9px;
  color: var(--body);
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.live-dot {
  width: 5px;
  height: 5px;
  background: var(--green);
  border-radius: 50%;
  flex-shrink: 0;
}
.home-content {
  border-top: 1px solid var(--line);
  padding-top: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 64px;
}
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
}
.section-heading .eyebrow {
  font-size: 10px;
  margin-bottom: 8px;
}
.section-heading h2 {
  font-size: 26px;
  letter-spacing: -0.75px;
  margin: 0;
  font-weight: 550;
}
.section-heading > .text-link {
  color: var(--muted);
  font-size: 12px;
}
.small-count {
  font-size: 12px;
  font-family: var(--mono);
  color: var(--muted);
  font-weight: 400;
  margin-left: 12px;
  vertical-align: top;
}
.post-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 32px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}
.post-date {
  display: flex;
  flex-direction: column;
  font-size: 11px;
  color: var(--muted);
  font-family: var(--mono);
  gap: 8px;
  padding-top: 4px;
}
.post-details h3 {
  font-size: 23px;
  letter-spacing: -0.5px;
  margin: 9px 0 8px;
  font-weight: 550;
}
.post-details h3 a {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.post-details h3 a span {
  color: var(--green);
  font-size: 20px;
  opacity: 0;
  transition: opacity 0.15s;
}
.post-details:hover h3 a span,
.post-details h3 a:focus-visible span {
  opacity: 1;
}
.post-details p {
  color: var(--body);
  font-size: 14px;
  line-height: 1.85;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tags a,
.tags span {
  font-size: 10px;
  line-height: 1.65;
  letter-spacing: 0.15px;
  color: var(--green);
  background: var(--soft);
  padding: 2px 7px;
  border-radius: 2px;
}
.tags a:hover {
  background: var(--soft-hover);
}
.compact .post-row {
  grid-template-columns: 95px minmax(0, 1fr);
  gap: 24px;
  padding: 25px 0;
}
.compact .post-details h3 {
  font-size: 20px;
}
.now-note {
  padding: 25px;
  background: var(--surface-alt);
  align-self: start;
  margin-top: 4px;
  border-top: 2px solid var(--line-strong);
}
.now-note .eyebrow {
  font-size: 10px;
  margin-bottom: 12px;
}
.now-note h3 {
  font-family: var(--serif);
  font-size: 25px;
  line-height: 1.6;
  font-weight: 500;
  margin: 0 0 13px;
}
.now-note > p:not(.eyebrow) {
  font-size: 13px;
  line-height: 1.95;
  color: var(--body);
  margin: 0 0 14px;
}
.now-note .text-link {
  font-size: 11px;
  gap: 12px;
}
.note-rule {
  height: 1px;
  background: var(--line);
  margin: 23px 0;
}
.interest-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 12px;
}
.interest-list li + li {
  margin-top: 9px;
}
.interest-list span {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--muted);
  margin-right: 13px;
}
.projects-section {
  padding: 70px 0;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
.project-card {
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  background: var(--surface);
}
.project-art {
  height: 180px;
  position: relative;
  background: var(--soft);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.project-art:before,
.project-art:after {
  content: "";
  position: absolute;
  height: 1px;
  background: var(--line);
  width: 200%;
  transform: rotate(-32deg);
}
.project-art:after {
  transform: rotate(32deg);
}
.project-number {
  position: absolute;
  top: 17px;
  left: 20px;
  font: 9px var(--mono);
  letter-spacing: 1px;
  color: var(--muted);
}
.pixel-grid {
  display: grid;
  grid-template-columns: repeat(5, 9px);
  gap: 3px;
  transform: rotate(-12deg);
  z-index: 1;
}
.pixel-grid i {
  display: block;
  height: 9px;
  background: var(--art-pixel);
}
.pixel-grid i.on {
  background: var(--green);
}
.art-caption {
  font: italic 27px var(--serif);
  letter-spacing: -1px;
  color: var(--green);
  z-index: 1;
  margin-left: 17px;
}
.art-plus {
  position: absolute;
  right: 20px;
  bottom: 12px;
  color: var(--muted);
  font-size: 20px;
}
.project-copy {
  padding: 23px 25px;
}
.project-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.project-title h3 {
  margin: 0;
  font-size: 19px;
  letter-spacing: -0.5px;
}
.project-title h3 a:hover {
  color: var(--green);
}
.project-title h3 span {
  font-size: 17px;
  margin-left: 5px;
}
.status-dot {
  font-size: 9px;
  color: var(--muted);
  white-space: nowrap;
}
.status-dot:before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  background: var(--status-dot);
  border-radius: 50%;
  margin-right: 5px;
}
.project-copy > p {
  font-size: 13px;
  color: var(--body);
  margin: 13px 0 20px;
  line-height: 1.9;
}
.project-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.project-bottom .tags span {
  background: var(--surface-alt);
  color: var(--muted);
  font-size: 9px;
}
.project-bottom .text-link {
  font-size: 11px;
}
.closing-note {
  border-top: 1px solid var(--line);
  padding: 40px 0;
  display: flex;
  align-items: center;
  gap: 20px;
}
.asterisk {
  font-size: 34px;
  line-height: 1;
  color: var(--green);
}
.closing-note p {
  font-size: 16px;
  margin: 0;
}
.closing-note a {
  margin-left: auto;
}
.site-footer {
  border-top: 1px solid var(--line);
  padding: 38px 0 26px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
}
.site-footer > div > p {
  font-size: 11px;
  color: var(--muted);
  margin: 13px 0 0;
}
.footer-links {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  font-size: 11px;
}
.footer-links a:hover {
  color: var(--green);
}
.copyright {
  grid-column: 1/-1;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 10px;
  margin: 15px 0 0;
  font-family: var(--mono);
}
.page-heading {
  padding: 72px 0 42px;
  max-width: 760px;
}
.page-heading .eyebrow {
  margin-bottom: 15px;
  font-size: 10px;
}
.page-heading h1 {
  font-size: 46px;
  margin-bottom: 20px;
}
.heading-dot {
  color: var(--green);
  margin-left: 4px;
}
.page-heading > p:last-child {
  color: var(--body);
  font-size: 15px;
  margin: 0;
}
.blog-controls {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  border-top: 1px solid var(--line);
  padding: 26px 0;
}
.search-form {
  display: flex;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 3px;
  min-width: 300px;
}
.search-form input {
  width: 100%;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: 0;
  padding: 11px 13px;
  font-size: 13px;
}
.search-form button {
  border: 0;
  background: transparent;
  white-space: nowrap;
  font-size: 12px;
  padding: 8px 13px;
  color: var(--green);
}
.filter-tags {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  align-items: center;
}
.filter-tags a {
  border: 1px solid transparent;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 24px;
  min-height: 44px;
  color: var(--muted);
  border-radius: 3px;
}
.filter-tags a.selected {
  color: var(--green);
  background: var(--soft);
  border-color: var(--line);
}
.result-label {
  font-size: 10px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.empty-state {
  padding: 35px 0;
  color: var(--body);
}
.empty-state h3 {
  font-weight: 500;
  font-size: 22px;
  margin: 20px 0 10px;
  font-family: var(--serif);
}
.empty-state p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.9;
}
.editorial-empty {
  padding: 45px 0 35px;
  border-bottom: 1px solid var(--line);
}
.editorial-empty .mono {
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 1.25px;
}
.editorial-empty .text-link {
  font-size: 12px;
  margin-top: 12px;
  color: var(--green);
}
.empty-state.big {
  text-align: center;
  padding: 70px 0 100px;
  min-height: 370px;
}
.empty-state.big > span {
  font-size: 36px;
  color: var(--green);
}
.empty-state.big h2 {
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 500;
}
.pagination {
  padding: 35px 0 60px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-size: 13px;
  color: var(--green);
}
.projects-page {
  padding-bottom: 100px;
}
.projects-page .project-grid {
  border-top: 1px solid var(--line);
  padding-top: 35px;
}
.article-top {
  padding: 35px 0 0;
  color: var(--muted);
}
.article-top a {
  font-size: 12px;
}
.article-header {
  max-width: 790px;
  padding: 45px 0 38px;
}
.article-header h1 {
  font-size: 43px;
  line-height: 1.5;
  letter-spacing: -1px;
  margin: 17px 0;
}
.article-excerpt {
  font-size: 17px;
  color: var(--body);
  line-height: 1.9;
}
.article-meta {
  display: flex;
  gap: 12px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  margin-top: 24px;
}
.article-cover {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  border-radius: 4px;
  margin: 0 0 40px;
}
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 740px) 220px;
  gap: 90px;
  align-items: start;
  border-top: 1px solid var(--line);
  padding-top: 35px;
}
.prose {
  font-size: 17px;
  line-height: 1.95;
  overflow-wrap: anywhere;
  color: var(--body);
  min-width: 0;
}
.prose > :first-child {
  margin-top: 0;
}
.prose h1,
.prose h2,
.prose h3,
.prose h4 {
  font-family: var(--sans);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.5px;
  scroll-margin-top: 30px;
  line-height: 1.6;
}
.prose h1 {
  font-size: 30px;
}
.prose h2 {
  font-size: 26px;
  margin: 48px 0 19px;
}
.prose h3 {
  font-size: 21px;
  margin: 34px 0 14px;
}
.prose p {
  margin: 21px 0;
}
.prose a {
  color: var(--green);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 4px;
}
.prose blockquote {
  margin: 28px 0;
  padding: 5px 25px;
  border-left: 3px solid var(--line-strong);
  color: var(--muted);
  background: var(--soft);
}
.prose code {
  font: 13px/1.7 var(--mono);
  background: var(--soft);
  padding: 3px 6px;
  border-radius: 3px;
  overflow-wrap: anywhere;
}
.prose pre {
  position: relative;
  background: var(--code-bg);
  color: var(--code-text);
  border: 1px solid var(--code-border);
  padding: 25px 22px;
  overflow: auto;
  border-radius: 5px;
  line-height: 1.7;
  margin: 28px 0;
}
.prose pre code {
  background: none;
  padding: 0;
  white-space: pre;
  color: inherit;
  font-size: 12px;
  overflow-wrap: normal;
}
.copy-code {
  position: absolute;
  top: 7px;
  right: 8px;
  border: 1px solid var(--code-border);
  color: var(--code-button-text);
  background: var(--code-button-bg);
  border-radius: 3px;
  font-size: 10px;
  padding: 3px 8px;
}
.prose img {
  display: block;
  border-radius: 4px;
  margin: 30px auto;
}
.prose ul,
.prose ol {
  padding-left: 26px;
}
.prose li {
  padding-left: 3px;
  margin: 7px 0;
}
.prose hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 40px 0;
}
.prose table {
  display: block;
  overflow: auto;
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
}
.prose th,
.prose td {
  border: 1px solid var(--line);
  padding: 10px 15px;
  text-align: left;
}
.prose th {
  background: var(--soft);
}
.toc {
  position: sticky;
  top: 30px;
  font-size: 12px;
  padding-top: 8px;
}
.toc summary {
  font-size: 11px;
  color: var(--muted);
  list-style: none;
  letter-spacing: 1px;
  padding-bottom: 13px;
}
.toc nav {
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding-left: 16px;
}
.toc a {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}
.toc a:hover {
  color: var(--green);
}
.toc a.sub {
  padding-left: 12px;
}
.article-end {
  text-align: center;
  padding: 70px 0;
}
.article-end > span {
  color: var(--green);
  font-size: 30px;
}
.article-end p {
  font-size: 14px;
}
.article-end .text-link {
  color: var(--muted);
}
.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 720px) 260px;
  gap: 90px;
  border-top: 1px solid var(--line);
  padding: 40px 0 100px;
}
.about-card {
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--surface);
  align-self: start;
}
.letter-avatar {
  font-family: var(--serif);
  font-size: 78px;
  color: var(--green);
  background: var(--soft);
  text-align: center;
  line-height: 1.7;
  margin-bottom: 28px;
}
.letter-avatar span {
  color: var(--amber);
}
.about-card .eyebrow {
  font-size: 10px;
  margin-bottom: 14px;
}
.about-card > a {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  border-top: 1px solid var(--line);
  padding: 12px 0;
}
.about-card > a:hover {
  color: var(--green);
}
.skip-link {
  position: absolute;
  top: -70px;
  left: 20px;
  background: var(--green);
  color: var(--on-accent);
  padding: 10px 20px;
  z-index: 100;
}
.skip-link:focus {
  top: 15px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (min-width: 1200px) {
  .project-grid:has(.project-card:only-child) {
    grid-template-columns: minmax(0, 1fr);
  }
  .project-grid > .project-card:only-child {
    display: grid;
    grid-template-columns: 40% 1fr;
  }
  .project-grid > .project-card:only-child .project-art {
    height: 220px;
  }
  .project-grid > .project-card:only-child .project-copy {
    padding: 37px;
  }
}
@media (max-width: 1000px) {
  .wrap {
    width: calc(100% - 56px);
  }
  .hero {
    grid-template-columns: minmax(0, 1fr) 235px;
    gap: 28px;
  }
  h1 {
    font-size: 43px;
  }
  .hero-note {
    padding: 20px;
    height: 263px;
  }
  .home-content {
    grid-template-columns: minmax(0, 1fr) 230px;
    gap: 36px;
  }
  .article-layout,
  .about-layout {
    grid-template-columns: minmax(0, 1fr) 190px;
    gap: 40px;
  }
  .art-caption {
    font-size: 22px;
  }
  .project-copy {
    padding: 20px;
  }
  .project-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
  .blog-controls {
    flex-direction: column;
    gap: 15px;
  }
  .search-form {
    width: 100%;
  }
  .filter-tags {
    width: 100%;
  }
}
@media (max-width: 720px) {
  .wrap {
    width: calc(100% - 40px);
  }
  .site-header {
    height: 82px;
  }
  .wordmark {
    font-size: 25px;
  }
  .site-header nav {
    gap: 21px;
    font-size: 12px;
  }
  .nav-rss {
    display: none !important;
  }
  .hero {
    display: block;
    padding: 54px 0 50px;
  }
  .hero .eyebrow {
    font-size: 8px;
    letter-spacing: 1.05px;
  }
  h1 {
    font-size: 36px;
    line-height: 1.48;
    letter-spacing: -1.5px;
  }
  .intro {
    font-size: 14px;
    line-height: 2;
  }
  .hero-links {
    gap: 20px;
    margin-top: 28px;
  }
  .hero-note {
    display: none;
  }
  .home-content {
    grid-template-columns: 1fr;
    padding-top: 35px;
    gap: 32px;
  }
  .section-heading {
    gap: 12px;
    margin-bottom: 12px;
  }
  .section-heading h2 {
    font-size: 23px;
  }
  .section-heading > .text-link {
    font-size: 11px;
    gap: 7px;
    white-space: nowrap;
  }
  .section-heading .eyebrow {
    font-size: 9px;
  }
  .now-note {
    margin-top: 0;
    padding: 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 25px;
  }
  .now-note > .eyebrow:first-child {
    grid-column: 1/-1;
  }
  .now-note h3 {
    font-size: 23px;
    margin: 0;
    grid-row: 2/4;
  }
  .now-note > p:not(.eyebrow) {
    font-size: 12px;
    margin: 0;
  }
  .now-note > .text-link {
    grid-column: 2;
    align-self: end;
    margin-top: 8px;
  }
  .now-note > .note-rule,
  .now-note > .eyebrow:not(:first-child),
  .now-note > .interest-list {
    display: none;
  }
  .projects-section {
    padding: 49px 0;
  }
  .project-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .project-art {
    height: 177px;
  }
  .project-copy {
    padding: 23px;
  }
  .project-title {
    flex-direction: row;
    align-items: center;
  }
  .project-title h3 {
    font-size: 18px;
  }
  .project-copy > p {
    font-size: 13px;
  }
  .compact .post-row,
  .post-row {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 23px 0;
  }
  .post-date {
    flex-direction: row;
    gap: 12px;
    font-size: 10px;
    padding: 0;
  }
  .post-date span:before {
    content: "·";
    margin-right: 12px;
  }
  .post-details h3,
  .compact .post-details h3 {
    font-size: 20px;
    margin-top: 10px;
  }
  .post-details h3 a span {
    opacity: 1;
    font-size: 16px;
  }
  .post-details p {
    font-size: 13px;
  }
  .closing-note {
    padding: 28px 0;
    gap: 13px;
    flex-wrap: wrap;
  }
  .closing-note p {
    font-size: 14px;
  }
  .closing-note .asterisk {
    font-size: 28px;
  }
  .closing-note a {
    margin-left: 40px;
    font-size: 11px;
    margin-top: -7px;
  }
  .site-footer {
    padding: 30px 0 23px;
  }
  .footer-links {
    gap: 16px;
    font-size: 10px;
  }
  .copyright {
    font-size: 8px;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 8px;
  }
  .page-heading {
    padding: 46px 0 31px;
  }
  .page-heading h1 {
    font-size: 34px;
    letter-spacing: -1.2px;
    margin-bottom: 17px;
  }
  .page-heading > p:last-child {
    font-size: 13px;
  }
  .page-heading .eyebrow {
    font-size: 9px;
  }
  .blog-controls {
    padding: 20px 0 15px;
    gap: 13px;
  }
  .filter-tags {
    gap: 4px;
  }
  .filter-tags a {
    padding: 7px 10px;
    font-size: 11px;
  }
  .empty-state.big {
    padding: 55px 0 75px;
  }
  .empty-state.big h2 {
    font-size: 23px;
  }
  .empty-state.big p {
    font-size: 12px;
  }
  .article-top {
    padding-top: 23px;
  }
  .article-header {
    padding: 28px 0;
  }
  .article-header h1 {
    font-size: 31px;
  }
  .article-excerpt {
    font-size: 15px;
  }
  .article-meta {
    font-size: 10px;
  }
  .article-layout {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-top: 25px;
  }
  .article-layout .toc {
    order: -1;
    position: static;
    border: 1px solid var(--line);
    padding: 14px 18px;
    width: 100%;
  }
  .toc summary {
    padding: 0;
    font-size: 12px;
    list-style: revert;
    cursor: pointer;
  }
  .toc details[open] summary {
    margin-bottom: 15px;
  }
  .toc nav {
    gap: 9px;
  }
  .toc a {
    font-size: 12px;
    min-height: 24px;
  }
  .prose {
    font-size: 16px;
    line-height: 2;
    width: 100%;
  }
  .prose h2 {
    font-size: 23px;
  }
  .prose h3 {
    font-size: 19px;
  }
  .prose pre {
    margin: 24px 0;
    padding: 25px 16px;
  }
  .prose pre code {
    font-size: 11px;
  }
  .about-layout {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 30px 0 60px;
  }
  .about-card {
    width: 100%;
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 0 25px;
    padding: 22px;
  }
  .letter-avatar {
    grid-row: 1/6;
    align-self: center;
    font-size: 54px;
    margin: 0;
  }
  .about-card .eyebrow {
    margin: 0 0 10px;
  }
  .about-card > a {
    padding: 9px 0;
  }
  .projects-page {
    padding-bottom: 55px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}

.arrow-icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}
.spark-icon {
  display: inline-block;
  vertical-align: middle;
  color: var(--green);
}
.hero-note .spark-icon {
  width: 22px;
  height: 22px;
}
.project-title h3 .arrow-icon {
  margin-left: 4px;
}
.footer-links .arrow-icon {
  width: 11px;
  height: 11px;
}

/* Public editorial refresh: stronger hierarchy, useful navigation, no JS dependency. */
.public-site {
  background: radial-gradient(ellipse 640px 420px at 83% 230px, var(--glow) 0%, transparent 76%), var(--bg);
}
.public-site .site-header {
  height: 88px;
  position: relative;
}
.public-site .site-header nav { gap: 26px; }
.public-site .site-header nav .nav-contact {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 8px 16px;
  border: 1px solid var(--green);
  border-radius: 3px;
  color: var(--green);
}
.public-site .site-header nav .nav-contact:hover { background: var(--soft); }
.public-site h1,
.public-site .section-heading h2,
.public-site .about-layout .prose h2 {
  font-family: "Iowan Old Style", "Palatino Linotype", "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  font-weight: 500;
}
.public-site .hero {
  grid-template-columns: minmax(0, 1fr) 285px;
  gap: 62px;
  padding: 84px 0 72px;
}
.public-site .hero h1 {
  font-size: clamp(38px, 4.25vw, 61px);
  line-height: 1.5;
  letter-spacing: -1.8px;
  margin-bottom: 25px;
}
.hero-title-line { display: block; }
.hero-title-line.accent { color: var(--green); }
.public-site .hero .eyebrow { letter-spacing: 1.8px; margin-bottom: 22px; }
.public-site .hero .intro { max-width: 580px; font-size: 15px; }
.public-site .hero-note {
  height: auto;
  min-width: 0;
  transform: none;
  background: var(--surface-glass);
  box-shadow: none;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 26px;
}
.note-name {
  font-family: var(--serif);
  font-size: 54px;
  line-height: 1.15;
  letter-spacing: -2px;
  margin: 25px 0 8px;
  color: var(--green);
}
.note-name span { color: var(--amber); }
.note-role { font-size: 11px; color: var(--muted); margin: 0; }
.note-current { font-size: 14px; line-height: 1.95; color: var(--body); margin: 22px 0 7px; }
.hero-note > .text-link { font-size: 12px; color: var(--green); gap: 12px; overflow-wrap: anywhere; }
.public-site .note-bottom { margin-top: 23px; font-family: var(--mono); font-size: 9px; letter-spacing: 1.2px; }
.home-index { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.home-index > a { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 9px 18px; padding: 24px 28px; transition: background .15s; }
.home-index > a:first-child { padding-left: 0; }
.home-index > a + a { border-left: 1px solid var(--line); }
.home-index > a:hover { background: var(--soft); }
.home-index .mono { grid-column: 1/-1; font-size: 9px; color: var(--muted); }
.home-index strong { font-weight: 500; font-size: 15px; }
.home-index > a > :last-child { color: var(--green); }
.public-site .home-content { display: block; border: 0; padding-top: 62px; }
.public-site .section-heading { margin-bottom: 24px; }
.public-site .section-heading h2 { font-size: 31px; line-height: 1.5; }
.public-site .section-heading .eyebrow { letter-spacing: 1.6px; }
.public-site .editorial-empty { padding: 35px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface-glass); }
.public-site .editorial-empty h3 { font-family: "Songti SC", "Noto Serif CJK SC", var(--serif); font-size: 25px; font-weight: 400; }
.public-site .compact .post-row { grid-template-columns: 150px minmax(0, 1fr); padding: 28px 0; gap: 32px; }
.public-site .compact .post-row:first-child { border-top: 1px solid var(--line); }
.public-site .compact .post-details h3 { font-size: 24px; }
.public-site .post-details h3 a .arrow-icon { margin-top: 8px; color: var(--green); }
.public-site .projects-section { padding: 64px 0; }
.public-site .project-card { transition: border-color .15s; }
.public-site .project-card:hover { border-color: var(--line-strong); }
.public-site .project-bottom { border-top: 1px dashed var(--line); padding-top: 17px; }
.public-site .closing-note { border-top: 1px solid var(--line); }
.public-site .page-heading h1 { color: var(--ink); }
.public-site .about-layout { gap: 32px 72px; }
.about-index { grid-column: 1/-1; display: flex; gap: 18px 30px; flex-wrap: wrap; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.about-index .eyebrow { width: 100%; margin: 0; font-size: 10px; }
.about-index a { display: inline-flex; gap: 10px; align-items: center; font-size: 13px; min-height: 32px; }
.about-index a:hover { color: var(--green); }
.about-index a .mono { color: var(--muted); font-size: 10px; }
.public-site .about-card { border-radius: 4px; position: sticky; top: 30px; }
.public-site .about-card > a { min-height: 44px; }
@media (max-width: 1000px) {
  .public-site .hero { grid-template-columns: minmax(0,1fr) 250px; gap: 32px; padding-top: 64px; }
  .public-site .hero h1 { font-size: 43px; }
  .public-site .hero-note { padding: 22px; }
  .public-site .about-layout { gap: 30px; }
}
@media (max-width: 720px) {
  html { scroll-padding-top: 22px; }
  .public-site .site-header { height: auto; min-height: 78px; gap: 12px; flex-wrap: wrap; padding-block: 18px; }
  .public-site .site-header nav { gap: 18px; }
  .public-site .site-header nav a { min-height: 40px; }
  .public-site .site-header nav .nav-contact { display: none; }
  .public-site .hero { display: block; padding: 46px 0 30px; }
  .public-site .hero h1 { font-size: clamp(30px, 8.3vw, 48px); letter-spacing: -1.5px; line-height: 1.55; }
  .public-site .hero .eyebrow { font-size: 8px; letter-spacing: .8px; flex-wrap: wrap; }
  .public-site .hero .intro { font-size: 14px; }
  .public-site .hero-links { flex-wrap: wrap; gap: 12px 22px; }
  .public-site .hero-note { display: block; margin-top: 35px; padding: 20px 22px; }
  .public-site .hero-note .note-top { padding-bottom: 12px; }
  .note-name, .note-role, .public-site .hero-note .note-bottom { display: none; }
  .note-current { margin: 15px 0 4px; font-size: 13px; }
  .home-index { grid-template-columns: 1fr; }
  .home-index > a, .home-index > a:first-child { padding: 17px 0; grid-template-columns: 108px 1fr auto; gap: 8px; }
  .home-index > a + a { border-left: 0; border-top: 1px solid var(--line); }
  .home-index .mono { grid-column: auto; font-size: 8px; letter-spacing: .7px; }
  .home-index strong { font-size: 13px; }
  .public-site .home-content { padding-top: 40px; }
  .public-site .section-heading h2 { font-size: 24px; }
  .public-site .section-heading { gap: 12px; margin-bottom: 18px; }
  .public-site .editorial-empty { padding: 26px 22px; }
  .public-site .editorial-empty > .mono { font-size: 8px; letter-spacing: .7px; }
  .public-site .editorial-empty h3 { font-size: 22px; }
  .public-site .compact .post-row { grid-template-columns: 1fr; gap: 12px; padding: 23px 0; }
  .public-site .compact .post-details h3 { font-size: 21px; }
  .public-site .projects-section { padding: 42px 0; }
  .about-index { gap: 8px 20px; padding-bottom: 20px; }
  .about-index .eyebrow { margin-bottom: 8px; }
  .public-site .about-card { position: static; }
}
@media (prefers-reduced-motion: reduce) {
  .home-index > a, .public-site .project-card { transition: none; }
}
/* CMS content can contain long names, URLs or unbroken headings. */
.public-site .wordmark,
.public-site .home-index strong,
.public-site .about-index a,
.public-site .post-details h3 a,
.public-site .project-title h3 a,
.public-site .toc a {
  min-width: 0;
  overflow-wrap: anywhere;
}
.public-site .site-header > .wordmark { max-width: 100%; }
.public-site .site-header nav { flex-shrink: 0; }
.public-site .about-index a { max-width: 100%; }
.public-site .home-index > a,
.public-site .project-title h3 { min-width: 0; }
.public-site .about-index a .mono { flex-shrink: 0; }
.public-site .search-form { min-width: 0; }
.public-site .search-form:focus-within { outline: 3px solid var(--focus); outline-offset: 4px; }
.public-site .post-details,
.public-site .site-footer > div { min-width: 0; }
.public-site .site-footer .wordmark { display: inline-block; max-width: 100%; }
.public-site .copyright { overflow-wrap: anywhere; flex-wrap: wrap; gap: 10px; }
@media (max-width: 720px) {
  .public-site .compact .post-row { grid-template-columns: minmax(0, 1fr); }
}

/* Theme control: a native select keeps keyboard/touch and assistive-tech support. */
.theme-control {
  display: inline-flex;
  position: relative;
  align-items: center;
  flex-shrink: 0;
  color: var(--body);
}
.theme-control[hidden] { display: none !important; }
.theme-control > svg { position: absolute; left: 10px; pointer-events: none; }
.theme-control select {
  min-height: 44px;
  min-width: 126px;
  border: 1px solid var(--field-border);
  border-radius: 4px;
  padding: 8px 5px 8px 31px;
  background: var(--surface);
  color: var(--body);
  font-size: 12px;
  line-height: 1.5;
  cursor: pointer;
}
.theme-control select:hover { background: var(--soft); }
.theme-control select:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.admin-topbar { gap: 16px; }
.admin-topbar > .theme-control { margin-left: auto; }
.login-theme { display: flex; justify-content: flex-end; margin: -18px -16px 24px 0; }
.admin .admin-input,
.admin .admin-textarea,
.admin .admin-select,
.admin .admin-login #login-form > input { border-color: var(--field-border); }
.admin-login #login-form > input { border-color: var(--field-border); }
input, textarea, select { accent-color: var(--green); }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
.admin .admin-field input:focus,
.admin .admin-field textarea:focus,
.admin .admin-field select:focus { border-color: var(--focus); }
.admin-login #login-error { color: var(--error); }
@media (max-width: 1000px) {
  .public-site .site-header nav { gap: 17px; }
  .public-site .site-header nav .nav-contact { display: none; }
}
@media (max-width: 720px) {
  .public-site .site-header { gap: 10px; }
  .public-site .site-header > .wordmark { max-width: calc(100% - 143px); min-height: 44px; display: flex; align-items: center; }
  .public-site .site-header nav { width: 100%; max-width: 100%; gap: 12px; justify-content: space-between; }
  .public-site .site-header .theme-control { position: absolute; right: 0; top: 18px; }
  .public-site .site-header nav .nav-rss { margin-left: 0; }
  .admin-topbar { display: flex; gap: 10px; flex-wrap: wrap; height: auto; min-height: 76px; padding-block: 12px; }
  .admin-topbar > a { display: none; }
  .theme-control select { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media (forced-colors: active) {
  .theme-control select { border: 1px solid ButtonText; }
  .theme-control > svg { forced-color-adjust: auto; }
}

/* Source-checked feature links augment the existing CMS project without replacing it. */
.photo-features { margin: 24px 0; padding-top: 20px; border-top: 1px solid var(--line); }
.photo-features-heading { margin: 0 0 13px; color: var(--muted); font: 11px/1.6 var(--sans); letter-spacing: 1px; }
.photo-features-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px 22px; }
.photo-feature { min-width: 0; }
.photo-feature-title { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; font-size: 13px; color: var(--green); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-strong); }
.photo-feature-title:hover { text-decoration-color: currentColor; }
.project-copy .photo-feature-description { margin: 2px 0 0; font-size: 12px; line-height: 1.8; color: var(--body); }
.photo-features-footer { margin-top: 16px; }
.project-copy .photo-features-footer p { margin: 0; font-size: 11px; line-height: 1.8; color: var(--muted); }
.photo-features-footer .text-link { margin-top: 4px; font-size: 12px; }
@media (min-width: 1200px) {
  .project-grid > .project-card:only-child:has(.photo-features) { grid-template-columns: 30% minmax(0, 1fr); }
  .project-grid > .project-card:only-child:has(.photo-features) .project-art { height: auto; min-height: 220px; }
}
@media (max-width: 540px) {
  .photo-features-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .photo-feature-title { min-height: 44px; }
}
