:root {
  color-scheme: light;
  --paper: #faf8f2;
  --ink: #25362a;
  --forest: #293a2e;
  --rust: #854527;
  --muted: #4e5d51;
  --line: #dedbd0;
  --peach: #f0cba9;
  --sans: "Inter", "Noto Sans KR", "Noto Sans CJK KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.68 var(--sans); word-break: keep-all; overflow-wrap: break-word; }
h1, h2, h3, p, dl, dd, figure, blockquote { margin: 0; }
a { color: inherit; }
a:focus-visible { outline: 3px solid #ad6841; outline-offset: 5px; }
.frame { width: min(1160px, calc(100% - 88px)); margin-inline: auto; }
.skip { position: absolute; top: 8px; left: 8px; transform: translateY(-160%); background: var(--paper); padding: 8px 14px; z-index: 2; }
.skip:focus { transform: none; }
.masthead-inner { min-height: 85px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark { flex: 0 0 auto; font: 20px/1.1 var(--serif); text-decoration: none; }
.wordmark > span:not(.brand-initial) { display: block; }
nav { display: flex; gap: clamp(12px, 3vw, 36px); flex-wrap: wrap; align-items: center; justify-content: flex-end; }
nav a, .footer-inner a { font-size: 14px; font-weight: 700; text-decoration: none; }
nav a:hover, .footer-inner a:hover { text-decoration: underline; text-underline-offset: 4px; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.96fr); background: var(--forest); color: var(--paper); border-radius: 5px; overflow: hidden; }
.hero-copy { padding: clamp(32px, 5vw, 72px); align-self: center; }
.hero-label { color: var(--peach); font-size: 13px; font-weight: 700; margin-bottom: 18px; }
.hero h1 { font: 400 clamp(34px, 4.75vw, 65px)/0.99 var(--serif); letter-spacing: -0.05em; }
.hero-vision { font-size: clamp(16px, 1.7vw, 21px); margin-top: 24px; color: #e3e8de; }
.hero-link { display: inline-flex; gap: 12px; align-items: center; margin-top: 23px; padding: 9px 13px; background: var(--peach); color: var(--ink); border-radius: 3px; font-size: 14px; font-weight: 700; text-decoration: none; }
.hero-link:hover { background: #f7dbc2; }
.hero-image { display: block; width: 100%; height: 100%; min-height: 330px; object-fit: cover; object-position: 50% 67%; }
.programs { padding-block: clamp(44px, 6vw, 74px); scroll-margin-top: 15px; }
.programs h2, .about h2 { font-size: clamp(24px, 3vw, 36px); letter-spacing: -0.045em; line-height: 1.35; }
.program-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 7px; gap: 16px; }
.program-item { display: flex; flex-direction: column; gap: 16px; color: inherit; text-decoration: none; }
.program-item:hover .program, .program-item:focus-visible .program { border-color: var(--rust); }
.program-caption { color: var(--muted); }
.program-item .program { flex: 1; }
.program { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(21px, 3.2vw, 38px); border: 1px solid var(--line); border-top: 3px solid #64764e; border-radius: 3px; background: #f0f1e8; }
.orchestra { border-top-color: #a36143; background: #f7eee4; }
.art-studio { border-top-color: #536499; background: #ecedf5; }
.worship-team { border-top-color: #8b7040; background: #f3efe3; }
.category { font-size: 13px; color: var(--rust); font-weight: 750; }
.program h3 { margin-top: 10px; font: 400 clamp(27px, 3.55vw, 47px)/1.04 var(--serif); letter-spacing: -0.035em; }
.program h3 + p { margin-block: 14px 18px; color: var(--muted); }
.program-facts { width: 100%; padding-block: 11px; border-top: 1px solid #d4d3c6; font-size: 14px; margin-top: auto; }
.program-facts div { display: grid; grid-template-columns: 3em 1fr; gap: 4px; }
.program-facts dt { font-weight: 750; }
.program-link { display: inline-flex; gap: 10px; align-items: center; padding-block: 8px; font-size: 14px; font-weight: 750; text-decoration: underline; text-underline-offset: 4px; }
.program-link [aria-hidden="true"] { color: var(--rust); }
.about { display: grid; grid-template-columns: 1.13fr 1fr; column-gap: clamp(24px, 6vw, 90px); row-gap: 34px; padding-block: clamp(34px, 6vw, 66px); border-top: 1px solid var(--line); scroll-margin-top: 12px; }
.about h2 + p { margin-top: 14px; }
.scripture { border-left: 3px solid #ab7658; padding: 14px 0 14px 21px; align-self: start; }
.scripture-english { margin-top: 12px; color: var(--muted); font-size: 15px; }
.scripture-english strong { color: var(--ink); }
.scripture figcaption, .verse { margin-top: 10px; color: var(--rust); font-size: 13px; font-weight: 700; }
.values { grid-column: 1 / -1; }
.values h3 { margin-bottom: 12px; font-size: 20px; }
.values dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.values dl div { border-top: 1px solid var(--line); padding-top: 12px; }
.values dt { font-weight: 750; margin-bottom: 6px; }
.values dt span { margin-left: 3px; color: var(--rust); font: 17px var(--serif); }
.values dd { font-size: 14px; }
.values .verse { font-size: 12px; }
.center-affiliation { margin-top: 16px; color: var(--muted); font-size: 16px; }
.center-leadership { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: clamp(24px, 3vw, 36px); }
.center-leadership > h3 { margin-bottom: 20px; font-size: 24px; letter-spacing: -0.035em; }
.leadership-church { --brand-initial: #f0cba9; padding: 22px 26px; border-radius: 3px; background: var(--forest); color: var(--paper); }
.leadership-church-label { font-size: 14px; color: #ead3aa; font-weight: 700; }
.leadership-church-name { margin-top: 5px; font-size: clamp(20px, 2.5vw, 26px); font-weight: 650; line-height: 1.5; }
.leadership-church-name > span { display: inline-block; margin-left: 8px; font: 400 23px/1.3 var(--serif); }
.leadership-center-name { margin-top: 9px; font: 400 19px/1.4 var(--serif); color: #e0e6dc; }
.leadership-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 40px; list-style: none; margin: 28px 0 0; padding: 0; }
.leadership-member { min-width: 0; padding-top: 20px; border-top: 1px solid var(--line); }
.leadership-role { margin-bottom: 14px; font-size: 16px; font-weight: 750; color: var(--rust); }
.leadership-name { margin: 0; font: 400 clamp(24px, 2.7vw, 32px)/1.35 var(--serif); overflow-wrap: anywhere; }
.leadership-name .pastor-title { font: 600 16px/1.5 var(--sans); }
.leadership-bio { grid-column: 1 / -1; margin-top: 0; color: var(--muted); line-height: 1.8; }
.leadership-member[id] { scroll-margin-top: 24px; }
.leadership-profile { --portrait-size: clamp(64px, 10vw, 96px); display: grid; grid-template-columns: var(--portrait-size) minmax(0, 1fr); gap: 18px; align-items: center; }
.leadership-profile > div { display: contents; }
.leadership-profile--text { grid-template-columns: 1fr; }
.leadership-profile--text .leadership-name { display: flex; align-items: center; min-height: var(--portrait-size); }
.director-photo { display: block; width: clamp(64px, 10vw, 96px); height: clamp(64px, 10vw, 96px); object-fit: cover; border-radius: 50%; }
.leadership-photo-frame { display: block; width: clamp(64px, 10vw, 96px); height: clamp(64px, 10vw, 96px); border-radius: 50%; overflow: hidden; }
.leadership-photo-frame .director-photo { width: 100%; height: 100%; transform: translateY(12%) scale(1.85); transform-origin: 50% 25%; }
#pastor-profile .director-photo { border-radius: 0; transform: translate(4%, -2%) scale(1.95); transform-origin: 50% 0; }
.footer-affiliation { margin-top: 7px; color: #e3e8de; font-size: 14px; }
.site-footer { background: var(--forest); color: var(--paper); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 26px; }
.footer-name { font: 20px/1.25 var(--serif); }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.footer-inner address { font-style: normal; font-size: 14px; margin-top: 5px; color: #e3e8de; }
@media (min-width: 1000px) {
  .program-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .program h3 { font-size: clamp(27px, 3vw, 41px); }
}
@media (max-width: 760px) {
  .frame { width: calc(100% - 40px); }
  .hero { grid-template-columns: 1fr; }
  .hero-image { height: auto; min-height: 0; aspect-ratio: 2 / 1; }
  .values dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .leadership-list { gap: 30px 24px; }
  .leadership-church-name > span { display: block; margin: 3px 0 0; }
}
@media (max-width: 560px) {
  .frame { width: calc(100% - 32px); }
  .masthead-inner { padding-block: 14px; min-height: 72px; gap: 10px; }
  .wordmark { font-size: 17px; }
  nav { gap: 4px 11px; }
  nav a { font-size: 12px; }
  .hero-copy { padding: 32px 22px; }
  .hero h1 { font-size: clamp(32px, 9vw, 46px); }
  .hero-vision { margin-top: 16px; }
  .program-grid, .about { grid-template-columns: 1fr; }
  .leadership-list { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
}

.brand-initial { color: var(--brand-initial, #854527); font-weight: 750; }
.hero, .site-footer { --brand-initial: #f0cba9; }
.hero h1 .brand-initial { font-weight: inherit; }

.homeschool-item { grid-column: 1 / -1; }
.homeschool { border-top-color: #52726b; background: #eaf0eb; }
.homeschool h3 { margin-top: 0; }
.homeschool-card-affiliation { margin-bottom: 18px; color: var(--muted); font: 17px/1.5 var(--serif); }
