:root{font-family:Arial,"Noto Sans TC",sans-serif;color:#171717;background:#fff}
*{box-sizing:border-box}
html{scrollbar-gutter:stable}
body{margin:0;min-width:320px}
a{color:inherit;text-decoration:none}
a:hover{opacity:.64;text-decoration:none}
a:focus-visible{outline:2px solid #171717;outline-offset:5px}
.page{width:min(1520px,100%);margin:auto;padding:clamp(22px,3.6vw,58px)}
.masthead{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-bottom:18px;border-bottom:1px solid #222}
.brand{display:flex;align-items:center;gap:18px;min-width:0;flex:1}
.brand>a:first-child{flex:none}
.brand img{display:block;width:112px;height:auto}
.brand-title{min-width:0;font:600 29px/1.3 system-ui,"Microsoft JhengHei",sans-serif;letter-spacing:0}
.login{font-size:12px;font-weight:700;letter-spacing:.12em;white-space:nowrap}
.composition{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:clamp(36px,5vw,76px);padding-top:clamp(32px,5vw,70px)}
.art{display:flex;flex-direction:column;min-width:0;min-height:660px}
.art h1{font-size:clamp(54px,7vw,100px);line-height:.9;letter-spacing:-.075em;margin:0;white-space:nowrap}
.art .sub{font-size:13px;font-weight:700;letter-spacing:.1em;line-height:1.5;margin:17px 0 0}
.art img{display:block;width:100%;min-height:0;flex:1;object-fit:contain;margin-top:16px}
.art .credit{font-size:11px;font-weight:700;letter-spacing:.1em;margin:6px 0 0}
.entries{display:flex;flex-direction:column;justify-content:flex-end}
.entry{display:flex;flex-direction:column;justify-content:flex-end;min-height:clamp(84px,5.2vw,98px);padding:8px 0}
.entry+.entry{border-top:1px solid #bcbcbc}
.entry small{display:block;font-size:14px;font-weight:700;margin-bottom:7px}
.entry strong{display:block;font-size:clamp(40px,4.4vw,68px);line-height:.98;letter-spacing:-.065em;white-space:nowrap}
footer{display:flex;justify-content:space-between;gap:20px;border-top:1px solid #222;margin-top:48px;padding-top:12px;font-size:11px;font-weight:700;letter-spacing:.1em}
@media(min-width:901px) and (max-height:950px){
  .page{padding-top:16px;padding-bottom:16px}
  .masthead{padding-bottom:9px}
  .brand img{width:86px}
  .composition{padding-top:14px;gap:clamp(32px,5vw,76px)}
  .art{min-height:0;height:calc(100dvh - 138px)}
  .art h1{font-size:clamp(48px,5vw,72px)}
  .art img{margin-top:8px}
  .entry{padding:5px 0 8px}
  .entry small{font-size:12px;margin-bottom:3px}
  .entry strong{font-size:clamp(35px,3.2vw,53px)}
  footer{margin-top:8px;padding-top:7px}
}
@media(orientation:landscape) and (min-width:901px) and (max-width:1300px){
  .page{padding:14px 26px}
  .masthead{padding-bottom:8px}
  .brand img{width:88px}
}
@media(max-width:900px){
  .page{padding:24px}
  .composition{display:block}
  .art{min-height:0}
  .art img{height:clamp(390px,70vw,690px);flex:none}
  .entries{margin-top:36px}
  .entry strong{font-size:clamp(42px,8vw,66px)}
}
@media(max-width:520px){
  .page{padding:18px}
  .masthead{gap:10px;min-height:79px}
  .brand{gap:10px}
  .brand img{width:92px}
  .brand-title{font-size:23px}
  .art h1{font-size:clamp(37px,9vw,48px)}
  .art img{height:360px}
  .entry strong{font-size:clamp(39px,10vw,52px)}
  footer{margin-top:38px}
}
@media(min-width:521px) and (max-width:760px){.brand-title{font-size:23px}}
@media(max-width:520px){.page{padding:77px 18px 20px}.masthead{position:fixed;z-index:50;top:10px;left:18px;right:18px;min-height:65px;background:#fff}.masthead::before{content:"";position:fixed;top:0;left:0;right:0;height:10px;background:#fff;pointer-events:none}.brand img{width:70px}.page>footer{position:static;top:auto;left:auto;right:auto;height:auto;margin:18px 0 0;padding:6px 0 0;background:#fff;align-items:flex-start}}
@media(max-width:360px){body{min-width:0}.brand-title{font-size:18px;white-space:nowrap}.entry strong{font-size:clamp(33px,10.3vw,37px)}}
@media(min-width:1301px) and (min-height:1001px){.page{padding-bottom:150px}.page>footer{position:fixed;z-index:50;top:calc(100dvh - 130px);left:max(clamp(22px,3.6vw,58px),calc((100% - 1520px)/2 + 58px));right:max(clamp(22px,3.6vw,58px),calc((100% - 1520px)/2 + 58px));width:auto;margin:0;background:#fff}}

/* Keep section-home navigation typography in step with the main QAF homepage. */
.entry{justify-content:center;gap:2px}
.entry small{margin-bottom:0}
@media(orientation:landscape) and (min-width:901px) and (max-width:1300px){.entry{min-height:76px;padding:8px 0}}
@media(min-width:1301px) and (max-height:950px){.entry{min-height:clamp(80px,5vw,88px);padding:8px 0}}
@media(min-width:900px) and (max-height:700px){.entry{min-height:clamp(54px,5vw,74px);padding:2px 0}.entry small{font-size:10px}.entry strong{font-size:clamp(30px,3vw,42px)}}
@media(min-width:900px) and (min-height:621px) and (max-height:700px){.entry{min-height:clamp(62px,5vw,74px)}}
@media(min-width:900px) and (max-height:620px){.entry{gap:1px}.entry small{font-size:9px}.entry strong{font-size:clamp(26px,2.3vw,34px)}}
@media(orientation:portrait) and (min-width:521px) and (max-width:1150px){
  .entry{min-height:80px;padding:5px 0}
  .entry small{font-size:12px}
  .entry strong{font-size:clamp(40px,5.8vw,52px)}
}
@media(max-width:520px){
  .entry{min-height:100px}
  .entry strong{font-size:clamp(36px,9vw,47px)}
}
@media(max-width:360px){.entry strong{font-size:34px;letter-spacing:-.09em}}

/* The four landing pages share one frame and one right-column start. */
@media(orientation:landscape) and (min-width:901px) and (max-width:1300px){
  .composition{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(20px,3vw,38px)}
  .entries{--empty-row:76px}
}
@media(min-width:1301px){
  .page{padding-top:16px;padding-bottom:16px}
  .masthead{padding-bottom:9px}
  .brand img{width:86px}
  .composition{grid-template-columns:minmax(0,1fr) minmax(620px,.95fr);column-gap:clamp(32px,5vw,72px);height:min(860px,calc(100dvh - 135px));padding-top:12px}
  .art h1{font-size:clamp(48px,5vw,72px)}
  .entries{--empty-row:clamp(80px,5vw,88px)}
  .entries:has(>.entry:nth-child(5):last-child){padding-bottom:calc(var(--empty-row) - 5px)}
  .entries:has(>.entry:nth-child(4):last-child){padding-bottom:calc(2 * var(--empty-row) - 4px)}
  .entry{min-height:clamp(80px,5vw,88px);padding:8px 0}
  .entry small{font-size:12px;margin-bottom:0}
  .entry strong{font-size:clamp(35px,3.2vw,53px)}
  footer{margin-top:8px;padding-top:7px}
}
@media(min-width:900px) and (max-height:620px){
  .composition{grid-template-columns:minmax(0,1.12fr) minmax(0,.88fr);column-gap:24px}
}
@media(min-width:900px) and (max-height:700px){
  .page{padding-top:12px;padding-bottom:12px}
  .masthead{padding-bottom:7px}
  .art{height:calc(100dvh - 136px)}
  .entries{--empty-row:clamp(54px,5vw,74px)}
}
@media(min-width:900px) and (min-height:621px) and (max-height:700px){.entries{--empty-row:clamp(62px,5vw,74px)}}
@media(min-width:900px){
  .entries:has(>.entry:nth-child(5):last-child){padding-bottom:var(--empty-row)}
  .entries:has(>.entry:nth-child(4):last-child){padding-bottom:calc(2 * var(--empty-row))}
}
@media(orientation:portrait) and (min-width:521px) and (max-width:1150px){
  .composition{min-height:calc(24px + clamp(650px,92vw,760px) + 480px)}
  .entries{padding-bottom:0!important}
  footer{margin-top:18px}
}
@media(max-width:520px){.composition{min-height:calc(24px + min(500px, calc(100svh - 180px)) + 600px)}}
@media(min-width:1301px) and (max-height:950px){
  .composition{padding-top:12px}
  .art{height:calc(100dvh - 147px)}
}
@media(min-width:1301px) and (min-height:1001px){.page{padding-bottom:16px}.page>footer{position:static;top:auto;left:auto;right:auto;margin-top:8px}}

@media(prefers-reduced-motion:no-preference){
  .page>main,.brand-title,.section-home-link{transition:clip-path .46s ease,opacity .46s ease;clip-path:inset(0 0 0 0);opacity:1}
  .home-arriving .page>main,.home-arriving .brand-title,.home-arriving .section-home-link{clip-path:inset(0 100% 0 0);opacity:0}
  .home-leaving .page>main,.home-leaving .brand-title,.home-leaving .section-home-link{clip-path:inset(0 0 0 100%);opacity:0}
}

/* Use the existing QAF home frame on short landscape phones. */
@media(orientation:landscape) and (max-width:899px) and (max-height:500px){
  .page{padding:6px 18px}
  .masthead{position:static;min-height:52px;padding-bottom:5px}
  .masthead::before{content:none}
  .brand{gap:10px}
  .brand img{width:70px}
  .brand-title{font-size:16px;line-height:1.2;white-space:nowrap}
  .composition{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr);grid-template-rows:minmax(0,1fr);column-gap:18px;min-height:0;height:calc(100svh - 99px);padding-top:8px}
  .art{position:relative;min-height:0;height:100%;overflow:hidden}
  .art h1{position:absolute;top:0;left:0;z-index:1;font-size:clamp(29px,6.3vw,42px);line-height:.9}
  .art .sub{position:absolute;top:clamp(30px,6vw,40px);left:0;z-index:1;margin:3px 0 0;font-size:10px;line-height:1.25;letter-spacing:.05em}
  .art img{position:absolute;top:16px;right:0;width:68%;height:calc(100% - 42px);margin:0;flex:none;object-fit:contain;object-position:right center}
  .art .credit{position:absolute;bottom:0;left:0;margin:0;font-size:9px}
  .entries{height:100%;min-height:0;margin:0;justify-content:flex-start}
  .entry{flex:0 0 calc(100% / 6);min-height:0;padding:2px 0;gap:1px}
  .entries:has(>.entry:nth-child(7)) .entry{flex-basis:calc(100% / 7)}
  .entry small{font-size:9px;margin:0}
  .entry strong{font-size:clamp(19px,2.8vw,27px);line-height:.98}
  .page>footer{margin-top:8px;padding-top:6px;font-size:11px}
}
@media(orientation:landscape) and (max-width:750px) and (max-height:500px){
  .art img[src*="guitar-lineart"]{top:70px;height:calc(100% - 94px)}
}
@media(orientation:landscape) and (max-width:620px) and (max-height:500px){
  .composition{min-height:280px}
}

