
:root{
    --ink:#2c2b27;--red:#943f30;--rule:#c9c0ae;--paper:#faf6ed
}
*{box-sizing:border-box}
body{
    margin:0;
    color:var(--ink);
    background:var(--paper);
    font:17px/1.8 "Microsoft JhengHei",sans-serif
}
header,main,footer{
    max-width:1160px;margin:auto;padding:0 4vw
}
header{
    display:flexbox;
    justify-content:space-between;
    align-items:center;
    padding-top:20px;
    padding-bottom:16px;
    border-bottom:1px solid var(--ink)
}
.copyWrite{
    font-size:0.5rem;
    color:var(--ink);
    text-align:left;
}
header a{
    font-weight:bold;
    color:var(--ink);
    text-decoration:none
}
header span,small,figcaption{
    font-size:.85rem
}
a,.tag,.card span{
    color:var(--red)
}
a{text-underline-offset:4px}
a:focus-visible,summary:focus-visible{
    outline:3px solid var(--red);outline-offset:3px
}
h1,h2{font-family:"Noto Serif TC","PMingLiU",serif;line-height:1.35}
h1{
    font-size:clamp(2.3rem,5vw,4.8rem);margin:.12em 0 .3em
}
h2{
    font-size:clamp(1.45rem,3vw,2.05rem);margin:.24em 0 .65em
}
.tag,.card span{
    font-size:.84rem;font-weight:bold;letter-spacing:.12em
}
.intro{padding:2.5rem 0 1.75rem}
.intro p{margin:.5rem 0}
.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:2.2rem 1.4rem}
.card{
    color:inherit;
    text-decoration:none;
    border-bottom:1px solid var(--rule);
    padding:0 0 1rem
}
.card img{display:block;width:100%;aspect-ratio: 16 / 10;margin:0 auto;object-fit: contain;}
.hero img{display:block;width:100%;height:auto}
.card span{display:block;margin-top:.72rem}
.card h2{font-size:1.45rem;margin:.25rem 0}
.card:hover h2{text-decoration:underline}
.crumb{font-size:.88rem}
.hero{display:grid;grid-template-columns:1.1fr 1fr;gap:2rem;align-items:center}
.hero h1{font-size:clamp(2rem,4vw,3.2rem)}
figure{margin:0}
figcaption{padding:.35rem 0;color:#655947}
.topics,.footnav,.refs{display:flex;flex-wrap:wrap;gap:.8em 1.5em}
.topics{padding:1rem 0;border-block:1px solid var(--rule);margin:1.7rem 0}
.footnav{justify-content:space-between;padding:1.5rem 0}
section{max-width:850px;padding:1.4rem 0;border-bottom:1px solid var(--rule)}
section .tag{margin:0}
ol{padding-left:2rem}
li::marker{font-weight:bold;color:var(--red)}
li{padding-left:.35rem;margin:1.2rem 0}
li p{margin:0 0 .5rem}
.shot{border-left:2px solid var(--rule);padding-left:.8rem}
.shot img{max-width:100%;height:auto}
.shot code{overflow-wrap:anywhere}
.check{border-left:3px solid var(--red);background:#eee7d9;padding:1rem}
.resources,details{font-size:.94rem}
details{margin:1.4rem 0}
summary{cursor:pointer;color:var(--red)}
.refs{margin-top:.7rem}
footer{
    margin-top:2rem;
    padding-top:1rem;
    padding-bottom:1.5rem;
    border-top:1px solid var(--rule);
    font-size:.85rem
}
@media(max-width:820px){.grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:550px){
    .grid,.hero{grid-template-columns:1fr}
    .hero{gap:.4rem}
    .intro{padding-top:1.4rem}
    .topics{gap:.4rem 1rem}
}
