/* ─────────────────────────────────────────────────────────────
   WearSynth · AI Studio Dark
   obsidian canvas / hairline surfaces / mono lab accents
   ───────────────────────────────────────────────────────────── */
:root {
  color-scheme: dark;
  --bg: #0b0c0f;
  --bg-deep: #07080a;
  --bg-2: #111318;
  --surface: #161920;
  --surface-2: #1b1f27;
  --line: #242833;
  --line-soft: rgba(255, 255, 255, 0.08);
  --ink: #f2f4f7;
  --ink-2: #d7dde6;
  --muted: #9aa3b2;
  --muted-2: #737d8c;
  --accent: #7dd3fc;
  --accent-2: #a5e8d8;
  --accent-soft: rgba(125, 211, 252, 0.1);
  --warm: #e7d3bb;
  --pad: clamp(18px, 4vw, 56px);
  --max: 1360px;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  --sans: "Plus Jakarta Sans", "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", Arial, sans-serif;
  --serif: "Instrument Serif", "Noto Serif KR", "Nanum Myeongjo", Georgia, "Times New Roman", serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(1100px 620px at 78% -12%, rgba(125, 211, 252, 0.07), transparent 62%),
    radial-gradient(900px 520px at 8% -6%, rgba(165, 232, 216, 0.045), transparent 60%),
    var(--bg);
  color: var(--ink);
  line-height: 1.7;
  font-family: var(--sans);
  font-size: 16px;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
img { display: block; max-width: 100%; }
::selection { background: rgba(125, 211, 252, 0.28); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
code, kbd, samp, time, small, .mono { font-family: var(--mono); }
hr { border: 0; border-top: 1px solid var(--line-soft); }

/* ── header ─────────────────────────────────────────────────── */
.top {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 40px;
  padding: 15px max(var(--pad), calc((100% - var(--max)) / 2 + var(--pad)));
  background: rgba(11, 12, 15, 0.82);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid var(--line-soft);
}
.logo {
  font-weight: 700;
  font-size: 1.14rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}
.logo i { color: var(--accent); font-style: normal; opacity: 0.85; }
.top a { text-decoration: none; }
.top nav { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.top nav a {
  position: relative;
  text-transform: uppercase;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--muted);
  padding: 4px 0;
  transition: color 0.2s var(--ease);
}
.top nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.25s var(--ease);
}
.top nav a:hover { color: var(--ink); }
.top nav a:hover::after { width: 100%; }
.util {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.util a { color: var(--muted); transition: color 0.2s var(--ease); }
.util a:hover { color: var(--accent); }
.util form { display: inline; }
.link { background: none; border: 0; font: inherit; color: inherit; cursor: pointer; letter-spacing: inherit; }

main { flex: 1; width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad) 96px; }

/* ── buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  padding: 12px 22px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #0b0c0f;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.22s var(--ease), color 0.22s var(--ease), border-color 0.22s var(--ease), transform 0.22s var(--ease);
}
.btn:hover, .btn:focus-visible { background: var(--accent); border-color: var(--accent); color: #08131a; transform: translateY(-1px); }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--ink-2); }
.btn.ghost:hover, .btn.ghost:focus-visible { background: transparent; border-color: var(--accent); color: var(--accent); }

/* ── hero ───────────────────────────────────────────────────── */
.hero { position: relative; padding: 34px 0 0; border-bottom: 1px solid var(--line-soft); overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.032) 1px, transparent 1px) 0 0 / 100% 64px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.032) 1px, transparent 1px) 0 0 / 64px 100%;
  -webkit-mask-image: radial-gradient(80% 76% at 62% 0%, #000 0%, transparent 78%);
  mask-image: radial-gradient(80% 76% at 62% 0%, #000 0%, transparent 78%);
}
.hero > * { position: relative; }
.hero-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-top .lab-id { color: var(--ink-2); }
.hero-top .lab-id em { color: var(--accent); font-style: normal; }
.hero-top .lab-status { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.hero-top .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 0 rgba(165, 232, 216, 0.5);
  animation: pulse 3.2s var(--ease) infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(165, 232, 216, 0.45); }
  70% { box-shadow: 0 0 0 7px rgba(165, 232, 216, 0); }
  100% { box-shadow: 0 0 0 0 rgba(165, 232, 216, 0); }
}
.hero h1 {
  font-size: clamp(3.2rem, 14vw, 13.75rem);
  line-height: 0.9;
  font-weight: 600;
  letter-spacing: -0.022em;
  padding: 40px 0 10px;
}
.hero h1 span { display: block; }
.hero h1 .outline {
  text-align: right;
  padding-right: 0.06em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(242, 244, 247, 0.4);
  transition: -webkit-text-stroke-color 0.3s var(--ease);
}
.hero:hover h1 .outline { -webkit-text-stroke-color: rgba(125, 211, 252, 0.65); }
.hero-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 24px;
  padding: 28px 0 30px;
}
.hero-foot p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.15rem, 2.2vw, 1.65rem);
  letter-spacing: 0.004em;
  color: var(--warm);
  max-width: 44ch;
  line-height: 1.5;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-spec {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  border-top: 1px solid var(--line-soft);
}
.hero-spec > div { padding: 16px 20px 18px 0; border-right: 1px solid var(--line-soft); }
.hero-spec > div:last-child { border-right: 0; }
.hero-spec dt {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.hero-spec dt::before { content: ""; width: 12px; height: 1px; background: var(--accent); opacity: 0.7; }
.hero-spec dd {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--ink-2);
}

/* ── home intro ─────────────────────────────────────────────── */
.home-intro {
  max-width: 760px;
  padding: 36px 0 40px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 1.05rem;
  color: var(--ink-2);
  line-height: 1.8;
}
.home-intro p + p { margin-top: 16px; font-size: 0.78rem; font-family: var(--mono); letter-spacing: 0.06em; }
.home-intro a { color: var(--accent); border-bottom: 1px solid rgba(125, 211, 252, 0.35); padding-bottom: 1px; }
.home-intro a:hover { border-bottom-color: var(--accent); }

/* ── section heads ──────────────────────────────────────────── */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin: 68px 0 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}
.s-label {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 9px;
}
.section-head h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3.4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}
.section-head > a {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}
.section-head > a:hover { color: var(--accent); }
h2 { font-size: 1.35rem; letter-spacing: -0.02em; margin: 40px 0 14px; }

/* ── page heads ─────────────────────────────────────────────── */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-2);
  padding-top: 48px;
}
.eyebrow::after { content: ""; flex: 1; height: 1px; background: var(--line-soft); }
.page-title {
  font-size: clamp(2.5rem, 8.4vw, 6.4rem);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.012em;
  word-spacing: 0.06em;
  text-transform: uppercase;
  padding: 12px 0 18px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line-soft);
}
.page-sub { max-width: 62ch; margin: -12px 0 34px; color: var(--muted); font-size: 0.95rem; }

/* ── cards ──────────────────────────────────────────────────── */
.cards {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
  gap: 40px 24px;
}
.cards > li { min-width: 0; }
.cards a {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  transition: transform 0.35s var(--ease);
}
.cards a:hover { transform: translateY(-4px); }
.card-frame {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #0f1218;
  border: 1px solid var(--line-soft);
  border-radius: 3px;
  transition: border-color 0.3s var(--ease), box-shadow 0.35s var(--ease);
}
.cards img, .card-frame .ph { width: 100%; height: 100%; object-fit: cover; margin: 0; }
.cards img { transition: transform 0.7s var(--ease), opacity 0.3s var(--ease); }
.cards a:hover img { transform: scale(1.035); }
.card-frame .ph {
  display: grid;
  place-items: center;
  background:
    linear-gradient(140deg, rgba(125, 211, 252, 0.08), transparent 55%),
    var(--surface);
  color: rgba(242, 244, 247, 0.22);
  font-family: var(--mono);
  font-size: 1.6rem;
  letter-spacing: 0.12em;
}
.cards a:hover .card-frame {
  border-color: rgba(125, 211, 252, 0.4);
  box-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(125, 211, 252, 0.08);
}
.card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 8px;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(8, 10, 14, 0.78);
  border: 1px solid rgba(125, 211, 252, 0.28);
  border-radius: 2px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.cards .card-body { padding-top: 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.cards .card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.cards .card-meta .type { color: var(--ink-2); }
.cards .card-meta .sep { width: 14px; height: 1px; background: var(--line); }
.cards .card-meta .views { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cards h3 {
  font-size: 1.14rem;
  line-height: 1.38;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
  transition: color 0.2s var(--ease);
}
.cards a:hover h3 { color: var(--accent); }
.cards .card-sum {
  font-size: 0.87rem;
  line-height: 1.65;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cards p, .muted, .empty, time, small { color: var(--muted); }
time, small { font-size: 0.8rem; }
.empty {
  max-width: 560px;
  padding: 34px 24px;
  border: 1px dashed var(--line);
  border-radius: 3px;
  background: rgba(22, 25, 32, 0.5);
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  color: var(--muted-2);
}
.pager { display: flex; gap: 12px; margin-top: 52px; }
.pager .btn { align-self: auto; }

/* ── article ────────────────────────────────────────────────── */
.narrow { max-width: 640px; }
.narrow > p { margin-bottom: 18px; }
.lead { font-family: var(--serif); font-size: 1.22rem; line-height: 1.6; color: var(--ink-2); }
.post { max-width: 860px; margin: 0 auto; padding-top: 44px; }
.post h1 {
  font-size: clamp(1.9rem, 5.2vw, 3.6rem);
  line-height: 1.14;
  letter-spacing: -0.018em;
  margin: 10px 0 20px;
  font-weight: 800;
}
.post img { width: 100%; margin: 28px 0; }
.pre { white-space: pre-wrap; }
.body { margin: 30px 0 56px; font-size: 1.05rem; }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.64rem;
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 18px;
  margin-top: 22px;
  padding: 14px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.post-meta .byline { color: var(--ink-2); }
.post-meta time { color: var(--muted); font-size: inherit; }
.post .cover { margin-top: 30px; width: 100%; max-height: 86vh; object-fit: cover; border: 1px solid var(--line-soft); border-radius: 2px; }
.post-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
  padding-top: 28px;
  border-top: 1px solid var(--line-soft);
}
.related { max-width: 860px; margin: 80px auto 0; }
.post h1.page-title {
  font-size: clamp(2.2rem, 7.4vw, 4.2rem);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -0.012em;
  padding: 0 0 18px;
  margin: 0 0 24px;
  border-bottom: 1px solid var(--line-soft);
}
.page-title + .lead { margin-bottom: 28px; }
.post .muted + .lead { margin-top: 6px; }

/* ── forms, alerts, admin ───────────────────────────────────── */
.stack { display: flex; flex-direction: column; gap: 16px; margin: 20px 0; }
label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-2);
}
label small { color: var(--muted-2); letter-spacing: 0.02em; }
input, textarea, select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #0e1015;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.98rem;
  font-weight: 400;
  letter-spacing: 0;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}
input::placeholder, textarea::placeholder { color: var(--muted-2); }
input:hover, textarea:hover, select:hover { border-color: #303643; }
input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  background: #0f1319;
  box-shadow: 0 0 0 3px var(--accent-soft);
  outline: none;
}
textarea { resize: vertical; min-height: 90px; line-height: 1.65; }
select { appearance: none; padding-right: 36px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 19px) calc(50% + 2px), calc(100% - 13px) calc(50% + 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
select option { background: #141821; color: var(--ink); }
input[type="file"] { padding: 10px 12px; background: #0b0d12; color: var(--muted); font-size: 0.85rem; }
input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--surface-2);
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ink);
  -webkit-box-shadow: 0 0 0 60px #0e1015 inset;
  caret-color: var(--ink);
}
input[type="checkbox"], input[type="radio"] { width: auto; accent-color: var(--accent); }
.check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; line-height: 1.6; }
.check input { width: auto; margin-top: 5px; flex: none; }
.check a { color: var(--accent); text-decoration: underline; text-decoration-color: rgba(125, 211, 252, 0.4); }
fieldset {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 18px;
  margin: 0;
  background: rgba(22, 25, 32, 0.55);
}
legend {
  padding: 0 10px;
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.hp { position: absolute; left: -9999px; }
.notice, .alert {
  padding: 12px 16px;
  margin: 16px 0;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-size: 0.9rem;
}
.notice { background: rgba(125, 211, 252, 0.09); border-color: rgba(125, 211, 252, 0.32); color: #d8f1ff; }
.alert { background: rgba(255, 107, 107, 0.09); border-color: rgba(255, 107, 107, 0.38); color: #ffc4c4; }
details { margin-top: 40px; border-top: 1px solid var(--line-soft); padding-top: 18px; }
summary {
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
summary:hover { color: var(--accent); }

.box {
  display: block;
  padding: 20px;
  margin-bottom: 16px;
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  background: var(--surface);
  text-decoration: none;
}
.box h3 { margin: 8px 0 10px; font-size: 1.02rem; font-weight: 700; }
.reply {
  margin-top: 14px;
  padding: 12px 14px;
  background: rgba(125, 211, 252, 0.06);
  border-left: 2px solid var(--accent);
  border-radius: 0 3px 3px 0;
}
.admin-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.admin-nav a { color: var(--muted); transition: color 0.2s var(--ease); }
.admin-nav a:hover { color: var(--accent); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stats .box { margin: 0; transition: border-color 0.25s var(--ease), background 0.25s var(--ease); }
.stats .box:hover { border-color: rgba(125, 211, 252, 0.35); background: var(--surface-2); }
.stats b {
  display: block;
  font-family: var(--mono);
  font-size: 2.6rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin-bottom: 4px;
}
.stats .box { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.scroll { overflow-x: auto; margin-top: 24px; border: 1px solid var(--line-soft); border-radius: 4px; background: rgba(22, 25, 32, 0.45); }
table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
th { font-family: var(--mono); font-size: 0.62rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); background: rgba(255, 255, 255, 0.02); }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td, table tr:hover td { background: rgba(255, 255, 255, 0.018); }
td a { color: var(--accent); }
td a:hover { text-decoration: underline; }
.error { padding-top: 12vh; text-align: center; }
.error h1 { font-family: var(--mono); font-size: clamp(4rem, 20vw, 13rem); line-height: 1; font-weight: 600; letter-spacing: -0.05em; color: transparent; -webkit-text-stroke: 1.5px rgba(242, 244, 247, 0.4); margin-bottom: 8px; }
.error p { margin-bottom: 28px; color: var(--muted); }
.error .btn { align-self: center; display: inline-flex; }

/* ── footer ─────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(9, 10, 13, 0.9), var(--bg-deep));
  color: var(--muted);
  font-size: 0.8rem;
  padding: 56px var(--pad) 30px;
}
.foot-wrap {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}
.foot-brand .logo { font-size: 1.4rem; letter-spacing: 0.01em; display: inline-block; }
.foot-tag { margin-top: 14px; max-width: 44ch; color: var(--muted); line-height: 1.7; font-size: 0.82rem; }
.foot-meta {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.foot-mail { margin-top: 18px; }
.foot-mail a {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--ink-2);
  border-bottom: 1px solid rgba(125, 211, 252, 0.32);
  padding-bottom: 2px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.foot-mail a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.foot-links {
  justify-self: end;
  width: 100%;
  max-width: 440px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 32px;
}
.foot-label {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-2);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 12px;
}
footer .foot-nav { display: grid; grid-template-columns: 1fr; gap: 9px; }
footer .foot-nav a {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.5;
  transition: color 0.2s var(--ease);
}
footer .foot-nav a:hover { color: var(--accent); }
footer a { color: inherit; }
.foot-bottom {
  max-width: var(--max);
  margin: 40px auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.04em;
  color: var(--muted-2);
}

/* ── markdown body ──────────────────────────────────────────── */
.body { white-space: normal; line-height: 1.75; color: var(--ink-2); max-width: 72ch; }
.body > * + * { margin-top: 1.05em; }
.body > h2:first-child, .body > h3:first-child, .body > h4:first-child { margin-top: 0; }
.body h2 {
  font-size: clamp(1.35rem, 2.8vw, 1.72rem);
  line-height: 1.3;
  margin-top: 2.4em;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.body h2::after { content: ""; display: block; width: 42px; height: 1px; background: var(--accent); opacity: 0.55; margin-top: 12px; }
.body h3 { font-size: 1.16rem; margin-top: 1.9em; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.body h4 { font-size: 1rem; margin-top: 1.7em; color: var(--ink); letter-spacing: 0.02em; }
.body strong, .body b { color: var(--ink); font-weight: 700; }
.body ul, .body ol { padding-left: 1.35em; }
.body li + li { margin-top: 0.4em; }
.body li > ul, .body li > ol { margin-top: 0.4em; }
.body li::marker { color: var(--accent); }
.body blockquote {
  border-left: 2px solid var(--accent);
  padding: 14px 20px;
  background: rgba(125, 211, 252, 0.045);
  border-radius: 0 3px 3px 0;
  color: var(--ink-2);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.06rem;
}
.body blockquote p + p { margin-top: 0.8em; }
.body code {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line-soft);
  border-radius: 3px;
  padding: 0.1em 0.36em;
  font-size: 0.86em;
  color: #cbe9f8;
  font-family: var(--mono);
}
.body pre {
  background: #090a0d;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: #cbd5e1;
  padding: 18px 20px;
  overflow-x: auto;
  font-size: 0.84rem;
  line-height: 1.65;
}
.body pre code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }
.body a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: rgba(125, 211, 252, 0.4); }
.body a:hover { text-decoration-color: var(--accent); }
.body hr { border: 0; border-top: 1px solid var(--line-soft); margin: 2.6em 0; }
.body img { width: auto; max-width: 100%; height: auto; max-height: 84vh; margin: 1.8em auto; border: 1px solid var(--line-soft); border-radius: 3px; }
.body figure { margin: 1.9em 0; }
.body figure img { margin: 0; }
.body figcaption { margin-top: 10px; font-size: 0.72rem; letter-spacing: 0.06em; color: var(--muted-2); font-family: var(--mono); }
.body table { width: 100%; border-collapse: collapse; font-size: 0.9rem; margin: 1.6em 0; border: 1px solid var(--line-soft); }
.body thead th { background: rgba(255, 255, 255, 0.04); color: var(--ink-2); font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500; }
.body th, .body td { padding: 11px 12px; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: top; }
.body tbody tr:last-child td { border-bottom: 0; }
.body sup, .body sub { font-size: 0.75em; }
.body mark { background: rgba(125, 211, 252, 0.22); color: var(--ink); padding: 0.05em 0.25em; border-radius: 2px; }


/* ── editorial policy · contact lines ───────────────────────── */
.lead { font-family: var(--serif); font-size: 1.48rem; line-height: 1.5; letter-spacing: 0.004em; }
.policy-mail {
  margin: 28px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.policy-mail a { color: var(--accent); text-transform: none; letter-spacing: 0.03em; }
.policy-mail a:hover { text-decoration: underline; text-underline-offset: 3px; }
.policy-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 16px;
  margin: 36px 0 0;
  padding: 18px 20px;
  border: 1px solid var(--line-soft);
  border-left: 2px solid var(--accent);
  border-radius: 0 3px 3px 0;
  background: rgba(125, 211, 252, 0.045);
}
.policy-contact span {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.policy-contact a {
  font-family: var(--mono);
  font-size: 0.84rem;
  letter-spacing: 0.03em;
  color: var(--ink);
  border-bottom: 1px solid rgba(125, 211, 252, 0.4);
  padding-bottom: 2px;
}
.policy-contact a:hover { color: var(--accent); border-bottom-color: var(--accent); }


/* ── operator card (about · editorial policy · terms · privacy) ── */
.studio-card {
  margin: 28px 0 34px;
  padding: 20px 22px 18px;
  border: 1px solid var(--line-soft);
  border-left: 2px solid var(--accent);
  border-radius: 0 3px 3px 0;
  background: rgba(125, 211, 252, 0.04);
}
.studio-intro {
  font-family: var(--serif);
  font-size: 1.18rem;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 68ch;
}
.studio-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px 24px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}
.studio-facts dt {
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.studio-facts dd {
  margin-top: 5px;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.02em;
  color: var(--ink-2);
}
.studio-facts dd a { color: var(--accent); }
.studio-facts dd a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ── responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .foot-wrap { grid-template-columns: 1fr; gap: 30px; }
  .foot-links { justify-self: start; max-width: none; }
}
@media (max-width: 700px) {
  main { padding-bottom: 72px; }
  .top { gap: 10px 18px; padding: 12px var(--pad); }
  .top nav { order: 3; width: 100%; gap: 18px; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; scrollbar-width: none; }
  .top nav::-webkit-scrollbar { display: none; }
  .hero { padding-top: 26px; }
  .hero h1 { padding: 32px 0 6px; }
  .hero-foot { align-items: flex-start; padding: 22px 0 24px; }
  .hero-spec > div { border-right: 0; border-bottom: 1px solid var(--line-soft); padding-right: 0; }
  .hero-spec > div:last-child { border-bottom: 0; }
  .section-head { margin-top: 52px; }
  .cards { gap: 32px 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }  .post { padding-top: 30px; }
  .body table { font-size: 0.84rem; }
  .body blockquote { font-size: 1rem; padding: 12px 16px; }
  .eyebrow { padding-top: 32px; }
  footer { padding-top: 44px; }
  .foot-links { gap: 22px 24px; }
}
@media (max-width: 560px) {
  .studio-card { padding: 16px 16px 14px; }
  .studio-intro { font-size: 1.06rem; }
  .hero-spec { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-spec > div { padding: 13px 12px 14px 0; border-bottom: 1px solid var(--line-soft); }
  .hero-spec > div:nth-child(odd) { border-right: 1px solid var(--line-soft); padding-right: 12px; }
  .hero-spec > div:nth-child(even) { border-right: 0; }
  .hero-spec > div:nth-last-child(-n+2) { border-bottom: 0; }
  .home-intro { font-size: 0.98rem; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; }
  .card-frame { border-radius: 2px; }
  .cards h3 { font-size: 0.94rem; line-height: 1.4; }
  .cards .card-sum { font-size: 0.78rem; }
  .cards .card-meta { font-size: 0.56rem; gap: 4px 8px; letter-spacing: 0.1em; }
  .cards .card-meta .sep { display: none; }
  .cards .card-meta .type { display: none; }
  .cards .card-meta time { white-space: nowrap; }
  .card-badge { font-size: 0.5rem; padding: 3px 6px; top: 7px; left: 7px; }
  .cards .card-body { padding-top: 10px; gap: 6px; }
  .pager .btn { flex: 1; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
}

/* ── 본문 표: 좁은 열에서 단어가 쪼개지지 않도록 ─────────────── */
.body table { font-size: 0.84rem; }
.body table th, .body table td { padding: 10px 12px; vertical-align: top; overflow-wrap: break-word; }

.body table th:first-child, .body table td:first-child { white-space: nowrap; }

/* ── 본문 표 · 모바일(≤640px): 가로 스크롤 없이 카드로 펼침 ────
   util.js 가 <td> 에 넣은 data-label 을 열 이름으로 보여 준다. */
@media (max-width: 640px) {
  .body table { display: block; width: 100%; overflow: visible; white-space: normal; border: 0; border-collapse: separate; margin: 1.7em 0; }
  .body table thead { display: none; }
  .body table tbody { display: block; width: 100%; }
  .body table tbody tr {
    display: block;
    width: 100%;
    margin-bottom: 12px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface);
  }
  .body table tbody tr:last-child { margin-bottom: 0; }
  .body table tbody tr:hover td { background: none; }
  .body table tbody td {
    display: block;
    width: 100%;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0;
    white-space: normal;
    text-align: left;
    overflow-wrap: break-word;
  }
  .body table tbody td:first-child { white-space: normal; }
  .body table tbody td:last-child { border-bottom: 0; }
  .body table tbody td::before {
    content: attr(data-label);
    display: block;
    font-family: var(--mono);
    font-size: 0.72rem;
    line-height: 1.4;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 2px;
  }
  .body table tbody td:not([data-label])::before,
  .body table tbody td[data-label=""]::before { content: none; }
  /* 한글 열 이름은 자간·고정폭 글꼴을 쓰면 글자가 흩어져 보인다 */
  html[lang="ko"] .body table tbody td::before { font-family: var(--sans); letter-spacing: 0; text-transform: none; }
}

/* ── post cover ────────────────────────────────────────────── */
.post .cover { max-height: none; object-fit: contain; background: var(--surface); }
@media (min-width: 900px) { .post .cover { max-width: 760px; margin-left: auto; margin-right: auto; } }

/* ── focus areas · 홈 03 ────────────────────────────────────── */
.focus-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.focus-card {
  display: flex;
  flex-direction: column;
  gap: 26px;
  min-height: 248px;
  padding: 20px 20px 18px;
  background: var(--surface);
  transition: background 0.25s var(--ease);
}
.focus-card:hover { background: var(--surface-2); }
.focus-card:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.focus-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.focus-top .no { color: var(--accent); opacity: 0.85; }
.focus-card h3 {
  font-size: 1.02rem;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.focus-card p {
  margin-top: 10px;
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--muted);
}
.focus-go {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
  transition: color 0.2s var(--ease);
}
.focus-go > span { transition: transform 0.25s var(--ease); }
.focus-card:hover .focus-go { color: var(--accent); }
.focus-card:hover .focus-go > span { transform: translateX(3px); }

/* ── faq · 홈 04 ───────────────────────────────────────────── */
.faq { border-top: 1px solid var(--line); }
.faq details { margin-top: 0; border-top: 0; padding-top: 0; border-bottom: 1px solid var(--line); transition: background 0.25s var(--ease); }
.faq details[open] { background: rgba(22, 25, 32, 0.55); }
.faq summary {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 20px 4px 20px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--sans);
  font-size: 1rem;
  letter-spacing: normal;
  text-transform: none;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::marker { content: ""; }
.faq summary::after {
  content: "+";
  margin-left: auto;
  padding-left: 16px;
  font-family: var(--mono);
  font-size: 0.95rem;
  line-height: 1;
  color: var(--muted-2);
  transition: color 0.2s var(--ease);
}
.faq details[open] summary::after { content: "−"; color: var(--accent); }
.faq .qno {
  flex: none;
  width: 26px;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  color: var(--muted-2);
}
.faq .q {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.005em;
  color: var(--ink);
  transition: color 0.2s var(--ease);
}
.faq summary:hover .q { color: var(--accent); }
.faq details[open] summary:hover .q { color: var(--ink); }
.faq .a { padding: 0 48px 24px 42px; }
.faq .a p {
  max-width: 74ch;
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--muted);
}
.faq-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  padding-top: 20px;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.faq-links a { color: var(--muted); border-bottom: 1px solid transparent; padding-bottom: 2px; transition: color 0.2s var(--ease), border-color 0.2s var(--ease); }
.faq-links a:hover { color: var(--accent); border-bottom-color: currentColor; }

/* 한국어: 모노스페이스 고정폭·자간에서 한글이 흩어져 보이는 문제 보정 */
html[lang="ko"] .focus-top { font-family: var(--sans); font-size: 0.68rem; letter-spacing: 0; }
html[lang="ko"] .focus-top .no { font-family: var(--mono); letter-spacing: 0.1em; }

@media (max-width: 900px) {
  .focus-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .focus-card { min-height: 232px; }
}
@media (min-width: 901px) {
  /* 4열 그리드에서 제목이 두 줄인 카드와 설명 시작선을 맞춘다 */
  .focus-card h3 { min-height: 2.72em; }
}
@media (max-width: 560px) {
  .focus-grid { grid-template-columns: 1fr; }
  .focus-card { min-height: 0; gap: 18px; padding: 18px 16px 16px; }
  .focus-card h3 { font-size: 0.98rem; }
  .faq summary { gap: 12px; padding: 18px 0; }
  .faq .q { font-size: 0.94rem; }
  .faq .a { padding: 0 6px 22px 38px; }
  .faq .a p { font-size: 0.88rem; }
}

/* ── admin dashboard ────────────────────────────────────────── */
.dash-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 0 0 28px; }
.btn.accent { background: var(--accent-soft); border-color: rgba(125, 211, 252, 0.45); color: var(--accent); }
.btn.accent:hover, .btn.accent:focus-visible { background: var(--accent); border-color: var(--accent); color: #08131a; }
.stats .sub { display: block; margin-top: 7px; font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.08em; text-transform: none; color: var(--muted-2); }
h2 small a { color: var(--accent); }
h2 small a:hover { text-decoration: underline; }
