/* 디지털역량센터 1차 시안
   Design read: 공익 교육기관(선배시민·지자체 대상), trust-first + 높은 가독성.
   Dials: VARIANCE 4 / MOTION 3 / DENSITY 4
   참고: IBM(Carbon) DESIGN.md의 구조·단일 강조색 + Wise DESIGN.md의 큰 본문·친근한 라운드
   Shape rule: 버튼·탭 = pill, 카드·이미지 = 16px, 입력창 = 12px */

:root {
  --bg: #f3f6f4;
  --surface: #ffffff;
  --surface-2: #e7eee9;
  --ink: #111a16;
  --body: #34403b;
  --mute: #56625d;
  --line: #d3dcd7;
  --accent: #1b5c46;
  --accent-hover: #144936;
  --accent-tint: #dbece3;
  --on-accent: #ffffff;
  --error: #b3261e;
  --shadow: 0 1px 2px rgb(17 40 30 / .06), 0 12px 32px rgb(17 40 30 / .08);

  --r-card: 16px;
  --r-input: 12px;
  --r-pill: 999px;

  --fs-base: 19px;
  --maxw: 1200px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1412;
    --surface: #151d1a;
    --surface-2: #1c2622;
    --ink: #eef3f0;
    --body: #c9d3ce;
    --mute: #a2afa9;
    --line: #2c3833;
    --accent: #7fd1a6;
    --accent-hover: #9adfb9;
    --accent-tint: #1d3329;
    --on-accent: #0b1a13;
    --error: #ffb4ab;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 12px 32px rgb(0 0 0 / .35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e1412; --surface: #151d1a; --surface-2: #1c2622; --ink: #eef3f0; --body: #c9d3ce;
  --mute: #a2afa9; --line: #2c3833; --accent: #7fd1a6; --accent-hover: #9adfb9; --accent-tint: #1d3329;
  --on-accent: #0b1a13; --error: #ffb4ab; color-scheme: dark;
}

/* 글자 크게 */
html { font-size: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
html.is-large { --fs-base: 22px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  font-size: var(--fs-base);
  line-height: 1.75;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { color: var(--ink); margin: 0; line-height: 1.3; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
@media (max-width: 767px) { .wrap { padding: 0 16px; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: var(--r-pill); z-index: 100; }
.skip:focus { top: 12px; }
.muted { color: var(--mute); }


/* 버튼 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 56px; padding: 0 28px; border-radius: var(--r-pill);
  font: inherit; font-size: 1em; font-weight: 700; text-decoration: none; white-space: nowrap;
  border: 2px solid transparent; cursor: pointer;
  transition: background-color .2s ease, transform .15s ease, border-color .2s ease;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--surface-2); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 16px; }
.btn--block { width: 100%; }

/* 내비게이션 */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav__inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--accent); flex-shrink: 0; }
.brand__mark { width: auto; height: 34px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.2; color: var(--ink); }
.brand__text small { font-size: 12px; color: var(--mute); font-weight: 500; }
.brand__text strong { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }
.nav__links { display: flex; gap: 4px; margin-left: auto; }
.nav__links a { font-size: 17px; font-weight: 600; text-decoration: none; color: var(--ink); padding: 8px 12px; border-radius: var(--r-pill); }
.nav__links a:hover { background: var(--surface-2); }
.nav__tools { display: flex; align-items: center; gap: 8px; }
.text-toggle {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  border-radius: var(--r-pill); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
}
.text-toggle i { font-size: 20px; }
.text-toggle[aria-pressed="true"] { background: var(--accent-tint); border-color: var(--accent); }
.nav__menu { display: none; width: 48px; height: 48px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: var(--r-pill); font-size: 24px; cursor: pointer; align-items: center; justify-content: center; }
.mobile-menu { border-top: 1px solid var(--line); background: var(--bg); padding: 8px 16px 16px; }
.mobile-menu a { display: block; padding: 14px 4px; font-size: 20px; font-weight: 600; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); }
.mobile-menu a:last-child { border-bottom: 0; color: var(--accent); }

@media (max-width: 1080px) {
  .nav__links { display: none; }
  .nav__tools { margin-left: auto; }
  .nav__menu { display: inline-flex; }
}
@media (max-width: 600px) {
  .nav__cta, .text-toggle span { display: none; }
  .text-toggle { width: 48px; justify-content: center; padding: 0; }
}

/* 공통 섹션 */
section { padding: 104px 0; }
@media (max-width: 767px) { section { padding: 72px 0; } }
.eyebrow { font-size: 15px; font-weight: 700; color: var(--accent); letter-spacing: .02em; margin-bottom: 14px; }
.section-title { font-size: clamp(30px, 3.4vw, 42px); font-weight: 800; }
.section-lead { margin-top: 14px; max-width: 44ch; color: var(--body); font-size: 1.05em; }

/* HERO */
.hero { padding: 64px 0 88px; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(38px, 4.6vw, 60px); font-weight: 800; line-height: 1.22; letter-spacing: -0.035em; }
.hero__sub { margin-top: 24px; font-size: 1.12em; max-width: 30ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero__media { margin: 0; border-radius: var(--r-card); overflow: hidden; aspect-ratio: 4 / 3.3; background: var(--surface-2); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) {
  .hero { padding: 40px 0 64px; }
  .hero__grid { grid-template-columns: 1fr; gap: 36px; }
  .hero__sub { max-width: none; }
}

/* ABOUT */
.about { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about__mission { font-size: clamp(28px, 3.3vw, 44px); font-weight: 700; line-height: 1.4; max-width: 24ch; }
.about__mission em { font-style: normal; color: var(--accent); }
.about__lead { margin-top: 28px; max-width: 60ch; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 64px; border-top: 2px solid var(--ink); }
.value { padding: 32px 32px 8px 0; }
.value + .value { padding-left: 32px; border-left: 1px solid var(--line); }
.value__icon { font-size: 36px; color: var(--accent); }
.value h3 { font-size: 24px; font-weight: 800; margin: 16px 0 10px; }
@media (max-width: 1080px) { .br-lg { display: none; } }
@media (max-width: 767px) {
  .values { grid-template-columns: 1fr; }
  .value, .value + .value { padding: 28px 0; border-left: 0; }
  .value + .value { border-top: 1px solid var(--line); }
}

/* 운영 기관(한국선배시민협회) */
.partner {
  margin-top: 64px; display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center;
  padding: 28px 32px; border-radius: var(--r-card); background: var(--bg); border: 1px solid var(--line);
}
.partner__logo { background: #ffffff; border-radius: 12px; padding: 14px 18px; }
.partner__logo img { width: 240px; height: auto; }
.partner__text h3 { font-size: 22px; font-weight: 800; }
.partner__text p { margin-top: 6px; font-size: 17px; line-height: 1.65; max-width: 46ch; }
.partner__cta .ph { font-size: 20px; }
.footer__links a .ph { font-size: 16px; vertical-align: -2px; }
@media (max-width: 1080px) {
  .partner { grid-template-columns: auto 1fr; }
  .partner__cta { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 767px) {
  .partner { grid-template-columns: 1fr; gap: 20px; padding: 24px 20px; }
  .partner__logo { justify-self: start; }
  .partner__logo img { width: 220px; }
  .partner__cta { width: 100%; }
}

/* GREETING */
.greeting__grid { display: grid; grid-template-columns: 380px 1fr; gap: 72px; align-items: start; }
.greeting__photo { margin: 0; border-radius: var(--r-card); overflow: hidden; background: var(--surface-2); position: sticky; top: 104px; }
.greeting__body h2 { font-size: clamp(30px, 3.4vw, 42px); font-weight: 800; }
.greeting blockquote { margin: 28px 0; padding: 4px 0 4px 24px; border-left: 4px solid var(--accent); }
.greeting blockquote p { font-size: 1.3em; font-weight: 700; color: var(--ink); line-height: 1.55; }
.greeting blockquote cite { display: block; margin-top: 10px; font-style: normal; font-size: 16px; color: var(--mute); }
.greeting__body > p { max-width: 60ch; }
.sign { margin-top: 36px; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.sign strong { font-size: 28px; color: var(--ink); }
.sign span { color: var(--mute); }
.sign__career { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sign__career li { font-size: 16px; padding: 6px 14px; border-radius: var(--r-pill); background: var(--surface-2); color: var(--ink); }
@media (max-width: 900px) {
  .greeting__grid { grid-template-columns: 1fr; gap: 36px; }
  .greeting__photo { position: static; max-width: 320px; }
}

/* ORG CHART */
.org { background: var(--surface-2); }
.orgchart { margin-top: 56px; display: flex; flex-direction: column; align-items: center; }
.orgchart__head {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  background: var(--accent); color: var(--on-accent); padding: 18px 48px; border-radius: var(--r-card);
}
.orgchart__head strong { font-size: 26px; color: var(--on-accent); }
.orgchart__role { font-size: 16px; font-weight: 600; opacity: .9; }
.orgchart__stem { width: 2px; height: 40px; background: var(--ink); }
.orgchart__teams { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; width: 100%; padding-top: 40px; }
.orgchart__teams::before { content: ""; position: absolute; top: 0; left: calc(100% / 6); right: calc(100% / 6); height: 2px; background: var(--ink); }
.team {
  position: relative; text-align: left; font: inherit; color: var(--body);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 28px; cursor: pointer; transition: border-color .2s ease, transform .2s ease;
}
.team::before { content: ""; position: absolute; top: -41px; left: 50%; width: 2px; height: 40px; background: var(--ink); }
.team:hover { border-color: var(--accent); transform: translateY(-2px); }
.team__name { display: block; font-size: 24px; font-weight: 800; color: var(--ink); padding-bottom: 14px; margin-bottom: 14px; border-bottom: 2px solid var(--accent); }
.team ul { margin: 0; padding-left: 1.1em; }
.team li { margin: 4px 0; }
.team__more { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-size: 16px; font-weight: 700; color: var(--accent); }
@media (max-width: 900px) {
  .orgchart__teams { grid-template-columns: 1fr; padding-top: 0; gap: 20px; }
  .orgchart__teams::before { display: none; }
  .team::before { top: -21px; height: 20px; }
  .orgchart__stem { height: 20px; }
}

/* PEOPLE: 팀장 3인 카드 */
.leads { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.lead { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; scroll-margin-top: 96px; }
.lead__img { position: relative; aspect-ratio: 4 / 5; background: var(--surface-2); overflow: hidden; }
.lead__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.lead__body { display: flex; flex-direction: column; flex: 1; padding: 26px 26px 28px; }
.lead__team { display: inline-block; align-self: flex-start; font-size: 15px; font-weight: 700; color: var(--accent); background: var(--accent-tint); padding: 4px 12px; border-radius: var(--r-pill); }
.lead__name { font-size: 28px; font-weight: 800; margin-top: 14px; }
.lead__name span { font-size: 18px; font-weight: 600; color: var(--mute); margin-left: 8px; }
.lead__line { margin-top: 8px; font-weight: 600; color: var(--ink); line-height: 1.6; min-height: 3.2em; }
.lead__highlights { list-style: none; margin: 20px 0 24px; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: 16px; line-height: 1.55; }
.lead__highlights li { padding-left: 16px; position: relative; }
.lead__highlights li::before { content: ""; position: absolute; left: 0; top: .65em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.lead__more {
  margin-top: auto; align-self: stretch; min-height: 52px; border-radius: var(--r-pill); cursor: pointer;
  font: inherit; font-size: 17px; font-weight: 700; color: var(--ink); background: transparent; border: 1.5px solid var(--ink);
  transition: background-color .2s ease;
}
.lead__more:hover { background: var(--surface-2); }
@media (max-width: 1000px) {
  .leads { grid-template-columns: 1fr; gap: 20px; }
  .lead { flex-direction: row; }
  .lead__img { width: 38%; aspect-ratio: auto; min-height: 100%; flex-shrink: 0; }
}
@media (max-width: 600px) {
  .lead { flex-direction: column; }
  .lead__img { width: 100%; aspect-ratio: 1 / 1; min-height: 0; }
  .lead__body { padding: 22px 20px 24px; }
}

/* PROFILE DIALOG */
.profile { width: min(880px, calc(100% - 32px)); max-height: calc(100dvh - 48px); border: 0; border-radius: var(--r-card); padding: 0; background: var(--surface); color: var(--body); box-shadow: var(--shadow); }
.profile::backdrop { background: rgb(10 20 16 / .55); }
.profile__grid { display: grid; grid-template-columns: 300px 1fr; gap: 36px; padding: 36px; }
.profile__img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--r-card); background: var(--surface-2); }
.profile__team { font-size: 16px; font-weight: 700; color: var(--accent); }
.profile h3 { font-size: 32px; font-weight: 800; margin-top: 4px; }
.profile__role { color: var(--mute); font-weight: 600; }
.profile__intro { margin-top: 18px; }
.profile h4 { font-size: 18px; font-weight: 800; margin: 26px 0 10px; }
.profile__career { margin: 0; padding-left: 1.1em; }
.profile__career li { margin: 4px 0; }
.profile__tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.profile__tags li { font-size: 16px; padding: 6px 14px; border-radius: var(--r-pill); background: var(--accent-tint); color: var(--ink); }
.profile__close { position: absolute; top: 14px; right: 14px; width: 48px; height: 48px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 22px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
@media (max-width: 767px) {
  .profile__grid { grid-template-columns: 1fr; padding: 24px 20px; gap: 20px; }
  .profile__img { max-width: 200px; }
}

/* PROGRAMS (bento: 4 items → 4 cells) */
.bento { display: grid; grid-template-columns: 1.2fr 1fr 1fr; grid-template-rows: auto auto; gap: 20px; margin-top: 48px; }
.tile { border-radius: var(--r-card); overflow: hidden; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; }
.tile h3 { font-size: 24px; font-weight: 800; }
.tile p { margin-top: 10px; }
.tile--feature { grid-row: span 2; background: var(--accent); border-color: var(--accent); justify-content: flex-end; }
.tile--feature .tile__text { padding: 40px 36px; }
.tile__list { list-style: none; margin: 28px 0 0; padding: 24px 0 0; border-top: 1px solid color-mix(in srgb, var(--on-accent) 30%, transparent); display: grid; gap: 12px; }
.tile__list li { display: flex; gap: 10px; align-items: center; color: var(--on-accent); font-weight: 600; }
.tile__list i { font-size: 22px; }
.tile--feature h3, .tile--feature p, .tile--feature .tile__icon { color: var(--on-accent); }
.tile--feature h3 { font-size: 30px; }
.tile__icon { font-size: 44px; display: block; margin-bottom: 24px; }
.tile--photo img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.tile__caption { padding: 22px 24px 26px; }
.tile--wide { grid-column: 2 / span 2; flex-direction: row; background: var(--accent-tint); border-color: transparent; }
.tile--wide img { width: 44%; object-fit: cover; }
.tile--wide .tile__text { padding: 32px; align-self: center; }
@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr; }
  .tile--feature { grid-row: auto; }
  .tile--wide { grid-column: auto; flex-direction: column; }
  .tile--wide img { width: 100%; aspect-ratio: 16 / 10; }
}

/* NEWS */
.news { background: var(--surface); border-top: 1px solid var(--line); }
.news__feature { margin-top: 40px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.news__feature img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.news__body { padding: 40px; display: flex; flex-direction: column; justify-content: center; gap: 12px; background: var(--bg); }
.news__body time { font-size: 16px; font-weight: 700; color: var(--accent); }
.news__body h3 { font-size: 28px; font-weight: 800; }
.link { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-weight: 700; color: var(--accent); text-underline-offset: 4px; }
@media (max-width: 900px) {
  .news__feature { grid-template-columns: 1fr; }
  .news__feature img { min-height: 0; aspect-ratio: 16 / 8; }
  .news__body { padding: 28px 22px; }
}

/* CONTACT */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.contact__info { margin: 36px 0 0; }
.contact__info div { display: grid; grid-template-columns: 110px 1fr; padding: 14px 0; border-top: 1px solid var(--line); }
.contact__info dt { font-weight: 700; color: var(--ink); }
.contact__info dd { margin: 0; }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 36px; display: grid; gap: 22px; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 700; color: var(--ink); font-size: 18px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 56px; padding: 12px 16px; font: inherit; font-size: 1em; color: var(--ink);
  background: var(--bg); border: 1.5px solid #8a9690; border-radius: var(--r-input);
}
.field textarea { resize: vertical; min-height: 128px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field__help { font-size: 16px; color: var(--mute); }
.field__error { font-size: 16px; font-weight: 600; color: var(--error); }
.form__done { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--accent); }
.form__done i { font-size: 24px; }
@media (max-width: 900px) {
  .contact__grid { grid-template-columns: 1fr; gap: 40px; }
  .form { padding: 24px 20px; }
}

/* FOOTER */
.footer { background: var(--ink); color: color-mix(in srgb, var(--bg) 80%, transparent); padding: 56px 0 28px; font-size: 17px; }
.footer__grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer__name { display: block; font-size: 20px; color: var(--bg); margin-bottom: 8px; }
.footer .muted { color: color-mix(in srgb, var(--bg) 62%, transparent); }
.footer__links { display: flex; gap: 8px 24px; flex-wrap: wrap; align-items: flex-start; }
.footer__links a { color: var(--bg); text-decoration: none; font-weight: 600; }
.footer__links a:hover { text-decoration: underline; }
.footer__legal { margin-top: 40px; font-size: 15px; }
.footer__legal::before { content: ""; display: block; height: 1px; margin-bottom: 20px; background: color-mix(in srgb, var(--bg) 20%, transparent); }

/* 절제된 등장 모션: 읽는 순서를 안내하는 용도 */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.16, 1, .3, 1), transform .7s cubic-bezier(.16, 1, .3, 1); }
  .js .reveal.is-in { opacity: 1; transform: none; }
}
