:root {
  color-scheme: light;
  --paper: #f9f5ed;
  --wash: #eee6d9;
  --ink: #231d1a;
  --muted: #5d514a;
  --wine: #702d3a;
  --line: #cfc1b4;
  --sans: "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", sans-serif;
  --serif: "Nanum Myeongjo", "AppleMyungjo", "Batang", "바탕", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 1rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
h1, h2, h3, p, ul, dl, dd { margin: 0; }
h1, h2, h3 { line-height: 1.25; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--wine); outline-offset: 4px; }
img { display: block; max-width: 100%; }
.skip-link {
  position: fixed;
  z-index: 2;
  top: .5rem;
  left: .5rem;
  padding: .65rem 1rem;
  transform: translateY(-150%);
  background: var(--paper);
  color: var(--ink);
}
.skip-link:focus { transform: none; }
.page-width { width: min(78rem, calc(100% - 8vw)); margin-inline: auto; }

.masthead { border-top: 5px solid var(--wine); }
.utilities {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .5rem 1rem;
  border-bottom: 1px solid var(--line);
  padding-block: .4rem;
  min-height: 2.85rem;
  font-size: .9rem;
  color: var(--muted);
}
.utilities-links, footer nav { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.utilities a, .nav a, .wordmark, .feature a, .sermon-list a, .footer-brand { text-decoration: none; }
.utilities a:hover, footer nav a:hover { text-decoration: underline; }
.brand { padding-block: clamp(1.15rem, 2.2vw, 2rem); text-align: center; }
.wordmark {
  display: inline-block;
  font-family: var(--serif);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 800;
  letter-spacing: -.085em;
  line-height: 1;
}
.brand h1 {
  margin-top: .65rem;
  color: var(--wine);
  font: 700 clamp(1.1rem, 2vw, 1.5rem)/1.4 var(--serif);
  letter-spacing: -.035em;
}
.brand p { color: var(--muted); font: italic 1rem/1.5 var(--serif); }
.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 clamp(.5rem, 3vw, 2.7rem);
  border-top: 1px solid var(--ink);
  border-bottom: 3px double var(--ink);
  padding: 0;
  list-style: none;
  font-weight: 700;
}
.nav a { display: block; padding: .7rem .4rem; }
.nav a:hover { color: var(--wine); text-decoration: underline; text-underline-offset: .22em; }

.section { padding-block: clamp(2rem, 4.4vw, 4.2rem); }
#sermons { padding-top: clamp(1.4rem, 2.5vw, 2.5rem); }
#worship { padding-top: 0; }
.section-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: .5rem 1.5rem;
  margin-bottom: 1.2rem;
  padding-bottom: .65rem;
  border-bottom: 1px solid var(--ink);
}
.section-heading h2 {
  font: 800 clamp(1.75rem, 3.3vw, 2.7rem)/1.2 var(--serif);
  letter-spacing: -.06em;
}
.text-link { color: var(--wine); font-weight: 700; text-underline-offset: .22rem; }
.text-link:hover { text-decoration-thickness: 2px; }

.sermon-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
  gap: clamp(1.25rem, 3.2vw, 3.25rem);
}
.feature { min-width: 0; }
.feature a {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: end;
  min-height: 100%;
  overflow: hidden;
  background: #332621;
  color: #fff9ef;
}
.feature img, .feature a::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
}
.feature img { object-fit: cover; object-position: center 39%; }
.feature a::after {
  content: "";
  background: linear-gradient(0deg, #1b1511 4%, rgba(27, 21, 17, .93) 24%, rgba(27, 21, 17, .5) 58%, transparent 100%);
}
.feature-text { padding: clamp(1.25rem, 3.2vw, 3.25rem); }
.sermon-date { color: var(--wine); font-size: .92rem; font-weight: 700; }
.feature .sermon-date { color: #f9d6c3; }
.feature h3 {
  margin: .35rem 0 .3rem;
  font: 800 clamp(1.55rem, 3vw, 2.85rem)/1.2 var(--serif);
  letter-spacing: -.06em;
}
.feature .passage { color: #f9e8db; }
.feature-action {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: .9rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: .2em;
}
.feature a:hover .feature-action { text-decoration-thickness: 2px; }
.feature a:focus-visible { outline: 3px solid white; outline-offset: -7px; }
.play-symbol {
  display: inline-block;
  flex: none;
  width: .85rem;
  height: .85rem;
  clip-path: polygon(18% 0, 100% 50%, 18% 100%);
  background: currentColor;
}
.sermon-list { padding: 0 0 0 1.25rem; border-left: 1px solid var(--line); list-style: none; }
.sermon-list li + li { border-top: 1px solid var(--line); }
.sermon-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding-block: .75rem;
}
.sermon-list li:first-child a { padding-top: .25rem; }
.sermon-list h3 {
  margin-block: .12rem .25rem;
  font: 800 clamp(1.12rem, 1.8vw, 1.5rem)/1.25 var(--serif);
  letter-spacing: -.045em;
}
.passage { color: var(--muted); }
.sermon-list .play-symbol { color: var(--wine); }
.sermon-list a:hover h3 { color: var(--wine); text-decoration: underline; text-underline-offset: .15em; }

.schedule { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.7rem, 3.2vw, 3.25rem); }
.schedule h3 {
  border-bottom: 2px solid var(--wine);
  color: var(--wine);
  padding-bottom: .65rem;
  font-size: 1.16rem;
}
.schedule-row {
  display: grid;
  grid-template-columns: minmax(8.5rem, .8fr) minmax(0, 1fr);
  gap: .5rem 1rem;
  align-items: center;
  padding: .65rem 0;
  border-bottom: 1px solid var(--line);
}
.schedule-row dt { display: flex; align-items: center; gap: .75rem; font-weight: 800; }
.schedule-row img {
  flex: none;
  width: 3rem;
  height: 3rem;
  object-fit: cover;
  border-radius: 50%;
}
.schedule-row dd span { display: block; color: var(--muted); font-size: .94rem; }

.vision { background: var(--wash); }
.vision-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(1.5rem, 5vw, 5rem);
}
.vision-layout img { width: 100%; height: auto; }
.vision-content h3 {
  font: 800 clamp(1.6rem, 3.4vw, 2.9rem)/1.25 var(--serif);
  letter-spacing: -.065em;
}
.vision-content p { margin-top: .9rem; }
.values {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .55rem;
  margin-top: 1rem;
  padding: 0;
  list-style: none;
}
.values li {
  border: 1px solid var(--wine);
  padding: .12rem .6rem;
  color: var(--wine);
  font-weight: 750;
}

.directions-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(1.25rem, 4vw, 3.75rem);
}
.location {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem 1.1rem;
  margin-bottom: .65rem;
  font-style: normal;
}
.location a { color: var(--wine); }
iframe { display: block; width: 100%; height: 20rem; border: 1px solid var(--line); background: var(--wash); }
.routes > div { padding-bottom: .9rem; }
.routes > div + div { padding-top: .9rem; border-top: 1px solid var(--line); }
.routes h3 { margin-bottom: .4rem; font-size: 1.12rem; }
.routes p + p { margin-top: .45rem; }

footer { background: #34231f; color: var(--paper); padding-block: 2rem; }
.footer-layout { display: flex; flex-wrap: wrap; align-items: start; justify-content: space-between; gap: 1.25rem 2.5rem; }
.footer-brand { font: 800 1.75rem/1.3 var(--serif); }
footer p { margin-top: .25rem; color: #f0dfd5; }
footer nav a { text-underline-offset: .22em; }
footer :focus-visible { outline-color: var(--paper); }

@media (max-width: 52rem) {
  .feature a { min-height: 22rem; }
  .sermon-layout { grid-template-columns: 1.4fr 1fr; }
  .schedule-row { grid-template-columns: minmax(7.25rem, .85fr) minmax(0, 1fr); gap: .5rem; }
  .schedule-row dt { gap: .5rem; }
  .schedule-row img { width: 2.35rem; height: 2.35rem; }
  .feature-break, .vision-break { display: none; }
}

@media (max-width: 40rem) {
  .page-width { width: calc(100% - 2rem); }
  .nav { gap: 0 .3rem; font-size: .94rem; }
  .nav a { padding-inline: .3rem; }
  .sermon-layout, .schedule, .vision-layout, .directions-layout { grid-template-columns: 1fr; }
  .feature a { min-height: 21rem; }
  .sermon-list { padding-left: 0; border-left: 0; }
  .schedule-row { grid-template-columns: minmax(7.25rem, .8fr) minmax(0, 1fr); }
  .directions-layout iframe { height: 16rem; }
}
