:root {
  --ink: #17211f;
  --muted: #5c6965;
  --paper: #fbfaf4;
  --line: #d9ddd1;
  --teal: #0e6f67;
  --teal-dark: #064b47;
  --coral: #e2684b;
  --mustard: #d7a945;
  --white: #ffffff;
  --shadow: 0 22px 70px rgba(23, 33, 31, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 18px clamp(18px, 4vw, 58px);
  border-bottom: 1px solid rgba(23, 33, 31, 0.08);
  background: rgba(251, 250, 244, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 46px;
}

.brand-symbol {
  display: block;
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.brand-wordmark {
  display: block;
  width: clamp(188px, 17vw, 248px);
  height: auto;
  object-fit: contain;
}

.brand-fallback {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 2vw, 28px);
  font-size: 15px;
  font-weight: 700;
}

.main-nav a {
  padding: 8px 0;
}

.is-hidden {
  display: none !important;
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.header-cta,
.button.primary {
  color: var(--white);
  border-color: var(--teal);
  background: var(--teal);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.78);
}

.button.full {
  width: 100%;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 11px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 50%;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.hero {
  position: relative;
  display: grid;
  min-height: 710px;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  overflow: hidden;
  padding: clamp(90px, 12vw, 150px) clamp(18px, 5vw, 72px) 104px;
}

.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--teal-dark);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  background-position: center;
  background-size: cover;
  transform: scale(1.03);
  transition:
    opacity 1.1s ease,
    transform 6.8s ease;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 35, 32, 0.9), rgba(7, 35, 32, 0.52) 48%, rgba(7, 35, 32, 0.12));
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(0deg, rgba(7, 35, 32, 0.75), rgba(7, 35, 32, 0));
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  color: var(--white);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--coral);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.about-story h2,
.section h2,
.board h2,
.volunteer-box h2 {
  margin: 0;
  font-family: Georgia, "Noto Serif KR", serif;
  line-height: 1.08;
}

.about-story {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1fr);
  gap: 44px;
  padding: 96px clamp(18px, 5vw, 72px);
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.about-kicker {
  position: sticky;
  top: 120px;
  align-self: start;
}

.about-story h2 {
  margin: 0;
  max-width: 560px;
  font-size: clamp(28px, 3vw, 42px);
}

.about-story h2 span {
  display: block;
  white-space: nowrap;
}

.about-body {
  display: grid;
  gap: 18px;
  color: #30413d;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.85;
  word-break: keep-all;
}

.about-body p {
  margin: 0;
}

.hero h1 {
  max-width: 720px;
  font-size: clamp(42px, 6vw, 80px);
}

.hero h1 span {
  display: block;
  white-space: nowrap;
}

.hero-copy {
  max-width: 760px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2vw, 21px);
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.section {
  padding: 92px clamp(18px, 5vw, 72px) 34px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(260px, 0.55fr);
  gap: 40px;
  align-items: end;
}

.section h2,
.board h2,
.volunteer-box h2 {
  font-size: clamp(30px, 4.8vw, 58px);
}

#programs h2 {
  font-size: clamp(28px, 3vw, 42px);
}

.section-copy,
.flow-intro p {
  color: var(--muted);
  font-size: 18px;
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  padding: 0 clamp(18px, 5vw, 72px) 92px;
}

.program-card {
  position: relative;
  display: flex;
  min-height: 390px;
  aspect-ratio: 16 / 9;
  align-items: flex-end;
  overflow: hidden;
  padding: 28px;
  color: var(--white);
  background-color: var(--ink);
  background-position: center;
  background-size: cover;
  border: 1px solid var(--line);
}

.program-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 35, 32, 0.42) 0%, rgba(7, 35, 32, 0.08) 38%, rgba(7, 35, 32, 0.94) 100%);
}

.program-card > span {
  position: absolute;
  top: 24px;
  left: 28px;
  z-index: 1;
  display: grid;
  width: 60px;
  height: 60px;
  place-items: center;
  color: var(--ink);
  background: var(--coral);
  border-radius: 4px;
  box-shadow: 0 8px 22px rgba(7, 35, 32, 0.28);
  font-family: Georgia, serif;
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
}

.program-card-content {
  position: relative;
  z-index: 1;
  max-width: 620px;
}

.program-card h3 {
  margin: 0 0 12px;
  font-size: 28px;
  line-height: 1.35;
  word-break: keep-all;
  overflow-wrap: break-word;
  text-wrap: pretty;
}

.program-card p {
  max-width: 580px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: break-word;
  text-wrap: pretty;
}

.program-card-01 {
  background-image: url("assets/media/programs/saup_001.jpg");
}

.program-card-02 {
  background-image: url("assets/media/programs/saup_002.jpeg");
}

.program-card-03 {
  background-image: url("assets/media/programs/saup_003.jpeg");
}

.program-card-04 {
  background-image: url("assets/media/programs/saup_004.jpeg");
}

.board-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 24px;
  padding: 92px clamp(18px, 5vw, 72px);
}

.board-layout.board-only {
  grid-template-columns: 1fr;
}

.board,
.volunteer-box {
  padding: clamp(22px, 3vw, 34px);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(23, 33, 31, 0.06);
}

.board-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 24px;
}

.tabs {
  display: flex;
  gap: 8px;
}

.tabs button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
}

.tabs button.active {
  color: var(--white);
  border-color: var(--teal);
  background: var(--teal);
}

.post {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.post-link {
  width: 100%;
  color: inherit;
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: color 180ms ease, background-color 180ms ease;
}

.post-link:hover,
.post-link:focus-visible {
  color: var(--teal);
  background: rgba(20, 112, 105, 0.05);
  outline: none;
}

.post time {
  color: var(--muted);
  font-size: 14px;
}

.post b {
  display: block;
  font-size: 18px;
}

.post span {
  color: var(--muted);
}

.post em {
  font-style: normal;
  color: var(--coral);
  font-weight: 900;
}

.post-modal {
  width: min(760px, calc(100% - 40px));
  max-height: min(88dvh, 820px);
  padding: 0;
  overflow: auto;
  color: var(--ink);
  background: var(--white);
  border: 0;
  border-radius: 8px;
  box-shadow: 0 28px 90px rgba(8, 28, 28, 0.28);
}

.post-modal::backdrop {
  background: rgba(8, 28, 28, 0.72);
  backdrop-filter: blur(4px);
}

.post-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 1;
  width: 44px;
  height: 44px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  background: rgba(8, 28, 28, 0.64);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.post-modal-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.post-modal-content {
  padding: 32px 36px 40px;
}

.post-modal-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
}

.post-modal-meta span {
  color: var(--coral);
  font-weight: 900;
}

.post-modal-content h2 {
  margin: 12px 0 18px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.2;
  word-break: keep-all;
}

.post-modal-content > p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
  word-break: keep-all;
}

.volunteer-box ul {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 26px 0;
  list-style: none;
}

.volunteer-box li {
  padding: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.volunteer-box b,
.volunteer-box span {
  display: block;
}

.volunteer-box span {
  color: var(--muted);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 36px clamp(18px, 5vw, 72px) 90px;
  color: rgba(255, 255, 255, 0.72);
  background: var(--ink);
}

.site-footer strong {
  color: var(--white);
}

.footer-logo {
  display: block;
  width: 116px;
  height: auto;
  margin-bottom: 14px;
}

.site-footer address {
  font-style: normal;
  text-align: right;
}

.floating-donate {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 30;
  display: none;
  min-height: 48px;
  align-items: center;
  padding: 0 18px;
  color: var(--white);
  background: var(--coral);
  border-radius: 999px;
  box-shadow: var(--shadow);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.donation-modal {
  width: min(920px, calc(100% - 40px));
  max-height: min(88dvh, 820px);
  padding: 0;
  overflow: auto;
  color: var(--ink);
  background: var(--white);
  border: 0;
  border-radius: 8px;
  box-shadow: 0 28px 90px rgba(8, 28, 28, 0.28);
}

.donation-modal::backdrop {
  background: rgba(8, 28, 28, 0.72);
  backdrop-filter: blur(4px);
}

.donation-modal-head {
  position: relative;
  padding: 44px 72px 40px 40px;
  color: var(--white);
  background: var(--teal);
}

.donation-modal-head h2 {
  max-width: 700px;
  margin: 10px 0 14px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.15;
  word-break: keep-all;
}

.donation-modal-head p:last-child {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.donation-modal-head .eyebrow {
  color: #ffb2a5;
}

.donation-modal-close {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 44px;
  height: 44px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  background: transparent;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.donation-modal-body {
  display: grid;
  gap: 34px;
  padding: 36px 40px 40px;
}

.donation-modal-body h3 {
  margin: 0 0 16px;
  font-size: 22px;
}

.donation-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.donation-methods article {
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.donation-methods b {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.donation-methods p,
.donation-status p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  word-break: keep-all;
}

.donation-uses {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.donation-uses li {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 58px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-weight: 800;
  word-break: keep-all;
}

.donation-uses span {
  color: var(--coral);
  font-size: 13px;
}

.donation-status {
  padding: 24px;
  border-left: 4px solid var(--coral);
  background: #fff5f1;
}

.donation-status b {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .menu-toggle {
    display: block;
    justify-self: end;
  }

  .main-nav,
  .header-cta {
    display: none;
  }

  .site-header.open .main-nav {
    display: grid;
    grid-column: 1 / -1;
    justify-content: stretch;
    gap: 0;
    padding-top: 12px;
    font-size: 16px;
  }

  .site-header.open .main-nav a {
    padding: 15px 0;
    border-top: 1px solid var(--line);
  }

  .program-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .board-layout,
  .split,
  .about-story {
    grid-template-columns: 1fr;
  }

  .about-kicker {
    position: static;
  }

}

@media (prefers-reduced-motion: reduce) {
  .hero-slide {
    transition: none;
    transform: none;
  }

  .hero-slide:not(.is-active) {
    display: none;
  }
}

@media (max-width: 680px) {
  html {
    scroll-padding-top: 78px;
  }

  .site-header {
    gap: 12px;
    padding: 12px 14px;
  }

  .brand {
    min-width: 0;
  }

  .brand-logo {
    height: 40px;
    gap: 7px;
    min-width: 0;
  }

  .brand-symbol {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
  }

  .brand-wordmark {
    width: min(214px, calc(100vw - 112px));
  }

  .menu-toggle {
    width: 40px;
    height: 40px;
    padding: 9px;
  }

  .site-header.open .main-nav {
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    padding-top: 8px;
  }

  .site-header.open .main-nav a {
    min-height: 48px;
    padding: 13px 2px;
  }

  .hero {
    min-height: auto;
    padding: 64px 16px 24px;
    align-items: start;
  }

  .hero-slide::after {
    background: linear-gradient(180deg, rgba(7, 35, 32, 0.54), rgba(7, 35, 32, 0.9));
  }

  .eyebrow {
    margin-bottom: 9px;
    font-size: 17px;
  }

  .hero h1 {
    max-width: 12ch;
    font-size: 36px;
    line-height: 1.04;
    word-break: keep-all;
  }

  .hero-copy {
    margin-top: 18px;
    font-size: 16px;
    line-height: 1.62;
    word-break: keep-all;
  }

  .hero-actions,
  .board-head,
  .site-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions {
    gap: 10px;
    margin-top: 24px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .section {
    padding: 58px 16px 22px;
  }

  .about-story {
    gap: 26px;
    padding: 58px 16px;
  }

  .section h2,
  .about-story h2,
  .board h2,
  .volunteer-box h2 {
    font-size: 32px;
    line-height: 1.13;
    word-break: keep-all;
  }

  .section-copy,
  .about-body {
    font-size: 16px;
    line-height: 1.7;
    word-break: keep-all;
  }

  .about-body {
    gap: 14px;
  }

  .program-grid {
    grid-template-columns: 1fr;
  }

  .program-grid {
    padding: 0 16px 58px;
  }

  .program-card {
    min-height: 360px;
    aspect-ratio: auto;
    padding: 22px;
  }

  .program-card > span {
    top: 20px;
    left: 22px;
    width: 52px;
    height: 52px;
    font-size: 29px;
  }

  .program-card h3 {
    margin: 0 0 10px;
    font-size: 22px;
  }

  .board-layout {
    gap: 18px;
    padding: 58px 16px;
  }

  .board,
  .volunteer-box {
    padding: 20px;
    border-radius: 8px;
  }

  .tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .tabs button {
    min-height: 42px;
    padding: 0 6px;
    font-size: 13px;
  }

  .post {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 16px 0;
  }

  .post b {
    font-size: 16px;
    line-height: 1.35;
    word-break: keep-all;
  }

  .post span {
    display: block;
    margin-top: 4px;
    font-size: 14px;
    line-height: 1.5;
    word-break: keep-all;
  }

  .post em {
    justify-self: start;
    padding: 3px 8px;
    background: rgba(226, 104, 75, 0.11);
    border-radius: 999px;
    font-size: 12px;
  }

  .volunteer-box ul {
    margin: 20px 0;
  }

  .site-footer {
    padding: 30px 16px 96px;
    font-size: 14px;
  }

  .site-footer address {
    text-align: left;
  }

  .floating-donate {
    right: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom));
    left: 14px;
    display: inline-flex;
    justify-content: center;
    min-height: 52px;
    border: 1px solid rgba(255, 255, 255, 0.2);
  }

  .donation-modal {
    width: calc(100% - 24px);
    max-height: calc(100dvh - 24px);
  }

  .post-modal {
    width: calc(100% - 24px);
    max-height: calc(100dvh - 24px);
  }

  .post-modal-content {
    padding: 24px 20px 30px;
  }

  .post-modal-content h2 {
    font-size: 27px;
  }

  .donation-modal-head {
    padding: 32px 60px 28px 24px;
  }

  .donation-modal-head h2 {
    font-size: 30px;
  }

  .donation-modal-close {
    top: 16px;
    right: 14px;
  }

  .donation-modal-body {
    gap: 28px;
    padding: 28px 20px 32px;
  }

  .donation-methods,
  .donation-uses {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 380px) {
  .brand-logo {
    height: 45px;
  }

  .brand-symbol {
    width: 36px;
    height: 36px;
  }

  .brand-wordmark {
    width: min(118px, calc(100vw - 106px));
  }

  .hero h1 {
    font-size: 32px;
  }

  .tabs {
    grid-template-columns: 1fr;
  }

}
