@import url('layout-balance.css');
/* Shared frosted surfaces, scenic background and offline-friendly navigation. */
:root{--glass:rgba(255,250,248,.57);--border:rgba(255,255,255,.75)}
body{--scene-image:url('images/hero.webp');--scene-mist:rgba(192,201,214,.45);background:#9ca6b5}
body.westhelia-page,body.westhelia-portal{--scene-image:url('images/westhelia/environments/aethelford.jpg');--scene-mist:rgba(211,202,203,.38);background:#c9bdc4}
.site-background,.westhelia-page .site-background,.portal-backdrop{position:fixed;inset:-24px;z-index:-2;pointer-events:none;background:linear-gradient(var(--scene-mist),var(--scene-mist)),var(--scene-image) center/cover no-repeat;filter:blur(13px) saturate(.7)}
.site-grid{opacity:.045}
/* Blend the banner into its own blurred scene instead of a different landscape. */
.hero,.portal-hero{-webkit-mask-image:none;mask-image:none}
.hero-image,.hero-shade,.portal-hero>.portal-hero-image,.portal-hero:after{-webkit-mask-image:none;mask-image:none}
.hero-content,.portal-title{opacity:1;text-shadow:0 2px 5px #10172599}
.hero .hero-subtitle,.portal-title .portal-thai,.portal-title .portal-motto{color:#fff;font-weight:500;text-shadow:0 1px 3px #101725cc}
.hero .hero-subtitle{display:inline-block;padding:0;border-radius:0;background:none;backdrop-filter:none;-webkit-backdrop-filter:none}
.hero .art-label{bottom:12px}
/* Keep text in document flow so Thai lines and zoom can grow the banner. */
.hero{height:auto;min-height:330px;padding:120px 0 64px;display:flex;align-items:center}
.hero-home{min-height:405px}
.hero .hero-content{position:relative;top:auto;left:auto;right:auto;transform:none;width:430px;max-width:calc(100% - 40px);margin-left:clamp(20px,12vw,240px)}
.hero-inner .hero-content{width:min(1500px,calc(100% - 2 * var(--gutter)));max-width:none;margin-inline:auto}
.hero .hero-subtitle{max-width:100%;white-space:normal;overflow-wrap:anywhere}
@media(max-width:767px){.hero{min-height:315px;padding-top:112px;padding-bottom:66px}.hero-home{min-height:365px}.hero .hero-content{width:calc(100% - 40px);max-width:none;margin-inline:20px}.hero-inner .hero-content{width:calc(100% - 44px);margin-inline:22px}}
.glass{background:linear-gradient(125deg,rgba(247,249,252,.72),rgba(235,237,246,.55))}
.glass,.portal-panel,.reading-sheet,.westhelia-portal .navbar{background:linear-gradient(125deg,rgba(255,252,250,.67),rgba(246,236,242,.47));border:1px solid var(--border);backdrop-filter:blur(22px) saturate(1.12);-webkit-backdrop-filter:blur(22px) saturate(1.12);box-shadow:0 12px 38px #35202d1c,inset 0 1px 0 #ffffffb3}
.reading-sheet{background:rgba(255,250,246,.78)}
.portal-city,.portal-events>a,.noble-placeholder{background:rgba(255,250,248,.28);border-color:#ffffff80}
.portal-notes{color:#44343e}.portal-heading>span,.portal-events small{color:#5b4954}
.portal-hero{position:relative;isolation:isolate;overflow:hidden;background:transparent}
.portal-hero>.portal-hero-image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 47%;z-index:-2}
.portal-hero:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#251d32ad,#35232e40 65%,#251d321a);z-index:-1;pointer-events:none}
.portal-hero-inner{position:relative}
.portal-breadcrumb{align-items:center;line-height:1.4}
.portal-breadcrumb>a,.portal-breadcrumb>span{display:inline-flex;align-items:center;min-height:36px;padding:0;line-height:inherit}
main{animation:page-arrive 420ms cubic-bezier(.2,.75,.25,1) both}
html.is-leaving main{animation:page-depart 180ms ease-out both;pointer-events:none}
@keyframes page-arrive{from{opacity:0;transform:translateY(9px)}to{opacity:1;transform:none}}
@keyframes page-depart{from{opacity:1;transform:none}to{opacity:0;transform:translateY(-5px)}}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){.glass,.portal-panel,.reading-sheet,.westhelia-portal .navbar{background:#f5edf2f2}}
@media(max-width:767px){.site-background,.portal-backdrop,.westhelia-page .site-background{filter:blur(7px) saturate(.72)}.glass,.portal-panel{backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}}
@media(prefers-reduced-motion:reduce){main,html.is-leaving main{animation:none!important;transform:none!important;opacity:1!important}}
