@import url("https://fonts.googleapis.com/css2?family=Noto+Serif+KR:wght@400;500;600&display=swap");

@font-face {
  font-family: "Cafe24Gowoonbam";
  src:
    url("./experience/assets/fonts/Cafe24Oneprettynight.woff") format("woff"),
    url("https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_twelve@1.1/Cafe24Oneprettynight.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --page_background: #f1e6cf;
  --page_ink: #201b15;
  --page_accent: #b98633;
  --font_title: "Cafe24Gowoonbam", "Noto Serif KR", "Gowun Batang", serif;
  --font_body: "Cafe24Gowoonbam", "Noto Serif KR", "Gowun Batang", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  color: var(--page_ink);
  background: var(--page_background);
  font-family: var(--font_body);
}

img {
  display: block;
  max-width: 100%;
}

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

.has_common_header {
  padding-top: var(--header_height, 84px);
}

.main_header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: var(--header_height, 84px);
  padding: 0 var(--page_padding, clamp(24px, 4vw, 72px));
  color: var(--color_ink, #201d18);
  background: rgba(234, 217, 184, 0.9);
  border-bottom: 1px solid rgba(32, 29, 24, 0.14);
  backdrop-filter: blur(12px);
  font-family: "Cafe24Gowoonbam", serif;
}

.header_logo {
  position: relative;
  display: block;
  z-index: 2;
  flex: 0 0 auto;
  width: clamp(56px, 4.6vw, 72px);
  height: clamp(56px, 4.6vw, 72px);
  overflow: hidden;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  outline: none;
}

.header_logo:focus-visible {
  outline: 1px solid var(--page_accent);
  outline-offset: 3px;
}

.header_logo .header_logo_image {
  position: absolute;
  top: -61.1%;
  left: -61.1%;
  width: 222.2%;
  max-width: none;
  height: auto;
  border: 0;
  box-shadow: none;
}

.main_menu {
  display: flex;
  align-items: center;
  gap: clamp(22px, 2.2vw, 46px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.main_menu_link {
  position: relative;
  display: inline-block;
  padding: 8px 0;
  color: rgba(45, 36, 25, 0.8);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.main_menu_link_current::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 1px;
  background: rgba(45, 36, 25, 0.62);
}

.main_menu_link_current[data-login-trigger]::after {
  display: none;
}

.main_menu_link[data-login-trigger] {
  padding: 8px 13px;
  border: 1px solid rgba(45, 36, 25, 0.34);
  color: rgba(32, 29, 24, 0.96);
  background: rgba(243, 232, 210, 0.2);
  font-weight: 600;
}

.main_menu_link[data-login-trigger]:hover,
.main_menu_link[data-login-trigger]:focus-visible {
  border-color: rgba(45, 36, 25, 0.62);
  background: rgba(243, 232, 210, 0.42);
}

.mobile_menu_button {
  display: none;
}

.sub_main {
  width: min(1180px, calc(100% - 40px));
  min-height: calc(100vh - 76px);
  margin: 0 auto;
  padding: clamp(80px, 12vw, 160px) 0;
}

.sub_kicker {
  margin: 0 0 20px;
  color: var(--page_accent);
  font-size: 14px;
  letter-spacing: 0.16em;
}

.sub_title {
  margin: 0;
  font-size: clamp(44px, 7vw, 104px);
  font-weight: 400;
  line-height: 1.08;
}

.sub_description {
  max-width: 580px;
  margin: 30px 0 0;
  color: rgba(32, 27, 21, 0.7);
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.8;
}

.product_preview_grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 70px;
}

.product_preview_card {
  padding: 18px;
  border: 1px solid rgba(32, 27, 21, 0.12);
  background: rgba(255, 252, 245, 0.45);
}

.product_preview_card h2 {
  margin: 18px 0 4px;
  font-size: 22px;
  font-weight: 400;
}

@media (max-width: 1100px) {
  :root {
    --header_height: 74px;
  }

  .main_menu {
    gap: 20px;
  }

  .main_menu_link {
    font-size: 12px;
  }
}

@media (max-width: 768px) {
  :root {
    --header_height: 66px;
    --page_padding: 22px;
  }

  .main_header {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .mobile_menu_button {
    position: relative;
    z-index: 102;
    display: flex;
    flex-direction: column;
    width: 44px;
    height: 44px;
    padding: 10px 7px;
    justify-content: center;
    gap: 7px;
    border: 0;
    background: transparent;
  }

  .mobile_menu_button span {
    display: block;
    width: 100%;
    height: 1px;
    background: var(--color_ink, #201d18);
    transition: transform 250ms ease;
  }

  .mobile_menu_button.menu_button_open span:first-child {
    transform: translateY(4px) rotate(45deg);
  }
  .mobile_menu_button.menu_button_open span:last-child {
    transform: translateY(-4px) rotate(-45deg);
  }

  .main_nav {
    position: fixed;
    z-index: 101;
    top: 0;
    right: 0;
    width: min(320px, 82vw);
    height: 100svh;
    padding: calc(var(--header_height) + 46px) 34px 40px;
    border-left: 1px solid var(--color_border, rgba(32,29,24,.22));
    background: rgba(243, 232, 210, 0.97);
    transform: translateX(105%);
    transition: transform var(--motion_normal, 500ms) var(--motion_ease, cubic-bezier(.22,1,.36,1));
  }

  .main_nav.menu_open {
    transform: translateX(0);
  }

  .main_menu {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }

  .main_menu_link {
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
  }

  .product_preview_grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 360px) {
  .sub_main {
    width: calc(100% - 28px);
    padding: 64px 0;
  }

  .sub_title {
    font-size: 38px;
  }
}

@media (max-width: 420px) {
  :root {
    --header_height: 58px;
    --page_padding: 18px;
  }
}

@media (max-width: 390px) {
  :root {
    --page_padding: 14px;
  }
}
.mobile_menu_active {
  overflow: hidden;
}
