.meditation-portal { --portal-green: #141a24; --portal-gold: #dbad4f; --portal-ivory: #fcf2d5; --portal-muted: #626f8c; background: #f1dfb1; color: var(--portal-green); }
.meditation-portal [hidden] { display: none !important; }
.meditation-portal a, .meditation-portal button, .meditation-portal input { -webkit-tap-highlight-color: transparent; }
.meditation-portal :focus-visible { outline: 3px solid #a85f00; outline-offset: 5px; }
.portal-shell { max-width: 1680px; margin: auto; background: var(--portal-ivory); }
.skip-link { position: fixed; left: 16px; top: -100px; padding: 15px 20px; z-index: 100; background: #fffdf6; color: #141a24; }
.skip-link:focus { top: 12px; }
.portal-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px clamp(24px,5vw,84px); border-bottom: 1px solid #e7d099; }
.portal-brand { display: flex; align-items: center; gap: 18px; text-decoration: none; font: 400 1.38rem/1.1 var(--serif); }
.portal-brand small { display: block; margin-top: 7px; font: 600 .58rem/1.5 var(--sans); text-transform: uppercase; letter-spacing: .19em; }
.portal-brand .brand__mark { width: 25px; height: 25px; border-color: #a85f00; }
.portal-brand .brand__mark:after { border-color: #a85f00; }
.portal-header nav { display: flex; align-items: center; gap: 32px; }
.portal-header nav a { display: flex; align-items: center; gap: 9px; min-height: 44px; font-size: .79rem; text-decoration: none; }
.portal-header nav a:last-child { border-bottom: 1px solid #dbad4f; }
.portal-welcome { display: grid; grid-template-columns: 1.12fr 1fr; min-height: 530px; background: var(--portal-green); color: var(--portal-ivory); }
.welcome-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 60px clamp(24px,5vw,84px) 40px; }
.portal-eyebrow { margin: 0; font-size: .65rem; font-weight: 650; text-transform: uppercase; letter-spacing: .21em; line-height: 1.6; }
.welcome-copy .portal-eyebrow { color: var(--portal-gold); }
.welcome-copy h1 { margin: 26px 0 24px; font: 400 clamp(3.1rem,5.4vw,5.75rem)/1.04 var(--serif); letter-spacing: -.05em; }
.welcome-copy h1 em { color: var(--portal-gold); font-weight: 400; }
.welcome-lede { margin: 0; color: #efddae; font-size: 1rem; line-height: 1.8; }
.enter-library { display: flex; align-items: center; gap: 45px; margin: 30px 0 0; padding: 12px 0; border-bottom: 1px solid #dbad4f; color: var(--portal-gold); font-size: .85rem; text-decoration: none; min-height: 44px; }
.enter-library span { font-size: 1.3rem; }
.welcome-foot { display: flex; align-items: center; width: 100%; gap: 14px; margin-top: 54px; color: #dbad4f; font-size: .64rem; letter-spacing: .05em; }
.welcome-line { height: 1px; flex: 1; max-width: 50px; background: #687592; }
.welcome-art { position: relative; display: block; overflow: hidden; min-height: 530px; background: #131923; }
.welcome-art img { display: block; position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: 50% 54%; }
.welcome-art:after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg,rgba(14,19,27,.85),transparent 42%); pointer-events: none; }
.welcome-art-caption { position: absolute; z-index: 1; bottom: 30px; left: 36px; right: 36px; display: grid; gap: 8px; }
.welcome-art-caption > span:first-child { font-size: .62rem; letter-spacing: .17em; text-transform: uppercase; color: #f6dea2; }
.welcome-art-caption strong { font: 400 2rem/1.15 var(--serif); }
.welcome-art-arrow { position: absolute; right: 0; bottom: 2px; font-size: 2rem; color: #f6dea2; }
.portal-collection { padding: 54px clamp(24px,5vw,84px) 90px; scroll-margin-top: 16px; }
.collection-toolbar { display: flex; gap: 24px; justify-content: space-between; align-items: center; padding-bottom: 32px; border-bottom: 1px solid #e4c98a; }
.collection-label .portal-eyebrow { color: #99550d; }
.collection-label p { margin: 7px 0 0; color: #616e8b; font-size: .78rem; }
.language-filters { display: flex; gap: 5px; padding: 5px; background: #f3e3b6; border-radius: 6px; }
.language-filters button { display: flex; gap: 9px; align-items: center; min-height: 44px; padding: 10px 16px; border: 1px solid transparent; background: transparent; border-radius: 3px; color: #242e44; cursor: pointer; font-size: .78rem; }
.language-filters button span { font-size: .63rem; opacity: .85; }
.language-filters button[aria-pressed=true] { color: #fdf5dd; background: var(--portal-green); }
.language-filters button:hover:not([aria-pressed=true]) { border-color: #dbad4f; color: #141a23; }
.language-section { margin-top: 45px; }
.language-section + .language-section { margin-top: 86px; }
.unlocked-section { margin-top: 45px; }
.unlocked-section > .unlocked-language-section { margin-top: 45px; }
.unlocked-section > .unlocked-language-section + .unlocked-language-section { margin-top: 86px; }
.language-heading { display: flex; align-items: center; gap: 24px; margin: 0 0 28px; }
.language-heading h2 { font: 400 2rem/1.2 var(--serif); letter-spacing: -.025em; margin: 0; }
.language-rule { height: 1px; background: #e4c786; flex: 1; }
.language-heading p { display: grid; gap: 5px; margin: 0; text-align: right; font-size: .7rem; color: #616e8b; }
.language-count { font: .59rem/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.meditation-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 36px 26px; align-items: start; }
.meditation-card { background: var(--portal-green); color: #fdf5dd; border-radius: 4px; min-width: 0; overflow: hidden; box-shadow: 0 12px 28px rgba(19,25,34,.08); scroll-margin-top: 24px; }
.meditation-card:target { outline: 3px solid #a85f00; outline-offset: 6px; }
.meditation-cover { position: relative; isolation: isolate; aspect-ratio: 4/5; overflow: hidden; background: #141a24; }
.meditation-cover img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.22,.61,.36,1); }
.meditation-cover:after { content: ''; position: absolute; z-index: 0; inset: 0; background: linear-gradient(0deg,#121821 0%,rgba(15,20,29,.93) 9%,rgba(15,20,29,.6) 25%,transparent 52%); pointer-events: none; }
.cover-number { position: absolute; z-index: 1; left: 21px; top: 20px; font: .66rem/1 var(--mono); letter-spacing: .1em; color: #fcf1d1; text-shadow: 0 1px 5px #0b0f16; }
.cover-type { position: absolute; z-index: 1; bottom: 24px; left: 26px; right: 26px; }
.cover-type > span:first-child { display: block; font-size: .56rem; letter-spacing: .17em; text-transform: uppercase; color: #f6dea2; line-height: 1.6; margin-bottom: 10px; }
.cover-type h3 { margin: 0; font: 400 clamp(1.75rem,2.6vw,2.9rem)/1.08 var(--serif); color: #fef8e6; letter-spacing: -.03em; text-wrap: balance; overflow-wrap: break-word; text-shadow: 0 2px 16px rgba(11,15,22,.2); }
.meditation-cover--long .cover-type h3 { font-size: clamp(1.6rem,2.25vw,2.45rem); }
.cover-signature { display: block; margin-top: 16px; color: #f6dea2; text-transform: uppercase; font-size: .48rem; letter-spacing: .2em; }
.meditation-listen { padding: 0 23px 10px; display: flex; flex-direction: column; flex: 1; }
.meditation-summary { margin: 0; padding: 6px 0 20px; color: #f0deaf; font-size: .86rem; line-height: 1.7; }
.meditation-portal .meditation-grid { align-items: stretch; }
.meditation-portal .meditation-card { display: flex; flex-direction: column; }
.meditation-portal .meditation-cover { flex: 0 0 auto; }
.meditation-portal .audio-ui { margin-top: auto; }
.meditation-portal .recording-details { justify-content: flex-end; }
.meditation-listen audio { width: 100%; height: 45px; margin: 10px 0; }
.audio-ui { display: flex; gap: 16px; align-items: center; padding: 11px 0 17px; }
.audio-toggle { display: grid; place-items: center; border: 1px solid #dbad4f; background: transparent; border-radius: 50%; width: 48px; height: 48px; min-width: 48px; padding: 10px; color: #f6dea2; cursor: pointer; transition: background .2s,color .2s; }
.audio-toggle svg { display: block; width: 23px; height: 23px; }
.audio-toggle:hover, .audio-toggle[aria-pressed=true] { background: #dbad4f; color: #141a24; }
.audio-toggle:disabled { cursor: wait; opacity: .7; }
.audio-track { flex: 1; min-width: 0; }
.audio-time { display: flex; justify-content: space-between; gap: 10px; font: .62rem/1.4 var(--mono); color: #e8d39f; }
.audio-seek { appearance: none; display: block; width: 100%; height: 26px; margin: 2px 0 -7px; background: transparent; cursor: pointer; accent-color: #dbad4f; }
.audio-seek::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(to right,#dbad4f var(--progress,0%),#626f8c var(--progress,0%)); }
.audio-seek::-webkit-slider-thumb { appearance: none; width: 10px; height: 10px; margin-top: -4px; background: #dbad4f; border: 0; border-radius: 50%; }
.audio-seek::-moz-range-track { height: 2px; background: #626f8c; }
.audio-seek::-moz-range-progress { height: 2px; background: #dbad4f; }
.audio-seek::-moz-range-thumb { width: 10px; height: 10px; background: #dbad4f; border: 0; border-radius: 50%; }
.audio-seek:disabled { cursor: default; opacity: .65; }
.recording-details { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid #222c40; padding-top: 4px; }
.recording-details > span { color: #dbad4f; font-size: .61rem; }
.download-original { display: inline-flex; gap: 10px; align-items: center; text-decoration: none; color: #f6dea2; font-size: .65rem; min-height: 44px; }
.download-original:hover { color: #fef6e2; text-decoration: underline; text-underline-offset: 4px; }
.download-original svg { width: 15px; height: 15px; }
.large-file-note { margin: 0 0 7px; font-size: .6rem; color: #dbad4f; line-height: 1.5; }
.audio-status { margin: 0; color: #f6dea2; font-size: .7rem; line-height: 1.6; }
.audio-status:not(:empty) { margin: 0 0 14px; }
.heart-letter { display: grid; grid-template-columns: minmax(50px,1fr) minmax(0,620px) minmax(24px,1fr); gap: 35px; padding: 78px clamp(24px,5vw,84px) 82px; background: #f3e2b4; border-top: 1px solid #f6dea2; }
.letter-mark { font: italic 2.5rem/1 var(--serif); color: #a85f00; justify-self: end; margin-top: 38px; }
.heart-letter .portal-eyebrow { color: #99550d; }
.heart-letter h2 { font: 400 clamp(2rem,3.5vw,3.5rem)/1.12 var(--serif); margin: 23px 0; letter-spacing: -.03em; }
.heart-letter h2 em { color: #a85f00; font-weight: 400; }
.heart-letter p:not(.portal-eyebrow) { color: #242e44; font-size: .94rem; line-height: 1.85; }
.heart-letter .letter-signature { margin-top: 28px; }
.letter-signature span { color: #1c2433; font: italic 1.3rem/1.8 var(--serif); }
.portal-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 26px clamp(24px,5vw,84px); font-size: .7rem; background: #141a24; color: #e8d3a0; }
.portal-footer a { display: flex; align-items: center; min-height: 44px; text-decoration: none; }
.portal-footer > span { font: italic 1rem/1.5 var(--serif); color: #dbad4f; }
@media (hover:hover) { .meditation-card:hover .meditation-cover img { transform: scale(1.025); } }
@media (min-width:1500px) { .portal-welcome { min-height: 610px; } .welcome-art { min-height:610px; } }
@media (max-width:1020px) { .meditation-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px; } .cover-type h3 { font-size: 2.5rem; } .meditation-cover--long .cover-type h3 { font-size: 2.2rem; } .welcome-copy { padding: 40px 30px; } .welcome-copy h1 { font-size: 3.5rem; } .welcome-foot { flex-wrap: wrap; margin-top: 34px; line-height: 1.6; } .collection-toolbar { align-items: flex-start; flex-direction: column; gap: 20px; } }
@media (max-width:700px) { .portal-header { padding: 16px 24px; } .portal-header nav { gap: 14px; } .portal-header nav a { font-size: .68rem; } .portal-header nav a:last-child { display: none; } .portal-brand { gap: 13px; font-size: 1.22rem; } .portal-brand small { font-size: .49rem; } .portal-welcome { grid-template-columns: 1fr; } .welcome-copy { padding: 42px 26px 27px; } .welcome-copy h1 { font-size: clamp(2.7rem,11vw,4.5rem); margin: 20px 0; } .welcome-lede { font-size: .9rem; } .welcome-foot { margin-top: 28px; } .welcome-art { min-height: 0; height: 300px; } .welcome-art img { object-position: 50% 55%; } .welcome-art-caption { left: 26px; right: 26px; bottom: 23px; } .welcome-art-caption strong { font-size: 1.75rem; } .welcome-art-caption > span:first-child { font-size: .56rem; } .enter-library { margin-top: 17px; } .portal-collection { padding-top: 35px; padding-bottom: 55px; } .language-filters { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); width: 100%; gap: 2px; padding: 4px; } .language-filters button { justify-content: center; padding: 9px 6px; gap: 5px; font-size: .7rem; } .language-filters button span { font-size: .58rem; } .collection-toolbar { padding-bottom: 26px; } .language-heading { gap: 14px; margin-bottom: 21px; } .language-heading h2 { font-size: 1.8rem; } .language-heading p { font-size: .61rem; } .language-count { font-size: .53rem; } .language-section, .unlocked-section { margin-top: 31px; } .language-section + .language-section, .unlocked-section > .unlocked-language-section + .unlocked-language-section { margin-top: 55px; } .unlocked-section > .unlocked-language-section { margin-top: 31px; } .meditation-grid { gap: 26px; grid-template-columns: 1fr; } .cover-type { left: 25px; right: 25px; } .cover-type h3 { font-size: clamp(2rem,8vw,3.2rem); } .meditation-cover--long .cover-type h3 { font-size: clamp(1.85rem,7.3vw,2.7rem); } .cover-signature { font-size: .5rem; } .audio-seek { height: 44px; margin-bottom: -14px; margin-top: -3px; } .audio-ui { padding-top: 8px; } .heart-letter { grid-template-columns: 1fr; gap: 20px; padding: 45px 27px; } .letter-mark { justify-self: start; margin-top: 0; } .heart-letter h2 { font-size: 2.8rem; } .portal-footer { align-items: flex-start; flex-direction: column; padding: 22px 27px; } }
@media (prefers-reduced-motion: reduce) { .meditation-portal *, .meditation-portal *:before, .meditation-portal *:after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
