:root {
  --paper: #fbfaf7;
  --ink: #11100f;
  --muted: #69635b;
  --light: #a49b91;
  --hairline: #d9d1c6;
  --panel: #fffefa;
  --soft: #fbf8f4;
  --accent: #bd5537;
  --accent-deep: #9f3d22;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Helvetica Neue", Arial, "Pretendard", "Noto Sans KR", sans-serif;
  letter-spacing: 0;
}

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

button,
input {
  font: inherit;
}

button {
  border: 0;
  background: transparent;
  color: inherit;
}

.site-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  padding: 0 32px;
}

.wordmark {
  font-family: "Bodoni 72", Didot, "Bodoni MT", "Times New Roman", serif;
  font-size: 37px;
  line-height: 1;
  letter-spacing: -0.02em;
}

.header-actions,
.guest-actions,
.member-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 12px;
}

.guest-actions[hidden],
.member-actions[hidden] {
  display: none;
}

.intro-qna-link,
.inquiry-trigger,
.purchase-link,
.login-link,
.member-nickname {
  color: #1a1918;
}

.intro-qna-link.is-active,
.intro-qna-link:hover,
.inquiry-trigger:hover,
.purchase-link:hover,
.login-link:hover,
.member-nickname:hover {
  color: var(--accent);
}

.inquiry-menu {
  position: relative;
}

.inquiry-trigger {
  height: 30px;
  padding: 0;
  cursor: default;
  font-size: 12px;
}

.inquiry-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  z-index: 20;
  display: grid;
  min-width: 86px;
  padding: 10px 0 8px;
  border: 1px solid var(--hairline);
  border-top: 8px solid transparent;
  background: rgba(255, 254, 250, 0.98);
  background-clip: padding-box;
  box-shadow: 0 12px 28px rgba(17, 16, 14, 0.08);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -4px);
  transition:
    opacity 140ms ease,
    transform 140ms ease;
}

.inquiry-menu:hover .inquiry-dropdown,
.inquiry-menu:focus-within .inquiry-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.inquiry-dropdown a {
  padding: 8px 14px;
  color: var(--muted);
  white-space: nowrap;
}

.inquiry-dropdown a:hover {
  color: var(--accent);
}

.header-divider {
  width: 1px;
  height: 16px;
  background: #cfc7bc;
}

.join-button {
  display: grid;
  place-items: center;
  width: 46px;
  height: 28px;
  background: var(--ink);
  color: #fffefa;
}

.logout-button {
  display: inline-grid;
  place-items: center;
  min-width: 64px;
  height: 28px;
  padding: 0 12px;
  border: 1px solid #0c0c0b;
  border-radius: 0;
  background: #0c0c0b;
  color: #fff;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.logout-button:hover {
  background: #0c0c0b;
  color: #fff;
}

.info-page {
  display: grid;
  grid-template-columns: 235px minmax(0, 1fr);
  gap: 68px;
  width: min(1420px, calc(100vw - 86px));
  margin: 86px auto 120px;
  border-top: 1px solid var(--hairline);
}

.info-nav {
  position: sticky;
  top: 56px;
  align-self: start;
  padding-top: 70px;
}

.info-nav p {
  margin: 0 0 28px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.info-tab {
  display: block;
  width: 128px;
  padding: 0 0 16px;
  border-bottom: 1px solid #e5ded5;
  color: var(--muted);
  cursor: pointer;
  font-size: 18px;
  text-align: left;
}

.info-tab + .info-tab {
  margin-top: 25px;
}

.info-tab.is-active {
  border-bottom: 2px solid var(--accent);
  color: var(--ink);
  font-weight: 700;
}

.info-content {
  min-width: 0;
  padding-top: 70px;
}

.info-panel[hidden] {
  display: none;
}

.intro-manual {
  max-width: 900px;
}

.intro-manual h1,
.qna-head h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", "Noto Serif KR", serif;
  font-size: clamp(58px, 6vw, 76px);
  line-height: 0.95;
  font-weight: 400;
}

.intro-manual h1 strong {
  color: inherit;
  font-weight: inherit;
}

.intro-manual h1 {
  font-size: clamp(43px, 5vw, 57px);
  line-height: 1.08;
}

.intro-manual p,
.qna-head p {
  max-width: 820px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.92;
}

.intro-manual p {
  color: var(--ink);
}

.intro-manual strong {
  color: inherit;
  font-weight: inherit;
  text-decoration: none;
}

.intro-question {
  padding-top: 26px;
  border-top: 1px solid var(--hairline);
  color: var(--ink) !important;
  font-size: 18px !important;
}

.intro-closing {
  margin-top: 44px !important;
  color: var(--ink) !important;
  font-size: 18px !important;
}

.qna-layout {
  display: block;
  margin-top: 52px;
}

.qna-list {
  display: grid;
  gap: 14px;
}

.qna-item {
  border: 1px solid var(--hairline);
  background: var(--panel);
}

.qna-item[hidden] {
  display: none;
}

.qna-item > button {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 24px;
  gap: 0;
  align-items: center;
  width: 100%;
  min-height: 94px;
  padding: 0 26px;
  cursor: pointer;
  text-align: left;
}

.qna-item > button span {
  color: var(--accent);
  font-size: 16px;
  font-weight: 700;
}

.qna-item > button em {
  position: relative;
  width: 18px;
  height: 18px;
  justify-self: end;
  font-style: normal;
}

.qna-item > button em::before,
.qna-item > button em::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 13px;
  height: 1px;
  background: var(--muted);
  content: "";
  transform: translate(-50%, -50%);
}

.qna-item > button em::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.qna-item.is-open > button em::after {
  display: none;
}

.qna-answer {
  display: none;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 0;
  margin: 0 26px 26px;
  padding-top: 22px;
  border-top: 1px solid #eee6dd;
}

.qna-item.is-open .qna-answer {
  display: grid;
}

.qna-answer span {
  color: var(--accent-deep);
  font-size: 16px;
  font-weight: 700;
}

.qna-answer p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

@media (max-width: 1120px) {
  .info-page {
    grid-template-columns: 1fr;
  }

  .info-page {
    width: min(920px, calc(100vw - 40px));
    gap: 28px;
    margin-top: 44px;
  }

  .info-nav {
    position: static;
    display: flex;
    gap: 16px;
    padding-top: 28px;
  }

  .info-nav p {
    display: none;
  }

  .info-tab + .info-tab {
    margin-top: 0;
  }

  .info-content {
    padding-top: 20px;
  }

}

@media (max-width: 720px) {
  .site-header {
    height: auto;
    min-height: 70px;
    padding: 18px 20px;
    align-items: flex-start;
    gap: 16px;
  }

  .wordmark {
    font-size: 31px;
  }

  .header-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
  }

  .info-page {
    width: min(100% - 32px, 920px);
    gap: 18px;
    margin: 28px auto 72px;
  }

  .info-nav {
    gap: 12px;
    padding-top: 24px;
  }

  .info-tab {
    width: min(128px, calc(50vw - 28px));
    font-size: 16px;
  }

  .info-content {
    padding-top: 10px;
  }

  .intro-manual h1,
  .qna-head h1 {
    font-size: clamp(36px, 10.5vw, 44px);
    line-height: 1.08;
  }

  .intro-manual p,
  .qna-head p {
    margin-top: 24px;
    font-size: 16px;
    line-height: 1.8;
  }

  .intro-question {
    padding-top: 22px;
    font-size: 16px !important;
  }

  .intro-closing {
    margin-top: 34px !important;
    font-size: 16px !important;
  }

  .qna-item > button {
    min-height: 82px;
    padding: 0 18px;
    font-size: 14px;
  }

  .qna-answer {
    margin: 0 18px 22px;
  }
}
