/* =========================================================
   Spring of Life — 정적 다중 페이지 사이트
   Palette / type 출처: SL 소개 덱 (2026)
   ========================================================= */

:root {
  /* Brand */
  --navy:       #0B3C5D;
  --navy-deep:  #072A42;
  --teal:       #7FCFD4;
  --teal-soft:  #BEE7E9;
  --forest:     #1F4B3F;
  --sun:        #FBF3A8;
  --lavender:   #E8EDFB;
  --paper:      #FFFFFF;
  --ink:        #1A1A1A;
  --muted:      #5C6470;

  /* Type */
  --font-head:    'Poppins', 'Pretendard', system-ui, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', 'Pretendard', system-ui, sans-serif;

  /* Layout */
  --max:       1200px;
  --gutter:    clamp(20px, 5vw, 40px);
  --radius:    22px;
  --radius-sm: 14px;
  --border:    2.5px solid var(--ink);
  --section-y: clamp(36px, 4.6vw, 66px);

  /* Motion */
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--lavender);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.12;
  margin: 0 0 .5em;
  letter-spacing: .01em;
}

h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); text-transform: uppercase; }
h2 { font-size: clamp(1.55rem, 4vw, 2.5rem); text-transform: uppercase; }
h3 { font-size: clamp(1.1rem, 2.2vw, 1.4rem); }

p { margin: 0 0 1em; }

.script {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}

.eyebrow {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 .8em;
}

.lead { font-size: clamp(1rem, 1.5vw, 1.2rem); color: var(--muted); max-width: 62ch; }

.marker {
  background: linear-gradient(180deg, transparent 58%, var(--sun) 58%);
  padding: 0 .14em;
}

/* Layout primitives ------------------------------------- */

.wrap {
  width: min(var(--max), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.section { padding-block: var(--section-y); }

.section--navy {
  background: linear-gradient(160deg, var(--navy), var(--navy-deep));
  color: var(--paper);
}
.section--navy .lead,
.section--navy .eyebrow { color: rgba(255, 255, 255, .72); }

.panel {
  background: var(--paper);
  border: var(--border);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 56px);
}

.card {
  background: var(--paper);
  border: var(--border);
  border-radius: var(--radius);
  padding: clamp(20px, 2.6vw, 30px);
}

.grid { display: grid; gap: clamp(16px, 2.4vw, 26px); }
.grid--auto { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.chip {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  flex: none;
  border-radius: 50%;
  background: var(--teal-soft);
}
.chip svg {
  width: 28px; height: 28px;
  fill: none;
  stroke: var(--forest);
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Buttons ----------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .9em 1.6em;
  border: var(--border);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  transition: transform .25s var(--ease), background .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); background: var(--sun); }
.btn:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }

.btn--primary { background: var(--navy); border-color: var(--navy); color: var(--paper); }
.btn--primary:hover { background: var(--navy-deep); color: var(--paper); }

/* Reveal ------------------------------------------------ */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Header ------------------------------------------------ */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(232, 237, 251, .82);
  backdrop-filter: blur(10px);
  transition: background .3s var(--ease), box-shadow .3s var(--ease);
}
.header--scrolled {
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 1px 0 rgba(26, 26, 26, .14);
}

.header__inner {
  width: min(var(--max), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 20px;
  padding-block: 14px;
}

.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo__mark { width: 42px; height: 42px; }
.logo__text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--navy);
  white-space: nowrap;
}

.nav { margin-left: auto; }
.nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav__link {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
  padding-block: 6px;
  border-bottom: 2px solid transparent;
}
.nav__link:hover { border-bottom-color: var(--teal); }
.nav__link[aria-current="page"] { border-bottom-color: var(--navy); }

.nav__item--dropdown { position: relative; }
.nav__link--dropdown {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  padding-block: 6px;
  font: inherit;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .9rem;
  color: inherit;
  cursor: pointer;
}
.nav__link--dropdown:hover { border-bottom-color: var(--teal); }
.nav__caret { font-size: .65em; transition: transform .25s var(--ease); }
.nav__item--dropdown[data-open="true"] .nav__caret { transform: rotate(180deg); }

.nav__dropdown {
  list-style: none;
  margin: 0;
  padding: 8px;
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  min-width: 190px;
  display: grid;
  gap: 2px;
  background: var(--paper);
  border: var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 14px 30px rgba(7, 42, 66, .16);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(6px);
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.nav__item--dropdown[data-open="true"] .nav__dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav__dropdown a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .88rem;
  text-decoration: none;
  color: var(--ink);
}
.nav__dropdown a:hover,
.nav__dropdown a:focus-visible { background: var(--lavender); }
.nav__dropdown a[aria-current="page"] { color: var(--navy); background: var(--lavender); }

.menu-btn {
  display: none;
  width: 44px; height: 44px;
  padding: 0;
  background: var(--paper);
  border: var(--border);
  border-radius: 12px;
  cursor: pointer;
}
.menu-btn span {
  display: block;
  width: 18px; height: 2px;
  margin: 3px auto;
  background: var(--ink);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.mobile-nav {
  display: grid;
  gap: 4px;
  padding: 12px var(--gutter) 22px;
  background: var(--paper);
  border-top: 2px solid var(--ink);
}
.mobile-nav a {
  font-family: var(--font-head);
  font-weight: 600;
  text-decoration: none;
  padding: 12px 4px;
  border-bottom: 1px solid rgba(26, 26, 26, .1);
}
.mobile-nav[hidden] { display: none; }

@media (max-width: 860px) {
  .nav, .header .btn { display: none; }
  .menu-btn { display: block; margin-left: auto; }
}

/* Hero -------------------------------------------------- */

.hero { padding-block: clamp(28px, 3.4vw, 48px); }
.hero__panel { display: grid; gap: clamp(20px, 3vw, 34px); text-align: center; }
.hero__mark { width: clamp(84px, 12vw, 128px); height: auto; margin-inline: auto; }
.hero h1 { margin: 0; }
.hero h1 .script { display: block; font-size: 1.16em; }
.hero .lead { margin-inline: auto; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* Footer ------------------------------------------------ */

.footer { background: var(--navy); color: var(--paper); padding-block: clamp(44px, 6vw, 72px) 0; }
.footer__inner {
  width: min(var(--max), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
  display: grid;
  gap: clamp(28px, 4vw, 56px);
  grid-template-columns: minmax(260px, 1.4fr) 1fr;
}
@media (max-width: 720px) { .footer__inner { grid-template-columns: 1fr; } }

.footer__brand img { width: 52px; height: 52px; margin-bottom: 14px; }
.footer__tagline { color: rgba(255, 255, 255, .74); max-width: 44ch; }

.footer__nav { display: flex; gap: clamp(28px, 5vw, 64px); }
.footer__group { display: grid; align-content: start; gap: 10px; }
.footer__group strong {
  font-family: var(--font-head);
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--teal);
}
.footer__group a { color: rgba(255, 255, 255, .82); text-decoration: none; }
.footer__group a:hover { color: var(--paper); text-decoration: underline; }

.footer__base {
  width: min(var(--max), calc(100% - var(--gutter) * 2));
  margin: clamp(32px, 5vw, 56px) auto 0;
  padding-block: 20px;
  border-top: 1px solid rgba(255, 255, 255, .18);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
  font-size: .84rem;
  color: rgba(255, 255, 255, .62);
}

/* Task 5: Home content sections ----------------------- */

.stats {
  list-style: none;
  margin: clamp(24px, 4vw, 40px) 0 0;
  padding: 0;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  border-top: 2px solid var(--ink);
  padding-top: clamp(20px, 3vw, 32px);
}
.stats li { display: grid; gap: 2px; }
.stats strong {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  line-height: 1;
  color: var(--navy);
}
.stats span { font-size: .86rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

.pillar { display: grid; gap: 12px; align-content: start; }
.pillar h3 { margin: 4px 0 0; color: var(--forest); }
.pillar p { margin: 0; color: var(--muted); }

.prog-list {
  list-style: none;
  margin: 0 0 clamp(24px, 4vw, 36px);
  padding: 0;
  display: grid;
  gap: 10px;
}
.prog-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  padding: 16px 22px;
  background: rgba(255, 255, 255, .07);
  border: 2px solid rgba(255, 255, 255, .28);
  border-radius: var(--radius-sm);
}
.prog-list strong { font-family: var(--font-head); font-size: 1.05rem; }
.prog-list span { color: rgba(255, 255, 255, .7); font-size: .94rem; }

.quote { display: grid; gap: 14px; align-content: start; margin: 0; }
.quote img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; border: 2px solid var(--ink); }
.quote blockquote { margin: 0; font-size: 1.02rem; }
.quote figcaption { font-size: .9rem; color: var(--muted); }
.quote figcaption strong { font-family: var(--font-head); color: var(--ink); }

.strip {
  list-style: none;
  margin: 0 0 clamp(24px, 4vw, 36px);
  padding: 0 0 8px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(180px, 1fr);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}
.strip li { scroll-snap-align: start; }
.strip img {
  width: 100%;
  aspect-ratio: 9 / 13;
  object-fit: cover;
  border: var(--border);
  border-radius: var(--radius-sm);
}

.cta-band { text-align: center; display: grid; gap: 16px; justify-items: center; }

/* ============== ABOUT PAGE STYLES ============== */

.journey {
  margin-top: clamp(24px, 4vw, 40px);
  display: grid;
  gap: clamp(18px, 3vw, 30px);
  grid-template-columns: minmax(180px, .8fr) 2fr;
  align-items: center;
}
@media (max-width: 720px) { .journey { grid-template-columns: 1fr; } }

.journey__origin {
  display: grid;
  gap: 4px;
  padding: clamp(20px, 3vw, 28px);
  border: 2px solid var(--teal);
  border-radius: var(--radius);
  background: rgba(127, 207, 212, .12);
}
.journey__origin strong { font-family: var(--font-head); font-size: 1.6rem; }

.journey__targets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.journey__targets li {
  display: grid;
  gap: 4px;
  padding: 18px 20px;
  border: 2px solid rgba(255, 255, 255, .28);
  border-radius: var(--radius-sm);
}
.journey__targets strong { font-family: var(--font-head); font-size: 1.15rem; }

.journey__label {
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--teal);
}

.timeline { list-style: none; margin: clamp(20px, 3vw, 32px) 0 0; padding: 0; display: grid; gap: 0; }
.timeline li {
  position: relative;
  padding: 0 0 clamp(24px, 3vw, 34px) clamp(28px, 4vw, 40px);
  border-left: 2px solid var(--teal);
}
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -9px; top: 4px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--sun);
  border: 2px solid var(--ink);
}
.timeline h3 { margin: 0 0 6px; color: var(--forest); }
.timeline p { margin: 0; color: var(--muted); }

.partner-list {
  list-style: none;
  margin: clamp(18px, 3vw, 28px) 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.partner-list li {
  font-family: var(--font-head);
  font-weight: 600;
  padding: 12px 22px;
  border: var(--border);
  border-radius: 999px;
  background: var(--sun);
}
.cta-band .lead { margin-inline: auto; }

/* ========== Programs page ========== */
.prog-card { display: flex; gap: 18px; align-items: flex-start; }
.prog-card h3 { margin: 0 0 2px; color: var(--forest); }
.prog-card p { margin: 0 0 .6em; }
.prog-card p:last-child { margin-bottom: 0; }
.prog-card__sub {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .84rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}

.steps {
  list-style: none;
  margin: clamp(24px, 4vw, 40px) 0 clamp(24px, 4vw, 36px);
  padding: 0;
  display: grid;
  gap: clamp(16px, 2.4vw, 26px);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  counter-reset: step;
}
.steps li {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: clamp(20px, 2.6vw, 30px);
  border: 2px solid rgba(255, 255, 255, .28);
  border-radius: var(--radius);
}
.steps__num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.9rem;
  line-height: 1;
  color: var(--teal);
}
.steps h3 { margin: 0; }
.steps p { margin: 0; color: rgba(255, 255, 255, .74); }

/* Programs grid — single column with max width */
#list .grid {
  grid-template-columns: 1fr;
  max-width: 840px;
  margin-left: auto;
  margin-right: auto;
}

/* Program cards responsive on narrow screens */
@media (max-width: 560px) {
  .prog-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .prog-card > div {
    width: 100%;
  }
}

/* Apply now button on navy background */
.section--navy .btn--primary {
  background: var(--sun);
  border-color: var(--ink);
  color: var(--ink);
}
.section--navy .btn--primary:hover,
.section--navy .btn--primary:focus {
  background: var(--sun);
  border-color: var(--ink);
  color: var(--ink);
  opacity: 0.9;
}

.poster-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(18px, 2.6vw, 28px);
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.poster-grid h3 { margin: 14px 0 2px; font-size: 1.05rem; }
.poster-grid p { margin: 0; font-size: .88rem; color: var(--muted); }

.poster {
  display: block;
  width: 100%;
  padding: 0;
  border: var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--paper);
  cursor: zoom-in;
  transition: transform .25s var(--ease);
}
.poster:hover { transform: translateY(-3px); }
.poster:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.poster img { width: 100%; aspect-ratio: 9 / 13; object-fit: cover; }

.gallery {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(12px, 2vw, 20px);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: var(--border);
  border-radius: var(--radius-sm);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: clamp(20px, 5vw, 56px);
  background: rgba(7, 42, 66, .92);
}
.lightbox[hidden] { display: none; }
.lightbox__figure { margin: 0; display: grid; gap: 14px; justify-items: center; max-height: 100%; }
.lightbox__figure img {
  max-width: min(560px, 100%);
  max-height: 76vh;
  width: auto;
  border-radius: var(--radius-sm);
  border: 2px solid var(--paper);
}
.lightbox__figure figcaption {
  color: var(--paper);
  font-family: var(--font-head);
  font-weight: 600;
  text-align: center;
}
.lightbox__close {
  position: absolute;
  top: clamp(12px, 3vw, 24px);
  right: clamp(12px, 3vw, 24px);
  width: 48px; height: 48px;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--ink);
  background: var(--paper);
  border: var(--border);
  border-radius: 50%;
  cursor: pointer;
}
body.is-locked { overflow: hidden; }

/* Stories */
.story {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: clamp(20px, 3vw, 34px);
  align-items: start;
  margin-bottom: clamp(18px, 2.6vw, 28px);
}
.story:last-of-type { margin-bottom: 0; }
@media (max-width: 640px) { .story { grid-template-columns: 1fr; justify-items: start; } }

.story img {
  width: 140px; height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: var(--border);
}
.story h2 { margin: 0 0 2px; font-size: clamp(1.3rem, 2.6vw, 1.7rem); }
.story__from {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--forest);
  background: var(--sun);
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.story p:last-child { margin-bottom: 0; }

/* ========== We In Campus ========== */
.wic { border-color: var(--forest); background: rgba(31, 75, 63, .04); }
.wic .eyebrow { color: var(--forest); }

.wic-features {
  margin: clamp(24px, 3.4vw, 36px) 0 clamp(28px, 4vw, 44px);
  grid-template-columns: 1fr;
  max-width: none;
}
@media (min-width: 640px) { .wic-features { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); } }
.wic-features .chip { background: var(--sun); }
.wic-features .chip svg { stroke: var(--forest); }
.wic-features h3 { margin: 0 0 4px; color: var(--forest); }
.wic-features p { margin: 0; color: var(--muted); }

.wic-gallery { margin-bottom: clamp(24px, 3.4vw, 36px); }

.wic-cta { text-align: center; margin: 0; }
.btn--campus { background: var(--forest); border-color: var(--forest); color: var(--paper); }
.btn--campus:hover { background: #16392f; color: var(--paper); }

/* ========== FAQ ========== */
.faq { margin: clamp(20px, 3vw, 32px) 0 0; }
.faq dt {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy);
  padding-top: clamp(18px, 2.4vw, 26px);
  border-top: 1px solid rgba(26, 26, 26, .14);
  margin-top: clamp(18px, 2.4vw, 26px);
}
.faq dt:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
.faq dd { margin: 8px 0 0; color: var(--muted); }
