@font-face {
  font-family: 'Do Hyeon';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/DoHyeon-Regular.ttf') format('truetype');
}

:root {
  --paper: #f6f5ef;
  --ink: #293c32;
  --muted: #646b62;
  --ochre: #816439;
  --line: #b9beb4;
  --sage: #ebeee5;
  --serif: 'Noto Serif KR', 'AppleMyungjo', 'Batang', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --gutter: clamp(1.25rem, 5.55vw, 5rem);
  --section-space: clamp(3.5rem, 7vw, 6rem);
  --heading-size: clamp(2rem, 3.8vw, 3.25rem);
  --title-size: clamp(1.5rem, 2.4vw, 2.125rem);
  --label-size: .9375rem;
  --small-size: .875rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1.5rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.75;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; text-underline-offset: .35em; }
a:focus-visible { outline: 2px solid var(--ochre); outline-offset: 5px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3, .brand, .belief { font-family: var(--serif); font-weight: 500; }
h2 { font-size: var(--heading-size); letter-spacing: -.045em; line-height: 1.35; }
h3 { font-size: var(--title-size); letter-spacing: -.035em; line-height: 1.5; }
p { text-wrap: pretty; }
.wrap { width: min(calc(100% - var(--gutter) * 2), 1360px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: .625rem; left: 1rem; padding: .625rem 1rem; background: var(--ink); color: var(--paper); z-index: 10; transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }

/* Serif carries the editorial voice; navigation, labels and sources use sans. */
.site-header { min-height: 6.25rem; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); gap: 1.5rem; }
.brand { font-size: 1.9375rem; letter-spacing: -.045em; line-height: 1.4; padding-block: .875rem; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 1rem 3rem; font-size: 1rem; line-height: 1.5; }
.site-header nav a, .site-footer nav a { display: inline-flex; align-items: center; min-height: 2.75rem; padding-block: .625rem; }
.site-header nav a:hover, .site-footer nav a:hover { color: var(--ochre); text-decoration: underline; }
.hero { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 2.5rem; padding-top: 1.5rem; padding-bottom: 1.75rem; align-items: center; }
.hero-copy { padding-block: 2rem; }
.hero h1 { font-family: 'Do Hyeon', var(--sans); font-weight: 400; font-synthesis: none; font-size: clamp(3.875rem, 7.8vw, 6.5rem); line-height: 1.12; letter-spacing: -.012em; }
.hero-intro { color: var(--muted); font-size: clamp(1.0625rem, 1.4vw, 1.25rem); line-height: 1.85; margin-top: 2rem; letter-spacing: -.015em; }
.hero-media { height: clamp(520px, 49vw, 694px); overflow: hidden; border-radius: 0 84px 0 0; }
.hero-media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 68% 50%; }
.text-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid currentColor; padding-block: .5rem; min-height: 2.75rem; line-height: 1.6; font-size: 1rem; }
.text-link:hover { color: var(--ochre); }
.hero-link { margin-top: 2.25rem; color: var(--ochre); font-size: 1.0625rem; }
.arrow { width: 1.375rem; height: 1.375rem; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; transition: transform .18s ease; }
.text-link:hover .arrow { transform: translate(2px, -2px); }
.hero-link .arrow { width: 1.6875rem; }
.philosophy { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--line); padding-block: 1.375rem; font-family: var(--serif); font-weight: 500; text-align: center; font-size: 1.0625rem; line-height: 1.6; }
.philosophy span { padding-inline: .5rem; }
.philosophy span + span { border-left: 1px solid var(--line); }

.section { padding-block: var(--section-space); }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: 2.5rem; }
.section-heading p { font-family: var(--serif); font-weight: 500; color: var(--muted); font-size: clamp(1.0625rem, 1.5vw, 1.25rem); line-height: 1.7; margin-top: .75rem; letter-spacing: -.02em; }
.section-heading > .text-link { flex-shrink: 0; }
.writing-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 3rem; border-top: 1px solid var(--line); }
.writing-row { border-bottom: 1px solid var(--line); }
.writing-link { display: flex; flex-direction: column; gap: .75rem; align-items: flex-start; height: 100%; padding-block: 1.875rem; transition: background-color .18s ease; }
.writing-link:hover { background: #edeee6; }
.topic { font-size: var(--label-size); color: var(--ochre); line-height: 1.65; letter-spacing: .01em; }
.writing-link > .topic { padding-top: 0; }
.writing-copy { min-width: 0; max-width: 720px; }
.writing-copy h3 { max-width: 38rem; text-wrap: balance; }
.writing-copy .source { margin-top: .75rem; }
.description { font-family: var(--serif); font-weight: 500; color: var(--muted); font-size: 1.25rem; line-height: 1.75; letter-spacing: -.02em; margin-top: 1rem; }
.source { font-size: var(--small-size); line-height: 1.7; color: var(--muted); margin-top: 1rem; }
.source span { padding-inline: .3125rem; }
.row-action { align-self: flex-start; margin-top: auto; white-space: nowrap; font-size: var(--label-size); }

.sermons { background: var(--sage); padding-block: clamp(3.5rem, 6vw, 5rem); }
.ruled { align-items: center; gap: 1.5rem; margin-bottom: 2.5rem; }
.heading-rule { height: 1px; background: var(--line); flex: 1; margin-inline: .625rem; }
.sermon-row { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 3rem; align-items: center; }
.sermon-row + .sermon-row { margin-top: 3.5rem; padding-top: 3.5rem; border-top: 1px solid var(--line); }
.video-cover { background: var(--ink); color: var(--paper); aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; padding: 8%; position: relative; }
.cover-copy { min-width: 0; }
.cover-title { display: block; font-family: var(--serif); font-weight: 500; font-size: clamp(1.625rem, 3.2vw, 2.875rem); line-height: 1.45; letter-spacing: -.035em; text-wrap: balance; }
.cover-rule { display: block; width: 2.25rem; height: 1px; background: currentColor; margin-block: 1.375rem 1rem; }
.cover-scripture { font-family: var(--serif); font-weight: 500; font-size: clamp(1rem, 1.5vw, 1.3125rem); line-height: 1.65; }
.play { width: 5.5rem; aspect-ratio: 1; border: 1px solid #f6f5ef; display: grid; place-items: center; border-radius: 50%; flex-shrink: 0; transition: background .18s; }
.play svg { width: 1.875rem; height: 1.875rem; fill: currentColor; transform: translateX(-2px); }
.video-cover:hover .play { background: #ffffff14; }
.sermon-copy { min-width: 0; }
.sermon-copy h3 { font-size: clamp(1.875rem, 3vw, 2.625rem); margin-top: .5rem; line-height: 1.45; }
.sermon-copy .topic { color: var(--muted); }
.scripture { font-family: var(--serif); font-size: 1.3125rem; font-weight: 500; margin-top: 1rem; line-height: 1.65; }
.metadata { display: flex; gap: .75rem; flex-wrap: wrap; color: var(--muted); font-size: var(--label-size); margin-top: 1.25rem; line-height: 1.65; }
.sermon-copy .source { margin-top: .5rem; }
.about { text-align: center; padding-block: clamp(3.5rem, 6vw, 5rem); }
.belief { font-size: clamp(1.75rem, 2.6vw, 2.375rem); letter-spacing: -.03em; line-height: 1.7; }
.belief-keyword { color: var(--ochre); }
.site-footer { border-top: 1px solid var(--line); padding-block: 1.25rem 1.75rem; display: flex; align-items: center; justify-content: flex-end; font-size: .8125rem; color: var(--muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; }
.empty-state { padding-block: 2rem; color: var(--muted); }

@media (min-width: 1600px) {
  .hero { gap: 3.75rem; }
}
@media (max-width: 1020px) {
  .site-header nav { gap: .75rem 1.75rem; }
  .hero { gap: 1.75rem; }
  .hero-media { height: 540px; border-top-right-radius: 62px; }
  .hero-intro { font-size: 1.0625rem; }
  .hero-link { margin-top: 1.75rem; }
  .writing-list { column-gap: 2rem; }
  .sermon-row { gap: 1.75rem; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
  .video-cover { gap: .75rem; }
  .cover-title { font-size: 1.875rem; }
  .play { width: 4rem; }
  .scripture { font-size: 1.1875rem; }
  .sermon-copy h3 { font-size: 2rem; }
}
@media (max-width: 680px) {
  :root { --gutter: 1.25rem; --label-size: .875rem; --small-size: .8125rem; }
  body { font-size: 1rem; }
  .site-header { min-height: 0; display: block; padding-block: .875rem .375rem; }
  .brand { display: inline-block; padding-block: 0; font-size: 1.5625rem; }
  .site-header nav { justify-content: space-between; gap: .25rem 1rem; font-size: .9375rem; margin-top: .375rem; }
  .hero { display: flex; flex-direction: column; gap: 1.75rem; padding-top: 2rem; padding-bottom: 1.5rem; align-items: stretch; }
  .hero-copy { padding: 0; }
  .hero h1 { font-size: 3.875rem; }
  .hero-intro { font-size: 1rem; margin-top: 1.5rem; }
  .hero-link { font-size: 1rem; margin-top: 1.5rem; gap: 1.5rem; }
  .hero-media { height: auto; aspect-ratio: 1.16; border-top-right-radius: 58px; }
  .hero-media img { object-position: 64% 50%; }
  .philosophy { font-size: clamp(.75rem, 3.2vw, .875rem); padding-block: 1.125rem; grid-template-columns: 1fr 1fr 1.3fr; letter-spacing: -.025em; }
  .philosophy span { padding-inline: .25rem; }
  .section-heading { display: block; margin-bottom: 1.75rem; }
  .section-heading p { font-size: 1.0625rem; margin-top: .625rem; }
  .section-heading > .text-link { margin-top: 1rem; font-size: .875rem; }
  .writing-list { grid-template-columns: minmax(0, 1fr); }
  .writing-link { padding-block: 1.5rem; }
  .writing-link > .topic { padding: 0; letter-spacing: 0; }
  .writing-copy h3 { font-size: 1.5rem; line-height: 1.55; letter-spacing: -.035em; }
  .description { font-size: 1.0625rem; line-height: 1.8; margin-top: .875rem; }
  .source span { padding-inline: .125rem; }
  .writing-copy .source { margin-top: .625rem; }
  .row-action { margin-top: 0; align-self: flex-start; }
  .arrow { width: 1.1875rem; height: 1.1875rem; }
  .ruled { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem 1rem; }
  .ruled h2 { flex: 1; }
  .ruled > .text-link { margin: 0; font-size: .8125rem; gap: .5rem; }
  .heading-rule { display: none; }
  .sermon-row { display: flex; flex-direction: column; align-items: stretch; gap: 1.5rem; }
  .video-cover { padding: clamp(1.25rem, 7vw, 1.75rem); aspect-ratio: 16 / 10; }
  .cover-title { font-size: clamp(1.5rem, 7vw, 1.9375rem); }
  .cover-rule { margin-block: 1rem .875rem; width: 1.75rem; }
  .cover-scripture { font-size: 1rem; }
  .play { width: 3.375rem; }
  .play svg { width: 1.5625rem; height: 1.5625rem; }
  .sermon-copy h3 { font-size: 1.875rem; }
  .scripture { font-size: 1.25rem; margin-top: .75rem; }
  .metadata { margin-top: 1rem; }
  .site-footer { display: block; padding-block: 1.5rem; }
  .site-footer nav { justify-content: center; gap: .5rem 1.25rem; font-size: .875rem; }
  .site-footer nav a { justify-content: center; min-width: 2.75rem; padding-inline: .25rem; white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
@media (forced-colors: active) {
  .video-cover { border: 1px solid CanvasText; }
  .play { border-color: CanvasText; }
}
