* {
  box-sizing: border-box;
}

body {
  background: #FCE900;  
}

/* typography */

h1, body h1.page-lang--ch {
  font-family: 'Barlow Semi Condensed', 'Noto Sans KR', 'Noto Sans CJK KR', sans-serif;
  font-size: 60px;
  line-height: 70px;
  text-transform: uppercase;
  letter-spacing: .02em;
}

h2 {
  font-size: 26px;
  line-height: 36px;
  margin: 36px 0 18px;
}

h3, .recommendation p {
  font-size: 18px;
  line-height: 24px;
  margin: 0px 0 8px;
}

p, main li, .footer-nav {
  font-size: 24px;
  line-height: 34px;
  margin: 0px 0 8px;
}

figcaption {
  font-size: 13px;  
  line-height: 18px;
}

/* background element */

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;

  background-image: var(--bg-image);
  background-size: auto 160%;
  background-position: center;
  background-repeat: no-repeat;

  opacity: 1;   /* <— adjust opacity here */
  z-index: -1;
  transition: all 400ms ease;
}

body.bg-color::before {
  opacity: 1;
}


/* header */

#sub-nav {
  position: fixed;
  left: 24px;
  top: 170px;
  width: 230px;
  border-top: 1px solid #666;
  border-bottom: 1px solid #666;
  padding: 20px 0px;
  background-color: transparent;
  z-index: 10000;
}

.sub-nav__title {
  padding: 0px 10px 4px;
  font-weight: bold;
}

#sub-nav ul {
  list-style-type: none;
  padding: 0px 0px 0px 10px;
  margin: 8px 0px 8px;
}

#sub-nav ul li{
  margin-bottom: 8px;
}

#sub-nav a {
  text-decoration: none;
  color: rgba(0,0,0,.4);
  font-size: calc(var(--text-md));
}

#sub-nav ul li.is-active:before {
  content: ">";
  margin-left: -13.5px;
}

#sub-nav ul li.is-active a, #sub-nav a:hover {
  color: rgba(0,0,0,1);
}

/* spacing */

body {
  color: #000;
  min-height: 100vh;
  overflow-x: hidden;
  padding: 120px 40px 0px;
}

main {
  width: 100%;
  max-width: 1120px;
  padding-left: 280px;
  min-height: calc(100vh - 330px);
}

main img {
  max-width: 100%;
  width: auto;
  height: auto;
}

ul {
  padding: 0px 0px 15px 20px;
  margin: 0px;
}

p {
  margin-bottom: 32px;
}

figure {
  margin: 0px;
}

figcaption {
  margin: 10px 0px 30px;
  color: rgba(160,160,160,1);
  font-weight: 600;
}

/* next and prev page nav */

main .page-nav {
  margin-top: 100px;
}

main.page .page-nav a {
  /*width: 120px;
  text-align: center;*/
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 100vw;
  padding: 20px 0px 30px;
  font-size: 16px;
  line-height: 24px;
  gap: 16px;
  margin-top: 100px;
  border-top: 1px solid #777;
}

.site-footer a {
  color: black;
  text-decoration: none;
}

.site-footer__right {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.site-footer__instagram {
  display: none;
}

.site-footer__instagram svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* About DBEW Award */

.page-committees section li:first-of-type {
  font-weight: bold;
  margin-bottom: 40px;
}

.page-committees li {
  margin-bottom: 0px;
}

/*
.page-committees section li {
  list-style-type: none;
}

.page-committees section li:before {
  content: '';
  margin-left: -30px;
  margin-right: 10px;
}*/

.page-dbew-vision p {
  font-size: 40px;
  line-height: 52px;
  margin-bottom: 26px;
  font-weight: 300;
  letter-spacing: -.01em;
}

.page-what-makes-dbew-unique p {
  display: block;
  padding: 20px 30px;
  border: 2px solid black;
  background: white;
  border-radius: 100px;
  max-width: none;
  width: 100%;
  margin-top: 20px;
  margin-left: 0px;
  max-width: 800px;
}

.page-eligibility p {
  max-width: none;
}

.page-key-dates h2 {
  margin-top: 0;
}

/* judges */

main.page-judges {
  max-width: 1400px;  
  width: 100%;
}

.judges-grid {
  /*mix-blend-mode: multiply;*/
  display: grid;
  grid-gap: 14px;
  grid-template-columns: 1fr 1fr 1fr 1fr;
}

.judges-grid figure {
  width: 100%;
}

.judges-grid figure {
  margin: 0px;
  aspect-ratio: 2 / 2;
  width: 100%;
  overflow: hidden;
}

.judges-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0px;
}

.judges-grid h2, .judges-grid p {
  font-size: 16px;
  line-height: 22px;
  margin-bottom: 0px;
}

.judges-grid h2 {
  margin-top: 10px;
}

.judges-grid p {
  margin-bottom: 22px;
}


.judges-grid a {
  text-decoration: none;
  color: black;
}


/* judge detail */


figure.judge-photo {
  width: 600px;
}

main.page-judge {
  /*mix-blend-mode: multiply;*/
  width: 100%;
  padding-right: 0px;
}

.judge-header h1 {
  margin-bottom: 0px;
}

.recommendation p {
  font-weight: 500;
}


figure.judge-photo,
figure.news-cover {
  margin: 20px 0 20px;
  width: 100%;
}

figure.judge-photo img,
figure.news-cover img {
  width: 100%;
  height: auto;
}

main.page--judge section {
}

/* news */

.news-list article{
  border-top: 1px solid black;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 8px;
  padding: 20px 0px;
}

.news-list article h2 {
  margin: 0px;
}

.news-list article span.news-date{
  font-family: monospace;
}

.news-list article a {
  color: black;
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
  text-decoration-color: #888;
}

.news-list article a:hover {
  text-decoration: none;
}

/* news detail */

figure.news-cover {
  width: 800px;
}

p.news-date{
  font-size: 18px;
  font-family: monospace;
}


.news-article-body {
  max-width: 800px;
}

.news-article-body figure {
  max-width: 800px;
}

.news-article-body {
  max-width: none;
  width: 100%;
}

.news-article-body figure {
  max-width: 100%;
  margin: 0px;
  border: none;
}

.news-article-body figure iframe {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: none;
}

.news-article-body p {

}

/* sub page nav */

.footer-nav {
  display: none;
}


@media (max-width: 900px) {

  body {
    padding: 120px 20px 0px;
  }  
  
  h1, body h1.page-lang--ch {
    font-size: 40px;
    line-height: 50px;
  }

  p, main li, .footer-nav {
    margin: 0px 0px 6px;
  }

  h2, p, ul, li, .page-evaluation li, p, .page-evaluation main li, .page-committees main li, p, main li, .footer-nav {
    font-size: 16px;
    line-height: 24px;
  }

  .page-lang--ch h2, .page-lang--ch p, .page-lang--ch ul, .page-lang--ch li, .page-evaluation .page-lang--ch li, .page-lang--ch p, .page-evaluation main .page-lang--ch li, .page-committees main .page-lang--ch li, .page-lang--ch p, main .page-lang--ch li, .footer-nav {
    font-size: 15px;
    line-height: 24px;
  }

  h3, .recommendation p {
    font-size: 14px;
    line-height: 20px;
    margin: 0px 0px 10px;
  }

  .page-dbew-vision p {
    font-size: 28px;
    line-height: 36px;
    margin-bottom: 18px;
    letter-spacing: -.01em;
  }

  .footer-nav {
    font-size: 13px;
    line-height: 18px;
  }

  figure, img {
    margin: 0px;
    max-width: 100%;
    width: 100%;
  }

  main {
    padding: 0px;
  }

  main ul {
    padding-left: 20px;
  }

  .site-footer {
    max-width: 100%;
    padding: 10px 0px;
    font-size: 14px;
    line-height: 20px;
  }

  .site-footer__handle {
    display: none;
  }

  .site-footer__instagram {
    display: inline-flex;
  }

  /* judges */
  .judges-grid {
    grid-gap: 20px;
    grid-template-columns: 1fr 1fr;
  }

  .judges-grid h2, .judges-grid p {
    font-size: 14px;
    line-height: 18px;
    margin-bottom: 0px;
  }

  /* sub page nav */

  .footer-nav {
    display: block;
  }

  .footer-nav a {
    display: block;
    padding: 0px;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    text-decoration-color: #888;
    margin-bottom: 12px;
    line-height: 20px;
  }


}

