:root {
  color-scheme: light dark;
  --paper: #f2f3f1;
  --ink: #1e2328;
  --muted: #565f5b;
  --focus: #236247;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", "Microsoft JhengHei", sans-serif;
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
  background: var(--paper);
  color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
a:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 4.2%; }
.wordmark { margin: 0; font-size: 36px; font-weight: 750; letter-spacing: -3px; line-height: 1; }
.wordmark span { color: #a53d2f; }
.intro { text-align: right; }
.eyebrow { margin: 0 0 8px; font-size: 11px; letter-spacing: .18em; color: var(--muted); }
h1 { margin: 0; font-size: clamp(14px, 1.5vw, 22px); line-height: 1.5; font-weight: 500; letter-spacing: .04em; }
.works { display: grid; grid-template-columns: 1fr 1fr; }
.stage-load { display: none; }   /* the stage's loading mark (stage.css): not part of the plain page */
.all-works { display: none; }    /* the stage's list of every work under it (stage.css, main.ts): the plain page is that list already */
.project { min-width: 0; display: flex; flex-direction: column; --focus: #ffe7a5; }
.project:focus-visible { position: relative; z-index: 1; outline-offset: -7px; }
.temple { background: #351c1c; color: #f7e7cd; }
.life { background: #e8ece7; color: #1e2328; --focus: #236247; }
.scene { height: clamp(280px, 26vw, 540px); overflow: hidden; }
.scene img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .45s ease; }
.temple .scene img { object-position: 50% 46%; }
.life .scene { display: flex; align-items: center; background: #cbd9d0; padding: 0 5%; }
.life .scene img { height: auto; aspect-ratio: 1056 / 384; image-rendering: pixelated; }
.tofu { background: #f6efe1; color: #2b1f18; --focus: #9b2a1f; }
.tofu .scene img { object-position: 50% 15%; }
.moto { background: #0e4636; color: #eef4ee; }
.moto .scene img { object-position: 50% 60%; }
.car { background: #f2a93b; color: #102f3b; --focus: #102f3b; }
.clay { background: #05695a; color: #f6f7f1; }
.clay .scene img { object-position: 50% 52%; }
.hoop { background: #102f3b; color: #f6f7f1; }
.hoop .scene img { object-position: 50% 25%; }
.letgo { background: #c8cfb9; color: #1c241b; --focus: #34502b; }
.letgo .scene img { object-position: 50% 45%; }
.lift { background: #f2b705; color: #1d2a2a; --focus: #1d2a2a; }
.lift .scene img { object-position: 50% 55%; }
.tuktuk { background: #1757ad; color: #f8f5ec; }
.tuktuk .scene img { object-position: 50% 55%; }
.dog { background: #5b3a8c; color: #fbf8ff; }
.dog .scene img { object-position: 50% 60%; }
.airboat { background: #ff6a13; color: #1d2a2a; --focus: #1d2a2a; }
.airboat .scene img { object-position: 50% 55%; }
.boar { background: #2d6624; color: #f7f9f0; }
.boar .scene img { object-position: 50% 40%; }
.drone { background: #c6e03a; color: #1d2a2a; --focus: #1d2a2a; }
.drone .scene img { object-position: 45% 55%; }
.project-content { padding: 22px 8.4% 22px; flex: 1; }
.project-index { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 18px; font-size: 11px; line-height: 1.5; letter-spacing: .08em; }
.temple .project-index { color: #d4b48c; }
.life .project-index { color: #32634b; }
.tofu .project-index { color: #a8281d; }
.moto .project-index { color: #ffd35c; }
.car .project-index { color: #5a3300; }
.clay .project-index { color: #ffd358; }
.hoop .project-index { color: #ff9a4a; }
.letgo .project-index { color: #34502b; }
.lift .project-index { color: #634400; }
.tuktuk .project-index { color: #ffd35c; }
.dog .project-index { color: #ffc94d; }
.airboat .project-index { color: #4a1a00; }
.boar .project-index { color: #ffd84a; }
.drone .project-index { color: #4d5c00; }
h2 { margin: 0 0 16px; font-family: "Songti TC", "Noto Serif TC", PMingLiU, serif; font-weight: 600; font-size: clamp(42px, 4.2vw, 80px); line-height: 1.15; letter-spacing: .035em; }
.life h2 { letter-spacing: -.055em; white-space: nowrap; }
.one { color: #af382d; }
.description { margin: 0; font-size: clamp(15px, 1.1vw, 18px); line-height: 1.8; letter-spacing: .025em; }
.destination { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; padding-top: 12px; border-top: 1px solid; font-size: 13px; line-height: 1.5; letter-spacing: .04em; }
.temple .destination { border-color: #78594a; color: #e1c198; }
.life .destination { border-color: #acbdb0; color: #32634b; }
.tofu .destination { border-color: #d9c6a6; color: #9b2a1f; }
.moto .destination { border-color: #3d7563; color: #ffd35c; }
.car .destination { border-color: #c27f1a; color: #5a3300; }
.clay .destination { border-color: #3b9082; color: #ffd358; }
.hoop .destination { border-color: #35596a; color: #ff9a4a; }
.letgo .destination { border-color: #9aa58c; color: #34502b; }
.arrow { display: inline-block; font-size: 25px; line-height: 1; transition: transform .25s ease; }
.footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 28px; padding: 24px 4.2%; color: var(--muted); font-size: 12px; line-height: 1.6; }
.footer p { margin: 0; font-weight: 650; }
.footer p span { margin-left: 16px; font-weight: 400; }
.footer nav { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 28px; }
.footer a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.error-page { min-height: 100svh; max-width: 1000px; margin: auto; padding: 48px 8%; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.error-page .eyebrow { margin-top: 48px; }
.error-page h1 { font-size: clamp(32px, 6vw, 64px); font-weight: 600; }
.error-page .message { font-size: 16px; line-height: 1.8; color: var(--muted); }
.home-link { display: inline-flex; align-items: center; gap: 40px; min-height: 48px; border-bottom: 1px solid; margin-top: 20px; }
@media (hover: hover) {
  .project:hover .scene img { transform: scale(1.025); }
  .project:hover .arrow { transform: translate(3px, -3px); }
  .footer a:hover, .home-link:hover { text-decoration: underline; text-underline-offset: 5px; }
}
.project:active .scene img { transform: scale(1.012); }
.project:active .arrow { transform: translate(2px, -2px); }
@media (max-width: 699px) {
  .masthead { padding: 22px 6%; gap: 16px; }
  .wordmark { font-size: 32px; letter-spacing: -2.5px; }
  .intro { max-width: 230px; }
  .eyebrow { font-size: 10px; margin-bottom: 5px; }
  h1 { font-size: 13px; text-wrap: balance; }
  .works { grid-template-columns: 1fr; }
  .scene { height: clamp(176px, 56vw, 370px); }
  .project-content { padding: 18px 6% 20px; }
  .project-index { font-size: 10px; margin-bottom: 11px; }
  h2 { font-size: clamp(37px, 10.5vw, 58px); margin-bottom: 11px; }
  .life h2 { font-size: clamp(35px, 9.7vw, 56px); }
  .description { font-size: 14px; line-height: 1.8; letter-spacing: 0; }
  .destination { margin-top: 16px; padding-top: 10px; font-size: 12px; }
  .arrow { font-size: 22px; }
  .footer { padding: 22px 6%; gap: 10px; }
  .footer nav { gap: 0 24px; }
  .footer p span { display: block; margin: 2px 0 0; }   /* the sentence about aioo on its own line */
}
@media (min-width: 700px) and (max-width: 1000px) {
  .project-content { padding-right: 7%; padding-left: 7%; }
  h2 { font-size: 40px; }
  .life h2 { font-size: 36px; }
  .description { font-size: 14px; letter-spacing: 0; }
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #171c1a; --ink: #e7eae4; --muted: #b2bdb5; --focus: #c0e1b4; }
  .wordmark span { color: #dfa679; }
}
@media (prefers-reduced-motion: reduce) {
  .scene img, .arrow { transition: none; }
  .project:hover .scene img, .project:active .scene img, .project:hover .arrow, .project:active .arrow { transform: none; }
}
@media (forced-colors: active) {
  .project { outline: 1px solid CanvasText; }
  .project-index, .destination, .one { color: LinkText; }
}

@media (max-width: 360px) and (max-height: 640px) {
  .masthead { padding-top: 18px; padding-bottom: 18px; }
  .temple .scene { height: 160px; }
  .temple .project-content { padding-top: 14px; padding-bottom: 16px; }
  .temple .destination { margin-top: 12px; }
  .life .scene { align-items: flex-start; padding-top: 20px; }
}
