:root {
      --bg: #f6f1e8;
      --paper: #fffaf0;
      --paper-strong: #f1e4d0;
      --ink: #24201a;
      --muted: #6f675c;
      --line: rgba(72, 55, 34, 0.18);
      --accent: #b84832;
      --accent-dark: #2f5141;
      --blueprint: #516f89;
      --shadow: 0 18px 48px rgba(54, 39, 20, 0.12);
      --max: 1240px;
    }

    *, *::before, *::after {
      box-sizing: border-box;
    }

    html,
    body {
      margin: 0;
      min-width: 0;
      overflow-x: hidden;
      color: var(--ink);
      background:
        linear-gradient(rgba(84, 67, 45, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(84, 67, 45, 0.035) 1px, transparent 1px),
        var(--bg);
      background-size: 28px 28px;
      font-family: "Pretendard Variable", "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
      line-height: 1.6;
    }

    a {
      color: inherit;
    }

    .container {
      width: min(var(--max), calc(100% - 40px));
      margin: 0 auto;
    }
    /* Header */
.site-header {
  --ink: #24201a;
  --muted: #6f675c;
  --line: rgba(72, 55, 34, 0.18);
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 241, 232, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 0 12px;
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
}

.site-logo {
  display: flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.logo-ko {
  font-size: 34px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: -0.01em;
}

.logo-en {
  font-family: "JetBrains Mono", "SF Mono", ui-monospace, monospace;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-nav a {
  font-size: 15px;
  font-weight: 800;
  color: var(--muted);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.site-nav a:hover {
  color: var(--ink);
}

.mobile-menu {
  display: none;
}

.mobile-menu summary {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.82);
  cursor: pointer;
  list-style: none;
}

.mobile-menu summary::-webkit-details-marker {
  display: none;
}

.hamburger {
  position: relative;
  width: 18px;
  height: 12px;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}

.hamburger::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  border-top: 2px solid var(--ink);
}

.mobile-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: min(200px, calc(100vw - 24px));
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  background: rgba(255, 250, 240, 0.98);
  box-shadow: 0 16px 36px rgba(54, 39, 20, 0.16);
}

.mobile-menu-panel a {
  display: flex;
  min-height: 44px;
  align-items: center;
  padding: 0 12px;
  border-radius: 6px;
  font-weight: 900;
  text-decoration: none;
  color: var(--ink);
}

.mobile-menu-panel a:hover {
  background: rgba(47, 81, 65, 0.08);
}

@media (max-width: 640px) {
  .header-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    height: 64px;
    padding: 0;
    gap: 0;
  }

  .logo-ko {
    font-size: 26px;
  }

  .logo-en {
    display: none;
  }

  .site-nav {
    display: none;
  }

  .mobile-menu {
    display: block;
    position: relative;
  }
}

    /* Hero */
    .hero {
      position: relative;
      padding: clamp(64px, 9vw, 88px) 0 clamp(48px, 7vw, 68px);
    }

    .hero-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 0;
      align-items: center;
    }

    .hero-copy {
      min-width: 0;
      text-align: center;
    }

    .eyebrow {
      margin: 0 0 20px;
      color: var(--accent);
      font-family: "JetBrains Mono", "SF Mono", ui-monospace, "Cascadia Code", monospace;
      font-size: 12px;
      font-weight: 900;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    h1 {
      margin: 0;
      font-size: clamp(40px, 6vw, 72px);
      font-weight: 950;
      line-height: 1.04;
      letter-spacing: 0;
      word-break: keep-all;
    }

    .hero-lead {
      max-width: 480px;
      margin: 20px auto 0;
      color: #50483e;
      font-size: clamp(15px, 1.8vw, 18px);
      word-break: keep-all;
    }

    .cta-row {
      display: flex;
      justify-content: center;
      gap: 10px;
      margin-top: 28px;
      flex-wrap: wrap;
    }

    .button {
      display: inline-flex;
      height: 50px;
      min-height: 44px;
      align-items: center;
      justify-content: center;
      border-radius: 999px;
      padding: 0 26px;
      font-size: 15px;
      font-weight: 900;
      text-align: center;
      text-decoration: none;
      transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
      word-break: keep-all;
    }

    .button:hover {
      transform: translateY(-1px);
    }

    .button-primary {
      border: none;
      color: var(--paper);
      background: var(--accent-dark);
    }

    .button-secondary {
      border: 1px solid var(--line);
      color: var(--ink);
      background: rgba(255, 250, 240, 0.78);
    }

    .button-secondary:hover {
      border-color: rgba(72, 55, 34, 0.36);
      background: var(--paper);
    }

    /* Cards */
    .archive-section {
      border-top: 1px solid var(--line);
      padding: clamp(32px, 5vw, 56px) 0 clamp(56px, 8vw, 88px);
    }

    .section-head {
      display: flex;
      align-items: end;
      justify-content: space-between;
      gap: 24px;
      margin-bottom: 24px;
    }

    .kicker {
      margin: 0 0 6px;
      color: var(--muted);
      font-family: "JetBrains Mono", "SF Mono", ui-monospace, "Cascadia Code", monospace;
      font-size: 11px;
      font-weight: 900;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    .section-title {
      margin: 0;
      color: var(--ink);
      font-size: clamp(22px, 3.5vw, 36px);
      font-weight: 900;
      line-height: 1.12;
      word-break: keep-all;
    }

    .archive-link {
      color: var(--muted);
      font-size: 14px;
      font-weight: 800;
      text-decoration: none;
      white-space: nowrap;
    }

    .archive-link:hover {
      color: var(--ink);
    }

    .card-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 14px;
    }

    .loading-note {
      grid-column: 1 / -1;
      margin: 0;
      color: var(--muted);
      font-size: 15px;
    }

    .anchor-card {
      min-width: 0;
      min-height: 220px;
      display: flex;
      flex-direction: column;
      border: 1px solid var(--line);
      border-radius: 8px;
      padding: 20px;
      background: var(--paper);
      box-shadow: 0 10px 24px rgba(54, 39, 20, 0.06);
    }

    .anchor-meta {
      color: var(--blueprint);
      font-family: "JetBrains Mono", "SF Mono", ui-monospace, "Cascadia Code", monospace;
      font-size: 11px;
      font-weight: 900;
    }

    .anchor-card h3 {
      margin: 10px 0 6px;
      color: var(--ink);
      font-size: 18px;
      font-weight: 900;
      line-height: 1.24;
      word-break: keep-all;
    }

    .anchor-desc {
      margin: 0;
      color: var(--muted);
      font-size: 14px;
      word-break: keep-all;
    }

    .card-links {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: auto;
      padding-top: 20px;
    }

    .card-links a {
      display: inline-flex;
      height: 38px;
      min-height: 38px;
      align-items: center;
      justify-content: center;
      border-radius: 999px;
      padding: 0 14px;
      font-size: 13px;
      font-weight: 900;
      text-decoration: none;
      transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
    }

    .card-links a:hover {
      transform: translateY(-1px);
    }

    .card-links a:first-child {
      border: none;
      color: var(--paper);
      background: var(--accent);
    }

    .card-links a:last-child {
      border: 1px solid var(--line);
      color: var(--ink);
      background: transparent;
    }

    .card-links a:last-child:hover {
      border-color: rgba(72, 55, 34, 0.36);
      background: rgba(255, 250, 240, 0.64);
    }

    /* Bottom CTA */
    .bottom-cta {
      border-top: 1px solid var(--line);
      border-bottom: 1px solid var(--line);
      padding: clamp(36px, 5vw, 56px) 0;
      background: var(--paper-strong);
      text-align: center;
    }

    .bottom-cta p {
      margin: 0 0 24px;
      color: var(--ink);
      font-size: clamp(16px, 2vw, 20px);
      word-break: keep-all;
    }

    .bottom-cta .button {
      height: 52px;
      padding: 0 32px;
      font-size: 16px;
    }

    /* Footer */
    .site-footer {
      border-top: 1px solid var(--line);
      padding: 28px 0;
      color: #efe6d7;
      background: #211b15;
    }

    .footer-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
    }

    .footer-inner p {
      margin: 0;
      color: rgba(239, 230, 215, 0.74);
      font-size: 14px;
      word-break: keep-all;
    }

    .footer-links {
      display: flex;
      flex-wrap: wrap;
      gap: 16px;
    }

    .footer-links a {
      color: #efe6d7;
      font-size: 14px;
      font-weight: 800;
      text-decoration: none;
    }

    .footer-links a:hover {
      color: #fffaf0;
    }

    .scroll-top {
      position: fixed;
      right: 20px;
      bottom: 28px;
      z-index: 200;
      width: 44px;
      height: 44px;
      border-radius: 999px;
      border: 1px solid var(--line);
      background: rgba(255, 250, 240, 0.92);
      backdrop-filter: blur(10px);
      color: var(--ink);
      font-size: 18px;
      font-weight: 900;
      cursor: pointer;
      box-shadow: 0 4px 16px rgba(54, 39, 20, 0.14);
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.2s;
    }

    .scroll-top.visible {
      opacity: 1;
      pointer-events: auto;
    }

    @media (max-width: 980px) {
      .hero-grid {
        grid-template-columns: 1fr;
        gap: 34px;
      }

      .card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
    }

    @media (max-width: 640px) {
      .container {
        width: min(100% - 24px, var(--max));
      }

      .header-inner {
        height: 64px;
        flex-direction: row;
        justify-content: space-between;
        padding: 0;
      }

      .mobile-menu {
        display: block;
      }

      .hero {
        padding: 48px 0 42px;
      }

      .hero-grid {
        grid-template-columns: 1fr;
        gap: 28px;
      }

      .hero-copy {
        text-align: center;
      }

      .hero-lead {
        margin-left: auto;
        margin-right: auto;
      }

      h1 {
        font-size: clamp(38px, 11vw, 48px);
      }

      .cta-row {
        flex-direction: column;
        align-items: stretch;
      }

      .button {
        width: 100%;
      }

      .section-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
      }

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

      .footer-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
      }
    }
