:root {
  --ink: #223047;
  --muted: #667085;
  --line: #e6edf3;
  --paper: #fffdf8;
  --sky: #dff3ff;
  --mint: #dff7e9;
  --sun: #ffd86b;
  --coral: #ff8f70;
  --blue: #4b7bec;
  --green: #2fbf71;
  --shadow: 0 18px 48px rgba(34, 48, 71, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 216, 107, 0.24), transparent 24rem),
    linear-gradient(180deg, #f3fbff 0%, var(--paper) 42%, #ffffff 100%);
  font-family:
    ui-rounded, "Apple SD Gothic Neo", "Noto Sans KR", system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 5vw, 72px);
  background: rgba(255, 253, 248, 0.86);
  border-bottom: 1px solid rgba(230, 237, 243, 0.9);
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--green));
  border-radius: 8px;
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
}

.top-nav a {
  padding: 8px 10px;
  border-radius: 8px;
}

.top-nav a:hover {
  background: #eef7ff;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(320px, 1.14fr);
  align-items: center;
  gap: clamp(22px, 4vw, 58px);
  min-height: calc(100vh - 76px);
  padding: clamp(32px, 6vw, 78px) clamp(18px, 5vw, 72px) 38px;
}

.hero-copy {
  max-width: 610px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 9.8em;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
}

.hero-copy > p:not(.eyebrow),
.section-heading p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 2px solid transparent;
  border-radius: 8px;
  font-weight: 900;
}

.button.primary {
  color: #ffffff;
  background: var(--blue);
  box-shadow: 0 12px 24px rgba(75, 123, 236, 0.24);
}

.button.secondary {
  background: #ffffff;
  border-color: var(--line);
}

.hero-art {
  min-height: min(62vh, 620px);
  border: 10px solid #ffffff;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.24), transparent 42%),
    url("/assets/images/yehahn-hero.png") center / cover;
  box-shadow: var(--shadow);
}

.quick-links,
.section,
.site-footer {
  width: min(1160px, calc(100% - 36px));
  margin-inline: auto;
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: -20px;
  margin-bottom: 72px;
}

.quick-links a {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 2px 12px;
  align-items: center;
  padding: 18px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(34, 48, 71, 0.07);
}

.quick-links span {
  grid-row: span 2;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  background: var(--sky);
  border-radius: 8px;
  font-weight: 900;
}

.quick-links small {
  color: var(--muted);
}

.section {
  padding: 76px 0;
}

.section-heading {
  max-width: 690px;
  margin-bottom: 24px;
}

.gallery-heading {
  display: flex;
  max-width: none;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.gallery-heading > div {
  max-width: 690px;
}

.post-grid,
.bible-board {
  display: grid;
  gap: 16px;
}

.post-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bible-board {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.38fr);
  align-items: start;
}

.post-card,
.media-card,
.video-panel,
.naver-list {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(34, 48, 71, 0.06);
}

.post-card {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  padding: 22px;
}

.bible-post-view,
.bible-post-list {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(34, 48, 71, 0.06);
}

.bible-post-view {
  overflow: hidden;
  min-height: 620px;
  padding: clamp(22px, 4vw, 42px);
}

.bible-post-image {
  display: block;
  width: 100%;
  max-height: 360px;
  margin: -10px 0 28px;
  border-radius: 8px;
  object-fit: cover;
}

.bible-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.bible-post-meta span,
.bible-post-meta time {
  padding: 5px 9px;
  background: #f5f9fc;
  border-radius: 8px;
}

.bible-post-view h3 {
  margin: 18px 0 10px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.18;
}

.bible-post-summary {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.bible-post-body {
  margin-top: 28px;
  color: #344054;
  font-size: 17px;
  line-height: 1.9;
}

.bible-post-body h4 {
  margin: 30px 0 10px;
  color: var(--ink);
  font-size: 22px;
}

.bible-post-body blockquote {
  margin: 24px 0;
  padding: 18px 20px;
  background: #f7fbff;
  border-left: 4px solid var(--blue);
  border-radius: 8px;
}

.bible-post-body ul {
  padding-left: 22px;
}

.bible-post-list {
  position: sticky;
  top: 92px;
  overflow: hidden;
}

.bible-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.bible-list-head a {
  color: var(--blue);
  font-weight: 900;
  white-space: nowrap;
}

.bible-list-item {
  display: grid;
  width: 100%;
  gap: 6px;
  padding: 16px 18px;
  color: var(--ink);
  background: #ffffff;
  border: 0;
  border-bottom: 1px solid var(--line);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.bible-list-item:hover,
.bible-list-item.is-active {
  background: #f3fbff;
}

.bible-list-item span,
.bible-list-item time {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.bible-list-item strong {
  line-height: 1.35;
}

.post-card time,
.media-card small,
.naver-item time {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.post-card h3,
.media-card h3,
.naver-item h3 {
  margin: 12px 0 8px;
  line-height: 1.35;
}

.post-card p,
.media-card p,
.naver-item p {
  color: var(--muted);
  line-height: 1.7;
}

.post-card a {
  margin-top: auto;
  color: var(--blue);
  font-weight: 900;
}

.split-section {
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  gap: clamp(24px, 5vw, 62px);
  align-items: center;
}

.video-panel {
  overflow: hidden;
  min-height: 330px;
}

.video-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  display: block;
}

.video-fallback {
  display: grid;
  min-height: 330px;
  place-items: center;
  padding: 28px;
  text-align: center;
  background: linear-gradient(135deg, #eef7ff, #fff8dc);
}

.youtube-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.youtube-summary span {
  color: var(--muted);
  font-size: 14px;
}

.youtube-summary a {
  color: var(--blue);
  font-weight: 900;
  white-space: nowrap;
}

.youtube-list {
  display: grid;
  max-height: 520px;
  overflow: auto;
}

.youtube-card {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.youtube-card:last-child {
  border-bottom: 0;
}

.youtube-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  background: var(--sky);
}

.youtube-card span {
  display: grid;
  align-content: center;
  gap: 5px;
}

.youtube-card time {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.youtube-card strong {
  line-height: 1.35;
}

.blog-band {
  width: 100%;
  max-width: none;
  padding-inline: max(18px, calc((100vw - 1160px) / 2));
  background: linear-gradient(135deg, rgba(223, 247, 233, 0.72), rgba(223, 243, 255, 0.72));
}

.naver-list {
  overflow: hidden;
}

.naver-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 22px;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.naver-summary a {
  color: var(--blue);
  font-weight: 900;
  white-space: nowrap;
}

.naver-post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.naver-item {
  min-height: 122px;
  padding: 18px 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.naver-item:nth-child(2n) {
  border-right: 0;
}

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

.media-card {
  overflow: hidden;
}

.media-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: linear-gradient(135deg, var(--sky), var(--mint));
  display: block;
}

.media-video {
  background: #111827;
}

.media-card-body {
  padding: 16px 18px 18px;
}

.media-card .video-frame {
  aspect-ratio: 4 / 3;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 36px 0 48px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.empty-state {
  padding: 28px;
  color: var(--muted);
  line-height: 1.7;
}

@media (max-width: 860px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .top-nav {
    justify-content: flex-start;
  }

  .hero,
  .split-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-art {
    min-height: 360px;
    order: -1;
  }

  .quick-links,
  .post-grid,
  .bible-board,
  .media-grid,
  .naver-post-grid {
    grid-template-columns: 1fr;
  }

  .bible-post-list {
    position: static;
  }

  .naver-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .youtube-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .naver-item {
    border-right: 0;
  }

  .site-footer {
    flex-direction: column;
  }

  .gallery-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: 38px;
  }

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

  .youtube-card {
    grid-template-columns: 96px 1fr;
    padding-inline: 14px;
  }
}
