/* Gang Liu — a warm, playful editorial system. */
:root {
  --paper: #f4f1e8;
  --ink: #2b2d29;
  --muted: #666d62;
  --line: #d2d5c9;
  --accent: #60705f;
  --coral: #e27d68;
  --sans: 'Gang Sans', 'Gang CJK', -apple-system, 'PingFang SC', sans-serif;
  --serif: 'Gang Serif', 'Gang CJK Serif', Georgia, 'Songti SC', serif;
  --gutter: clamp(24px, 5.2vw, 80px);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.8; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--sans); }
h2 { font-size: clamp(30px, 3vw, 44px); font-weight: 600; line-height: 1.3; letter-spacing: -.035em; text-wrap: balance; }
h3 { font-weight: 500; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; cursor: pointer; -webkit-appearance: none; appearance: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
::selection { background: #dce2d5; color: var(--ink); }
.skip { position: fixed; top: -100px; padding: 12px 20px; background: var(--paper); z-index: 10; }
.skip:focus { top: 12px; }
.site-header, .section-shell, footer { max-width: 1520px; margin-inline: auto; }
.site-header { position: absolute; z-index: 3; inset: 0 0 auto; display: flex; align-items: center; gap: 30px; min-height: calc(96px + var(--safe-top)); padding: var(--safe-top) var(--gutter) 0; color: #f8f5ed; }
.site-header, .section-shell, footer { padding-left: max(var(--gutter), var(--safe-left)); padding-right: max(var(--gutter), var(--safe-right)); }
.wordmark { display: inline-flex; align-items: center; gap: 11px; font-size: 23px; font-weight: 600; line-height: 1.2; letter-spacing: -.04em; white-space: nowrap; }
.wordmark .mantou-mark { display: block; width: 31px; height: 30px; flex: 0 0 auto; color: var(--coral); }
.site-header nav { display: flex; gap: 30px; margin-left: auto; font-size: 14px; }
.site-header nav a, .language-switch { padding: 8px 0; }
.site-header nav a:hover, .language-switch:hover { color: #fff; text-decoration: underline; text-underline-offset: 6px; }
.language-switch { margin-left: 12px; border-bottom: 1px solid #f8f5ed70; font-size: 13px; line-height: 1.3; white-space: nowrap; }
.site-header a:focus-visible, .hero a:focus-visible, .hero button:focus-visible { outline-color: #f8f5ed; }

/* Full-bleed film, with local shading behind a quieter opening statement. */
.hero { --hero-inset: max(var(--gutter), calc((100% - 1520px) / 2 + var(--gutter))); position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: center; min-height: 100vh; min-height: 100svh; margin: 0; padding: 180px var(--hero-inset) 124px; padding-top: calc(clamp(150px, 20svh, 210px) + var(--safe-top)); padding-bottom: calc(124px + var(--safe-bottom)); padding-left: max(var(--hero-inset), var(--safe-left)); padding-right: max(var(--hero-inset), var(--safe-right)); overflow: hidden; background: #29312d; color: #f8f5ed; }
.hero-content { position: relative; z-index: 1; width: 100%; max-width: 640px; min-width: 0; }
.hero-byline { font-size: 12px; font-weight: 400; line-height: 1.7; letter-spacing: .025em; color: #f8f5ed; margin-bottom: 28px; }
.hero h1 { font-size: clamp(64px, 6.7vw, 100px); font-weight: 500; line-height: 1.18; letter-spacing: -.045em; text-shadow: 0 2px 20px #111b1426; }
.hero h1 em { font-style: normal; font-weight: inherit; }
:lang(en) .hero h1 { font-size: clamp(46px, 4.8vw, 74px); font-weight: 520; line-height: 1.12; letter-spacing: -.045em; }
.hero-intro { max-width: 420px; margin-top: 26px; font-size: 18px; line-height: 1.85; color: #f8f5ed; text-wrap: pretty; }
:lang(en) .hero-intro { max-width: 430px; font-size: 17px; line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 32px; }
.hero-link { display: inline-flex; align-items: center; gap: 16px; padding: 6px 0; border-bottom: 1px solid #f8f5edaa; font-size: 14px; line-height: 1.5; font-weight: 400; }
.hero-link-arrow { color: var(--coral); font-size: 21px; line-height: 1; transition: transform .18s ease; }
.hero-link:hover .hero-link-arrow { transform: translateX(3px); }
.hero-secondary { color: #f8f5ed; border-color: transparent; font-weight: 400; }
.hero-secondary:hover { border-color: #f8f5edaa; }
.hero-image { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; overflow: hidden; background: #aaa99f url('assets/hero-mantou-poster-v6.jpg') 50% center / cover; }
.hero-image::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, #191d1bad 0%, #191d1b99 32%, #191d1b6b 45%, #191d1b1a 65%, #191d1b00 78%), linear-gradient(180deg, #191d1ba6 0, #191d1b80 96px, #191d1b00 220px), linear-gradient(0deg, #191d1ba6 0, #191d1b00 130px); }
#hero-video { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% center; opacity: 0; transition: opacity .55s ease; }
.video-ready #hero-video { opacity: 1; }
.hero-foot { position: absolute; z-index: 1; left: max(var(--hero-inset), var(--safe-left)); right: max(var(--hero-inset), var(--safe-right)); bottom: calc(22px + var(--safe-bottom)); display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 0 22px; color: #f8f5ed; }
.hero-credit { font-size: 11px; line-height: 1.6; }
.hero-credit:hover { text-decoration: underline; text-underline-offset: 4px; }
.video-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 0; background: none; font-size: 11px; line-height: 1.5; }
.video-toggle:hover { text-decoration: underline; text-underline-offset: 4px; }
.video-toggle[hidden] { display: none; }
.video-toggle-icon { width: 12px; font-size: 12px; text-align: center; }

.section-shell { padding-top: 96px; padding-bottom: 96px; scroll-margin-top: 16px; }
.section-kicker { font-size: 11px; font-weight: 500; letter-spacing: .08em; line-height: 1.6; text-transform: uppercase; color: var(--accent); }
.section-heading { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 30px 60px; align-items: end; margin-bottom: 44px; }
.section-heading > div { min-width: 0; }
.section-heading .section-kicker { margin-bottom: 18px; }
.section-description { max-width: 420px; justify-self: end; color: var(--muted); font-size: 15px; line-height: 1.85; }

/* The portrait shares the flat ink shapes of the companion. */
.intro { display: grid; grid-template-columns: minmax(210px, .78fr) minmax(0, 1.5fr); align-items: center; gap: clamp(40px, 7vw, 106px); border-top: 1px solid var(--line); }
.intro-portrait { width: 100%; max-width: 315px; justify-self: center; }
.intro-portrait img { display: block; width: 100%; height: auto; }
.intro-copy { min-width: 0; }
.intro-copy > .section-kicker { margin-bottom: 14px; }
.intro-copy h2 { font-size: 32px; }
.intro-biography { margin-top: 20px; max-width: 720px; font-size: 16px; line-height: 1.95; }
.intro-biography p + p { margin-top: 14px; }
.intro-biography p:first-child { font-size: 19px; line-height: 1.85; }
.company-link { text-decoration: underline; text-decoration-color: #b2baac; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.company-link:hover { color: var(--accent); text-decoration-color: currentColor; }
.intro-wechat { padding: 0; background: none; border-bottom: 1px solid currentColor; font: inherit; line-height: inherit; }
.detail-link { display: inline-block; margin-top: 26px; padding: 5px 0; border-bottom: 1px solid var(--ink); font-size: 14px; line-height: 1.6; }
.detail-link:hover, .intro-wechat:hover { color: var(--accent); }

.intro-focus { margin-top: 28px; scroll-margin-top: 28px; }
.intro-focus h3 { color: var(--accent); font-size: 12px; font-weight: 500; line-height: 1.6; }
.focus-list { list-style: disc; margin: 12px 0 0; padding-left: 1.2em; }
.focus-list li { padding: 4px 0; font-size: 16px; font-weight: 500; line-height: 1.7; }
.focus-list li::marker { color: var(--accent); font-size: .75em; }

.projects { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.project-list { display: grid; gap: 52px; }
.project-row { display: grid; width: 100%; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 70px); align-items: center; padding: 0 0 52px; border-bottom: 1px solid var(--line); text-align: left; background: none; }
.project-row:last-child { padding-bottom: 0; border-bottom: 0; }
.project-visual { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: #e7e7dd; filter: saturate(.84) contrast(.97); }
.project-visual-pixboom { aspect-ratio: 3840 / 2026; }
.project-visual-noitom { aspect-ratio: 1; }
.project-copy { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 26px 14px; min-width: 0; }
.project-no { grid-column: 1; grid-row: 1; color: var(--accent); font-size: 12px; margin-top: 4px; }
.project-main { grid-column: 2; grid-row: 1; min-width: 0; }
.project-status { color: var(--accent); font-size: 11px; line-height: 1.8; }
.project-main h3 { margin: 12px 0 18px; font-size: clamp(31px, 3.3vw, 47px); font-weight: 600; line-height: 1.2; letter-spacing: -.045em; overflow-wrap: break-word; }
.project-main p { max-width: 350px; color: var(--muted); font-size: 16px; line-height: 1.9; }
.project-action { grid-column: 2; grid-row: 2; justify-self: start; font-size: 13px; border-bottom: 1px solid var(--ink); padding: 4px 0; }
.project-row:hover .project-action { color: var(--accent); border-color: var(--accent); }
.project-image-credit { margin-top: 32px; color: var(--muted); font-size: 11px; line-height: 1.8; }
.project-image-credit a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* One featured essay, then a compact reading list. */
.notes { border-bottom: 1px solid var(--line); }
.note-feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: 50px; padding: 44px 0 46px; border-top: 1px solid var(--line); }
.feature-note { display: block; max-width: 490px; padding-block: 12px; }
.feature-kicker { display: block; color: var(--accent); font-size: 11px; font-weight: 500; letter-spacing: .08em; line-height: 1.6; text-transform: uppercase; }
.feature-kicker::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 9px; vertical-align: .1em; border-radius: 50%; background: var(--coral); }
.feature-title { font-family: var(--serif); font-size: clamp(30px, 3.1vw, 44px); font-weight: 400; line-height: 1.45; letter-spacing: -.025em; margin-top: 20px; text-wrap: balance; }
:lang(en) .feature-title { font-size: clamp(34px, 3.6vw, 50px); line-height: 1.12; letter-spacing: -.025em; }
.feature-meta { display: block; color: var(--muted); margin-top: 20px; font-size: 13px; line-height: 1.8; }
.feature-action { display: inline-flex; align-items: center; gap: 18px; margin-top: 28px; padding: 5px 0; border-bottom: 1px solid var(--ink); font-size: 13px; line-height: 1.5; }
.feature-action span { color: var(--coral); font-size: 20px; line-height: 1; transition: transform .18s ease; }
.feature-note:hover .feature-action span { transform: translateX(3px); }
.feature-note:hover .feature-title { color: var(--accent); }
.notes-illustration { width: 100%; max-width: 550px; justify-self: end; }
.notes-illustration img { display: block; width: 100%; height: auto; }
.note-list { border-top: 1px solid var(--line); }
.note-list > a { display: grid; grid-template-columns: 82px minmax(0, 1fr) auto; align-items: center; gap: 24px; padding: 25px 0; border-bottom: 1px solid var(--line); }
.note-list a > div { min-width: 0; }
.note-type { font-size: 12px; color: var(--accent); }
.note-title { font-size: 19px; font-weight: 500; line-height: 1.65; overflow-wrap: anywhere; }
.note-meta { display: block; margin-top: 7px; color: var(--muted); font-size: 12px; line-height: 1.75; }
.note-read { font-size: 12px; color: var(--muted); text-align: right; }
.note-list a:hover .note-title { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.notes-wechat { display: inline-block; padding: 5px 0; margin-top: 28px; background: none; border-bottom: 1px solid var(--ink); font-size: 14px; line-height: 1.6; }
.notes-wechat:hover { color: var(--accent); }

.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 8vw; }
.contact > div { min-width: 0; }
.contact-aside > .section-kicker { padding-top: 8px; }
.contact-aside { min-width: 0; }
.contact-companion { position: relative; width: 160px; max-width: calc(100% - 40px); margin: 35px 20px 0; }
.contact-companion::before { content: ''; position: absolute; left: -20px; right: -20px; bottom: 6%; height: 1px; background: var(--line); }
.contact-companion img { display: block; position: relative; width: 100%; height: auto; transform-origin: 50% 94%; }
.contact-companion.is-greeting img { animation: mantou-greet 1.3s ease-in-out 1; }
@keyframes mantou-greet {
  0%, 100% { transform: none; }
  35% { transform: rotate(-1.4deg) scaleY(1.018); }
  70% { transform: rotate(.7deg); }
}
.contact-intro { max-width: 740px; font-size: 19px; line-height: 1.9; margin-top: 28px; }
.contact-prompt { max-width: 710px; font-size: 15px; line-height: 1.9; color: var(--muted); margin-top: 20px; }
.contact-links { display: flex; flex-wrap: wrap; gap: 22px 30px; margin-top: 32px; }
.contact-links a, .contact-links button { max-width: 100%; overflow-wrap: anywhere; padding: 6px 0; background: none; border-bottom: 1px solid var(--ink); font-size: 14px; line-height: 1.6; }
.contact-links a:hover, .contact-links button:hover { color: var(--accent); }
footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; padding-top: 32px; padding-bottom: calc(32px + var(--safe-bottom)); border-top: 1px solid var(--line); font-size: 12px; }
footer .wordmark { font-size: 19px; }
footer .wordmark .mantou-mark { width: 26px; height: 25px; }

html.dialog-open { overflow: hidden; scroll-behavior: auto; }
body.dialog-open { position: fixed; top: var(--dialog-scroll-y); left: 0; right: 0; width: 100%; }
dialog { width: min(780px, calc(100% - 36px - var(--safe-left) - var(--safe-right))); max-width: none; max-height: 85vh; max-height: min(85svh, calc(100dvh - var(--safe-top) - var(--safe-bottom) - 32px)); padding: 0; border: 0; background: var(--paper); color: var(--ink); overflow: hidden; }
dialog:not([open]) { display: none; }
dialog.dialog-inline[open] { display: block; position: relative; margin: 24px auto; max-height: none; border: 1px solid var(--line); }
dialog.dialog-inline .dialog-content { max-height: none; overflow: visible; }
.dialog-content { max-height: inherit; overflow: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 54px; overflow-wrap: anywhere; }
dialog::backdrop { background: #2b2d29a3; backdrop-filter: blur(4px); }
dialog h2 { font-size: 34px; margin: 20px 0 26px; }
dialog p { font-size: 16px; line-height: 1.9; }
.dialog-close { position: absolute; z-index: 2; top: 8px; right: 12px; min-width: 44px; min-height: 44px; font-size: 32px; line-height: 1; background: var(--paper); border-radius: 50%; }
.detail-question { font-family: var(--serif); font-size: 23px; margin-bottom: 22px; }
.detail-meta { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); }
.wechat-mantou-mark { display: block; width: 55px; height: 53px; margin: 20px 0 0; color: var(--coral); }
.wechat-search-name { display: block; margin-top: 24px; font-size: 26px; font-weight: 500; }

@media (max-width: 1000px) {
  .hero-content { max-width: 560px; }
  .hero h1 { font-size: clamp(60px, 7.4vw, 74px); }
  :lang(en) .hero h1 { font-size: clamp(43px, 5.5vw, 55px); }
  .hero-intro, :lang(en) .hero-intro { max-width: 400px; font-size: 16px; margin-top: 24px; }
  .hero-actions { gap: 14px 20px; margin-top: 24px; }
  .section-shell { padding-block: 76px; }
  .section-heading { gap: 24px 36px; }
  .intro { gap: 38px; grid-template-columns: minmax(175px, .75fr) minmax(0, 1.4fr); }
  .intro-biography { font-size: 15px; }
  .intro-biography p:first-child { font-size: 18px; }
  .project-row { gap: 32px; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .project-copy { gap: 20px 10px; }
  .project-main h3 { font-size: 33px; }
  .project-main p { font-size: 15px; }
  .note-feature { gap: 32px; }
  .contact { grid-template-columns: minmax(0, .7fr) minmax(0, 2fr); gap: 40px; }
}

@media (max-width: 760px) {
  .site-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 22px; min-height: calc(112px + var(--safe-top)); align-content: center; padding-top: calc(10px + var(--safe-top)); padding-bottom: 10px; }
  .site-header .wordmark { grid-column: 1; grid-row: 1; font-size: 21px; }
  .language-switch { grid-column: 2; grid-row: 1; margin: 0; font-size: 13px; }
  .site-header nav { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; flex-wrap: wrap; gap: 0 14px; margin: 0; font-size: 13px; }
  .site-header nav a { padding: 7px 0; }
  .hero { justify-content: flex-start; padding-top: calc(156px + var(--safe-top)); padding-bottom: calc(112px + var(--safe-bottom)); }
  .hero-content { max-width: 540px; }
  .hero h1 { font-size: clamp(52px, 10vw, 72px); line-height: 1.18; }
  :lang(en) .hero h1 { font-size: clamp(36px, 7.6vw, 54px); }
  .hero-byline { margin-bottom: 22px; }
  .hero-intro, :lang(en) .hero-intro { max-width: 390px; margin-top: 22px; font-size: 17px; }
  .hero-image { background-position: 58% center; }
  #hero-video { object-position: 58% center; }
  .hero-image::after { background: linear-gradient(180deg, #191d1ba6 0%, #191d1b99 24%, #191d1b94 52%, #191d1b00 80%, #191d1ba6 100%); }
  .section-heading { grid-template-columns: minmax(0, 1fr); gap: 18px; margin-bottom: 32px; }
  .section-description { justify-self: start; max-width: 540px; }
  .section-description br { display: none; }
  .intro { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .intro-portrait { width: 63%; max-width: 255px; }
  .intro-copy h2 { font-size: 30px; }
  .intro-biography { font-size: 16px; }
  .intro-biography p:first-child { font-size: 19px; }
  .project-list { gap: 40px; }
  .project-row { grid-template-columns: minmax(0, 1fr); gap: 27px; padding-bottom: 40px; }
  .project-copy { gap: 22px 14px; }
  .project-main h3 { font-size: 34px; }
  .project-main p { max-width: 540px; font-size: 16px; }
  .note-feature { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 24px 0 34px; }
  .notes-illustration { grid-column: 1; grid-row: 1; width: 78%; max-width: 350px; justify-self: center; }
  .feature-note { grid-column: 1; grid-row: 2; max-width: 540px; }
  .feature-title { font-size: 32px; line-height: 1.4; margin-top: 16px; }
  :lang(en) .feature-title { font-size: 37px; }
  .feature-meta { margin-top: 16px; }
  .feature-action { margin-top: 23px; }
  .note-list > a { grid-template-columns: 48px minmax(0, 1fr); gap: 16px; padding: 24px 0; }
  .note-read { display: none; }
  .note-title { font-size: 18px; }
  .contact { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .contact-aside > .section-kicker { padding: 0; }
  .contact-aside { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
  .contact-companion { width: 112px; flex: 0 0 112px; margin: 0 12px 0 0; }
  .contact-companion::before { left: -12px; right: -12px; }
  .contact-intro { font-size: 18px; }
}

@media (max-width: 640px) {
  :root { --gutter: 24px; }
  body { font-size: 16px; }
  .wordmark { gap: 8px; }
  .wordmark .mantou-mark { width: 28px; height: 27px; }
  .hero h1 { font-size: clamp(52px, 14.8vw, 72px); }
  :lang(en) .hero h1 { font-size: clamp(32px, 9.6vw, 54px); }
  .hero-byline { font-size: 11px; }
  .hero-intro, :lang(en) .hero-intro { font-size: 16px; }
  .hero-link { font-size: 13px; }
  .hero-foot { gap: 0 16px; bottom: calc(16px + var(--safe-bottom)); }
  .hero-credit, .video-toggle { font-size: 11px; }
  .section-shell { padding-block: 62px; }
  h2 { font-size: clamp(28px, 7.7vw, 34px); }
  .section-heading .section-kicker { margin-bottom: 14px; }
  .section-description { font-size: 14px; }
  .intro-portrait { width: 68%; max-width: 240px; }
  .intro-biography { line-height: 1.9; }
  .contact h2 { font-size: 31px; }
  .contact-links { flex-direction: column; align-items: flex-start; gap: 12px; }
  footer { padding-top: 27px; padding-bottom: calc(27px + var(--safe-bottom)); }
  footer .wordmark { font-size: 18px; }
  .dialog-content { padding: 56px 24px 28px; }
  dialog h2 { font-size: 29px; }
  .detail-question { font-size: 21px; }
}
@media (max-width: 430px) {
  :root { --gutter: 20px; }
  .hero h1 { overflow-wrap: break-word; }
  .hero-byline { font-size: 12px; }
  .hero-actions { gap: 12px 20px; }
  .note-list > a { grid-template-columns: minmax(0, 1fr); gap: 7px; }
  .contact h2 { font-size: clamp(28px, 7.6vw, 32px); }
  .contact-aside { gap: 16px; }
}
/* Keep the film and copy usable when a phone rotates to a short landscape view. */
@media (max-height: 500px) and (min-width: 761px) and (orientation: landscape) {
  .site-header { gap: 22px; min-height: calc(76px + var(--safe-top)); }
  .site-header nav { gap: 22px; }
  .hero { justify-content: flex-start; padding-top: calc(112px + var(--safe-top)); padding-bottom: calc(92px + var(--safe-bottom)); }
  .hero-byline { margin-bottom: 16px; }
  .hero-intro, :lang(en) .hero-intro { margin-top: 18px; }
  .hero-actions { margin-top: 18px; }
}
/* Keep the quiet type scale, with more room to tap on touch devices. */
@media (any-pointer: coarse), (max-width: 760px) {
  .site-header a, .hero-link, .hero-credit, .detail-link,
  .notes-wechat, .contact-links a, .contact-links button, footer a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    min-width: 44px;
  }
  .language-switch { justify-content: center; }
  .contact-links { align-items: flex-start; }
  .dialog-close { min-height: 44px; }
  .intro-wechat { min-height: 44px; }
  .project-row:active .project-action, .note-list a:active .note-title { color: var(--accent); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
