/* E3 — contact strip with the copyright cell (about + details pages; the homepage has its own in home.css) */
/* ---------- contact strip (same as the homepage) ---------- */
.h-foot {
  position: relative; display: block; height: 44px; overflow: hidden; white-space: nowrap;
  border-top: 1px solid #000; font: 400 14px/44px var(--sans);
  transition: background-color .35s cubic-bezier(.2, .8, .2, 1), color .35s cubic-bezier(.2, .8, .2, 1);
}
.h-foot a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.h-mq-track { display: inline-flex; animation: ab-mq 60s linear infinite; }
.h-mq-set { display: inline-flex; flex: none; }
.h-mq-item { padding-right: 2.5em; }
.h-foot:hover { background: #000; color: #fff; }
.h-foot:hover a { color: #fff; }
.h-foot:hover .h-mq-track { animation-play-state: paused; }
@keyframes ab-mq { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .h-mq-track { animation: none; } }

/* E9 (Yanzi 2026-11-27): the email line no longer turns black on hover — it only pauses */
.h-foot:hover, .home.refined .h-foot:hover, body.foot-dark .home.refined .h-foot:hover { background: none; color: inherit; }
.h-foot:hover a { color: inherit; }

/* E9 (Yanzi 2026-11-27, after yimao.design): a black footer under the email line —
   place + email left, copyright right */
.site-end {
  display: grid; grid-template-columns: 1fr auto; gap: 24px;
  margin: 0; padding: 14px var(--m, 24px) 16px; border-radius: 6px 6px 0 0;
  background: #000; color: #fff; font: 400 13px/1.4 var(--sans);
}
.site-end p { margin: 0; }
.se-col { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-width: 0; }
.se-low a { color: #fff; }
.site-end a:hover { opacity: .6; }
.se-r { align-items: flex-end; justify-content: flex-end; }
.se-top { font: inherit; color: #fff; letter-spacing: .02em; }
.se-top:hover { opacity: .6; }
@media (max-width: 700px) {
  .site-end { grid-template-columns: 1fr; gap: 16px; font-size: 12px; }
  .se-r { align-items: flex-start; }
}
/* Yanzi 2026-11-27 "太粗了": one thin row — place and email side by side, copyright right */
.site-end { align-items: center; padding: 11px var(--m, 24px); }
.site-end .se-col:first-child { flex-direction: row; justify-content: flex-start; gap: 32px; }
.se-r { justify-content: center; }
@media (max-width: 700px) { .site-end .se-col:first-child { flex-direction: column; gap: 4px; } }
/* (strip height / footer gap back as before — Yanzi meant the space above the strip instead) */
/* Yanzi 2026-11-28: Instagram icon inside the email line, sitting on the text like a letter */
.h-ig-a { display: inline-block; vertical-align: -0.14em; line-height: 0; }
.h-ig { display: block; width: 1.05em; height: 1.05em; }
/* Yanzi 2026-11-28: "Back to top ↑" in the middle of the black footer — one click to the top */
.site-end { grid-template-columns: 1fr auto 1fr; }
.se-top { justify-self: center; background: none; border: 0; padding: 4px 0; cursor: pointer; font: 400 13px/1.4 var(--sans); color: #fff; }
.site-end .se-r { justify-self: end; }
@media (max-width: 700px) { .site-end { grid-template-columns: 1fr auto; } .se-top { grid-column: 2; grid-row: 1; justify-self: end; } .site-end .se-r { grid-column: 1 / -1; justify-self: start; } }
/* Back to top lives on project pages only (Yanzi 2026-11-28); without it the footer is place left, copyright right */
.site-end:not(:has(.se-top)) { grid-template-columns: 1fr auto; }
/* Yanzi 2026-11-28: in Chinese, "——" and "……" are drawn by a Chinese font (one continuous line), not by Helvetica
   (which shows two short dashes with a gap). Only these characters switch; everything else keeps the site's fonts. */
@font-face { font-family: "zh-punct"; src: local("PingFang SC"), local("PingFangSC-Regular"), local("Hiragino Sans GB"), local("Microsoft YaHei"), local("Noto Sans SC"), local("Source Han Sans SC"); unicode-range: U+2014, U+2026; }
html[data-lang="zh"] { --sans: "zh-punct", "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Noto Sans SC", sans-serif; }
html[data-lang="zh"] body, html[data-lang="zh"] .home, html[data-lang="zh"] .home.refined { --sans: "zh-punct", "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Noto Sans SC", sans-serif; }
/* Yanzi 2026-11-28 ("不能只有一个词留着单独，记住，在所有的"): no lone last word on any page at any width.
   Rewording alone can't hold at every width (the text columns are fluid), so the browser keeps the last word
   company (pretty) and short lines are evened out (balance). No justify, no hyphens. Pending her choice —
   she turned pretty down on 2026-11-14; the other option is fixed text measures like About. */
/* (fixed text widths do the work now — see case7.css / about.css; pretty and balance are off) */

/* Yanzi 2026-11-29 ("不要这个蓝边"): no blue focus ring anywhere. A button the page focuses by itself (the ⌄ when
   a project opens, the viewer's ×) shows nothing; someone moving with the Tab key gets a thin ring in the
   element's own colour instead of the browser's blue. */
:focus:not(:focus-visible) { outline: none; }
:focus-visible { outline: 1px solid currentColor; outline-offset: 3px; box-shadow: none; }

/* E9 mobile (2026-11-29): bigger invisible tap areas on touch screens (about 44px tall) — the look does not change */
@media (hover: none), (max-width: 700px) {
  .bar-nav a, .bar-contact, .lang-switch button, .wg-view button, .pg-viewsw button { position: relative; }
  .bar-nav a::after, .bar-contact::after, .lang-switch button::after, .wg-view button::after, .pg-viewsw button::after {
    content: ""; position: absolute; inset: -12px -3px;
  }
}
/* Yanzi 2026-11-29: on phones the logo and the work / about / playground pills had too little room between them */
@media (max-width: 700px) { .bar { row-gap: 20px; } }

/* Space Mono (SIL Open Font License, fonts/space-mono/OFL.txt) served from the site itself — no Google Fonts,
   so it loads for visitors in mainland China too (2026-11-29) */
@font-face { font-family: "Space Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/space-mono/space-mono-latin-400-normal.woff2") format("woff2");
  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: "Space Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/space-mono/space-mono-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Space Mono"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fonts/space-mono/space-mono-latin-700-normal.woff2") format("woff2");
  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: "Space Mono"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fonts/space-mono/space-mono-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
