@font-face {
  font-family: Bricolage;
  src: url("assets/display.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}
:root {
  --paper: #fbf7ed;
  --ink: #202f3b;
  --accent: #194eaa;
  --line: #d3cdbd;
  --display: Bricolage, "PingFang SC", "Microsoft YaHei", sans-serif;
  --body: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 18px; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.7 var(--body); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
h1,h2,h3,p,figure,dl,dd { margin: 0; }
h1,h2,h3 { font-family: var(--display); line-height: 1.16; }
a:focus-visible,button:focus-visible { outline: 3px solid #bb4b19; outline-offset: 5px; }
.wrap { width: min(1440px, 91%); margin-inline: auto; }
.skip { position: absolute; z-index: 8; left: 12px; top: -80px; padding: 8px 18px; background: white; }
.skip:focus { top: 10px; }
.mast { border-bottom: 1px solid var(--line); background: #fffdf5; }
.mast-inner,.foot,.actions,.mast nav,.brand,.button,.section-heading,.text-link { display: flex; align-items: center; }
.mast-inner,.foot,.section-heading { justify-content: space-between; }
.mast-inner { min-height: 72px; }
.brand { gap: 9px; font: 790 28px/1 var(--display); letter-spacing: -.065em; }
.brand img { object-fit: contain; }
.mast nav { gap: clamp(16px,3vw,50px); font-size: 14px; font-weight: 720; }
.mast nav a,.text-link,.back,.foot a { text-underline-offset: .28em; }
.mast nav a:hover,.text-link:hover,.back:hover,.foot a:hover { text-decoration: underline; }
.mast .git { border-left: 1px solid var(--line); padding-left: clamp(14px,2.2vw,34px); font-family: var(--display); font-size: 15px; }
.cover { padding-top: 28px; }
.cover-inner { isolation: isolate; position: relative; min-height: clamp(380px,34.8vw,545px); display: grid; grid-template-columns: 46% 54%; background: #ffefd6; box-shadow: 0 7px 0 -2px #e9dabe; overflow: hidden; }
.cover-art { position: absolute; inset: 0 0 0 40%; z-index: -2; background: #34a8ce; }
.cover-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.cover-inner::before { content:''; position: absolute; z-index: -1; inset: 0 51% 0 0; background-color: #fff5db; background-image: repeating-linear-gradient(4deg, #e0bd7312 0 1px,transparent 1px 4px); clip-path: polygon(0 0,100% 0,98.7% 4%,99% 7%,97.5% 14%,98.2% 19%,96.3% 24%,97% 31%,95.5% 36%,96% 40%,94.7% 48%,95.9% 52%,94% 60%,94.8% 65%,93% 70%,94% 76%,92.4% 82%,93.6% 87%,92% 95%,92.5% 100%,0 100%); }
.cover-copy { align-self: center; padding: clamp(30px,4.2vw,76px); padding-right: 0; }
.cover-copy h1 { width: fit-content; }
.nameplate { display: block; width: max-content; font-family: var(--display); font-size: clamp(66px,7.8vw,122px); line-height: .98; font-weight: 800; letter-spacing: -.085em; color: #144887; transform: rotate(-3deg); transform-origin: left bottom; text-shadow: 2px 3px 0 #ffbd5a; }
.cover-title { display: block; margin-top: 10px; font-size: clamp(28px,3.25vw,52px); font-weight: 900; letter-spacing: -.07em; color: #253447; }
.cover-copy p { max-width: 26em; margin: 20px 24px 0 0; font-size: clamp(14px,1.1vw,17px); color: #424649; }
.actions { flex-wrap: wrap; gap: 14px 23px; margin-top: 28px; }
.button { display: inline-flex; justify-content: center; gap: 14px; border: 0; background: var(--accent); color: #fff; padding: 11px 21px; border-radius: 4px 7px 5px 3px; font-weight: 740; cursor: pointer; transition: transform .2s, box-shadow .2s; box-shadow: 2px 3px 0 #182d4233; }
.button:hover { transform: translateY(-2px) rotate(-1deg); box-shadow: 3px 5px 0 #182d422e; }
.text-link { display: inline-flex; gap: 6px; width: fit-content; color: var(--accent); font-size: 14px; font-weight: 750; }
.section-heading { gap: 14px; align-items: baseline; margin-bottom: 25px; }
h2 { font-size: clamp(28px,3.15vw,48px); letter-spacing: -.067em; }
.section-heading p,.project-meta,figcaption,.category,.next small,.player small { font-size: 13px; }
.section-heading p,figcaption { color: #5e625b; }
.work-section { padding-top: clamp(46px,5.5vw,84px); }
.projects { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(18px,2.4vw,38px); }
.project-card { min-width: 0; display: block; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.project-image { overflow: hidden; position: relative; aspect-ratio: 1.76; background: #e9e5d5; box-shadow: 0 3px 0 #b8b7a642; }
.project-image > img:first-child,.detail-art > img:first-child:not(.pb-backdrop) { width: 100%; height: 100%; object-fit: cover; }
.project-image img { transition: transform .4s ease; }
.project-card:hover .project-image img:first-child { transform: scale(1.035); }
.project-card:hover .diagonal { transform: translate(2px,-2px); }
.pb-card .project-image,.pb-art { background: #b6d8e5; }
.project-image .sky-art { position: absolute; inset: 16% 0 0; object-fit: cover; }
.project-image .pb-word { position: absolute; left: 38%; top: 11%; width: 25%; height: 77%; object-fit: contain; filter: drop-shadow(2px 5px 2px #46372238); transform: rotate(-5deg); }
.mc-card .project-image { background: #f6f2e8; }
.mc-card .project-image img { object-position: center 48%; }
.project-meta { margin: 18px 0 6px; color: #555a53; }
.project-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.project-heading h3 { font-size: clamp(22px,2vw,32px); font-weight: 800; letter-spacing: -.06em; }
.diagonal { font-family: var(--display); font-size: 23px; line-height: 1; transition: transform .18s; }
.project-card p,.about p,.community p,.mechanism p,.choices p,.deck-example > div >p,.rule-copy,.scrapbook p { color: #47504d; }
.project-card p { margin-top: 10px; font-size: 14px; }
.about,.community { display: grid; grid-template-columns: 1fr 1.04fr; align-items: center; gap: clamp(28px,5vw,76px); }
.about { margin-top: 72px; margin-bottom: 76px; border-top: 1px solid var(--line); padding-top: 48px; }
.about h2,.community h2,.mechanism h2,.deck-example h2 { margin-bottom: 20px; }
.about p + p { margin: 10px 0 18px; }
.about-photos { display: flex; justify-content: center; padding: 14px 8px; background: repeating-linear-gradient(-45deg,#d7e8e3 0 10px,#dcece7 10px 20px); }
.about-photos figure { width: 40%; padding: 6px 6px 15px; background: #fffdf5; box-shadow: 2px 4px 6px #29272223; transform: rotate(-6deg); }
.about-photos figure + figure { transform: rotate(6deg); margin-left: -3%; margin-top: 9px; }
.about-photos img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.foot { min-height: 88px; color: #354740; }
.foot .brand { font-size: 22px; }
.foot > a:last-child { font-size: 13px; }
footer { border-top: 1px solid var(--line); }
.back { display: inline-block; margin-top: 25px; min-height: 34px; font-size: 14px; font-weight: 680; }
.detail-hero { border-bottom: 1px solid var(--line); }
.detail-layout { display: grid; align-items: center; grid-template-columns: .9fr 1.2fr; gap: 6%; padding: 26px 0 44px; }
.detail-title h1 { margin: 9px 0 15px; font-size: clamp(42px,5.45vw,88px); font-weight: 850; letter-spacing: -.085em; }
.category { font-weight: 750; color: var(--accent); }
.lede { max-width: 33em; line-height: 1.9; margin-bottom: 25px; }
.detail-art { position: relative; overflow: hidden; width: 100%; aspect-ratio: 1.8; }
.pinball { --accent: #943f20; --ink: #543a2d; --paper: #faf4e5; }
.pinball .detail-hero { background-color: #d1e8ed; background-image: linear-gradient(to bottom,#eff5ed 0%,#c9e4ed 75%,#e5ebdc 100%); }
.pinball .detail-title h1 { text-shadow: 2px 3px #f8e9c9; }
.pb-art { border-radius: 45% 18% 6% 13% / 13% 11% 9% 12%; box-shadow: 2px 5px 0 #b5cac4; }
.pb-backdrop { position: absolute; width: 100%; height: 85%; bottom: 0; object-fit: cover; }
.pb-title-art { position: absolute; width: 40%; height: 83%; object-fit: contain; left: 30%; top: 5%; transform: rotate(-5deg); filter: drop-shadow(3px 5px 1px #5238232e); }
.section { padding-top: 57px; padding-bottom: 38px; }
.exhibit,.mechanism,.deck-example { display: grid; grid-template-columns: 1.35fr .75fr; gap: clamp(25px,4vw,70px); align-items: center; }
.screen { background: #fff8e9; padding: 9px; transform: rotate(-.65deg); box-shadow: 2px 5px 0 #dfd0b2; }
.screen img { width: 100%; aspect-ratio: 1.6; object-fit: cover; }
.choice-list { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.choice-list button { padding: 9px 15px; border: 1px solid var(--line); background: #fff9ec; color: var(--ink); font-weight: 680; border-radius: 3px; cursor: pointer; }
.choice-list button[aria-pressed=true] { color: white; border-color: var(--accent); background: var(--accent); }
.mechanism { grid-template-columns: .75fr 1.25fr; padding-block: 26px 22px; }
.mechanism figcaption { margin-top: 6px; }
.mechanism img { width: 100%; }
.player { position: relative; aspect-ratio: 16 / 9; background: #eee8da; overflow: hidden; border: 5px solid #d5c3a3; box-shadow: 0 4px 0 #aa9377; }
.player-start,.player-start > img,.player-wash,.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-start > img { object-fit: cover; }
.player-wash { background: #e9e4cf7a; }
.player-plate { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 12px; }
.player-plate img { width: min(22%,200px); }
.player small { background: #fff7e6ed; color: #493829; padding: 2px 8px; }
.minecraft { --paper: #f7f5eb; --accent: #22604e; --ink: #214e44; }
.minecraft .detail-hero { background-color: #f6f3e7; background-image: repeating-linear-gradient(90deg, #526c4d09 0 1px, transparent 1px 5px), repeating-linear-gradient(0deg,#526c4d08 0 1px,transparent 1px 5px); }
.minecraft .detail-title h1 { width: fit-content; background-color: #205347; color: #fffbe7; padding: .12em .23em .16em; transform: rotate(-3deg); box-shadow: 5px 5px 0 #efb6ad; }
.voxel-art { aspect-ratio: 1.65; clip-path: polygon(0 3%,25% 1%,48% 3%,76% 0,100% 2%,98.8% 38%,100% 70%,98% 98%,71% 100%,42% 98%,0 100%,1% 60%); }
.scrapbook { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 25px; }
.scrapbook article { position: relative; padding: 16px 16px 23px; background: #fffdf6; box-shadow: 2px 4px 0 #d6d5c3; }
.scrapbook article::before { content:''; position: absolute; top: -6px; left: 37%; width: 26%; height: 16px; background: repeating-linear-gradient(45deg,#b7c9aeaa 0 5px,#c9d7c4aa 5px 10px); transform: rotate(-4deg); }
.scrapbook figure { display: grid; place-items: center; aspect-ratio: 2.2; background: #edece0; margin-bottom: 16px; }
.scrapbook figure img { max-height: 100%; width: 100%; object-fit: contain; }
.scrapbook h3 { font-size: 23px; margin-bottom: 7px; }
.community { margin-block: 32px 66px; padding-block: 30px; border-top: 2px dashed #aebda6; }
.movie-links a { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--accent); font-weight: 700; }
.cards { --accent: #922f20; --ink: #382d29; --paper: #f9f2e3; }
.cards h1,.cards h2,.cards .reading-card h3 { font-family: 'Songti SC','SimSun',Georgia,serif; }
.cards .detail-hero { background: #f0e3cc; border-bottom: 4px double #9c7960; }
.cards .detail-title h1 { color: #8b2f20; max-width: 5em; font-size: clamp(45px,5vw,80px); }
.card-art { border: 4px double #92755d; }
.deck-counts { display: grid; grid-template-columns: repeat(5,1fr); border-block: 2px solid #846f57; }
.deck-counts div { padding: 11px 13px; display:flex; align-items: baseline; justify-content: space-between; gap: 5px; }
.deck-counts div+div { border-left: 1px solid var(--line); }
.deck-counts dd { font: 640 clamp(24px,4vw,52px)/1.3 var(--display); color: var(--accent); }
.rule-copy { margin-top: 14px; }
.deck-example { grid-template-columns: 1fr .9fr; padding: 30px 0 55px; }
.reading-card { padding: 30px 32px; border: 4px double var(--accent); background: #f3e4ca; min-height: 180px; box-shadow: 5px 5px 0 #d8c19a; transform: rotate(1deg); }
.reading-card h3 { color: var(--accent); font-size: 38px; margin: 5px 0 12px; }
.reading-card > span { font-size: 13px; font-weight: 720; }
.next { border-top: 1px solid var(--line); margin-top: 20px; }
.next a { display: flex; gap: 18px; align-items: baseline; padding: 22px 0; }
.next strong { font-size: 23px; }
.next span { margin-left: auto; font-size: 28px; }
@media(max-width:850px) {
  .cover-copy { padding-left: 25px; }
  .cover-inner { grid-template-columns: 47% 53%; }
  .cover-inner::before { right: 48%; }
  .actions { gap: 13px; }
  .projects { gap: 15px; }
  .scrapbook { gap: 14px; }
  .deck-counts div { flex-direction: column; }
}
@media(max-width:650px) {
  .wrap { width: 91%; }
  .mast-inner { min-height: 58px; }
  .mast nav { gap: 15px; font-size: 13px; }
  .brand { font-size: 23px; gap: 5px; }
  .brand img { width: 29px; height: 27px; }
  .mast .git { padding-left: 10px; font-size: 13px; }
  .cover { padding-top: 15px; }
  .cover-inner { display: flex; flex-direction: column; background: #fff3d9; }
  .cover-art { position: static; order: 2; aspect-ratio: 1.85; }
  .cover-inner::before { display: none; }
  .cover-copy { padding: 25px 22px; align-self: stretch; }
  .nameplate { font-size: clamp(62px,15vw,86px); }
  .cover-title { font-size: 30px; }
  .cover-copy p { margin-top: 12px; }
  .actions { margin-top: 18px; }
  .section-heading { flex-wrap: wrap; row-gap: 6px; margin-bottom: 18px; }
  .work-section { padding-top: 38px; }
  .projects,.scrapbook,.detail-layout,.exhibit,.mechanism,.community,.about,.deck-example { grid-template-columns: 1fr; }
  .projects { gap: 25px; }
  .about { margin-block: 38px; padding-top: 28px; }
  .about-photos { order: 2; }
  .section { padding-block: 37px 24px; }
  .detail-layout { gap: 22px; padding: 12px 0 27px; }
  .detail-art { max-height: 330px; }
  .lede { margin-bottom: 16px; }
  .choices p { margin: 0; }
  .mechanism { padding-block: 20px; }
  .scrapbook { gap: 20px; }
  .player { border-width: 3px; }
  .player-plate { gap: 5px; }
  .player-plate .button { padding: 6px 13px; }
  .next a { gap: 12px; }
  .deck-counts div { padding-inline: 8px; }
}
@media(prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto; }
  *,*::before,*::after { transition:none!important; animation:none!important; }
}
