@font-face {
    font-family: OshnaDiary;
    src: url('/wp-content/uploads/fonts/Delius-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: OshnaBook;
    src: url('/wp-content/uploads/fonts/Pretendard-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
/* Use the theme's navigation, account controls and footer around the illustrated home. */
body.home:has(.oshna-static-home) .site-header {
    position:absolute; inset:auto 0 auto; z-index:20; width:100%;
    background:linear-gradient(180deg,#102f2cde,#102f2c8f);
}
#main.oshna-static-home {
    --gutter:clamp(24px,8.7vw,174px); --forest:#163a33; --cream:#faf7f0; --peach:#ffb17b;
    --home-print:OshnaBook,"Apple SD Gothic Neo","Malgun Gothic",sans-serif;
    --home-diary:OshnaDiary,var(--home-print);
    font-family:var(--home-print);
    margin:0; padding:0; max-width:none; width:100%; color:var(--forest); background:var(--cream);
}
.oshna-static-home :focus-visible {outline:3px solid #ee944c; outline-offset:5px}
.oshna-static-home .osh-welcome {
    position:relative; isolation:isolate; overflow:hidden; display:grid; align-items:end;
    min-height:clamp(350px,68vh,620px); min-height:clamp(350px,68svh,620px); color:#fff9eb; background:var(--forest);
}
.osh-welcome-art {position:absolute; inset:0; z-index:-2; overflow:hidden; container-type:size; pointer-events:none}
/* Crop the whole illustration together so Humo's feet always meet the same stone step. */
.osh-courtyard-scene {
    position:absolute; left:50%; top:82%; width:max(100cqw,150cqh); aspect-ratio:3/2;
    transform:translate(-50%,-82%);
}
.osh-courtyard-scene .osh-courtyard {display:block; width:100%; height:100%}
.osh-humo-perch {
    position:absolute; left:68%; top:85%; width:8.2%; aspect-ratio:1;
    transform:translate(-64%,-96%); isolation:isolate;
}
.osh-humo-perch::before {
    content:""; position:absolute; left:43%; bottom:0; width:48%; height:7%;
    background:radial-gradient(ellipse,#48361dd1 0%,#5c42276b 38%,transparent 72%);
    transform:rotate(-7deg);
}
.osh-humo-perch .osh-welcome-humo {position:relative; display:block; width:100%; height:100%; filter:saturate(.90)}
.osh-welcome::before {
    content:""; position:absolute; inset:0; z-index:-1; pointer-events:none;
    background:linear-gradient(90deg,#091e1ac7,#091e1a38 49%,transparent 80%),linear-gradient(0deg,#0a1b17b3,transparent 57%,#08191420 79%,#08191470);
}
.osh-welcome .osh-hello {width:100%; max-width:2100px; margin:0 auto; padding:90px clamp(28px,7vw,144px) clamp(36px,6svh,64px)}
.osh-welcome h1 {margin:0; color:#fff9eb; font:400 clamp(48px,4.8vw,84px)/1.12 var(--home-diary); letter-spacing:-.015em}
.osh-welcome h1 span {color:var(--peach)}
.osh-hello p {margin:clamp(15px,1.6vw,24px) 0 2px; font:400 clamp(16px,1.06vw,18px)/1.55 var(--home-diary); color:inherit}
.osh-languages {display:flex; flex-wrap:wrap; align-items:center; gap:2px clamp(16px,1.65vw,28px)}
.oshna-static-home .osh-languages a {display:inline-flex; align-items:center; gap:9px; min-height:44px; color:inherit; text-decoration:none!important; border-bottom:1px solid #fff9; font-size:clamp(15px,1.05vw,18px); font-weight:600; white-space:nowrap}
.oshna-static-home .osh-languages a:first-child,.oshna-static-home .osh-languages a:hover {color:var(--peach); border-color:var(--peach)}
.oshna-static-home .osh-down {position:absolute; right:clamp(22px,4.5vw,92px); bottom:clamp(28px,6svh,70px); display:grid; place-items:center; width:44px; height:44px; border:1px solid #fff9; border-radius:50%; color:#fff9eb; text-decoration:none!important; font:25px/1 Georgia,serif}
.oshna-static-home .osh-excerpt {
    max-width:2100px; margin:auto;
    padding:clamp(42px,4.4vw,76px) var(--gutter);
}
.osh-lesson-card {
    display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.08fr);
    overflow:hidden; border:1px solid #d5dacd; border-radius:14px; background:#fffdf7;
}
.osh-lesson-scene {position:relative; margin:0; min-height:0}
.osh-lesson-scene img {position:absolute; inset:0; display:block; width:100%; height:100%; object-fit:cover; object-position:50% 42%}
.osh-lesson-scene figcaption {position:absolute; bottom:12px; left:12px; padding:4px 9px; background:#fffdf7; color:#40574b; font:400 12px/1.5 var(--home-print)}
.osh-lesson-card .osh-dialogue {align-self:center; padding:clamp(23px,2.8vw,50px)}
.osh-lesson-heading {margin-bottom:20px}
.osh-lesson-heading p {margin:0 0 10px; font:400 16px/1.5 var(--home-print); color:#526357}
.oshna-static-home h2 {margin:0; font:400 clamp(33px,3.4vw,66px)/1.2 var(--home-diary); letter-spacing:-.015em; color:var(--forest)}
.osh-excerpt #osh-dialogue-title {font-size:clamp(1.5rem,1rem + 1.1vw,2.25rem); text-wrap:balance}
.osh-dialogue dl {margin:0 0 12px; max-width:48rem}
.osh-dialogue dt {color:#435b4e; font:600 15px/1.5 var(--home-print)}
.osh-dialogue dd {margin:0}
.osh-dialogue dd + dt {margin-top:18px; padding-top:16px; border-top:1px solid #c3cbbf}
.osh-dialogue dd p {margin:0; font:400 clamp(16px,1.03vw,19px)/1.55 var(--home-diary); color:#526357}
.osh-dialogue dd p:first-child {color:var(--forest); font-size:clamp(22px,1.7vw,30px); line-height:1.35; margin:3px 0}
.oshna-static-home .osh-more,.oshna-static-home .osh-launch {display:inline-block; border-bottom:1px solid currentColor; color:var(--forest); text-decoration:none!important; padding:7px 0; font-weight:600}
.osh-more span {margin-left:8px}.osh-lookup {padding:clamp(32px,4.5vw,76px) var(--gutter); background:#f0ebdf; border-top:1px solid #ced3c5}
.osh-lookup form {max-width:1740px; margin:0 auto; display:flex; align-items:center; gap:clamp(22px,4.5vw,100px)}
.osh-lookup form h2 {font-size:clamp(27px,2.6vw,46px)}.osh-lookup form label {font:inherit}
.osh-lookup form div {display:flex; flex:1; gap:10px}.osh-lookup input {min-width:0; flex:1; padding:11px 12px; border:1px solid #98a798; background:#faf8f1; color:var(--forest); font:inherit}
.osh-lookup button {padding:10px 18px; border:1px solid var(--forest); background:var(--forest); color:#fff9ec; cursor:pointer; font:inherit; font-weight:600}
.oshna-static-home .osh-launch {margin-top:18px; font-size:14px; font-weight:500}

.osh-home-inner {max-width:2100px; margin-inline:auto; padding-inline:var(--gutter)}
.osh-companions {background:#e8eee6; color:var(--forest); padding-block:clamp(48px,5.5vw,100px)}
.osh-practice-head {display:flex; align-items:baseline; justify-content:space-between; flex-wrap:wrap; gap:12px 32px; margin-bottom:clamp(22px,3vw,42px)}
.osh-practice-head #osh-companion-title {font-size:clamp(1.625rem,1.05rem + 1.3vw,2.5rem); text-wrap:balance}
.osh-practice-head .osh-more {font-size:15px}
.osh-practice-grid {display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:clamp(14px,2vw,32px); align-items:start}
.osh-practice {border-radius:16px; overflow:hidden; background:#fffdf7; color:var(--forest)}
.osh-practice-portrait {
    position:relative; min-height:clamp(154px,12vw,208px); display:flex; flex-direction:column;
    justify-content:end; padding:22px clamp(18px,1.9vw,32px); background:#edc190;
}
.osh-practice-buni .osh-practice-portrait {background:#d1dcd5}
.osh-practice-misha .osh-practice-portrait {background:#e3cebd}
.osh-practice-portrait img {position:absolute; height:94%; width:58%; right:2%; bottom:0; object-fit:contain; object-position:center bottom}
.osh-practice-portrait h3 {margin:0; font:400 clamp(26px,2.4vw,42px)/1.16 var(--home-diary); color:var(--forest)}
.osh-practice-portrait p {margin:4px 0 0; font:400 15px/1.5 var(--home-print)}
.osh-practice-body {padding:20px clamp(18px,1.9vw,32px) 16px}
.osh-practice .osh-phrase {font:400 clamp(23px,1.88vw,34px)/1.3 var(--home-diary); margin:0 0 12px; overflow-wrap:break-word}
.osh-practice .osh-phrase:lang(ko) {font-family:var(--home-print); word-break:keep-all}
.osh-practice details {border-top:1px solid #d3d8cc; font:400 16px/1.55 var(--home-print)}
.osh-practice summary {width:100%; min-height:44px; display:flex; align-items:center; justify-content:space-between; gap:12px; cursor:pointer; list-style:none}
.osh-practice summary::-webkit-details-marker {display:none}
.osh-practice summary::after {content:""; width:9px; height:9px; border:solid currentColor; border-width:0 1.5px 1.5px 0; transform:rotate(45deg); margin-right:3px}
.osh-practice details[open] summary::after {transform:rotate(225deg)}
.osh-practice details p {margin:5px 0 12px}
.osh-practice details a {display:inline-block; padding:6px 0; color:#175848; text-decoration:underline; text-underline-offset:4px}
.osh-diary {background:#f8f3e9; padding-block:clamp(48px,6vw,110px)}
.osh-diary-spread {display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); align-items:center; gap:clamp(32px,6vw,108px)}
.osh-diary .osh-book-credit {color:#52665a; margin:0 0 12px; font-size:15px}
.osh-diary #osh-diary-title {font:400 clamp(29px,2.8vw,50px)/1.27 var(--home-print); word-break:keep-all; letter-spacing:-.035em}
.osh-diary blockquote {margin:clamp(20px,2.2vw,34px) 0 18px; padding-left:16px; border-left:3px solid #c9865b}
.osh-diary blockquote p {margin:0; line-height:1.55}
.osh-diary blockquote p:lang(uz) {margin-bottom:4px; font:400 clamp(23px,2vw,34px)/1.3 var(--home-diary)}
.osh-diary .osh-diary-intro {max-width:40ch; margin:0 0 14px; font:400 17px/1.8 var(--home-print); word-break:keep-all}
.osh-diary .osh-diary-photo {display:block; width:100%; height:auto; aspect-ratio:3/2; object-fit:cover}
@media (min-width:701px) and (max-width:950px) {
    .osh-companions .osh-home-inner,.osh-diary .osh-home-inner {padding-inline:32px}
    .osh-practice-portrait {padding-inline:14px}
    .osh-practice-portrait img {width:55%}
}
@media (max-width:800px) {
    .osh-lesson-card {grid-template-columns:minmax(0,1fr)}
    .osh-lesson-scene {width:100%; aspect-ratio:1.8; max-height:320px}
}
@media(max-width:700px) {
    body.home:has(.oshna-static-home) .site-header {background:#163a33}
    .oshna-static-home .osh-welcome {--art-height:clamp(155px,min(54vw,29svh),255px); min-height:0; padding-top:64px; grid-template-rows:var(--art-height) auto}
    .osh-welcome-art {top:64px; bottom:auto; height:var(--art-height)}
    .osh-humo-perch {width:12%}
    .osh-welcome::before {background:linear-gradient(to bottom,transparent calc(64px + var(--art-height) - 28px),#163a33 calc(65px + var(--art-height)))}
    .osh-welcome .osh-hello {grid-row:2; padding:10px 24px 46px}
    .osh-welcome h1 {font-size:clamp(39px,9.6vw,51px)}.osh-hello p {margin-top:12px}.osh-languages {gap:1px 16px}
    .oshna-static-home .osh-down {bottom:6px; right:18px; border:0}
    .oshna-static-home .osh-excerpt {padding:34px 24px 38px}
    .osh-lookup {padding:32px 24px}.osh-lookup form {display:block}.osh-lookup form div {margin-top:15px}
    .osh-home-inner {padding-inline:24px}
    .osh-practice-grid,.osh-diary-spread {grid-template-columns:1fr}
    .osh-practice {display:grid; grid-template-columns:32% minmax(0,1fr); border-radius:12px}
    .osh-practice-portrait {padding:13px 8px 96px; align-items:center; justify-content:start; min-height:162px}
    .osh-practice-portrait h3 {font-size:25px}
    .osh-practice-portrait p {font-size:13px; margin-top:0}
    .osh-practice-portrait img {width:100%; height:91px; right:0}
    .osh-practice-body {padding:18px 14px; align-self:center}
    .osh-practice .osh-phrase {font-size:23px}
    .osh-diary-spread {gap:26px}
}
