:root {
  --color-bg: #F4F2EC;
  --color-surface: #FBFAF6;
  --color-text: #111111;
  --color-muted: #65655F;
  --color-line: #D7D4CB;
  --color-inverse-bg: #111111;
  --color-inverse-text: #F7F5EF;
  --moon-fill: #E8C45C;
  --moon-line: #9A6A16;

  --font-display: "Source Han Serif SC", "Noto Serif SC", "Songti SC", "SimSun", serif;
  --font-body: "Inter", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  --page: 1120px;
  --reading: 680px;
  --radius-sm: 2px;
  --radius-md: 10px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

html[data-theme="dark"] {
  --color-bg: #0C0C0B;
  --color-surface: #151514;
  --color-text: #F2F0E9;
  --color-muted: #A6A39A;
  --color-line: #2B2A26;
  --color-inverse-bg: #F2F0E9;
  --color-inverse-text: #111111;
  --moon-fill: #F5D76E;
  --moon-line: #F5D76E;
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #0C0C0B;
    --color-surface: #151514;
    --color-text: #F2F0E9;
    --color-muted: #A6A39A;
    --color-line: #2B2A26;
    --color-inverse-bg: #F2F0E9;
    --color-inverse-text: #111111;
    --moon-fill: #F5D76E;
    --moon-line: #F5D76E;
    color-scheme: dark;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  scroll-snap-type: y proximity;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}

::selection {
  background: var(--color-inverse-bg);
  color: var(--color-inverse-text);
}

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

button {
  font: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

:focus-visible {
  outline: 2px solid var(--color-text);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--color-inverse-bg);
  color: var(--color-inverse-text);
  font-family: var(--font-mono);
  font-size: 12px;
  transform: translateY(-160%);
  transition: transform .18s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(calc(100% - 96px), var(--page));
  margin-inline: auto;
}

.eyebrow,
.section-en,
.section-index,
.post-date,
.post-time,
.project-type,
.project-status,
.article-meta,
.footer-inner,
.hero-art-label,
.about-art__caption {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-muted);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-bg);
  border-bottom: 1px solid transparent;
  transition: background-color .3s var(--ease), border-color .2s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--color-line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.wordmark {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: .02em;
}

.desktop-nav {
  display: flex;
  gap: 30px;
  font-size: 14px;
}

.desktop-nav a {
  position: relative;
  padding: 6px 0;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .18s var(--ease);
}

.desktop-nav a:hover::after,
.desktop-nav a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.desktop-nav a.is-active::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -12px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  transform: translateY(-50%);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-text);
  cursor: pointer;
}

.menu-toggle__lines {
  position: relative;
  display: block;
  width: 22px;
  height: 12px;
  margin-inline: auto;
}

.menu-toggle__lines span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transition: top .18s var(--ease), transform .18s var(--ease);
}

.menu-toggle__lines span:first-child {
  top: 0;
}

.menu-toggle__lines span:last-child {
  bottom: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__lines span:first-child {
  top: 50%;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__lines span:last-child {
  bottom: auto;
  top: 50%;
  transform: rotate(-45deg);
}

.mobile-nav {
  display: none;
}

/* Hero */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 48px;
  align-items: center;
  padding: 0 0 48px;
}

.hero h1 {
  margin: 24px 0 24px;
  font-family: var(--font-display);
  font-size: clamp(56px, 10vw, 112px);
  font-weight: 600;
  line-height: .95;
  letter-spacing: -.03em;
}

.hero-sub {
  max-width: 560px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.45;
}

.hero-intro {
  max-width: 470px;
  margin: 24px 0 32px;
  color: var(--color-muted);
  font-size: 17px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--color-inverse-bg);
  border-radius: 999px;
  font-size: 14px;
  line-height: 1;
  transition: background-color .18s var(--ease), color .18s var(--ease);
}

.button-solid {
  background: var(--color-inverse-bg);
  color: var(--color-inverse-text);
}

.button-solid:hover {
  background: transparent;
  color: var(--color-text);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--color-line);
  transition: border-color .18s var(--ease);
}

.text-link:hover {
  border-color: var(--color-text);
}

.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 420px;
}

.hero-art-label {
  position: absolute;
  top: 8px;
  right: 0;
  writing-mode: vertical-rl;
}

.moon-art {
  width: min(100%, 360px);
  height: auto;
  color: var(--color-text);
  animation: breathe 6s ease-in-out infinite;
}

.moon-disc {
  fill: var(--moon-fill);
  opacity: .65;
  transition: fill .3s var(--ease), opacity .3s var(--ease);
}

.moon-outline {
  fill: none;
  stroke: var(--moon-line);
  stroke-width: 1.2;
  transition: stroke .3s var(--ease);
}

.moon-stars {
  color: var(--moon-line);
}

.moon-clock-ring {
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
  opacity: .16;
}

.moon-tick {
  stroke: var(--moon-line);
  stroke-width: 1;
  opacity: .42;
}

.moon-clock-label {
  fill: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: .08em;
}



html[data-theme="dark"] .moon-disc {
  opacity: .9;
}

.footer-moon .moon-disc {
  opacity: .8;
}

html[data-theme="dark"] .footer-moon .moon-disc {
  opacity: .95;
}

.footer-moon .moon-outline {
  stroke-width: 10;
}

.zzz {
  position: absolute;
  top: 14%;
  right: 4%;
  display: flex;
  gap: 4px;
  align-items: flex-start;
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1;
}

.zzz span:nth-child(1) {
  animation: drift 6s ease-in-out infinite;
}

.zzz span:nth-child(2) {
  margin-top: -10px;
  animation: drift 6s .4s ease-in-out infinite;
}

.zzz span:nth-child(3) {
  margin-top: -20px;
  animation: drift 6s .8s ease-in-out infinite;
}

.hero-scroll {
  position: absolute;
  bottom: 24px;
  left: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hero-scroll__line {
  display: block;
  width: 32px;
  height: 1px;
  background: var(--color-line);
}

/* Scenes */

.scene {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: calc(100vh - 72px);
  min-height: calc(100svh - 72px);
  padding: 96px 0;
  border-top: 1px solid var(--color-line);
  scroll-snap-align: start;
  scroll-snap-stop: normal;
}

.scene:first-child {
  border-top: 0;
}

.scene > .container {
  position: relative;
  z-index: 1;
}

.scene.is-active > .container,
.scene.is-active > .site-footer {
  animation: sceneIn 1.05s cubic-bezier(.16, 1, .3, 1) .08s both;
}

.scene--hero {
  justify-content: center;
  padding: 0 0 64px;
}

.scene--contact {
  justify-content: space-between;
  padding-top: 96px;
  padding-bottom: 0;
}

.scene--contact > .container {
  margin-top: 0;
  margin-bottom: 0;
}

.scene--contact .site-footer {
  margin-top: 48px;
}

.scene-nav {
  position: fixed;
  top: 50%;
  right: max(16px, calc((100vw - 1120px) / 2 - 56px));
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 13px;
  transform: translateY(-50%);
}

.scene-nav a {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-height: 18px;
  color: var(--color-muted);
}

.scene-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-line);
  transition: background-color .18s var(--ease), transform .18s var(--ease);
}

.scene-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .08em;
  opacity: 0;
  transform: translateX(4px);
  transition: opacity .18s var(--ease), transform .18s var(--ease);
}

.scene-nav a:hover .scene-label,
.scene-nav a:focus-visible .scene-label,
.scene-nav a.is-active .scene-label {
  opacity: 1;
  transform: translateX(0);
}

.scene-nav a:hover .scene-dot,
.scene-nav a:focus-visible .scene-dot,
.scene-nav a.is-active .scene-dot {
  background: var(--color-text);
  transform: scale(1.6);
}

.section-head {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: start;
  margin-bottom: 40px;
}

.section-heading {
  min-width: 0;
}

.section-index {
  padding-top: 10px;
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.02em;
}

.section-en {
  margin: 8px 0 0;
}

.section-link {
  align-self: end;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--color-muted);
  transition: color .18s var(--ease), border-color .18s var(--ease);
}

.section-link:hover {
  color: var(--color-text);
  border-color: var(--color-text);
}

.section-lede {
  max-width: 520px;
  margin: -16px 0 40px;
  color: var(--color-muted);
}

/* Writing rows */

.post-list {
  border-top: 1px solid var(--color-line);
}

.post-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 64px 24px;
  gap: 24px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--color-line);
  transition: color .18s var(--ease);
}

.post-main {
  min-width: 0;
}

.post-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 600;
  line-height: 1.35;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  transition: text-decoration-color .18s var(--ease);
}

.post-summary {
  margin: 4px 0 0;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.6;
}

.post-time {
  text-align: right;
  white-space: nowrap;
}

.post-arrow {
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 1;
  text-align: right;
  transition: transform .18s var(--ease);
}

.post-row:hover .post-title {
  text-decoration-color: currentColor;
}

.post-row:hover .post-arrow {
  transform: translateX(4px);
}

/* Projects */

.project-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 24px;
  align-items: stretch;
}

.project-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 260px;
  padding: 32px;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  transition: transform .18s var(--ease);
}

.project-card--featured {
  min-height: 340px;
}

@media (hover: hover) {
  .project-card:hover {
    transform: translateY(-2px);
  }
}

.project-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.project-type {
  color: var(--color-text);
}

.project-status {
  letter-spacing: .06em;
}

.project-bottom {
  margin-top: 48px;
}

.project-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.02em;
}

.project-summary {
  max-width: 38ch;
  margin: 0;
  color: var(--color-muted);
  font-size: 15px;
  line-height: 1.7;
}

/* About */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px;
  align-items: start;
}

.about-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 360px;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
}

.moon-art--small {
  width: 58%;
}

.about-art__caption {
  position: absolute;
  bottom: 16px;
  left: 16px;
  font-size: 10px;
}

.about-copy {
  max-width: 620px;
}

.about-copy p {
  margin: 0 0 20px;
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.8;
}

.about-lead {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 32px) !important;
  line-height: 1.4 !important;
}

.signature {
  margin-top: 36px !important;
  font-family: var(--font-display);
  font-size: 22px !important;
  font-style: italic;
  color: var(--color-muted);
}

/* Now */

.now-mini {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--color-line);
}

.now-mini__label {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .12em;
  color: var(--color-muted);
}

.now-mini dl {
  margin: 0;
}

.now-mini__row {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 14px;
  padding: 5px 0;
}

.now-mini__row dt {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .1em;
  color: var(--color-muted);
}

.now-mini__row dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

/* Contact */

.contact-question {
  max-width: 860px;
  margin: 0 0 40px;
  font-family: var(--font-display);
  font-size: clamp(32px, 4.8vw, 56px);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -.03em;
}

.email {
  display: inline-block;
  max-width: 100%;
  font-family: var(--font-display);
  font-size: clamp(26px, 4.6vw, 52px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.02em;
  border-bottom: 1px solid var(--color-line);
  overflow-wrap: anywhere;
  transition: border-color .18s var(--ease);
}

.email:hover {
  border-color: currentColor;
}

.contact-note {
  margin: 24px 0 0;
  color: var(--color-muted);
  font-size: 14px;
}

/* Footer */

.site-footer {
  padding: 28px 0 40px;
  border-top: 1px solid var(--color-line);
}

.footer-inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: none;
}

.footer-inner p {
  margin: 0;
}

.site-footer--scene {
  width: 100%;
  margin-top: 48px;
  padding-bottom: 24px;
}

.footer-time {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-moon {
  display: block;
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

.footer-moon svg {
  width: 100%;
  height: 100%;
}

.moon-shadow {
  transition: cx 1.2s linear;
}

html[data-period="day"] .moon-stars {
  opacity: .2;
  transition: opacity .5s var(--ease);
}

/* Writing index */

.page-head {
  padding: 96px 0 56px;
}

.page-title {
  margin: 16px 0 16px;
  font-family: var(--font-display);
  font-size: clamp(56px, 8vw, 96px);
  font-weight: 600;
  line-height: .98;
  letter-spacing: -.03em;
}

.page-lede {
  margin: 0;
  color: var(--color-muted);
  font-size: 18px;
}

.writing-list .post-row {
  grid-template-columns: 120px minmax(0, 1fr) 64px;
}

.archive {
  border-top: 1px solid var(--color-line);
}

.archive-month-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0 14px;
  border-bottom: 1px solid var(--color-line);
}

.archive-month-date {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.archive-year,
.archive-count {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .12em;
  color: var(--color-muted);
}

.archive-month-title {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.2;
}

.archive .post-list {
  border-top: 0;
}

/* Article */

.article-shell {
  max-width: var(--reading);
  margin: 0 auto;
  padding: 72px 0 96px;
}

.article-header {
  padding-bottom: 32px;
  border-bottom: 1px solid var(--color-line);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.article-title {
  margin: 18px 0 0;
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.03em;
}

.article-lede {
  margin: 18px 0 0;
  color: var(--color-muted);
  font-size: 20px;
  line-height: 1.6;
}

.article-ai-summary {
  margin-top: 32px;
  padding: 22px 24px;
  background: var(--color-surface);
  border-left: 2px solid var(--moon-line);
}

.article-ai-summary__label {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .12em;
  color: var(--color-muted);
}

.article-ai-summary__body {
  color: var(--color-text);
  font-size: 16px;
  line-height: 1.8;
}

.article-ai-summary__body p {
  margin: 0 0 8px;
}

.article-ai-summary__body p:last-child {
  margin-bottom: 0;
}

.article-ai-summary + .article-body {
  padding-top: 32px;
}

.article-body {
  padding-top: 48px;
  font-size: 18px;
  line-height: 1.9;
}

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

.article-body h2 {
  margin: 48px 0 16px;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.01em;
}

.article-body h3 {
  margin: 36px 0 12px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.4;
}

.article-body a {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.article-body blockquote {
  margin: 32px 0;
  padding: 0 0 0 24px;
  border-left: 2px solid var(--color-text);
  color: var(--color-muted);
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.7;
}

.article-body ul,
.article-body ol {
  margin: 0 0 24px;
  padding-left: 1.2em;
}

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

.article-body pre {
  margin: 28px 0;
  padding: 20px;
  overflow-x: auto;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  font-size: 14px;
  line-height: 1.6;
}

.article-body code {
  font-family: var(--font-mono);
  font-size: .9em;
}

.article-signature {
  margin-top: 48px;
  font-family: var(--font-display);
  font-size: 22px;
  font-style: italic;
  color: var(--color-muted);
}

.article-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--color-line);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--color-muted);
}

.back-link:hover {
  color: var(--color-text);
}

/* Motion */

@keyframes sceneIn {
  from {
    opacity: 0;
    transform: translateY(28px) scale(.992);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes breathe {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.012);
  }
}

@keyframes drift {
  0%, 100% {
    opacity: .35;
    transform: translateY(0);
  }
  50% {
    opacity: .7;
    transform: translateY(-4px);
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .moon-art,
  .zzz span {
    animation: none;
  }

  .scene.is-active > .container,
  .scene.is-active > .site-footer {
    animation: none;
  }
}

/* Short desktop viewports */

@media (min-width: 801px) and (max-height: 820px) {
  .scene {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .scene--contact {
    padding-top: 72px;
    padding-bottom: 0;
  }

  .section-head {
    margin-bottom: 24px;
  }

  .section-lede {
    margin: -8px 0 24px;
  }

  .project-card,
  .project-card--featured {
    min-height: 240px;
  }

  .project-bottom {
    margin-top: 24px;
  }

  .project-title {
    font-size: clamp(24px, 3vw, 32px);
  }

  .about-grid {
    gap: 32px;
  }

  .about-art {
    min-height: 300px;
  }

  .about-copy p {
    margin-bottom: 12px;
    font-size: 17px;
    line-height: 1.7;
  }

  .about-lead {
    font-size: 24px !important;
  }

  .signature {
    margin-top: 20px !important;
    font-size: 20px !important;
  }

  .now-mini {
    margin-top: 20px;
    padding-top: 14px;
  }

  .now-mini__row {
    padding: 3px 0;
  }

  .contact-question {
    margin-bottom: 28px;
    font-size: clamp(30px, 4vw, 48px);
  }

  .email {
    font-size: clamp(24px, 3.4vw, 40px);
  }

  .site-footer {
    padding-top: 20px;
    padding-bottom: 20px;
  }
}

/* Responsive */

@media (max-width: 1249px) {
  .scene-nav {
    display: none;
  }
}

@media (max-width: 959px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 0 0 32px;
  }

  .hero-art {
    min-height: 0;
    margin-top: 16px;
  }

  .moon-art {
    width: min(100%, 320px);
    margin-inline: auto;
  }

  .hero-art-label {
    right: 8%;
  }

  .about-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .about-art {
    min-height: 320px;
  }

  .about-copy {
    max-width: 720px;
  }

  .project-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .project-card,
  .project-card--featured {
    min-height: 240px;
  }
}

@media (max-width: 800px) {
  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .mobile-nav {
    position: fixed;
    inset: 72px 0 0;
    z-index: 40;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 24px;
    background: var(--color-bg);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
  }

  .mobile-nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .mobile-nav a {
    padding: 18px 0;
    border-bottom: 1px solid var(--color-line);
    font-family: var(--font-display);
    font-size: 30px;
    line-height: 1.2;
  }

  body.menu-open {
    overflow: hidden;
  }

  .container {
    width: min(calc(100% - 64px), var(--page));
  }

  .scene {
    padding: 40px 0;
  }

  .scene--contact {
    padding-top: 64px;
    padding-bottom: 0;
  }

  .section-head {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 16px;
  }

  .section-link {
    grid-column: 2;
    justify-self: start;
    margin-top: -16px;
  }

  .post-row,
  .writing-list .post-row {
    grid-template-columns: 96px minmax(0, 1fr) 20px;
    gap: 16px;
    padding: 20px 0;
  }

  .post-time {
    display: none;
  }

  .post-arrow {
    font-size: 18px;
  }

  .page-head {
    padding: 72px 0 40px;
  }

  .article-shell {
    padding: 48px 0 72px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 17px;
  }

  .container {
    width: calc(100% - 40px);
  }

  .header-inner {
    min-height: 64px;
  }

  .mobile-nav {
    inset: 64px 0 0;
  }

  .wordmark {
    font-size: 20px;
  }

  .hero {
    padding: 0 0 20px;
  }

  .hero h1 {
    margin-top: 20px;
    font-size: clamp(52px, 16vw, 72px);
  }

  .hero-sub {
    font-size: 22px;
  }

  .hero-intro {
    font-size: 16px;
  }

  .hero-art {
    margin-top: 8px;
  }

  .moon-art {
    width: min(100%, 260px);
  }

  .hero-art-label {
    display: none;
  }

  .hero-scroll {
    bottom: 16px;
  }

  html {
    scroll-padding-top: 64px;
  }

  .scene {
    min-height: calc(100vh - 64px);
    min-height: calc(100svh - 64px);
    padding: 40px 0;
  }

  .scene--contact {
    padding-top: 56px;
    padding-bottom: 0;
  }

  .section-head {
    margin-bottom: 32px;
  }

  .section-title {
    font-size: 34px;
  }

  .section-lede {
    margin-top: -8px;
    font-size: 16px;
  }

  .post-row,
  .writing-list .post-row {
    grid-template-columns: 82px minmax(0, 1fr) 18px;
    gap: 12px;
  }

  .post-date {
    font-size: 10px;
  }

  .post-title {
    font-size: 20px;
  }

  .post-summary {
    display: none;
  }

  .project-card {
    padding: 24px;
  }

  .project-bottom {
    margin-top: 32px;
  }

  .about-art {
    min-height: 260px;
  }

  .about-lead {
    font-size: 23px !important;
  }

  .about-copy p {
    font-size: 17px;
  }

  .now-mini__row {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 12px;
  }

  .now-mini__row dd {
    font-size: 13px;
  }

  .contact-question {
    font-size: 30px;
    margin: 0 0 32px;
  }

  .contact-tail {
    display: block;
  }

  .email {
    font-size: 26px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 10px;
    font-size: 10px;
  }

  .article-shell {
    width: calc(100% - 40px);
  }

  .article-title {
    font-size: 36px;
  }

  .article-lede {
    font-size: 18px;
  }

  .archive-month-head {
    padding-top: 20px;
  }

  .archive-month-title {
    font-size: 20px;
  }

  .article-ai-summary {
    margin-top: 24px;
    padding: 16px 18px;
  }

  .article-ai-summary__body {
    font-size: 15px;
  }

  .article-body {
    padding-top: 36px;
    font-size: 17px;
  }

  .article-body blockquote {
    padding-left: 16px;
    font-size: 18px;
  }

  .article-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
