:root {
  --bg: #f8f5ef;
  --surface: #ffffff;
  --ink: #2c332f;
  --muted: #667069;
  --accent: #536a5c;
  --accent-soft: #dfe7df;
  --line: #dedfd9;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { overflow-x: hidden; scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; font-family: Pretendard, "Noto Sans KR", Arial, sans-serif; background: var(--bg); color: var(--ink); line-height: 1.7; }
a { color: inherit; text-decoration: none; }

.site-header { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px max(24px, calc((100vw - var(--max))/2)); background: rgba(248,245,239,.94); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(222,223,217,.7); }
.brand { display: flex; align-items: center; gap: 14px; }
.brand img { display: block; width: clamp(132px, 12vw, 176px); height: auto; }
.brand-director { padding-left: 14px; border-left: 1px solid #000; color: var(--muted); font-size: 14px; font-weight: 700; white-space: nowrap; transform: translateY(9px); }
.nav { display: flex; align-items: center; gap: 28px; font-size: 14px; }
.nav-cta { padding: 10px 16px; border: 1px solid var(--accent); border-radius: 999px; }
.menu-toggle { display: none; background: transparent; border: 0; font-size: 24px; }

.hero { position: relative; isolation: isolate; max-width: var(--max); margin: 0 auto; min-height: 680px; padding: 86px 24px 0; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 72px; }
.hero::before { content: ""; position: absolute; z-index: -1; top: -42px; left: -285px; width: 860px; height: 650px; border-radius: 50%; background: radial-gradient(circle at 48% 43%, rgba(197,213,199,.48) 0, rgba(223,231,221,.34) 38%, rgba(248,245,239,0) 73%); filter: blur(3px); pointer-events: none; }
.eyebrow { color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .16em; margin-bottom: 14px; }
.hero h1 { font-family: Georgia, "Noto Serif KR", serif; font-size: clamp(34px, 3.5vw, 46px); line-height: 1.22; letter-spacing: -.04em; margin: 0 0 28px; font-weight: 600; }
.hero-title-line { display: block; }
.hero-title-line-long { white-space: nowrap; }
.hero-credentials { max-width: 660px; margin: 0 0 12px; color: var(--accent); font-size: 13px; font-weight: 700; line-height: 1.75; word-break: keep-all; }
.hero-text { max-width: 620px; color: var(--muted); font-size: 18px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border: 0; border-radius: 999px; font: inherit; font-weight: 700; cursor: pointer; }
.button.primary { background: var(--accent); color: white; }
.button.secondary { border: 1px solid var(--line); background: rgba(255,255,255,.5); }
.hero-visual { min-height: 594px; align-self: end; display: flex; align-items: flex-end; justify-content: center; overflow: visible; }
.profile-photo { display: block; width: 112%; max-width: none; height: 580px; object-fit: contain; object-position: center bottom; transform: translateY(1px) scale(1.17); transform-origin: center bottom; filter: drop-shadow(0 24px 28px rgba(60,76,66,.14)); }
.portrait-placeholder { height: 100%; min-height: 500px; border-radius: 240px 240px 28px 28px; background: linear-gradient(160deg,#dfe7df,#b8c7bc); display: grid; place-items: center; align-content: center; color: #405247; box-shadow: 0 30px 70px rgba(60,76,66,.12); }
.portrait-placeholder span { font-family: Georgia, serif; font-size: 28px; }
.portrait-placeholder small { margin-top: 8px; }

.quote-section { padding: 74px 24px; background: var(--accent); color: white; }
.value-grid { width: min(1080px, 100%); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); }
.value-item { padding: 8px 42px; text-align: center; }
.value-item + .value-item { border-left: 1px solid rgba(255,255,255,.28); }
.value-item h3 { margin: 0 0 16px; font-family: Georgia, "Noto Serif KR", serif; font-size: clamp(20px,2vw,26px); font-weight: 700; }
.value-item p { margin: 0; color: rgba(255,255,255,.88); font-size: 16px; line-height: 1.85; }

.section { max-width: var(--max); margin: 0 auto; padding: 110px 24px; }
.section.muted { max-width: none; padding-left: max(24px, calc((100vw - var(--max))/2)); padding-right: max(24px, calc((100vw - var(--max))/2)); background: #eef0ea; }
#programs { display: flex; flex-direction: column; }
#programs .section-heading { order: 1; }
#programs .recent-lectures { order: 2; margin-top: 0; }
#programs .venue-accordion { order: 3; margin-top: 72px; }
.two-column { display: grid; grid-template-columns: .78fr 1.22fr; gap: 72px; }
h2 { margin: 0; font-family: Georgia, "Noto Serif KR", serif; font-size: clamp(34px,4vw,52px); line-height: 1.28; font-weight: 600; letter-spacing: -.03em; }
.about-title { white-space: nowrap; font-size: clamp(34px,3.2vw,42px); }
.about-profile { display: grid; grid-template-rows: auto minmax(0, 1fr); min-height: 0; gap: 58px; }
.about-photo-frame { position: relative; overflow: hidden; width: 88%; max-width: 340px; height: 100%; min-height: 0; margin: 0 auto 0 0; border: 1px solid rgba(222,223,217,.75); border-radius: 18px; background: linear-gradient(155deg, #fff 28%, #f2e8e5 100%); box-shadow: 0 24px 60px rgba(60,76,66,.11); }
.about-photo-frame::after { content: ""; position: absolute; inset: auto 0 0; height: 22%; background: linear-gradient(to top, rgba(242,232,229,.34), transparent); pointer-events: none; }
.about-photo { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.about-copy { align-self: start; padding: 158px 0 0; font-size: 17px; color: var(--muted); }
.about-copy-label { margin: 0 0 16px; color: var(--accent); font-size: 14px; font-weight: 800; letter-spacing: .08em; }
.about-copy > p:last-child { margin-bottom: 0; }
.about-highlight { color: var(--ink); font-weight: 800; }
.profile-list { list-style: none; margin: 38px 0 0; padding: 0; border-top: 1px solid var(--line); }
.about-details { grid-column: 1 / -1; width: 100%; margin-top: 8px; }
.profile-list li { display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.profile-list strong { color: var(--ink); }
.youtube-appearances a { color: var(--accent); text-decoration: underline; text-decoration-color: rgba(83,106,92,.35); text-underline-offset: 3px; }
.youtube-appearances a:hover { text-decoration-color: currentColor; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 44px; }
.section-heading > p { max-width: 420px; color: var(--muted); margin: 0; }
.cards.three { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.venue-accordion { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.venue-group { align-self: start; overflow: hidden; border: 1px solid rgba(222,223,217,.9); border-radius: 18px; background: rgba(255,255,255,.76); transition: border-color .2s ease, box-shadow .2s ease; }
.venue-group[open] { border-color: rgba(83,106,92,.35); box-shadow: 0 14px 34px rgba(60,76,66,.08); }
.venue-group summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 24px; color: var(--ink); font-size: 18px; font-weight: 800; cursor: pointer; list-style: none; }
.venue-group summary::-webkit-details-marker { display: none; }
.venue-group summary::after { content: '+'; flex: 0 0 auto; color: var(--accent); font-size: 24px; font-weight: 400; line-height: 1; }
.venue-group[open] summary::after { content: '−'; }
.venue-group summary small { margin-left: auto; color: var(--muted); font-size: 12px; font-weight: 600; }
.venue-group p { margin: 0; padding: 0 24px 24px; color: var(--muted); font-size: 15px; line-height: 1.9; word-break: keep-all; }
.recent-lectures { margin-top: 72px; }
.recent-lectures-heading { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 6px 32px; margin-bottom: 26px; }
.recent-lectures-heading .eyebrow { grid-column: 1 / -1; margin: 0; }
.recent-lectures-heading h3 { margin: 0; font-family: Georgia, "Noto Serif KR", serif; font-size: clamp(28px,3vw,40px); font-weight: 600; letter-spacing: -.03em; }
.recent-lectures-heading > p:last-child { max-width: 430px; margin: 0; color: var(--muted); }
.lecture-history { overflow: hidden; border-top: 2px solid var(--accent); border-bottom: 1px solid var(--line); }
.lecture-history-item { display: grid; grid-template-columns: 150px minmax(240px,.85fr) 1.15fr; gap: 24px; align-items: center; padding: 20px 8px; border-bottom: 1px solid var(--line); }
.lecture-history-item:last-child { border-bottom: 0; }
.lecture-history-item time { color: var(--accent); font-size: 14px; font-weight: 800; letter-spacing: .03em; }
.lecture-history-item strong { color: var(--ink); font-size: 16px; }
.lecture-history-item span { color: var(--muted); }
.card, .post-card { background: var(--surface); border: 1px solid rgba(222,223,217,.85); border-radius: 22px; padding: 30px; min-height: 260px; }
.card-number { font-family: Georgia, serif; color: var(--accent); font-size: 15px; }
.card h3, .post-card h3 { font-size: 22px; line-height: 1.4; margin: 46px 0 16px; }
.card p, .post-card p { color: var(--muted); }
.post-card span { color: var(--accent); font-size: 13px; font-weight: 800; }
.post-card h3 { margin-top: 28px; }
.books-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; align-items: start; }
.book-card { min-width: 0; }
.book-cover { display: grid; place-items: center; overflow: hidden; aspect-ratio: 3 / 4.2; margin-bottom: 24px; border: 1px solid rgba(222,223,217,.8); border-radius: 4px; background: white; box-shadow: 0 20px 38px rgba(61,55,45,.16); transition: transform .25s ease, box-shadow .25s ease; }
.book-card:hover .book-cover { transform: translateY(-5px); box-shadow: 0 26px 48px rgba(61,55,45,.2); }
.book-cover img { display: block; width: 100%; height: 100%; object-fit: contain; }
.book-cover-fill img { width: 101%; height: 101%; max-width: none; object-fit: cover; }
.book-card time { color: var(--accent); font-size: 13px; font-weight: 800; letter-spacing: .06em; }
.book-card h3 { min-height: 30px; margin: 8px 0 7px; overflow: visible; font-family: Georgia, "Noto Serif KR", serif; font-size: 16px; line-height: 1.5; letter-spacing: -.05em; white-space: nowrap; }
.book-card p { margin: 0; color: var(--muted); font-size: 14px; }
.text-link { display: inline-block; margin-top: 18px; font-weight: 800; }
.contact { max-width: var(--max); margin: 0 auto; padding: 100px 24px; display: grid; grid-template-columns: .78fr 1.22fr; gap: 40px; }
.contact-box { background: var(--surface); border-radius: 24px; padding: 30px; }
.contact-box p { display: grid; grid-template-columns: 150px 1fr; gap: 18px; padding: 14px 0; margin: 0; border-bottom: 1px solid var(--line); }
.contact-box p:last-child { border-bottom: 0; }
.contact-box span { color: var(--muted); }
.contact-box a { color: var(--accent); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.contact-title { white-space: nowrap; }
.contact-modal[hidden] { display: none; }
.contact-modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 24px; }
.contact-modal-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(29,39,33,.55); cursor: pointer; backdrop-filter: blur(5px); }
.contact-modal-card { position: relative; z-index: 1; width: min(100%, 520px); padding: 42px; border: 1px solid rgba(255,255,255,.7); border-radius: 28px; background: var(--surface); box-shadow: 0 30px 90px rgba(29,39,33,.24); }
.contact-modal-card h2 { margin: 8px 42px 12px 0; font-family: Georgia, "Noto Serif KR", serif; font-size: clamp(24px, 4vw, 32px); line-height: 1.42; }
.contact-modal-close { position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: white; color: var(--ink); font-size: 26px; line-height: 1; cursor: pointer; }
.contact-modal-guide { margin: 0 0 24px; color: var(--muted); }
.contact-modal-links { display: grid; gap: 12px; }
.contact-modal-links a { display: grid; gap: 5px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.72); transition: transform .2s ease, border-color .2s ease; }
.contact-modal-links a:hover { transform: translateY(-2px); border-color: var(--accent); }
.contact-modal-links span { color: var(--muted); font-size: 13px; }
.contact-modal-links strong { color: var(--accent); font-size: 18px; }
body.modal-open { overflow: hidden; }
@media (min-width: 861px) {
  .contact-box p:last-child span { white-space: nowrap; }
}
footer { padding: 48px max(24px, calc((100vw - var(--max))/2)); display: flex; justify-content: space-between; gap: 30px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
footer strong { color: var(--ink); }
footer p { margin: 4px 0; }
.news-more { display: inline-block; margin-top: 28px; }
.post-card a { display: block; height: 100%; }

@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; left: 18px; right: 18px; top: 76px; padding: 20px; flex-direction: column; align-items: stretch; background: white; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 20px 50px rgba(0,0,0,.08); }
  .nav.open { display: flex; }
  .hero, .two-column, .contact { grid-template-columns: 1fr; }
  .hero { padding-top: 56px; gap: 42px; }
  .hero-title-line-long { white-space: normal; }
  .hero-visual, .portrait-placeholder { min-height: 420px; }
  .profile-photo { width: 106%; height: 470px; min-height: 0; transform: translateY(1px) scale(1.02); }
  .value-grid { grid-template-columns: 1fr; }
  .value-item { padding: 30px 16px; }
  .value-item + .value-item { border-left: 0; border-top: 1px solid rgba(255,255,255,.28); }
  .cards.three { grid-template-columns: 1fr; }
  .venue-accordion { grid-template-columns: 1fr; }
  .recent-lectures-heading { grid-template-columns: 1fr; }
  .about-profile { grid-template-columns: minmax(190px, .7fr) 1.3fr; align-items: center; }
  .about-profile { grid-template-rows: auto; }
  .about-heading { order: 2; }
  .about-photo-frame { width: 100%; height: auto; aspect-ratio: 4 / 5; border-radius: 18px; }
  .about-copy { padding: 0; }
  .lecture-history-item { grid-template-columns: 1fr; gap: 5px; padding: 20px 4px; }
  .books-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 24px; }
  .section-heading { align-items: start; flex-direction: column; }
  footer { flex-direction: column; }
}

@media (max-width: 520px) {
  .site-header { padding-left: 16px; padding-right: 16px; }
  .brand { gap: 9px; }
  .brand img { width: 116px; }
  .brand-director { padding-left: 9px; font-size: 12px; }
  .hero, .section, .contact { padding-left: 18px; padding-right: 18px; }
  .section { padding-top: 78px; padding-bottom: 78px; }
  .profile-list li, .contact-box p { grid-template-columns: 1fr; gap: 4px; }
  .hero h1 { font-size: 32px; }
  .about-title { font-size: 28px; }
  .about-profile { grid-template-columns: 1fr; }
  .about-heading { order: initial; }
  .about-photo-frame { width: min(88%, 300px); margin: 0 auto; }
  .contact-modal { padding: 16px; }
  .contact-modal-card { padding: 34px 22px 24px; border-radius: 22px; }
  .books-grid { gap: 36px 12px; }
  .book-cover { margin-bottom: 18px; }
  .book-card h3 { min-height: 0; font-size: clamp(9px, 2.8vw, 11px); letter-spacing: -.08em; }
}
