@font-face {
  font-family: "Smiley Sans";
  src: url("./assets/fonts/smiley-sans-oblique-subset.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
  unicode-range: U+2E80-2EFF, U+3000-303F, U+31C0-31EF, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FE10-FE1F, U+FE30-FE4F, U+FF00-FFEF;
}

@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("./assets/fonts/atkinson-hyperlegible-400-latin.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("./assets/fonts/atkinson-hyperlegible-700-latin.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 700 900;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("./assets/fonts/bricolage-grotesque-variable-latin.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 75% 100%;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light dark;
  --paper: oklch(96% 0.018 92);
  --paper-deep: oklch(91% 0.025 90);
  --surface: oklch(99% 0.01 94);
  --ink: oklch(20% 0.035 255);
  --muted: oklch(43% 0.03 248);
  --line: oklch(77% 0.025 88);
  --tomato: oklch(55% 0.17 34);
  --sun: oklch(84% 0.11 87);
  --shadow: oklch(20% 0.035 255);
  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --font-display: "Bricolage Grotesque", "Trebuchet MS", sans-serif;
  --font-body: "Atkinson Hyperlegible", Verdana, sans-serif;
  --font-accent: var(--font-display);
  --font-ui: var(--font-display);
  --font-zh-display: "Smiley Sans", "PingFang SC", "Hiragino Sans GB", sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --motion-fast: 140ms;
  --motion-standard: 220ms;
  --motion-slow: 420ms;
  --header-offset: 5rem;
  --page-gutter: clamp(var(--space-md), 5vw, var(--space-4xl));
  --header-gutter: clamp(var(--space-md), 4vw, var(--space-3xl));
  --z-header: 50;
  --z-mobile-nav: 60;
  --z-drawer: 200;
  --z-skip: 300;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: oklch(18% 0.025 255);
    --paper-deep: oklch(22% 0.028 252);
    --surface: oklch(25% 0.026 250);
    --ink: oklch(93% 0.014 91);
    --muted: oklch(74% 0.02 89);
    --line: oklch(39% 0.025 250);
    --tomato: oklch(70% 0.16 35);
    --sun: oklch(72% 0.12 84);
    --shadow: oklch(8% 0.02 255);
  }
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: clip;
  background:
    linear-gradient(0deg, oklch(20% 0.035 255 / 0.035) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, oklch(20% 0.035 255 / 0.035) 1px, transparent 1px) 0 0 / 48px 48px,
    var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
}

html[lang^="zh"] {
  --font-display: var(--font-zh-display);
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-accent: var(--font-ui);
  --font-ui: var(--font-body);
}

html[lang^="zh"] body {
  line-height: 1.75;
}

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

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.22em;
}

:where(a, button, [tabindex]):focus-visible {
  outline: 3px solid var(--tomato);
  outline-offset: 3px;
}

[data-lang="en"] {
  display: none;
}

html[lang="en"] [data-lang="zh"] {
  display: none;
}

html[lang="en"] [data-lang="en"],
html[lang^="zh"] [data-lang="zh"] {
  display: revert;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  top: var(--space-md);
  left: var(--space-md);
  z-index: var(--z-skip);
  transform: translateY(-180%);
  padding: var(--space-sm) var(--space-md);
  background: var(--ink);
  color: var(--paper);
}

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

.has-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(0.65rem);
  transition:
    opacity var(--motion-slow) var(--ease-out),
    transform var(--motion-slow) var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

.has-reveal [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 800;
}

h2 {
  max-width: 13ch;
  margin-bottom: 0;
  font-size: clamp(2.8rem, 5.8vw, 6rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
}

h3 {
  line-height: 1.05;
}

html[lang^="zh"] h1,
html[lang^="zh"] h2,
html[lang^="zh"] h3 {
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.eyebrow,
.title-card {
  width: fit-content;
  color: var(--tomato);
  font-family: var(--font-accent);
  font-size: 0.75rem;
  font-weight: 850;
  line-height: 1;
  text-transform: uppercase;
}

.title-card {
  padding: 0.42rem 0.58rem;
  border: 2px solid var(--ink);
  background: var(--sun);
  box-shadow: 3px 3px 0 var(--shadow);
  color: var(--ink);
}

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: 0 var(--space-md);
  border: 2px solid var(--ink);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 850;
  text-decoration: none;
  transition:
    transform var(--motion-fast) var(--ease-out),
    background var(--motion-fast) ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-0.15rem);
}

.button:active {
  transform: translateY(0.08rem) scale(0.99);
}

.button.primary {
  background: var(--ink);
  color: var(--paper);
}

.site-header,
.blog-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: var(--z-header);
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-sm) var(--header-gutter);
  border-bottom: 1px solid color-mix(in oklch, var(--ink) 14%, transparent);
  background: color-mix(in oklch, var(--paper) 94%, transparent);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 32% 68% 56% 44%;
  background: var(--ink);
  box-shadow: 3px 3px 0 var(--sun);
  color: var(--paper);
  font-size: 0.78rem;
}

.brand-text {
  font-size: 1rem;
}

.site-nav {
  display: flex;
  gap: var(--space-lg);
  margin-left: auto;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 750;
}

.site-nav a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  text-decoration: none;
}

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

.language-toggle {
  display: inline-flex;
  padding: 0.16rem;
  border: 2px solid var(--ink);
  background: var(--surface);
  box-shadow: 3px 3px 0 var(--shadow);
  transform: rotate(1deg);
}

.language-toggle button {
  min-width: 2.7rem;
  min-height: 2.75rem;
  padding: 0 var(--space-xs);
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 850;
}

.language-toggle button.is-active {
  background: var(--ink);
  color: var(--paper);
}

.language-toggle button:active {
  background: var(--sun);
  color: var(--ink);
}

section[id] {
  scroll-margin-top: var(--header-offset);
}

.tabletop-run {
  position: relative;
  overflow: hidden;
  background: var(--paper);
}

.tabletop-run::before {
  position: absolute;
  inset: 0;
  content: "";
  background: url("./assets/tabletop-hero.jpg") center top / cover no-repeat;
  filter: saturate(0.88);
}

.editorial-hero {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 100dvh;
  align-items: center;
  padding: clamp(8rem, 15vh, 10rem) var(--page-gutter) var(--space-3xl);
}

.editorial-hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: linear-gradient(90deg, color-mix(in oklch, var(--paper) 95%, transparent) 0 32%, color-mix(in oklch, var(--paper) 70%, transparent) 57%, transparent 82%);
}

.hero-copy {
  width: min(58rem, 74vw);
}

.hero-copy h1 {
  max-width: 11ch;
  margin: var(--space-md) 0 var(--space-lg);
  font-size: clamp(3.5rem, 7.5vw, 8.2rem);
  line-height: 0.86;
  letter-spacing: -0.055em;
  text-shadow: 0.03em 0.03em 0 color-mix(in oklch, var(--sun) 80%, transparent);
}

html[lang^="zh"] .hero-copy h1 {
  width: max-content;
  max-width: none;
  font-size: clamp(3rem, 5.7vw, 6.8rem);
  white-space: nowrap;
}

.hero-copy h1 em {
  color: var(--tomato);
  font-style: normal;
}

.hero-deck {
  max-width: 39rem;
  margin-bottom: 0;
  font-size: clamp(1.04rem, 1.6vw, 1.3rem);
  font-weight: 600;
  line-height: 1.5;
}

.hero-actions {
  margin-top: var(--space-xl);
}

.section {
  padding: var(--space-4xl) var(--page-gutter);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-md);
  align-items: start;
  width: min(100%, 72rem);
  margin-bottom: clamp(var(--space-xl), 5vw, var(--space-3xl));
}

.section-heading .eyebrow {
  margin-bottom: var(--space-md);
}

.section-heading > p {
  max-width: 60ch;
  margin-bottom: 0;
  color: var(--muted);
}

html[lang^="zh"] .section-heading h2 {
  max-width: none;
  font-size: clamp(2.8rem, 4.9vw, 5.4rem);
}

html[lang^="zh"] .section-heading h2 > [data-lang="zh"] {
  white-space: nowrap;
}

.notes-section {
  padding-bottom: var(--space-3xl);
  background: var(--paper);
}

.notes-feed {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space-md);
}

.note-card {
  grid-column: span 4;
  display: grid;
  gap: var(--space-md);
  min-height: 24rem;
  padding: var(--space-md);
  border: 2px solid var(--ink);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
}

.note-card:first-child {
  grid-column: span 7;
}

.note-card:nth-child(2) {
  grid-column: span 5;
}

.notes-feed[data-note-count="2"] .note-card {
  grid-column: span 6;
}

.notes-feed[data-note-count="3"] .note-card {
  grid-column: span 4;
}

.note-card[data-note-state="draft"] {
  border-style: dashed;
  background: color-mix(in oklch, var(--sun) 28%, var(--surface));
}

.note-card:not(.note-card-draft):only-child {
  grid-column: 1 / -1;
  grid-template-columns: minmax(18rem, 1.3fr) minmax(0, 0.7fr);
  grid-template-rows: minmax(0, 1fr);
  align-items: stretch;
  height: clamp(24rem, 36vw, 32rem);
  min-height: 0;
  overflow: hidden;
}

.note-card:hover,
.note-card:focus-visible {
  background: color-mix(in oklch, var(--sun) 36%, var(--surface));
}

.note-card.note-card-draft {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 0.7fr) minmax(18rem, 1.3fr);
  grid-template-rows: minmax(0, 1fr);
  align-items: stretch;
  height: clamp(24rem, 36vw, 32rem);
  min-height: 0;
  overflow: hidden;
  background: var(--surface);
}

.note-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.note-card-draft img {
  min-width: 0;
  min-height: 0;
  height: 100%;
  aspect-ratio: auto;
}

.note-card:not(.note-card-draft):only-child img {
  min-width: 0;
  min-height: 0;
  height: 100%;
  aspect-ratio: auto;
}

.note-card-copy {
  display: grid;
  align-content: end;
  gap: var(--space-sm);
}

.note-status,
.note-meta {
  width: fit-content;
  color: var(--tomato);
  font-family: var(--font-accent);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.note-card h3 {
  max-width: none;
  margin: 0;
  line-height: 1.04;
  text-wrap: balance;
}

.note-card:not(.note-card-draft) h3 {
  font-size: clamp(1.9rem, 2.3vw, 2.75rem);
  word-break: auto-phrase;
}

.note-card p,
.note-card small {
  max-width: 48ch;
  margin: 0;
  color: var(--muted);
}

.note-card-action {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  margin-top: var(--space-xs);
  border-bottom: 2px solid currentColor;
  color: var(--tomato);
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 850;
}

.notes-link {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  margin-top: var(--space-xl);
  color: var(--tomato);
  font-family: var(--font-ui);
  font-weight: 850;
}

body.is-note-dialog-open {
  overflow: hidden;
}

.note-dialog {
  width: min(72rem, calc(100vw - 2rem));
  height: min(52rem, calc(100dvh - 2rem));
  max-width: none;
  max-height: none;
  padding: 0;
  border: 2px solid var(--ink);
  background: var(--paper);
  box-shadow: 12px 12px 0 var(--shadow);
  color: var(--ink);
}

.note-dialog::backdrop {
  background: color-mix(in oklch, var(--ink) 68%, transparent);
  backdrop-filter: blur(3px);
}

.note-dialog-shell {
  display: grid;
  height: 100%;
  grid-template-rows: auto minmax(0, 1fr);
}

.note-dialog-bar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  border-bottom: 2px solid var(--ink);
  background: var(--sun);
  font-family: var(--font-accent);
  font-size: 0.74rem;
  font-weight: 850;
  text-transform: uppercase;
}

.note-dialog-close {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: var(--space-sm);
  padding: 0 var(--space-sm);
  border: 2px solid var(--ink);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
}

.note-dialog-close:hover,
.note-dialog-close:focus-visible {
  background: var(--ink);
  color: var(--paper);
}

.note-dialog-close span:last-child {
  font-size: 1.3rem;
}

.note-dialog-scroll {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(var(--space-lg), 4vw, var(--space-2xl));
}

.note-dialog-article {
  width: min(100%, 58rem);
  margin: 0 auto;
}

.note-dialog-article-head {
  display: grid;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 2px solid var(--ink);
}

.note-dialog-article-head .note-meta {
  color: var(--tomato);
  font-family: var(--font-accent);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.note-dialog-article-head h2 {
  max-width: 12ch;
  font-size: clamp(2.8rem, 7vw, 6.5rem);
}

.note-dialog-article-head p {
  max-width: 56ch;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.16rem);
}

.note-dialog-cover {
  width: 100%;
  max-height: 62dvh;
  object-fit: cover;
  margin-bottom: var(--space-2xl);
  border: 2px solid var(--ink);
  box-shadow: 8px 8px 0 var(--shadow);
}

.note-dialog-body {
  max-width: 70ch;
  font-size: clamp(1.05rem, 1.4vw, 1.18rem);
}

/* Gutenberg blocks arrive from the headless WordPress editor without its theme CSS. */
.wp-content {
  line-height: 1.8;
}

.wp-content > :first-child {
  margin-top: 0;
}

.wp-content > :last-child {
  margin-bottom: 0;
}

.wp-content p {
  margin-bottom: var(--space-md);
}

.wp-content .wp-block-heading {
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
}

.wp-content .wp-block-list {
  display: grid;
  gap: var(--space-xs);
  margin: var(--space-md) 0 var(--space-xl);
  padding-inline-start: 1.45em;
}

.wp-content .wp-block-list li {
  padding-inline-start: 0.25em;
}

.wp-content .wp-block-quote,
.wp-content .wp-block-pullquote {
  max-width: 58ch;
  margin: var(--space-xl) 0;
  padding: var(--space-lg);
  border: 1px solid var(--ink);
  background: var(--surface);
  box-shadow: 6px 6px 0 color-mix(in oklch, var(--shadow) 55%, transparent);
  font-family: var(--font-body);
  font-size: 1em;
}

.wp-content .wp-block-quote p,
.wp-content .wp-block-pullquote p {
  margin-bottom: var(--space-sm);
}

.wp-content .wp-block-quote p:last-child,
.wp-content .wp-block-pullquote p:last-child {
  margin-bottom: 0;
}

.wp-content .wp-block-quote cite,
.wp-content .wp-block-pullquote cite {
  display: block;
  margin-top: var(--space-md);
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-style: normal;
}

.wp-content .wp-block-image,
.wp-content .wp-block-gallery,
.wp-content .wp-block-video,
.wp-content .wp-block-embed {
  margin: var(--space-xl) 0 var(--space-2xl);
}

.wp-content .wp-block-image img,
.wp-content .wp-block-gallery img {
  width: 100%;
  height: auto;
  margin: 0;
}

.wp-content .wp-element-caption,
.wp-content .wp-block-image figcaption,
.wp-content .wp-block-gallery figcaption {
  margin-top: var(--space-sm);
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.82rem;
  line-height: 1.55;
}

.wp-content .wp-block-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr));
  gap: var(--space-sm);
  padding: 0;
}

.wp-content .wp-block-gallery figure {
  margin: 0;
}

.wp-content .wp-block-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr));
  gap: var(--space-lg);
  margin: var(--space-xl) 0;
}

.wp-content .wp-block-separator {
  width: min(10rem, 40%);
  margin: var(--space-2xl) 0;
  border: 0;
  border-top: 2px solid var(--ink);
}

.wp-content .wp-block-table {
  margin: var(--space-xl) 0;
  overflow-x: auto;
}

.wp-content table {
  width: 100%;
  border-collapse: collapse;
}

.wp-content th,
.wp-content td {
  padding: var(--space-sm);
  border: 1px solid var(--line);
  text-align: start;
  vertical-align: top;
}

.wp-content th {
  background: var(--surface);
  font-family: var(--font-ui);
  font-weight: 850;
}

.wp-content pre,
.wp-content .wp-block-code {
  margin: var(--space-xl) 0;
  padding: var(--space-md);
  overflow-x: auto;
  border: 1px solid var(--ink);
  background: var(--surface);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.86em;
  line-height: 1.65;
}

.wp-content .wp-block-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin: var(--space-xl) 0;
}

.wp-content .wp-block-button__link {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  padding: 0 var(--space-md);
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 850;
  text-decoration: none;
}

.wp-content .has-small-font-size {
  font-size: 0.85em;
}

.wp-content .has-medium-font-size {
  font-size: 1.14em;
}

.wp-content .has-large-font-size {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  line-height: 1.45;
}

.wp-content .has-x-large-font-size {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  line-height: 1.25;
}

.wp-content .has-text-align-center {
  text-align: center;
}

.wp-content .has-text-align-right {
  text-align: right;
}

.wp-content .has-text-align-left {
  text-align: left;
}

.wp-content .aligncenter {
  margin-inline: auto;
}

.wp-content .alignright {
  margin-left: auto;
}

.wp-content .has-background {
  padding: var(--space-md);
}

.note-dialog-body h2,
.note-dialog-body h3 {
  max-width: 16ch;
  margin-top: var(--space-2xl);
  font-size: clamp(1.75rem, 3vw, 2.8rem);
  line-height: 1.05;
}

.note-dialog-body img {
  width: 100%;
  height: auto;
  margin: var(--space-lg) 0;
  border: 2px solid var(--ink);
}

.travel-figure {
  margin: var(--space-xl) 0 var(--space-2xl);
}

.travel-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin: 0;
  border: 2px solid var(--ink);
  box-shadow: 7px 7px 0 color-mix(in oklch, var(--shadow) 72%, transparent);
}

.travel-figure figcaption {
  margin-top: var(--space-sm);
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.note-dialog-draft-note {
  padding: var(--space-lg);
  border: 2px dashed var(--ink);
  background: var(--sun);
  font-family: var(--font-ui);
  font-weight: 750;
}

.note-dialog-draft-note p {
  margin: 0;
}

.note-dialog-page-link {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  margin-top: var(--space-2xl);
  padding: 0 var(--space-md);
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 850;
  text-decoration: none;
}

.builds-section {
  padding-top: var(--space-3xl);
  background: var(--surface);
}

.builds-tabletop {
  position: relative;
  height: clamp(18rem, 30vw, 28rem);
  margin: 0 0 var(--space-2xl);
  overflow: hidden;
  border-block: 2px solid var(--ink);
}

.builds-tabletop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.builds-tabletop figcaption {
  position: absolute;
  right: var(--space-md);
  bottom: var(--space-md);
  padding: 0.4rem 0.58rem;
  border: 2px solid var(--ink);
  background: var(--sun);
  font-family: var(--font-accent);
  font-size: 0.7rem;
  font-weight: 850;
}

.build-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-sm);
}

button.build-card {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 4rem minmax(12rem, 0.48fr) minmax(0, 1fr);
  gap: var(--space-lg);
  align-items: center;
  width: 100%;
  min-height: 7.5rem;
  padding: var(--space-md) 0;
  border: 0;
  border-top: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: background var(--motion-fast) ease;
}

button.build-card:nth-child(3) {
  border-bottom: 1px solid var(--ink);
}

button.build-card:hover,
button.build-card:focus-visible {
  background: color-mix(in oklch, var(--sun) 24%, transparent);
}

button.build-card:active {
  background: color-mix(in oklch, var(--sun) 42%, transparent);
}

.build-card .build-number {
  display: grid;
  width: 3.5rem;
  height: 3.5rem;
  place-items: center;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-accent);
  font-size: 0.86rem;
  font-weight: 850;
}

.project-copy {
  display: grid;
  gap: var(--space-xs);
}

.build-card .project-type {
  color: var(--tomato);
  font-family: var(--font-accent);
  font-size: 0.7rem;
  font-weight: 850;
  text-transform: uppercase;
}

.build-card strong {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.5vw, 2.8rem);
  line-height: 1;
}

.build-card small {
  max-width: 50ch;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.5;
}

.build-placeholder {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-sm);
  align-items: center;
  min-height: 7rem;
  padding: var(--space-md);
  border: 1px dashed color-mix(in oklch, var(--ink) 46%, transparent);
  color: color-mix(in oklch, var(--ink) 62%, transparent);
}

.build-placeholder .build-number {
  width: 2.8rem;
  height: 2.8rem;
  border-style: dashed;
  background: transparent;
  color: currentColor;
}

.build-placeholder strong {
  font-size: 1.2rem;
}

.work-section {
  padding-bottom: var(--space-3xl);
  background: var(--paper);
}

.work-gallery-shell {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: var(--space-sm);
  align-items: center;
}

.work-gallery {
  display: flex;
  gap: var(--space-lg);
  overflow-x: auto;
  padding: var(--space-sm) 0 var(--space-lg);
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--ink) transparent;
}

.work-piece {
  display: grid;
  flex: 0 0 clamp(18rem, 32vw, 29rem);
  gap: var(--space-md);
  scroll-snap-align: start;
}

.work-piece figure {
  height: clamp(20rem, 34vw, 31rem);
  margin: 0;
  overflow: hidden;
  border: 2px solid var(--ink);
  background: var(--surface);
}

.work-piece img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-caption {
  display: grid;
  gap: var(--space-xs);
}

.work-caption > span {
  color: var(--tomato);
  font-family: var(--font-accent);
  font-size: 0.7rem;
  font-weight: 850;
}

.work-caption h3 {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 2rem);
}

.work-caption p {
  max-width: 42ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.gallery-arrow {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border: 2px solid var(--ink);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 1.8rem;
}

.gallery-arrow:hover,
.gallery-arrow:focus-visible {
  background: var(--sun);
}

.gallery-arrow:active {
  background: var(--ink);
  color: var(--paper);
}

.about-section {
  display: grid;
  grid-template-columns: minmax(16rem, 0.42fr) minmax(0, 1fr);
  gap: clamp(var(--space-2xl), 7vw, var(--space-4xl));
  align-items: center;
  padding-block: var(--space-3xl);
  background: var(--surface);
}

.about-portrait {
  margin: 0;
  border: 2px solid var(--ink);
  background: var(--paper);
}

.about-portrait img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.about-portrait figcaption {
  padding: var(--space-xs) var(--space-sm);
  border-top: 2px solid var(--ink);
  font-family: var(--font-accent);
  font-size: 0.7rem;
  font-weight: 850;
}

.about-copy {
  max-width: 45rem;
}

.about-copy .eyebrow {
  margin-bottom: var(--space-md);
}

.about-copy h2 {
  max-width: 11ch;
  margin-bottom: var(--space-xl);
}

.about-copy > p:not(.eyebrow) {
  max-width: 55ch;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.15rem);
}

.contact-section {
  display: grid;
  min-height: 62dvh;
  align-items: center;
  padding: var(--space-4xl) var(--page-gutter);
  border-top: 1px solid var(--line);
  background: var(--paper-deep);
  color: var(--ink);
}

.contact-note {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-2xl);
  align-items: end;
  width: min(100%, 72rem);
  margin: 0 auto;
}

.contact-note h2 {
  max-width: 14ch;
  margin-bottom: var(--space-md);
  color: var(--ink);
}

.contact-note p:not(.eyebrow) {
  max-width: 52ch;
  margin-bottom: 0;
  color: var(--muted);
}

.contact-actions {
  display: flex;
  gap: var(--space-sm);
}

.contact-pending {
  border-color: var(--line);
  background: var(--surface);
  color: var(--muted);
  cursor: default;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: var(--space-lg) var(--page-gutter);
  border-top: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted);
  font-size: 0.86rem;
}

body.is-project-drawer-open {
  overflow: hidden;
}

.project-drawer-shell {
  position: fixed;
  inset: 0;
  z-index: var(--z-drawer);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(40rem, min(56rem, 92vw));
  pointer-events: none;
  isolation: isolate;
}

.project-drawer-scrim {
  grid-row: 1;
  grid-column: 1 / -1;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: color-mix(in oklch, var(--ink) 64%, transparent);
  opacity: 0;
  cursor: pointer;
  transition: opacity 240ms var(--ease-out);
}

.project-drawer {
  position: relative;
  z-index: 1;
  grid-row: 1;
  grid-column: 2;
  display: grid;
  height: 100dvh;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: 2px solid var(--ink);
  background:
    linear-gradient(0deg, color-mix(in oklch, var(--ink) 5%, transparent) 1px, transparent 1px) 0 0 / 40px 40px,
    var(--paper);
  transform: translateX(104%);
  transition: transform 320ms var(--ease-out);
  pointer-events: auto;
}

.project-drawer-shell.is-open {
  pointer-events: auto;
}

.project-drawer-shell.is-open .project-drawer-scrim {
  opacity: 1;
}

.project-drawer-shell.is-open .project-drawer {
  transform: translateX(0);
}

.project-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-lg);
  border-bottom: 2px solid var(--ink);
  background: var(--sun);
}

.project-drawer-header > div {
  display: grid;
  gap: var(--space-xs);
}

.project-drawer-position,
.project-drawer-kicker {
  margin: 0;
  font-family: var(--font-accent);
  font-size: 0.7rem;
  font-weight: 850;
  text-transform: uppercase;
}

.project-drawer-header h2 {
  max-width: none;
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
}

.project-drawer-close {
  display: inline-flex;
  min-width: 6.5rem;
  min-height: 3rem;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: 0 var(--space-sm);
  border: 2px solid var(--ink);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 850;
}

.project-drawer-close:hover,
.project-drawer-close:focus-visible {
  background: var(--ink);
  color: var(--paper);
}

.project-drawer-close:active {
  background: var(--tomato);
  color: var(--surface);
}

.project-drawer-close span:last-child {
  font-size: 1.5rem;
}

.project-drawer-scroll {
  display: grid;
  align-content: start;
  gap: var(--space-xl);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(var(--space-md), 4vw, var(--space-xl));
}

.project-drawer-intro {
  display: grid;
  gap: var(--space-sm);
  max-width: 66ch;
}

.project-drawer-kicker {
  width: fit-content;
  padding: 0.36rem 0.5rem;
  border: 1px solid var(--ink);
  background: var(--surface);
  color: var(--tomato);
}

.project-drawer-summary {
  margin: 0;
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  line-height: 1.55;
}

.project-drawer-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.project-drawer-chips span {
  padding: 0.38rem 0.58rem;
  border: 1px solid var(--ink);
  background: var(--surface);
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 800;
}

.project-drawer-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  border-block: 1px solid var(--ink);
}

.project-drawer-facts > div {
  display: grid;
  grid-template-columns: minmax(6rem, 0.38fr) 1fr;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid color-mix(in oklch, var(--ink) 20%, transparent);
}

.project-drawer-facts > div:nth-child(odd) {
  padding-right: var(--space-md);
}

.project-drawer-facts > div:nth-child(even) {
  padding-left: var(--space-md);
}

.project-drawer-facts > div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.project-drawer-facts dt,
.project-drawer-facts dd {
  margin: 0;
}

.project-drawer-facts dt {
  font-family: var(--font-accent);
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.project-drawer-facts dd {
  font-size: 0.9rem;
}

.project-drawer-visuals {
  display: grid;
  gap: var(--space-md);
}

.project-drawer-section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-sm);
  padding-bottom: var(--space-xs);
  border-bottom: 1px solid var(--ink);
}

.project-drawer-section-heading h3 {
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
}

.project-drawer-count {
  font-family: var(--font-accent);
  font-size: 0.7rem;
  font-weight: 850;
}

.project-drawer-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-lg) var(--space-md);
}

.project-drawer-shot {
  display: grid;
  gap: var(--space-xs);
  margin: 0;
}

.project-drawer-shot[data-shape="wide"],
.project-drawer-shot[data-shape="wide-crop"] {
  grid-column: 1 / -1;
}

.project-drawer-shot-frame {
  overflow: hidden;
  border: 2px solid var(--ink);
  background: var(--surface);
}

.project-drawer-shot[data-shape="wide"] .project-drawer-shot-frame,
.project-drawer-shot[data-shape="wide-crop"] .project-drawer-shot-frame {
  aspect-ratio: 16 / 9;
}

.project-drawer-shot[data-shape="phone"] .project-drawer-shot-frame {
  aspect-ratio: 9 / 16;
}

.project-drawer-shot[data-shape="mark"] .project-drawer-shot-frame {
  display: grid;
  min-height: 13rem;
  place-items: center;
}

.project-drawer-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-drawer-shot[data-shape="phone"] img,
.project-drawer-shot[data-shape="mark"] img {
  object-fit: contain;
}

.project-drawer-shot[data-shape="mark"] img {
  width: min(42%, 10rem);
  height: auto;
  image-rendering: pixelated;
}

.project-drawer-shot figcaption {
  display: block;
  font-size: 0.84rem;
  line-height: 1.45;
}

@media (prefers-color-scheme: dark) {
  .tabletop-run::before {
    filter: brightness(0.52) saturate(0.78) contrast(1.05);
  }

  .editorial-hero::before {
    background: linear-gradient(90deg, color-mix(in oklch, var(--paper) 96%, transparent) 0 34%, color-mix(in oklch, var(--paper) 76%, transparent) 60%, transparent 88%);
  }
}

@media (max-width: 900px) {
  .section-heading {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .about-section {
    grid-template-columns: minmax(14rem, 0.42fr) minmax(0, 1fr);
  }

  .project-drawer-shell {
    grid-template-columns: 1fr;
  }

  .project-drawer {
    grid-column: 1;
    width: 100%;
  }
}

@media (max-width: 700px) {
  :root {
    --header-offset: 4.25rem;
  }

  body {
    padding-bottom: calc(4rem + env(safe-area-inset-bottom));
  }

  .site-header,
  .blog-header {
    position: absolute;
    min-height: 4rem;
    flex-wrap: nowrap;
    gap: var(--space-sm);
    padding: var(--space-xs) var(--space-md);
    background: var(--paper);
    backdrop-filter: none;
  }

  .brand {
    min-width: 2.75rem;
    min-height: 3rem;
  }

  .brand-text {
    display: none;
  }

  .language-toggle {
    margin-left: auto;
  }

  .language-toggle button {
    min-height: 2.75rem;
  }

  .site-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: var(--z-mobile-nav);
    display: grid;
    grid-auto-columns: minmax(0, 1fr);
    grid-auto-flow: column;
    gap: 0;
    margin: 0;
    padding: var(--space-xs) max(var(--space-xs), env(safe-area-inset-right)) calc(var(--space-xs) + env(safe-area-inset-bottom)) max(var(--space-xs), env(safe-area-inset-left));
    border-top: 1px solid color-mix(in oklch, var(--ink) 18%, transparent);
    background: color-mix(in oklch, var(--paper) 96%, transparent);
    backdrop-filter: blur(16px);
  }

  .site-nav a {
    min-width: 0;
    min-height: 3rem;
    justify-content: center;
    font-size: clamp(0.68rem, 3vw, 0.78rem);
  }

  .editorial-hero {
    min-height: auto;
    align-items: start;
    padding: calc(var(--space-4xl) + var(--space-xl)) var(--space-md) var(--space-3xl);
  }

  .editorial-hero::before {
    background: linear-gradient(180deg, color-mix(in oklch, var(--paper) 76%, transparent) 0 68%, color-mix(in oklch, var(--paper) 96%, transparent) 100%);
  }

  .hero-copy {
    width: 100%;
  }

  .hero-copy h1,
  html[lang^="zh"] .hero-copy h1 {
    width: auto;
    max-width: none;
    font-size: clamp(2.55rem, 11.5vw, 4.2rem);
  }

  .hero-deck {
    font-size: 1rem;
  }

  .hero-actions .button {
    width: 100%;
  }

  .section {
    padding-right: var(--space-md);
    padding-left: var(--space-md);
  }

  .section-heading {
    margin-bottom: var(--space-xl);
  }

  .section-heading h2,
  html[lang^="zh"] .section-heading h2,
  .about-copy h2 {
    max-width: none;
    font-size: clamp(2.35rem, 10vw, 3.8rem);
  }

  .note-card,
  .note-card:first-child,
  .note-card:nth-child(2),
  .note-card.note-card-draft {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .note-card:not(.note-card-draft):only-child {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    height: auto;
    overflow: visible;
  }

  .note-card:not(.note-card-draft):only-child img {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .note-card-draft img {
    order: -1;
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .note-card h3 {
    font-size: clamp(1.9rem, 10vw, 3.3rem);
  }

  .note-dialog {
    width: calc(100vw - var(--space-sm));
    height: calc(100dvh - var(--space-sm));
    box-shadow: 5px 5px 0 var(--shadow);
  }

  .note-dialog-bar {
    padding: var(--space-xs) var(--space-sm);
  }

  .note-dialog-scroll {
    padding: var(--space-md);
  }

  .note-dialog-article-head h2 {
    max-width: none;
    font-size: clamp(2.6rem, 13vw, 4.4rem);
  }

  .note-dialog-cover {
    margin-bottom: var(--space-xl);
    box-shadow: 5px 5px 0 var(--shadow);
  }

  .builds-tabletop {
    height: clamp(18rem, 84vw, 29rem);
  }

  .builds-tabletop img {
    object-position: 55% center;
  }

  button.build-card {
    grid-template-columns: 3.2rem minmax(0, 1fr);
    gap: var(--space-sm);
    min-height: 8rem;
  }

  button.build-card small {
    grid-column: 1 / -1;
  }

  .build-card .build-number {
    width: 3rem;
    height: 3rem;
  }

  .build-placeholder {
    grid-column: 1 / -1;
    min-height: 5rem;
  }

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

  .gallery-arrow {
    display: none;
  }

  .work-gallery {
    grid-auto-columns: 82vw;
  }

  .work-piece figure {
    height: 24rem;
  }

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

  .about-portrait {
    width: min(78vw, 23rem);
  }

  .contact-section {
    min-height: auto;
    padding: var(--space-4xl) var(--space-md);
  }

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

  .contact-actions,
  .contact-actions .button {
    width: 100%;
  }

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

  .project-drawer {
    top: auto;
    align-self: end;
    height: min(92dvh, 58rem);
    border-inline: 0;
    border-bottom: 0;
    transform: translateY(104%);
  }

  .project-drawer-shell.is-open .project-drawer {
    transform: translateY(0);
  }

  .project-drawer-header {
    padding: var(--space-sm);
  }

  .project-drawer-close {
    min-width: 3rem;
    padding: 0;
    justify-content: center;
  }

  .project-drawer-close span:not(:last-child) {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .project-drawer-scroll {
    padding: var(--space-md);
  }

  .project-drawer-facts {
    grid-template-columns: 1fr;
  }

  .project-drawer-facts > div,
  .project-drawer-facts > div:nth-child(odd),
  .project-drawer-facts > div:nth-child(even) {
    padding: var(--space-sm) 0;
  }

  .project-drawer-facts > div:nth-last-child(2) {
    border-bottom: 1px solid color-mix(in oklch, var(--ink) 20%, transparent);
  }
}

@media (max-width: 420px) {
  .project-drawer-gallery {
    grid-template-columns: 1fr;
  }

  .project-drawer-shot,
  .project-drawer-shot[data-shape="wide"],
  .project-drawer-shot[data-shape="wide-crop"],
  .project-drawer-shot[data-shape="mark"] {
    grid-column: 1;
  }
}

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

  .has-reveal [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
