/* One type scale: marker titles, handwritten labels, serif reading text. */
:root{--font-title:'Permanent Marker',cursive;--font-note:'Kalam',cursive;--font-body:'Crimson Text',Georgia,serif;--type-chapter:clamp(30px,4.8vw,46px);--type-story:clamp(25px,3vw,32px);--type-reading:1.1875rem;--type-note:1rem}
body{font-family:var(--font-body);font-size:var(--type-reading);line-height:1.65}
button,input,select,textarea{font-family:var(--font-note)}
.main-title,.chapter-head h2,.migration-wrap>h2{font-family:var(--font-title)!important;font-size:var(--type-chapter)!important;font-weight:400!important;line-height:1.25!important;letter-spacing:0}
.club-story>.story-title,.athletics-title{font:400 var(--type-story)/1.3 var(--font-title)!important}
.academic-feature h3,.achievement-grid h3,#aktiviti .spread-event-title,#aktiviti .spread-writeup h3,#aktiviti .wu-head,.tribute-card h3{font:600 var(--type-story)/1.25 var(--font-body)!important;text-shadow:none!important}
.lined-h{font:400 clamp(24px,3vw,30px)/1.35 var(--font-title)}
.msg-body,.lined-body,.chapter-intro,.academic-feature p,.achievement-grid p,.tribute-intro,.tribute-card>p,.club-story p,.club-story li,#aktiviti .spread-writeup p,#aktiviti .timeline-card>p,.year-album-card>p{font-family:var(--font-body)!important;font-size:var(--type-reading)!important;line-height:1.75!important;font-style:normal}
.athletics-card p{font-family:var(--font-body)!important;font-size:1.0625rem!important;line-height:1.6!important}
.club-story .detail p,.club-story .detail li{font-family:var(--font-note)!important;font-size:1rem!important;line-height:1.6!important}
.section-note,.chapter-head>p,.migration-kicker,.editorial-kicker,.month-nav a,.month-nav span,.timeline-card time,.chapter-nav a,.editorial-link,.house-footer a,.akp-group figcaption,.bare-spread-cap,.msg-signame,.msg-pos,.lined-role,.toc-sub,.ft-links a,.scrapbook-open{font-family:var(--font-note)!important;font-size:var(--type-note)!important;line-height:1.5!important;letter-spacing:.015em}
.msg-nametag,.msg-greeting,.lined-sig,.toc-ttl,#guru .gnm,#akp .gnm{font-family:var(--font-note)!important;font-size:1rem!important;line-height:1.4!important}
#guru .grole,#akp .grole{font-family:var(--font-note)!important;font-size:.875rem!important;line-height:1.5!important}
#guru .staff-subhead,.club-story .detail h3{font:700 1.1875rem/1.4 var(--font-note)!important}
.class-formal figcaption{font-family:var(--font-note)!important;font-size:1rem!important;line-height:1.75!important}
.class-formal figcaption p{font-size:inherit;line-height:inherit}
.class-name-heading{font:400 clamp(28px,4vw,38px)/1.25 var(--font-title)!important}
.class-level-label{font:400 .875rem/1.5 var(--font-note)!important;letter-spacing:.08em!important;color:#d0c8b6!important}
.house-nm{font:400 1.625rem/1.25 var(--font-title)!important}
.cover-sub{font:400 1.25rem/1.5 var(--font-note);color:#d0c8d4;letter-spacing:.04em}
.cover-crest-cap,.cover-motto,.ft-name,.ft-motto,.ft-copy{font-family:var(--font-note);font-size:.875rem;line-height:1.5}
.cover-motto{color:#c6bdca}.cover-crest-cap{color:#51483f}.ft-name,.ft-links a{color:#d0c6d4}.ft-copy{color:#b3a8b8}
.ft-title{font:400 2rem/1.3 var(--font-title)}
.cover-title{font-family:var(--font-title)}
#jasamu-dikenang>.migration-wrap>h2{font-family:var(--font-body)!important;font-size:clamp(46px,7vw,76px)!important;font-weight:400!important;line-height:1.1!important}
.tribute-divider i{font:italic 1.5rem/1.4 var(--font-body)}

/* Small handmade details, always outside the photographic surface. */
.scrapbook-chapter{position:relative;isolation:isolate}
.scrapbook-chapter>.editorial-wrap,.scrapbook-chapter>.spread-wrap,.scrapbook-chapter>.r{position:relative;z-index:1}
.scrap-stamp{position:absolute;right:max(18px,calc((100% - 1130px)/2));top:22px;width:95px;height:95px;border:2px solid currentColor;border-radius:50%;opacity:.23;transform:rotate(15deg);pointer-events:none;z-index:0}
.scrap-stamp:before{content:'THOMASIAN';position:absolute;inset:6px;border:1px dashed currentColor;border-radius:50%;display:flex;align-items:center;justify-content:center;padding-bottom:16px;font:700 11px/1 var(--font-note);letter-spacing:1px}
.scrap-stamp:after{content:'2026';position:absolute;left:0;right:0;top:47px;text-align:center;font:400 21px/1 var(--font-title)}
.scrap-mascot{pointer-events:none;user-select:none;position:relative;z-index:1}
.scrap-mascot img{display:block;width:100%;height:auto;filter:drop-shadow(3px 5px 1px #0002)}
.cover-mascot{position:absolute;bottom:7%;right:6%;width:clamp(100px,15vw,185px);transform:rotate(8deg)}
.chapter-mascot{width:125px;margin:0 auto 28px;transform:rotate(-7deg)}
#kokurikulum .chapter-mascot{transform:rotate(7deg);width:110px}
.margin-spark{position:absolute;width:22px;height:30px;color:var(--gold);pointer-events:none;z-index:0;opacity:.65}
.margin-spark:before,.margin-spark:after{content:'';position:absolute;background:currentColor;border-radius:80%}
.margin-spark:before{width:4px;height:30px;left:9px;top:0;transform:rotate(17deg)}
.margin-spark:after{width:22px;height:4px;left:0;top:13px;transform:rotate(17deg)}
.margin-spark-a{top:48%;left:max(9px,calc((100% - 1190px)/2));transform:rotate(-12deg)}
.margin-spark-b{bottom:42px;right:max(12px,calc((100% - 1180px)/2));transform:scale(.7) rotate(15deg)}
.scrap-paper{position:relative}
.tape-corner:not(.timeline-card):before,.timeline-card.tape-corner:after{content:'';position:absolute;top:-11px;left:24px;width:75px;height:24px;transform:rotate(-8deg);background:repeating-linear-gradient(90deg,#ebc45b80 0 3px,#ebc45b99 3px 6px);border-inline:2px dashed #fff7;box-shadow:0 1px 1px #0001;pointer-events:none;z-index:2}
.year-album-card.tape-corner:before{left:auto;right:24px;background:repeating-linear-gradient(90deg,#b6cbb998 0 3px,#b6cbbbbb 3px 6px);transform:rotate(8deg)}
.athletics-card.tape-corner:before{width:55px;height:19px;top:-8px;left:18px}
.album-print{position:relative;padding:12px 12px 18px!important;background:#fff;box-shadow:5px 6px 0 #0002;border:1px solid #d6ccba;overflow:visible!important}
.album-print:before,.album-print:after{content:'';position:absolute;top:-10px;width:65px;height:25px;background:#e4c15da8;border-inline:2px dashed #ffffff70;pointer-events:none;z-index:2}
.album-print:before{left:18px;transform:rotate(-12deg)}
.album-print:after{right:18px;transform:rotate(12deg)}
.album-print figcaption{padding:12px 8px 0;color:#302b26}
.paperclip-card{position:relative}
.paperclip-card:after{content:'';position:absolute;top:-15px;right:9px;width:13px;height:37px;border:3px solid #849b9d;border-radius:10px;transform:rotate(15deg);box-shadow:inset 0 0 0 2px #fff9,1px 2px 1px #0003;pointer-events:none;z-index:2}
.chapter-rule{height:6px;border-radius:60% 20% 50% 30%}
.chapter-head:after{height:5px;border-radius:50%;width:125px;opacity:.45}
.year-album-card,.timeline-card,.academic-feature{border:1px solid #d5c8b3}
.month-label{box-shadow:4px 5px 0 #0005;border-radius:2px}
.athletics-card{border-bottom:1px solid #ddcfba}
.class-slideshow{border:9px solid #fff;box-shadow:5px 6px 0 #0002}
/* Keep slideshow dimensions and all original framing intact. */
.class-slideshow img{object-fit:contain}
.scrapbook-open{padding:7px 10px;min-height:40px}
.ft-links{gap:14px 24px;flex-wrap:wrap}
@media(hover:hover){.chapter-nav a,.achievement-grid a,.editorial-link{transition:background .18s,color .18s}.scrap-paper{transition:box-shadow .2s}.scrap-paper:hover{box-shadow:7px 8px 0 #0003}}
@keyframes sticker-arrive{0%{opacity:0;transform:translateY(12px) rotate(-12deg) scale(.9)}70%{opacity:1;transform:translateY(-3px) rotate(3deg) scale(1.025)}100%{opacity:1;transform:translateY(0) rotate(0) scale(1)}}
@keyframes small-spark{0%,100%{opacity:.45;scale:.8}50%{opacity:.95;scale:1.15}}
@keyframes underline-draw{from{clip-path:inset(0 100% 0 0)}to{clip-path:inset(0 0 0 0)}}
@media(prefers-reduced-motion:no-preference){.scrap-mascot.decoration-seen img{animation:sticker-arrive .8s ease both}.scrapbook-chapter.decoration-seen>.margin-spark{animation:small-spark 1.2s ease 2}.scrap-chapter-heading.decoration-seen:after{animation:underline-draw .8s ease both}}
@media(max-width:760px){:root{--type-reading:1.125rem}.cover-mascot{width:90px;bottom:28px;right:16px;opacity:.9}.scrap-stamp{width:70px;height:70px;right:14px;top:12px;opacity:.16}.scrap-stamp:before{font-size:8px;padding-bottom:13px;inset:4px}.scrap-stamp:after{font-size:16px;top:34px}.chapter-mascot{width:100px;margin-bottom:23px}#kokurikulum .chapter-mascot{width:95px}.margin-spark-a{left:6px;opacity:.35}.margin-spark-b{right:5px;opacity:.35}.album-print{padding:8px 8px 16px!important}.album-print figcaption{padding:12px 4px 0}.album-print:before,.album-print:after{width:45px;height:20px;top:-8px}.class-slideshow{border-width:6px}.tape-corner:not(.timeline-card):before,.timeline-card.tape-corner:after{width:55px;height:20px;left:18px}.class-formal figcaption{font-size:.9375rem!important}.chapter-head h2{overflow-wrap:normal}.academic-feature{padding:25px 20px}.cover-title{font-size:clamp(56px,14vw,110px)}}
@media(max-width:380px){.cover-mascot{width:70px;bottom:22px;right:8px}.cover-sub{font-size:1.0625rem}.main-title,.chapter-head h2{font-size:1.875rem!important}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;scroll-behavior:auto!important}.scrap-mascot img{opacity:1;transform:none}}
