/* 테마 B — 웜 프리미엄
   아이보리 지면에 딥그린과 브론즈. 제목은 명조.
   "돈 들인 고급 브로슈어" 쪽 인상. */

:root {
  --ink-900: #221f1a;
  --ink-800: #2f2b24;
  --ink-700: #3c372f;
  --ink-500: #6b6459;
  --ink-400: #8b8377;
  --ink-300: #b6ada0;
  --line: #e4ded2;
  --line-dark: rgba(255, 255, 255, 0.14);

  --paper: #fcfaf6;
  --paper-soft: #f4efe5;

  --brand: #1f5b47;
  --brand-bright: #4a9d80;
  --brand-soft: rgba(31, 91, 71, 0.09);

  --radius: 6px;
  --radius-lg: 10px;
  --header-h: 76px;

  --wide: 72rem;
  --measure: 42rem;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* 제목만 명조로. 본문은 Pretendard 를 유지해 가독성을 지킨다. */
h1,
h2,
h3,
.hero-lead,
.stat-num,
.vision-line,
.tagline {
  font-family: 'Nanum Myeongjo', 'Apple SD Gothic Neo', Batang, serif;
  letter-spacing: -0.015em;
  font-weight: 700;
}

.hero-lead {
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* 헤더를 두껍게, 밑줄 한 줄로 격식 */
.site-header.scrolled,
body:not(.has-hero) .site-header {
  background: rgba(252, 250, 246, 0.9);
  border-bottom-color: var(--line);
}

.brand img {
  border-radius: 4px;
}

.brand-text em {
  letter-spacing: 0.2em;
}

/* 히어로 — 사진을 덜 어둡게, 아래쪽만 깊게 */
.hero {
  min-height: min(80vh, 42rem);
  background: #1a1712;
}

.hero-img {
  opacity: 0.62;
}

.hero::after {
  background: linear-gradient(
    180deg,
    rgba(26, 23, 18, 0.5) 0%,
    rgba(26, 23, 18, 0.15) 34%,
    rgba(26, 23, 18, 0.9) 100%
  );
}

/* 브론즈 밑줄로 소제목을 장식 */
.eyebrow {
  border-radius: 0;
  background: transparent;
  border-bottom: 2px solid #b08d57;
  color: #8a6b3c;
  padding: 0 0 0.25rem;
  letter-spacing: 0.14em;
}

.section-dark {
  background: #1f2320;
}

.section-dark .eyebrow {
  border-bottom-color: #c9a978;
  color: #d9bf95;
}

.btn,
.btn-donate {
  border-radius: 3px;
  letter-spacing: 0.01em;
}

.card {
  border-radius: var(--radius-lg);
}

.card:hover {
  box-shadow: 0 18px 40px -18px rgba(34, 31, 26, 0.3);
}

.stat-grid {
  border-radius: var(--radius-lg);
}

.stat-num .unit {
  color: #c9a978;
}

.vision-line strong {
  color: #d9bf95;
}

.site-footer {
  background: #1f2320;
}

.note {
  border-left-color: #b08d57;
}

/* ══ B · 벤토 그리드 ═════════════════════════════════════
   크기가 다른 칸을 짜맞춘 한 판. 스크롤을 많이 내리지 않아도
   기관이 무엇을 하는지 한눈에 들어온다. */

.b-wrap {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 2rem 1.25rem 5rem;
}

.bento {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(9rem, auto);
}

.bx {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  padding: 1.5rem;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

a.bx:hover {
  transform: translateY(-3px);
  border-color: var(--brand);
  box-shadow: 0 20px 40px -20px rgba(34, 31, 26, 0.3);
}

.bx-hero {
  grid-column: span 4;
  grid-row: span 3;
  padding: 0;
  min-height: 24rem;
}

.bx-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bx-hero .bx-over {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1.5rem, 4vw, 3rem);
  color: #fff;
  background: linear-gradient(0deg, rgba(26, 23, 18, 0.9) 0%, rgba(26, 23, 18, 0.15) 60%);
}

.bx-hero h1 {
  margin: 0.5rem 0 0;
  font-size: clamp(1.875rem, 5vw, 3.25rem);
  line-height: 1.1;
}

.bx-sub {
  margin: 1rem 0 0;
  max-width: 30rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9375rem;
}

.bx-kicker {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #a07a3d;
  text-transform: uppercase;
}

.bx-hero .bx-kicker {
  color: #e0c9a0;
}

.bx-stat {
  grid-column: span 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bx-stat b {
  font-size: clamp(1.5rem, 3.2vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.bx-stat em {
  font-style: normal;
  font-size: 0.45em;
  color: var(--brand);
  margin-left: 0.15rem;
}

.bx-stat span {
  margin-top: 0.625rem;
  color: var(--ink-500);
  font-size: 0.8125rem;
}

.bx-accent {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.bx-accent em,
.bx-accent span {
  color: rgba(255, 255, 255, 0.82);
}

.bx-quote {
  grid-column: span 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--paper-soft);
}

.bx-quote p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
}

.bx-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--brand);
  font-weight: 600;
  font-size: 0.8125rem;
}

.bx-prog {
  grid-column: span 2;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.bx-prog img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.bx-prog .bx-body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.bx-prog h3 {
  margin: 0 0 0.375rem;
  font-size: 1rem;
}

.bx-prog p {
  margin: 0;
  color: var(--ink-500);
  font-size: 0.875rem;
  line-height: 1.6;
}

.bx-fin {
  grid-column: span 2;
  grid-row: span 2;
  background: #1f2320;
  border-color: #1f2320;
  color: #fff;
}

.bx-fin dl {
  margin: 1.25rem 0 0;
}

.bx-fin dl div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.875rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.bx-fin dt {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}

.bx-fin dd {
  margin: 0;
  color: #fff;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.bx-fin .bx-link {
  color: #d9bf95;
}

.bx-news {
  grid-column: span 2;
}

.bx-news .post-list {
  margin-top: 0.75rem;
  border-top: 0;
}

.bx-news .post-list li {
  padding: 0.625rem 0;
  font-size: 0.9375rem;
}

.bx-cta {
  grid-column: span 2;
  background: var(--ink-900);
  border-color: var(--ink-900);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bx-cta h2 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
}

.bx-cta p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
}

.bx-cta .bx-link {
  color: #d9bf95;
}

@media (max-width: 64rem) {
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .bx-hero,
  .bx-prog,
  .bx-fin,
  .bx-news,
  .bx-cta {
    grid-column: span 2;
  }
}

@media (max-width: 40rem) {
  .bento {
    grid-template-columns: 1fr;
  }
  .bx,
  .bx-hero,
  .bx-stat,
  .bx-quote,
  .bx-prog,
  .bx-fin,
  .bx-news,
  .bx-cta {
    grid-column: span 1;
  }
}
