:root {
  --bg: #f6f6f4;
  --surface: #ffffff;
  --surface-hover: #fafaf8;
  --text: #1a1b19;
  --secondary: #52544f;
  --muted: #7c7e78;
  --line: rgba(26, 27, 25, 0.1);
  --accent: #1f6b47;
  --accent-hover: #185739;
  --accent-soft: rgba(31, 107, 71, 0.08);
  --accent-ink: #ffffff;
  --font-display: 'Jua', 'Pretendard Variable', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-ui: 'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141415;
    --surface: #1c1d1f;
    --surface-hover: #232528;
    --text: #f3f3f1;
    --secondary: #b0b2ac;
    --muted: #7d807a;
    --line: rgba(243, 243, 241, 0.1);
    --accent: #3d9a6c;
    --accent-hover: #4db07f;
    --accent-soft: rgba(61, 154, 108, 0.14);
    --accent-ink: #0f1411;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-variant-numeric: tabular-nums;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.shell {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 32px 24px 40px;
}

.shell-home {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
}

.home-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  padding: 24px 0;
}

.entry-icon {
  display: block;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.brand-mark {
  display: block;
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
}

.brand-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.brand-sub {
  margin: 0 0 32px;
  font-size: 15px;
  font-weight: 400;
  color: var(--secondary);
}

.entry-card {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  text-align: left;
  transition: border-color 150ms ease, background-color 150ms ease, transform 120ms ease;
}

.entry-card:hover {
  border-color: var(--accent);
  background: var(--surface-hover);
}

.entry-card:active {
  transform: scale(0.99);
}

.entry-card:focus-visible,
.btn:focus-visible,
.footer-links a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.entry-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.entry-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.entry-desc {
  font-size: 14px;
  font-weight: 400;
  color: var(--secondary);
}

.entry-arrow {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
}

.doc h1 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.25;
}

.doc h2 {
  margin: 24px 0 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.doc p,
.doc li {
  font-size: 14px;
  color: var(--secondary);
  line-height: 1.6;
}

.doc p {
  margin: 0 0 12px;
}

.doc ul {
  margin: 0 0 12px;
  padding-left: 20px;
}

.doc li {
  margin-bottom: 4px;
}

.meta {
  margin: 0 0 20px;
  font-size: 13px;
  color: var(--muted);
}

.doc-actions {
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 150ms ease;
}

.btn:hover {
  background: var(--accent-hover);
}

.footer {
  padding-top: 16px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.footer-links a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-links a:hover {
  color: var(--text);
}
