/* ==========================================================================
   7k0 — base stylesheet
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --bg: #faf9f6;
  --fg: #1a1a18;
  --muted: #6b6a64;
  --line: #e4e2da;
  --card: #ffffff;
  --accent: #a84f2f; /* 5.2:1 on --bg (WCAG AA) */
  --radius: 14px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --font-mono: ui-monospace, Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141413;
    --fg: #f1efe8;
    --muted: #9b998f;
    --line: #2b2a27;
    --card: #1c1b19;
    --accent: #e08a67;
  }
}

:root[data-theme="dark"] {
  --bg: #141413;
  --fg: #f1efe8;
  --muted: #9b998f;
  --line: #2b2a27;
  --card: #1c1b19;
  --accent: #e08a67;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  padding: 8px 14px;
  background: var(--fg);
  color: var(--bg);
  border-radius: 8px;
  z-index: 10;
}
.skip-link:focus { top: 12px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }

/* ---------- i18n ---------- */
[data-l] { display: none; }
html[lang="en"] [data-l="en"],
html[lang="ko"] [data-l="ko"] { display: revert; }

/* ---------- Header ---------- */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
}

.logo {
  font: 700 20px var(--font-mono);
  color: var(--fg);
  text-decoration: none;
}
.logo span { color: var(--accent); }

.site-nav { display: flex; gap: 20px; align-items: center; font-size: 14px; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover { color: var(--fg); }

.lang {
  border: 1px solid var(--line);
  background: none;
  color: var(--fg);
  border-radius: 999px;
  padding: 4px 12px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero { padding: 96px 0 72px; }

.tag {
  display: inline-block;
  font-size: 13px;
  color: var(--accent);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 12px;
  margin-bottom: 24px;
}

h1 {
  font-size: clamp(36px, 7vw, 64px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 16ch;
}

.lead { margin-top: 24px; font-size: 19px; color: var(--muted); max-width: 56ch; }

.cta { margin-top: 36px; display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid var(--fg);
}
.btn.primary { background: var(--fg); color: var(--bg); }
.btn.ghost { color: var(--fg); }

/* ---------- Sections ---------- */
.section { padding: 56px 0; border-top: 1px solid var(--line); }

h2 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 28px;
  font-weight: 600;
}

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

/* ---------- Cards ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; }

a.card { text-decoration: none; color: var(--fg); transition: border-color .15s, transform .15s; }
a.card:hover { border-color: var(--accent); transform: translateY(-2px); }

.card-link {
  margin-top: auto;
  padding-top: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

.status {
  align-self: flex-start;
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 1px 10px;
  margin-bottom: 12px;
}
.status.live { color: var(--accent); border-color: var(--accent); }
.status.live::before { content: "● "; }

/* ---------- About / Contact ---------- */
.about p { font-size: 18px; max-width: 62ch; }

.contact-mail { color: var(--accent); font-size: 20px; }

/* ---------- Footer ---------- */
.site-footer {
  padding: 40px 0 56px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.site-footer a { color: var(--muted); }

/* ---------- 404 ---------- */
.not-found { padding: 140px 0; }
.not-found .code { font: 700 14px var(--font-mono); color: var(--accent); margin-bottom: 16px; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  a.card { transition: none; }
  a.card:hover { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 560px) {
  .site-nav a { display: none; }
  .hero { padding: 64px 0 48px; }
  .lead { font-size: 17px; }
}
