/* Dev.K Studio - Minimal Modern */

:root {
  --color-bg: #ffffff;
  --color-fg: #0a0a0a;
  --color-muted: #6b7280;
  --color-border: #e5e7eb;
  --color-accent: #111827;
  --color-accent-hover: #374151;
  --color-subtle: #f9fafb;
  --max-width: 760px;
  --font-sans: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

@font-face {
  font-family: "Pretendard";
  font-weight: 45 920;
  font-style: normal;
  font-display: swap;
  src: url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/woff2/PretendardVariable.woff2") format("woff2-variations");
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-fg);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  word-break: keep-all;
}

/* Header */
header {
  border-bottom: 1px solid var(--color-border);
  padding: 1.25rem 1.5rem;
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  z-index: 10;
}

.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--color-fg);
  text-decoration: none;
}

.brand .dot {
  color: var(--color-muted);
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  font-size: 0.92rem;
}

.nav-links a {
  color: var(--color-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--color-fg);
}

.nav-links .lang {
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 0.8rem;
}

/* Main */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 1.5rem 6rem;
}

.hero {
  padding: 2rem 0 3rem;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 3rem;
}

.hero h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin: 0 0 1rem;
  font-weight: 700;
}

.hero .tagline {
  font-size: 1.15rem;
  color: var(--color-muted);
  margin: 0;
  max-width: 540px;
}

h1, h2, h3, h4 {
  letter-spacing: -0.02em;
  font-weight: 700;
}

h2 {
  font-size: 1.5rem;
  margin: 3rem 0 1rem;
  padding-top: 1rem;
}

h3 {
  font-size: 1.1rem;
  margin: 2rem 0 0.75rem;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--color-border);
  transition: text-decoration-color 0.15s ease;
}

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

ul, ol {
  padding-left: 1.25rem;
  margin: 0 0 1rem;
}

li {
  margin-bottom: 0.35rem;
}

strong {
  font-weight: 600;
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--color-subtle);
  padding: 0.1em 0.35em;
  border-radius: 4px;
  border: 1px solid var(--color-border);
}

hr {
  border: 0;
  border-top: 1px solid var(--color-border);
  margin: 2.5rem 0;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.95rem;
}

th, td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}

th {
  background: var(--color-subtle);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-muted);
}

/* Legal page specific */
.legal-meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 1rem 1.25rem;
  background: var(--color-subtle);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.legal-meta div {
  display: flex;
  gap: 0.5rem;
}

.legal-meta dt {
  color: var(--color-muted);
  margin: 0;
}

.legal-meta dd {
  margin: 0;
  font-weight: 500;
}

.toc {
  background: var(--color-subtle);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}

.toc strong {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-muted);
}

.toc ol {
  margin: 0;
  padding-left: 1.25rem;
  columns: 2;
  column-gap: 2rem;
}

.toc a {
  text-decoration: none;
  color: var(--color-fg);
  font-size: 0.95rem;
}

.toc a:hover {
  text-decoration: underline;
}

.callout {
  background: var(--color-subtle);
  border-left: 3px solid var(--color-accent);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  border-radius: 0 6px 6px 0;
  font-size: 0.95rem;
}

.callout p:last-child {
  margin-bottom: 0;
}

/* Footer */
footer {
  border-top: 1px solid var(--color-border);
  padding: 2.5rem 1.5rem;
  color: var(--color-muted);
  font-size: 0.88rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-inner a {
  color: var(--color-muted);
  text-decoration: none;
  margin-right: 1.25rem;
}

.footer-inner a:hover {
  color: var(--color-fg);
}

/* Mobile */
@media (max-width: 640px) {
  main {
    padding: 2.5rem 1.25rem 4rem;
  }
  .hero h1 {
    font-size: 1.875rem;
  }
  .hero .tagline {
    font-size: 1rem;
  }
  h2 {
    font-size: 1.25rem;
  }
  .toc ol {
    columns: 1;
  }
  .nav-links {
    gap: 0.85rem;
    font-size: 0.85rem;
  }
  table {
    font-size: 0.85rem;
  }
  th, td {
    padding: 0.6rem 0.5rem;
  }
}

/* Print */
@media print {
  header, footer, .nav-links {
    display: none;
  }
  main {
    max-width: 100%;
  }
}
