:root {
  --paper: #fbfaf7;
  --ink: #11100f;
  --muted: #69635b;
  --hairline: #d9d1c6;
  --panel: #fffefa;
  --soft: #f3efe8;
  --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 {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
}

[hidden] {
  display: none !important;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  padding: 0 32px;
  border-bottom: 1px solid rgba(217, 209, 198, 0.72);
  background: rgba(251, 250, 247, 0.94);
  backdrop-filter: blur(8px);
}

.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;
}

.plain-link,
.login-link,
.member-nickname {
  color: #1a1918;
}

.plain-link:hover,
.login-link:hover,
.member-nickname: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;
}

.guide-page {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 58px;
  width: min(1360px, calc(100vw - 80px));
  margin: 70px auto 120px;
  align-items: start;
}

.guide-index {
  position: sticky;
  top: 110px;
  padding: 24px 0 0;
  border-top: 1px solid var(--hairline);
}

.index-label {
  margin: 0 0 28px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.guide-index a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid #e7e0d7;
  color: var(--muted);
  font-size: 13px;
}

.guide-index a:hover {
  color: var(--ink);
}

.guide-document {
  min-width: 0;
}

.guide-hero {
  padding-bottom: 54px;
  border-bottom: 1px solid var(--hairline);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.guide-hero h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", "Noto Serif KR", serif;
  font-size: clamp(52px, 7vw, 86px);
  line-height: 0.95;
  font-weight: 400;
}

.hero-quote {
  margin: 34px 0 0;
  color: var(--ink);
  font-size: 20px;
  font-weight: 700;
}

.hero-copy {
  max-width: 780px;
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.guide-section {
  scroll-margin-top: 104px;
  padding: 56px 0;
  border-bottom: 1px solid var(--hairline);
}

.section-title {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 18px;
  align-items: baseline;
  margin-bottom: 30px;
}

.section-title span {
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
}

.section-title h2 {
  margin: 0;
  color: var(--ink);
  font-size: 26px;
  line-height: 1.25;
}

.section-title em {
  margin-left: 8px;
  color: var(--muted);
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
}

.section-lead {
  margin: 0 0 24px 70px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-left: 70px;
}

.feature-item {
  padding: 24px 26px;
  border: 1px solid var(--hairline);
  background: var(--panel);
}

.feature-item h3,
.rule-card h3 {
  margin: 0 0 13px;
  font-size: 17px;
}

.feature-item p,
.rule-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.step-block {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: 38px;
  align-items: start;
  padding: 34px 0;
  border-top: 1px solid #e7e0d7;
}

.step-block:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.step-copy {
  padding-left: 70px;
}

.step-label {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.step-copy h3 {
  margin: 0 0 18px;
  font-size: 21px;
  line-height: 1.35;
}

.step-copy ol,
.step-copy ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.85;
}

.step-copy li + li {
  margin-top: 7px;
}

.tip-box {
  margin-top: 22px;
  padding: 20px 22px;
  border: 1px solid var(--hairline);
  background: #fbf8f4;
}

.tip-box h4 {
  margin: 0 0 12px;
  color: var(--accent-deep);
  font-size: 14px;
}

.capture-placeholder {
  margin: 32px 0 0 70px;
  border: 1px solid var(--hairline);
  background: var(--panel);
}

.step-block .capture-placeholder {
  margin: 0;
}

.capture-placeholder.is-large {
  min-height: 300px;
}

.capture-body {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 230px;
  padding: 40px;
  overflow: hidden;
}

.capture-body.has-guide-image {
  min-height: 0;
  padding: 0;
  background: #fffefa;
}

.capture-body::before {
  position: absolute;
  inset: 18px;
  background-image: radial-gradient(#d2cbc2 1.2px, transparent 1.2px);
  background-size: 24px 24px;
  content: "";
  opacity: 0.65;
}

.capture-body.has-guide-image::before {
  display: none;
}

.guide-capture-image {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
}

.capture-body p {
  position: relative;
  max-width: 360px;
  margin: 0;
  padding: 18px 22px;
  border: 1px solid #e1d9cf;
  background: rgba(255, 254, 250, 0.92);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  text-align: center;
}

.note-number {
  position: absolute;
  top: 28px;
  left: 28px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: var(--accent);
  color: #fffefa;
  font-size: 13px;
  font-weight: 700;
}

.note-number.secondary {
  top: auto;
  right: 30px;
  bottom: 32px;
  left: auto;
  background: #2f6f9f;
}

.note-number.third {
  top: 86px;
  right: 64px;
  left: auto;
  background: #879455;
}

.rule-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-left: 70px;
}

.rule-card {
  min-height: 182px;
  padding: 24px;
  border: 1px solid var(--hairline);
  background: var(--panel);
}

.rule-card p + p {
  margin-top: 13px;
}

.rule-card strong {
  display: block;
  margin-bottom: 3px;
  color: var(--accent-deep);
  font-size: 12px;
}

.warning-text {
  margin: 26px 0 0 70px;
  color: var(--accent-deep);
  font-size: 13px;
  line-height: 1.7;
}

.tip-placeholder-block {
  margin-left: 70px;
  padding: 34px 36px;
  border: 1px solid var(--hairline);
  background: var(--panel);
}

.tip-placeholder-block p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.guide-agreement {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 36px;
  padding: 26px 0 0 70px;
}

.guide-agree-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  cursor: pointer;
  font-size: 14px;
  line-height: 1.4;
}

.guide-agree-label input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.guide-start-button {
  display: inline-grid;
  place-items: center;
  min-width: 118px;
  height: 44px;
  padding: 0 24px;
  border-radius: 7px;
  background: var(--accent);
  color: #fffefa;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.guide-start-button:hover:not(:disabled) {
  background: var(--accent-deep);
}

.guide-start-button:disabled {
  background: #d8d1c6;
  color: #fffefa;
  cursor: default;
}

@media (max-width: 1100px) {
  .guide-page {
    grid-template-columns: 1fr;
    width: min(920px, calc(100vw - 40px));
    gap: 28px;
    margin-top: 42px;
  }

  .guide-index {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding-top: 18px;
  }

  .index-label {
    grid-column: 1 / -1;
    margin-bottom: 0;
  }

  .guide-index a {
    border: 1px solid var(--hairline);
    padding: 12px;
    text-align: center;
  }

  .feature-list,
  .rule-grid,
  .step-block {
    grid-template-columns: 1fr;
  }

  .feature-list,
  .rule-grid,
  .capture-placeholder,
  .section-lead,
  .warning-text,
  .tip-placeholder-block,
  .guide-agreement,
  .step-copy {
    margin-left: 0;
    padding-left: 0;
  }

  .step-block {
    gap: 22px;
  }
}

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

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

  .wordmark {
    font-size: 31px;
  }

  .guide-hero h1 {
    font-size: 48px;
  }

  .section-title {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .guide-index {
    grid-template-columns: 1fr;
  }

  .feature-list,
  .rule-grid {
    gap: 12px;
  }

  .capture-body {
    min-height: 210px;
    padding: 28px;
  }

  .guide-agreement {
    align-items: flex-start;
    flex-direction: column;
  }
}
