:root {
  color-scheme: dark;

  --bg: #171c19;
  --text: #f1f0e7;
  --muted: #a9b3a9;
  --line: #394139;
  --accent: #d1dfb5;
  --panel: #202720;
}


/* =========================
   밝은 화면
========================= */

html.light,
body.light {
  color-scheme: light;

  --bg: #f7f5ee;
  --text: #242d24;
  --muted: #636e62;
  --line: #d5d8cb;
  --accent: #455f31;
  --panel: #edeedf;
}


/* =========================
   기본 설정
========================= */

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;

  background-color: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;

  background-color: var(--bg);
  color: var(--text);

  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Apple SD Gothic Neo",
    "Noto Sans KR",
    sans-serif;

  line-height: 1.65;
}

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


/* =========================
   상단 고정 영역
========================= */

.top {
  position: sticky;
  top: 0;
  z-index: 20;

  width: 100%;

  background-color: var(--bg);

  border-bottom: 1px solid var(--line);
}

.top-inner {
  max-width: 1000px;

  margin: auto;
  padding: 12px 32px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 12px;
}

.home {
  color: var(--text);

  font-size: 11px;
  letter-spacing: 2px;
}


/* =========================
   화면 밝기 버튼
========================= */

.top button {
  min-height: 40px;

  padding: 8px 14px;

  border: 1px solid var(--line);
  border-radius: 100px;

  background: transparent;
  color: var(--text);

  font: inherit;
  font-size: 12px;

  cursor: pointer;

  touch-action: manipulation;

  -webkit-appearance: none;
  appearance: none;

  -webkit-tap-highlight-color: transparent;
}

.top button:hover,
.top button:active {
  background: var(--panel);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}


/* =========================
   메인 콘텐츠
========================= */

.hub {
  width: min(760px, 100%);
  min-height: calc(100vh - 65px);

  margin: auto;
  padding: 58px 28px 40px;

  display: flex;
  flex-direction: column;
}


/* =========================
   제목 영역
========================= */

.hero {
  margin-bottom: 40px;
}

.eyebrow {
  margin: 0 0 12px;

  color: var(--accent);

  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 3px;
}

.hero h1 {
  margin: 18px 0 20px;

  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Apple SD Gothic Neo",
    "Noto Sans KR",
    sans-serif;

  font-size: clamp(32px, 6vw, 54px);
  font-weight: 600;

  line-height: 1.35;
  letter-spacing: -2px;

  word-break: keep-all;
}

.intro {
  margin: 0;

  color: var(--muted);

  font-size: 14px;
}


/* =========================
   메뉴 카드
========================= */

.links {
  display: grid;

  gap: 14px;
}

.card {
  display: grid;

  grid-template-columns:
    48px
    1fr
    28px;

  align-items: center;

  gap: 14px;

  min-height: 126px;

  padding: 25px 22px;

  border: 1px solid var(--line);
  border-radius: 18px;

  background: rgba(255, 255, 255, 0.015);

  color: inherit;
  text-decoration: none;

  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease;
}

html.light .card,
body.light .card {
  background: rgba(0, 0, 0, 0.01);
}

.card:hover,
.card:focus-visible {
  background: var(--panel);
  border-color: var(--accent);

  transform: translateY(-2px);

  outline: none;
}

.num {
  color: var(--accent);

  font: italic 24px Georgia, serif;
}

.copy {
  display: flex;
  flex-direction: column;

  gap: 5px;
}

.copy strong {
  font-size: 26px;
  font-weight: 500;

  letter-spacing: -0.7px;
}

.copy small {
  color: var(--muted);

  font-size: 12px;
  letter-spacing: 0.2px;
}

.arrow {
  color: var(--accent);

  font-size: 22px;

  text-align: right;
}


/* =========================
   푸터
========================= */

footer {
  margin-top: auto;

  padding-top: 54px;

  color: var(--muted);

  text-align: center;

  font-size: 10px;
  letter-spacing: 2px;
}


/* =========================
   모바일
========================= */

@media (max-width: 480px) {
  .top-inner {
    padding: 12px 22px;
  }

  .top button {
    min-height: 40px;

    padding: 8px 12px;

    font-size: 12px;
  }

  .hub {
    padding: 36px 22px 40px;
  }

  .hero {
    margin-bottom: 34px;
  }

  .hero h1 {
    letter-spacing: -1px;
  }

  .card {
    grid-template-columns:
      36px
      1fr
      24px;

    min-height: 112px;

    padding: 20px 18px;
  }

  .copy strong {
    font-size: 23px;
  }

  .copy small {
    font-size: 11px;
  }
}