@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap");
@font-face {
  font-family: "SuisseIntlBold";
  src: url("/fonts/fonnts.com-Suisse_Intl_Bold.ttf") format("truetype");
  font-weight: bold;
  font-style: normal;
}
@font-face {
  font-family: "ZenSerif";
  src: url("../fonts/ZEN-SERIF-TTF-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "GeneralSansBold";
  src: url("/fonts/GeneralSans-Bold.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-body: "ZenSerif", serif;
  --font-display: "GeneralSansBold", "SuisseIntlBold", sans-serif;
}

/* 
    inter
    GlossyDisplay - english h 
    neue-haas-grotesk-text, sans-serif - english p
    Sohne
    "Bodoni Moda SC", serif;
*/
::selection {
  background-color: rgb(50, 51, 53);
  color: white;
}

* {
  font-family: var(--font-body);
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  padding: 0 4vw;
}

main .frame {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100vh;
}

/* 중앙 정렬 및 최대 폭 제한 */
main,
body {
  width: 100%;
}
.frame {
  max-width: 1100px;
  margin: 0 auto;
}
.frame .content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25em;
  text-align: center;
}
.frame .content .intro {
  width: min(720px, 90%);
  margin-top: 0.5em;
}

.frame .topbar {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding-top: 2em;
}
.frame .topbar .logo-container {
  width: 10em;
}
.frame .topbar .logo-container img {
  width: 100%;
}
.frame .topbar .pages-container {
  display: inline-flex;
  align-items: center;
  gap: 1.75rem;
}
.frame .topbar p {
  font-weight: 500;
}
.frame .topbar .sites {
  display: flex;
  gap: 10px;
}
.frame .topbar .pages-container a,
.frame .topbar .email {
  text-decoration: none;
  color: black;
  font-weight: 500;
  position: relative;
  display: inline-block;
}
.frame .topbar .pages-container a::after,
.frame .topbar .email::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 1px;
  background-color: currentColor; /* 텍스트 색상과 동일한 밑줄 */
  left: 0;
  bottom: -4px;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 1s ease;
}
.frame .topbar .pages-container a:hover::after,
.frame .topbar .email:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}
.frame .topbar .email {
  color: black;
  font-weight: 500;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
}
.frame .content {
  padding-top: 4em;
  margin-bottom: auto;
  height: 100%;
}
.frame .content h1 {
  font-family: var(--font-display);
  font-weight: 400; /* keep original display face without forcing faux bold */
  font-size: 5vw;
  line-height: 1em;
}
.frame .content h2,
.frame .content h3,
.frame .content h4,
.frame .topbar,
.frame .topbar .pages-container a {
  font-family: var(--font-display);
}
.frame .content .intro {
  width: 50%;
  margin-top: 1em;
  font-size: 1.25em;
}
.frame .content .email-continaer {
  padding-top: 4em;
}
.frame .content .email-continaer .email {
  padding: 1em 2em;
  border: 2px solid black;
  border-radius: 1em;
  color: black;
  text-decoration: none;
  transition: color 1s ease;
}
.frame .content .email-continaer .email:hover {
  color: white;
  background-color: rgb(30, 31, 33);
}

/* Conference menu */
.conference-wrapper {
  position: relative;
  display: inline-block;
}

.conference-icon {
  cursor: pointer;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
}
.conference-icon::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 1px;
  background-color: currentColor; /* 텍스트 색상과 동일한 밑줄 */
  left: 0;
  bottom: -4px;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 1s ease;
}
.conference-icon:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.conference-menu {
  display: none;
  position: absolute;
  top: 30px;
  right: 0;
  background-color: white;
  border: 1px solid #ddd;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  padding: 8px 12px;
  z-index: 100;
  white-space: nowrap;
  min-width: 100px;
}

.conference-menu a {
  display: block;
  text-decoration: none;
  color: black;
  padding: 4px;
  border-bottom: 1px solid currentColor;
}
.conference-menu a:hover {
  font-weight: 900;
}

/* 공통: 토글 버튼 기본 숨김 */
.topbar .menu-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem;
  color: inherit;
}

/* 공통: 네비 래퍼 */
.topbar .topbar-nav {
  display: contents; /* 데스크톱에서는 기존 레이아웃 유지 */
}

/* 모바일 */
@media only screen and (max-width: 600px) {
  body {
    padding: 0 3vw;
  }

  .frame .content h1 {
    font-size: 2.5em;
  }
  .frame .content .intro {
    width: 100%;
  }

  .frame .topbar {
    position: relative;
    gap: 0.75rem;
  }

  /* 햄버거 표시 */
  .topbar .menu-toggle {
    display: inline-flex;
    align-items: center;
  }

  /* 모바일에서는 패널로 묶어서 숨김 */
  .topbar .topbar-nav {
    display: none; /* 기본 숨김 */
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 0.75rem;
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    border-radius: 0.75rem;
    padding: 0.9rem 1rem;
    z-index: 200;
  }

  /* 열렸을 때 표시 */
  .topbar.open .topbar-nav {
    display: block;
  }

  /* 패널 내부 배치: 세로 스택 */
  .topbar .topbar-nav .pages-container,
  .topbar .topbar-nav .sites {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 0.9rem;
    align-items: center;
    line-height: 2;
  }

  /* 페이지 링크는 쉼표 제거 느낌으로 줄바꿈 친화 */
  .topbar .topbar-nav .pages-container a {
    display: inline-block;
  }
  .topbar .topbar-nav .pages-container a::before {
    content: "•";
    margin: 0 0.4rem;
    color: #999;
    font-weight: 400;
  }

  /* 상단바의 기존 링크/아이콘 숨김 규칙 정리 */
  .frame .topbar p {
    display: none;
  }

  /* 데스크톱 스타일의 밑줄/hover는 유지하되 모바일에서 과한 밑줄은 완화 */
  .conference-icon {
    border-bottom: none; /* 밑줄 제거 */
    padding-bottom: 0; /* 공간도 없애기 */
  }
  .conference-icon::after {
    display: none; /* hover 애니메이션 밑줄 제거 */
  }
  .frame .topbar .pages-container a::after,
  .frame .topbar .email::after {
    display: none;
  }
  .frame .topbar .email {
    border-bottom: 0;
    padding-bottom: 0;
  }

  /* 컨퍼런스 드롭다운: 패널 내부에서도 자연스럽게 */
  .conference-wrapper {
    position: relative;
  }
  .conference-menu {
    top: calc(100% + 0.4rem);
    right: auto;
    left: 0;
  }

  /* 타이포 크기 약간 줄임 */
  .frame .content h1 {
    font-size: 2.2em;
  }
  .frame .content .intro {
    width: 100%;
  }
}
