@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.css");
@import url("https://fonts.googleapis.com/css2?family=Noto+Serif+KR:wght@600;700;900&family=IBM+Plex+Mono:wght@400;500;600&display=swap");

:root {
  --bg: #f6f4ec;
  --surface: #fffdf7;
  --surface-2: #efeadd;
  --ink: #1a1815;
  --muted: #6a655b;
  --faint: #918b7e;
  --line: #e4ddce;
  --line-strong: #d3cab6;
  --accent: #b8482a;
  --accent-soft: #f4e0d5;
  --sage: #4e6250;
  --sage-soft: #e6ebe2;
  --shadow: 0 1px 2px rgba(26, 24, 21, 0.04), 0 24px 48px -28px rgba(26, 24, 21, 0.28);
  font-family:
    "Pretendard Variable", Pretendard, system-ui, -apple-system, "Segoe UI",
    "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  word-break: keep-all;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: #9c3a1f;
}

button {
  font: inherit;
}

::selection {
  background: #f0d9cf;
}

@keyframes airoRise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 244, 236, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.nav {
  width: min(1160px, calc(100% - 40px));
  height: 70px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 228px;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 2px solid var(--accent);
  border-radius: 11px;
  color: var(--accent);
  font-family: "IBM Plex Mono", monospace;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  color: var(--ink);
  font-size: 15.5px;
  letter-spacing: 0;
}

.brand small {
  margin-top: 2px;
  color: var(--faint);
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-links a {
  padding: 9px 13px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.nav-links a:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.nav-links a.nav-github {
  margin-left: 8px;
  padding: 9px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
}

main {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 64px;
  align-items: center;
  padding: 88px 0 96px;
}

.hero-copy {
  max-width: 820px;
  animation: airoRise 0.6s ease both;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
}

.eyebrow.line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}

.eyebrow.line::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--accent);
}

h1,
h2 {
  font-family: "Noto Serif KR", serif;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  color: var(--ink);
  font-size: 66px;
  font-weight: 900;
  line-height: 1.28;
  letter-spacing: 0;
}

h1 em {
  color: var(--accent);
  font-style: normal;
}

h2 {
  margin: 0;
  font-size: 38px;
  font-weight: 700;
  line-height: 1.3;
}

h3 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
}

.lead {
  max-width: 600px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 18.5px;
  line-height: 1.85;
  letter-spacing: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 38px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0 26px;
  background: var(--surface);
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

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

.button.primary:hover {
  color: #fff;
  filter: brightness(0.96);
}

.status-panel {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
  animation: airoRise 0.6s ease 0.1s both;
}

.status-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 20px;
  border-bottom: 1px dashed var(--line);
  background: var(--surface-2);
  color: var(--faint);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0;
}

.status-head strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--sage);
  font-weight: 500;
  white-space: nowrap;
}

.status-head strong span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sage);
}

.status-metrics > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}

.metric {
  flex: none;
  color: var(--accent);
  font-family: "Noto Serif KR", serif;
  font-size: 36px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
}

.metric + span {
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0;
  text-align: right;
  white-space: nowrap;
}

.free-note {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 24px;
  background: var(--surface-2);
}

.free-note > span {
  flex: none;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 2px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  letter-spacing: 0;
  transform: rotate(-7deg);
}

.free-note p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.65;
}

.free-note strong,
.safety strong {
  color: var(--ink);
  font-weight: 700;
}

.section {
  padding: 76px 0;
  border-top: 1px solid var(--line);
}

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

.section-heading > p {
  max-width: 340px;
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.7;
}

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

.card {
  display: flex;
  min-height: 0;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  padding: 26px;
  box-shadow: 0 1px 2px rgba(26, 24, 21, 0.03);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.category-chip,
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 0 11px;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}

.category-chip {
  background: var(--sage-soft);
  color: var(--sage);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0;
}

.bundle-card .category-chip {
  background: var(--accent-soft);
  color: var(--accent);
}

.card-no,
.bundle-difficulty {
  color: var(--faint);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
}

.bundle-difficulty {
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
}

.card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.72;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 18px 0;
}

.pill {
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--muted);
}

.runtime {
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-2);
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  line-height: 1.6;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
}

.card-footer span {
  color: var(--faint);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
}

.card-footer strong {
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 700;
  text-align: right;
}

.card-footer a {
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.filter {
  min-height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  padding: 0 16px;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.filter:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.filter.active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1fr);
  gap: 56px;
  align-items: start;
}

.split p {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.85;
}

.terminal {
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--ink);
  padding: 8px;
  box-shadow: 0 24px 48px -28px rgba(26, 24, 21, 0.3);
}

.terminal-head {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
}

.terminal-head span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.terminal-head span:nth-child(1) {
  background: #e05a3d;
}

.terminal-head span:nth-child(2) {
  background: #e0b53d;
}

.terminal-head span:nth-child(3) {
  background: #68b06a;
}

.terminal-head small {
  margin-left: 8px;
  color: #8f887a;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
}

.file-tree {
  display: grid;
  gap: 7px;
  padding: 8px 20px 20px;
}

.file-tree code {
  color: #a49c8c;
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
}

.file-tree code:first-child {
  color: #f6f4ec;
  padding-left: 0;
}

.file-tree code:not(:first-child) {
  padding-left: 22px;
}

.safety {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.safety p {
  margin: 0;
  border-left: 3px solid var(--accent);
  padding: 6px 0 6px 24px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.85;
}

.footer {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 14px;
}

.footer > span:first-child {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12.5px;
  letter-spacing: 0;
}

.footer a {
  color: var(--accent);
  font-weight: 700;
}

@media (max-width: 920px) {
  .hero,
  .split,
  .safety {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 36px;
    padding: 58px 0 76px;
  }

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

  h1 {
    font-size: 48px;
  }

  h2 {
    font-size: 32px;
  }
}

@media (max-width: 700px) {
  .nav {
    height: auto;
    padding: 14px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero {
    padding-top: 48px;
  }

  .section-heading,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .card-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .card-footer strong {
    text-align: left;
  }

  h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 28px;
  }
}
