/* 오요가 · 공통 스타일 (A의 종이와 먹, D의 장면) */
@font-face { font-family: "Maru"; font-weight: 300; font-display: swap; src: url("https://hangeul.pstatic.net/hangeul_static/webfont/MaruBuri/MaruBuri-Light.woff2") format("woff2"); }
@font-face { font-family: "Maru"; font-weight: 400; font-display: swap; src: url("https://hangeul.pstatic.net/hangeul_static/webfont/MaruBuri/MaruBuri-Regular.woff2") format("woff2"); }
@font-face { font-family: "Pretendard"; font-weight: 400; font-display: swap; src: url("../fonts/Pretendard-Regular.woff") format("woff"); }
@font-face { font-family: "Pretendard"; font-weight: 500; font-display: swap; src: url("../fonts/Pretendard-Medium.woff") format("woff"); }
@font-face { font-family: "Pretendard"; font-weight: 600; font-display: swap; src: url("../fonts/Pretendard-SemiBold.woff") format("woff"); }

:root {
  --paper: #E8E6E0;
  --paper-2: #DDDAD2;
  --ink: #1B1B18;
  --mute: #5F5D57;
  --line: rgba(27, 27, 24, .16);
  --white: #F6F4EF;
  --white-2: rgba(246, 244, 239, .74);
  --line-d: rgba(246, 244, 239, .2);
  --kr: "Maru", "Noto Serif KR", serif;
  --lat: "Cormorant Garamond", "Maru", serif;
  --sans: "Pretendard", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.77, 0, .18, 1);
  --m: 20px;
  --top: 68px;
  color-scheme: light;
}
@media (min-width: 900px) { :root { --m: 40px; --top: 76px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--paper); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.7; word-break: keep-all; overflow-wrap: break-word; -webkit-font-smoothing: antialiased; }
body.lock { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
h1, h2, h3, blockquote { text-wrap: balance; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 1.5px solid currentColor; outline-offset: 4px; }
.sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.meta { font-family: var(--sans); font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.num { font-family: var(--lat); font-variant-numeric: tabular-nums lining-nums; }
.line-mask { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.line-mask > span { display: block; }

/* 필름 입자 */
.grain { position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .08; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1s steps(6) infinite; }
@keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); } }

/* ---------- 페이지 사이: 원이 닫히고 열린다 ---------- */
.veil { position: fixed; inset: 0; z-index: 120; background: var(--paper); pointer-events: none; clip-path: circle(0px at 50% 50%); }
html.veil-in .veil { clip-path: circle(150vmax at 50% 50%); }
.veil i { position: absolute; left: 50%; top: 50%; width: 64px; translate: -50% -50%; color: var(--ink); opacity: 0; transition: opacity .35s; }
html.veil-in .veil i, .veil.full i { opacity: .9; }

/* ---------- 머리 ---------- */
.top { position: fixed; inset: 0 0 auto; z-index: 60; color: var(--white); transition: color .5s var(--ease), transform .6s var(--ease); }
.top::before { content: ""; position: absolute; inset: 0; background: var(--paper); opacity: 0; transition: opacity .5s var(--ease); }
.top.on-paper { color: var(--ink); }
.top.on-paper::before { opacity: .96; }
.top.hide { transform: translateY(-100%); }
.top-in { position: relative; height: var(--top); padding: 0 var(--m); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
/* 로고: 원본 한 줄 그림을 가면으로 써서 글자색을 그대로 따른다 */
.mark, .veil i { display: block; flex: none; aspect-ratio: 173 / 166; background: currentColor; -webkit-mask: url("../assets/logo/o-yoga-mark.svg") center / contain no-repeat; mask: url("../assets/logo/o-yoga-mark.svg") center / contain no-repeat; }
.wordmark { display: inline-flex; align-items: center; gap: 11px; min-height: 44px; justify-self: start; white-space: nowrap; }
.wordmark .mark { width: 38px; margin-top: -3px; }
.wordmark b { font-family: var(--lat); font-weight: 400; font-size: 26px; letter-spacing: .01em; line-height: 1; }
.nav { display: none; gap: 34px; font-size: 14px; }
.nav a { position: relative; padding: 12px 0; opacity: .9; white-space: nowrap; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.top-right { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 8px; }
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 0 22px; border-radius: 999px; font-size: 15px; font-weight: 500; white-space: nowrap; transition: background .4s var(--ease), color .4s var(--ease), transform .4s var(--ease); }
.pill:hover { transform: translateY(-2px); }
.pill-light { background: var(--white); color: var(--ink); }
.pill-ink { background: var(--ink); color: var(--white); }
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.top .pill { min-height: 44px; padding: 0 18px; font-size: 14px; }
.on-paper .pill-light { background: var(--ink); color: var(--white); }
.menu-btn { min-width: 44px; min-height: 44px; display: grid; place-items: center; margin-right: -10px; }
.top-book { display: none; }
@media (min-width: 900px) { .nav { display: flex; } .menu-btn { display: none; } .top-book { display: inline-flex; } }

/* 전체 메뉴 */
.menu { position: fixed; inset: 0; z-index: 70; background: var(--paper); color: var(--ink); padding: 96px var(--m) 40px; display: grid; align-content: start; gap: 2px; clip-path: inset(0 0 100% 0); transition: clip-path .8s var(--ease-io); visibility: hidden; }
.menu.open { clip-path: inset(0 0 0 0); visibility: visible; }
.menu a { font-family: var(--kr); font-weight: 300; font-size: 38px; letter-spacing: -.02em; min-height: 60px; display: flex; align-items: center; }
.menu a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 10px; }
.menu .sub { margin-top: 28px; display: grid; gap: 4px; }
.menu .sub a { font-family: var(--sans); font-size: 16px; min-height: 44px; }
.menu .close { position: absolute; top: 12px; right: calc(var(--m) - 10px); min-width: 44px; min-height: 44px; display: grid; place-items: center; }
.menu .menu-mark { position: absolute; top: calc((var(--top) - 44px) / 2); left: var(--m); }

/* ---------- 공통 조각 ---------- */
.ulink { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 500; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; justify-self: start; white-space: nowrap; }
.ulink:hover { text-decoration-thickness: 2px; }
.acts { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; }
.sec { padding: 0 var(--m) clamp(112px, 13vw, 190px); }
.sec-head { display: grid; gap: 14px; padding-top: 26px; border-top: 1px solid var(--line); margin-bottom: 48px; }
.sec-head h2 { font-family: var(--kr); font-weight: 400; font-size: clamp(36px, 4.6vw, 72px); letter-spacing: -.03em; line-height: 1.1; }
.sec-head p { color: var(--mute); max-width: 30em; }
.sec-head .meta { color: var(--mute); }
@media (min-width: 900px) { .sec-head { grid-template-columns: 2fr 7fr 3fr; align-items: baseline; gap: 24px; margin-bottom: 64px; } .sec-head > :last-child:not(h2) { justify-self: end; text-align: right; } }

/* 하위 페이지 머리 */
.phead { padding: calc(var(--top) + clamp(56px, 9vw, 120px)) var(--m) clamp(56px, 7vw, 96px); display: grid; gap: 22px; }
.phead .meta { color: var(--mute); }
.phead h1 { font-family: var(--kr); font-weight: 300; font-size: clamp(52px, 8vw, 128px); line-height: 1.02; letter-spacing: -.04em; }
.phead .lead { font-family: var(--kr); font-weight: 300; font-size: clamp(20px, 1.9vw, 26px); line-height: 1.6; max-width: 26em; text-wrap: balance; }
@media (min-width: 900px) {
  .phead { grid-template-columns: 2fr 7fr 3fr; gap: 24px; align-items: end; }
  .phead .meta { align-self: start; padding-top: 1.4em; }
  .phead .side { justify-self: end; display: grid; gap: 4px; justify-items: end; text-align: right; }
  .phead .lead { grid-column: 2 / 3; }
}

/* 사진 */
.ph { position: relative; overflow: hidden; background: var(--paper-2); }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph img[data-par] { height: 116%; }
figcaption { margin-top: 12px; color: var(--mute); font-size: 13px; }

/* 커서를 따라오는 사진 (선생님 이름, 글 목록) */
.float { position: fixed; left: 0; top: 0; z-index: 50; width: 240px; aspect-ratio: 3 / 4; pointer-events: none; overflow: hidden; background: var(--paper-2); opacity: 0; transform: translate3d(-400px, -400px, 0) scale(.92); transition: opacity .35s var(--ease), transform .5s var(--ease); }
.float.on { opacity: 1; }
.float img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s; }
.float img.on { opacity: 1; }
@media (hover: none), (max-width: 899px) { .float { display: none; } }

/* ---------- 요일 탭과 수업 줄 ---------- */
.days { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--m) * -1) 18px; padding: 0 var(--m); }
.days::-webkit-scrollbar { display: none; }
.day { flex: 0 0 auto; min-width: 54px; min-height: 64px; padding: 8px 12px; display: grid; justify-items: center; align-content: center; gap: 2px; border-radius: 999px; color: var(--mute); transition: background .35s var(--ease), color .35s; }
.day b { font-family: var(--kr); font-weight: 400; font-size: 17px; line-height: 1.2; }
.day span { font-family: var(--lat); font-size: 17px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.day:hover { color: var(--ink); }
.day[aria-selected="true"] { background: var(--ink); color: var(--white); }
.day .today { font-family: var(--sans); font-size: 11px; line-height: 1; letter-spacing: .04em; }

.rows li { border-bottom: 1px solid var(--line); }
.row { width: 100%; min-height: 76px; display: grid; grid-template-columns: 64px 1fr auto; align-items: baseline; gap: 4px 14px; padding: 14px 0; text-align: left; }
.row .t { font-family: var(--lat); font-size: 22px; line-height: 1.2; font-variant-numeric: tabular-nums lining-nums; }
.row .n { font-family: var(--kr); font-weight: 300; font-size: clamp(25px, 2.7vw, 40px); letter-spacing: -.025em; line-height: 1.2; white-space: nowrap; transition: transform .6s var(--ease), color .4s; }
.row .w { font-size: 15px; color: var(--mute); white-space: nowrap; text-align: right; }
.row .w em { font-style: normal; color: var(--ink); }
.row .x { grid-column: 2 / 4; font-size: 13px; color: var(--mute); }
.rows:hover .row .n { color: rgba(27, 27, 24, .38); }
.rows .row:hover .n, .row[aria-current="true"] .n { color: var(--ink); }
@media (min-width: 900px) { .row { grid-template-columns: 92px 1fr auto; } .row .t { font-size: 26px; } .row:hover .n, .row[aria-current="true"] .n { transform: translateX(12px); } }
.row-empty { padding: 28px 0; border-bottom: 1px solid var(--line); color: var(--mute); }
.row-empty b { display: block; font-family: var(--kr); font-weight: 300; font-size: clamp(25px, 2.7vw, 40px); color: var(--ink); letter-spacing: -.025em; line-height: 1.3; }
.inline { display: none; padding: 0 0 22px; }
.inline.open { display: grid; gap: 12px; }
.inline .ph { aspect-ratio: 4 / 3; }
.inline p { color: #3c3b37; }

/* 미리보기 (데스크톱) */
.pv { display: none; }
@media (min-width: 900px) {
  .inline, .inline.open { display: none; }
  .pv { display: block; position: sticky; top: calc(var(--top) + 28px); }
  .pv-frame { position: relative; aspect-ratio: 5 / 6; max-height: calc(100vh - 300px); width: 100%; overflow: hidden; background: var(--paper-2); }
  .pv-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; clip-path: inset(100% 0 0 0); transform: scale(1.15); transition: clip-path 1.1s var(--ease-io), transform 1.6s var(--ease); }
  .pv-frame img.on { clip-path: inset(0 0 0 0); transform: scale(1); z-index: 2; }
  .pv-frame img.was { clip-path: inset(0 0 0 0); z-index: 1; }
  .pv-info { margin-top: 20px; display: grid; gap: 10px; }
  .pv-info .nm { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
  .pv-info .nm b { font-family: var(--kr); font-weight: 400; font-size: 22px; letter-spacing: -.02em; }
  .pv-info .nm span { font-family: var(--lat); font-size: 19px; color: var(--mute); }
  .pv-info p { font-family: var(--kr); font-weight: 300; font-size: 19px; line-height: 1.6; max-width: 26em; }
  .pv-info small { font-size: 13px; color: var(--mute); }
}

/* ---------- 어두운 띠 (첫 수업) ---------- */
.band { background: var(--ink); color: var(--white); padding: clamp(96px, 12vw, 176px) var(--m); }
.band-in { display: grid; gap: 56px; align-items: center; }
.band-txt { display: grid; gap: 22px; justify-items: start; }
.band .meta { color: var(--white-2); }
.band h2 { font-family: var(--kr); font-weight: 300; font-size: clamp(42px, 6vw, 96px); line-height: 1.12; letter-spacing: -.03em; }
.band p { color: rgba(246, 244, 239, .8); max-width: 24em; text-wrap: balance; }
.band .ulink { color: var(--white); }
.band-fig { justify-self: end; width: min(100%, 500px); }
.band-fig .ph { aspect-ratio: 4 / 5; background: #2a2a26; }
.band-fig figcaption { color: rgba(246, 244, 239, .6); }
@media (min-width: 900px) { .band-in { grid-template-columns: 7fr 5fr; gap: 24px; } }

/* ---------- 바닥 ---------- */
.foot { padding: 96px var(--m) 0; overflow: hidden; }
.foot-grid { display: grid; gap: 28px; padding-bottom: 56px; border-bottom: 1px solid var(--line); font-size: 15px; }
.foot-grid .meta { color: var(--mute); margin-bottom: 8px; display: block; }
.foot-grid a { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line); }
.foot-links { display: grid; gap: 0; align-content: start; }
.foot-links a { display: inline-flex; min-height: 40px; align-items: center; justify-self: start; }
.foot-note { color: var(--mute); font-size: 13px; padding: 20px 0 0; }
.giant { display: flex; align-items: baseline; justify-content: space-between; font-family: var(--lat); font-weight: 300; font-size: 25vw; line-height: .78; letter-spacing: -.04em; white-space: nowrap; margin: 24px 0 -2.5vw -1vw; }
.giant-mark { flex: none; align-self: flex-end; width: .6em; aspect-ratio: 173 / 166; height: auto; margin-bottom: calc(.1em + max(8px, .03em)); } /* 글자는 아래가 잘려도 로고는 다 보이게, 잘리는 만큼(.1em) 더 올린다 */
@media (min-width: 900px) { .foot-grid { grid-template-columns: 3fr 3fr 2fr 2fr; } }

/* ---------- 아래 고정 예약 (휴대폰) ---------- */
.dock { position: fixed; left: var(--m); right: var(--m); bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 55; display: flex; justify-content: center; transform: translateY(160%); transition: transform .7s var(--ease); pointer-events: none; }
.dock.show { transform: none; pointer-events: auto; }
.dock .pill { width: 100%; max-width: 420px; min-height: 54px; box-shadow: 0 10px 30px rgba(20, 20, 17, .25); }
@media (min-width: 900px) { .dock { display: none; } }

/* 커서 */
.cursor { position: fixed; left: 0; top: 0; z-index: 95; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; background: var(--white); color: var(--ink); display: grid; place-items: center; font-size: 13px; font-weight: 500; pointer-events: none; transform: translate3d(-200px, -200px, 0) scale(0); transition: transform .45s var(--ease); }
.cursor.on { transform: translate3d(var(--x), var(--y), 0) scale(1); }
@media (hover: none) { .cursor { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .veil { display: none; }
}
