/* AuraX 자료실 — 공통 토큰과 뼈대. DESIGN.md(Agentic Terminal)를 그대로 옮긴 것. */

:root {
  --ink: #0a0a0b;
  --ink-2: #121214;
  --ink-3: #191a1d;
  --bone: #f6f6f1;
  --mute: #8c8c87;
  --mute-2: #5f5f5c;
  --line: rgba(246, 246, 241, 0.1);
  --line-2: rgba(246, 246, 241, 0.2);
  --flame: #ff5701;
  --flame-soft: rgba(255, 87, 1, 0.14);
  --ok: #16a34a;
  --danger: #dc2626;

  --rail: 1120px;
  --gut: 20px;

  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Pretendard Variable", Pretendard, system-ui, sans-serif;
  --disp: "Bricolage Grotesque", "Pretendard Variable", Pretendard, system-ui, sans-serif;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.75;
  font-weight: 400;
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--flame); color: #fff; }

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

/* ── 레일 ───────────────────────────────── */
.rail {
  width: 100%;
  max-width: var(--rail);
  margin-inline: auto;
  padding-inline: var(--gut);
}

/* 에디터 거터 느낌의 세로 헤어라인. 레일 바깥쪽에 딱 붙는다. */
.gutters {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  display: flex;
  justify-content: center;
}
.gutters span {
  width: 100%;
  max-width: var(--rail);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  opacity: 0.55;
}
@media (max-width: 760px) { .gutters { display: none; } }

/* ── 모노 라벨 ─────────────────────────── */
.label {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
  font-weight: 500;
}
.label--flame { color: var(--flame); }
/* 모노에 한글 글자가 없어 Pretendard 로 떨어지는데 .18em 자간이 그대로 남아 벌어진다. */
.label--ko, .label .ko {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.015em;
  text-transform: none;
}

/* ── 머리글 ────────────────────────────── */
.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--ink) 82%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-head__in {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 60px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.brand i {
  width: 7px;
  height: 7px;
  background: var(--flame);
  border-radius: 2px;
  display: block;
  flex: none;
}
.brand s { text-decoration: none; color: var(--mute); font-weight: 400; }
.site-nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
  font-size: 13.5px;
  color: var(--mute);
}
.site-nav a:hover { color: var(--bone); }
@media (max-width: 860px) { .site-nav { display: none; } .site-head__in { gap: 12px; } }

/* ── 버튼 ──────────────────────────────── */
.btn {
  --bg: transparent;
  --fg: var(--bone);
  --bd: var(--line-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 20px;
  border-radius: 8px;
  border: 1px solid var(--bd);
  background: var(--bg);
  color: var(--fg);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background 160ms var(--ease), border-color 160ms var(--ease), transform 120ms var(--ease), color 160ms var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn--flame { --bg: var(--flame); --fg: #fff; --bd: var(--flame); }
.btn--flame:hover { --bg: #ff6a1d; --bd: #ff6a1d; }
.btn--ghost:hover { --bd: var(--bone); }
.btn--sm { height: 36px; padding: 0 14px; font-size: 13px; border-radius: 6px; }
.btn--wide { width: 100%; }

/* ── 면 ────────────────────────────────── */
.card {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.hr {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

/* ── 입력 ──────────────────────────────── */
.field { display: block; margin-bottom: 16px; }
/* 입력칸 이름표는 거의 한글이라 모노 자간을 쓰지 않는다. */
.field > span {
  display: block;
  margin-bottom: 8px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--mute);
}
.input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  background: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: border-color 140ms var(--ease);
}
.input:focus { border-color: var(--flame); outline: none; }
.input::placeholder { color: var(--mute-2); }

/* ── 바닥 ──────────────────────────────── */
.site-foot {
  border-top: 1px solid var(--line);
  margin-top: 96px;
  padding: 40px 0 64px;
  color: var(--mute);
  font-size: 13px;
}
.site-foot a:hover { color: var(--bone); }

/* ── 스크롤 등장 ───────────────────────── */
.rv { opacity: 0; transform: translateY(14px); transition: opacity 520ms var(--ease), transform 520ms var(--ease); }
.rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .rv { opacity: 1; transform: none; }
}

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