/* ==========================================================================
   PickEarly · 픽얼리 — 얼리어답터 연구소
   Theme stylesheet
   ========================================================================== */

/* ---------- tokens ---------- */
:root {
  --paper: #fbf9f5;
  --paper-2: #f2eee5;
  --paper-3: #e9e3d6;
  --ink: #15171b;
  --ink-2: #3c4046;
  --ink-3: #6d737b;
  --ink-4: #949aa2;
  --line: #e2dccf;
  --line-soft: #ece7dc;
  --accent: #e2502b;
  --accent-soft: #fdeee8;
  --accent-ink: #b23a1c;
  --cool: #1f5f55;
  --cool-soft: #e8f2ef;
  --shadow-sm: 0 1px 2px rgba(21, 23, 27, 0.05), 0 2px 8px rgba(21, 23, 27, 0.04);
  --shadow-md: 0 2px 6px rgba(21, 23, 27, 0.06), 0 14px 34px rgba(21, 23, 27, 0.08);
  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1140px;
  --body-font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", "Segoe UI", Roboto, system-ui, sans-serif;
  --mono: "SFMono-Regular", ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #100f0e;
    --paper-2: #181613;
    --paper-3: #221f1a;
    --ink: #f4f0e7;
    --ink-2: #cfc9bd;
    --ink-3: #9d988d;
    --ink-4: #777268;
    --line: #2c2924;
    --line-soft: #232019;
    --accent: #ff6a45;
    --accent-soft: #2a1a14;
    --accent-ink: #ff8a6b;
    --cool: #7dc2b2;
    --cool-soft: #16211f;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 2px 6px rgba(0, 0, 0, 0.5), 0 18px 40px rgba(0, 0, 0, 0.45);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  word-break: keep-all;
  overflow-wrap: break-word;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body-font);
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: -0.014em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #fff; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

.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;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--paper);
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  min-width: 0;
}

.brand-mark {
  width: 30px;
  height: 30px;
  flex: none;
  color: var(--accent);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.035em;
}
.brand-name .thin { font-weight: 500; color: var(--ink-3); }
.brand-sub {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--ink-3);
  text-transform: uppercase;
  margin-top: 3px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav a {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-2);
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}
.nav a:hover { background: var(--paper-2); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--accent); }

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease);
}
.header-cta:hover { background: var(--accent); transform: translateY(-1px); }

@media (max-width: 720px) {
  .header-inner { height: 60px; gap: 8px; }
  .brand-sub { display: none; }
  .nav a { padding: 7px 9px; font-size: 13.5px; }
  .header-cta { display: none; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
  background:
    radial-gradient(900px 420px at 88% -30%, color-mix(in srgb, var(--accent) 13%, transparent), transparent 70%),
    radial-gradient(700px 400px at -10% 110%, color-mix(in srgb, var(--cool) 10%, transparent), transparent 70%),
    var(--paper);
}
.hero-inner {
  padding-block: 74px 58px;
  position: relative;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: currentColor;
  display: inline-block;
}
.hero h1 {
  margin: 20px 0 0;
  font-size: clamp(34px, 6vw, 62px);
  line-height: 1.12;
  letter-spacing: -0.045em;
  font-weight: 800;
  max-width: 16ch;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero p.lede {
  margin: 22px 0 0;
  max-width: 46ch;
  font-size: clamp(15.5px, 1.6vw, 18.5px);
  line-height: 1.72;
  color: var(--ink-2);
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 30px;
  font-size: 13px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta b { color: var(--ink); font-weight: 700; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero-inner { padding-block: 48px 42px; }
}

/* "study" panel — lab-like card */
.lab-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper-2);
  background: color-mix(in srgb, var(--paper-2) 55%, var(--paper));
  padding: 22px 22px 20px;
  box-shadow: var(--shadow-sm);
}
.lab-panel h2 {
  margin: 0 0 4px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 700;
}
.lab-panel .lab-title {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
}
.lab-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.lab-list li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px dashed var(--line);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-2);
}
.lab-list li:first-child { border-top: 0; padding-top: 2px; }
.lab-list .num {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--accent);
  font-weight: 700;
  padding-top: 2px;
}
.lab-list b { color: var(--ink); font-weight: 700; }

/* ---------- section heading ---------- */
.section { padding: 56px 0 12px; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.section-head h2 {
  margin: 0;
  font-size: clamp(21px, 2.6vw, 28px);
  letter-spacing: -0.04em;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-head h2 .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}
.section-head p { margin: 0; color: var(--ink-3); font-size: 14px; }

/* ---------- featured card ---------- */
.featured {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
.featured:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--paper-3);
}
.featured-media { position: relative; aspect-ratio: 16 / 9; background: var(--paper-2); overflow: hidden; }
.featured-media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.featured-body { display: flex; flex-direction: column; padding: 30px 36px 32px; }
.featured p.excerpt { max-width: 62ch; margin-bottom: 20px; }
.featured-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 4px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}
.featured h3 {
  margin: 12px 0 0;
  font-size: clamp(22px, 2.6vw, 31px);
  line-height: 1.34;
  letter-spacing: -0.04em;
  font-weight: 800;
}
.featured p.excerpt {
  margin: 0 0 22px;
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.72;
}
.featured .spacer { margin-top: auto; }
@media (max-width: 860px) {
  .featured-media { aspect-ratio: 16 / 10; }
  .featured-body { padding: 20px 20px 22px; }
}

/* ---------- chips / filters ---------- */
.toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s var(--ease);
  white-space: nowrap;
}
.chip:hover { border-color: var(--ink-4); color: var(--ink); }
.chip .count {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-4);
  font-variant-numeric: tabular-nums;
}
.chip[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.chip[aria-pressed="true"] .count { color: var(--paper); opacity: 0.65; }

.search {
  margin-left: auto;
  position: relative;
  display: flex;
  align-items: center;
  min-width: 230px;
}
.search svg {
  position: absolute;
  left: 13px;
  width: 16px; height: 16px;
  color: var(--ink-4);
  pointer-events: none;
}
.search input {
  width: 100%;
  padding: 10px 14px 10px 37px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.search input::placeholder { color: var(--ink-4); }
.search input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
@media (max-width: 640px) {
  .search { min-width: 0; width: 100%; margin-left: 0; }
}

/* ---------- post grid ---------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}
@media (max-width: 780px) { .post-grid { grid-template-columns: 1fr; gap: 20px; } }

.post-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--paper-3);
}
.post-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--paper-2);
  overflow: hidden;
}
.post-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.post-card:hover .post-thumb img { transform: scale(1.035); }
.post-thumb .thumb-fallback {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--mono);
  font-size: clamp(30px, 6vw, 56px);
  font-weight: 700;
  letter-spacing: -0.05em;
  color: color-mix(in srgb, var(--accent) 70%, var(--ink));
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, color-mix(in srgb, var(--line) 60%, transparent) 14px 15px),
    var(--paper-2);
}
.post-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.post-body h3 {
  margin: 12px 0 10px;
  font-size: 20px;
  line-height: 1.42;
  letter-spacing: -0.035em;
  font-weight: 750;
}
.post-body p {
  margin: 0 0 18px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink-2);
}
.post-body .spacer { margin-top: auto; }

/* ---------- badges / meta ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: var(--paper-2);
  color: var(--ink-2);
  border: 1px solid var(--line);
}
.badge.cat-coupang { background: var(--accent-soft); color: var(--accent-ink); border-color: color-mix(in srgb, var(--accent) 26%, transparent); }
.badge.cat-ali { background: var(--cool-soft); color: var(--cool); border-color: color-mix(in srgb, var(--cool) 26%, transparent); }
.badge.new { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 12.5px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.meta-row .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-4); }

.more-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--accent);
}
.more-link .arrow { transition: transform 0.2s var(--ease); display: inline-block; }
.post-card:hover .more-link .arrow,
.featured:hover .more-link .arrow { transform: translateX(4px); }

.empty-state {
  display: none;
  padding: 56px 24px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--ink-3);
  font-size: 14.5px;
}
.empty-state.show { display: block; }

/* ---------- principles strip ---------- */
.principles {
  margin: 64px 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper-2) 45%, var(--paper));
}
.principles-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.principle {
  padding: 28px 26px;
  border-left: 1px solid var(--line-soft);
}
.principle:first-child { border-left: 0; padding-left: 0; }
.principle .k {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.1em;
}
.principle h3 { margin: 8px 0 6px; font-size: 16px; letter-spacing: -0.03em; }
.principle p { margin: 0; font-size: 13.5px; color: var(--ink-3); line-height: 1.65; }
@media (max-width: 760px) {
  .principles-inner { grid-template-columns: 1fr; }
  .principle { border-left: 0; border-top: 1px solid var(--line-soft); padding: 20px 0; }
  .principle:first-child { border-top: 0; }
}

/* ---------- footer ---------- */
.site-footer {
  margin-top: 72px;
  padding: 44px 0 40px;
  border-top: 1px solid var(--line);
  background: var(--paper-2);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 34px;
}
.site-footer .brand { margin: 0 0 12px; }
.site-footer p { margin: 0; font-size: 13px; line-height: 1.75; color: var(--ink-3); max-width: 40ch; }
.footer-col h4 {
  margin: 0 0 10px;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-4);
  font-weight: 700;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.footer-col a { font-size: 13.5px; color: var(--ink-2); }
.footer-col a:hover { color: var(--accent); }
.disclosure {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.8;
  color: var(--ink-3);
}
.disclosure b { color: var(--ink-2); font-weight: 700; }
@media (max-width: 760px) {
  .footer-inner { grid-template-columns: 1fr; gap: 26px; }
}

/* ==========================================================================
   Article page
   ========================================================================== */
.progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: var(--accent);
  z-index: 100;
  transition: width 0.1s linear;
}

.article-head {
  border-bottom: 1px solid var(--line-soft);
  background:
    radial-gradient(760px 300px at 82% -40%, color-mix(in srgb, var(--accent) 11%, transparent), transparent 72%),
    var(--paper);
  padding: 40px 0 40px;
}
.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--ink-3);
  margin-bottom: 22px;
}
.crumbs a:hover { color: var(--accent); }
.crumbs .sl { color: var(--ink-4); }

.article-title {
  margin: 14px 0 0;
  font-size: clamp(27px, 4.1vw, 44px);
  line-height: 1.28;
  letter-spacing: -0.045em;
  font-weight: 800;
  max-width: 22ch;
  text-wrap: balance;
}
.article-lede {
  margin: 18px 0 0;
  max-width: 60ch;
  font-size: clamp(15.5px, 1.5vw, 17.5px);
  line-height: 1.75;
  color: var(--ink-2);
}
.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 26px;
  font-size: 13px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.article-meta .author { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); font-weight: 600; }
.author-chip {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink);
  color: var(--paper);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
}

.notice {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  margin-top: 28px;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent);
  background: var(--accent-soft);
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--accent-ink);
  max-width: 72ch;
}
.notice svg { flex: none; width: 15px; height: 15px; margin-top: 3px; }

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 236px;
  gap: 60px;
  padding-block: 46px 20px;
  align-items: start;
}
@media (max-width: 1000px) {
  .article-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .article-layout > * { min-width: 0; }
  .toc { display: none; }
}

/* ---------- prose ---------- */
.prose { max-width: 720px; font-size: 17px; line-height: 1.82; letter-spacing: -0.012em; word-break: keep-all; overflow-wrap: break-word; }
.prose > *:first-child { margin-top: 0; }

.prose h1 { display: none; }

.prose h2 {
  margin: 62px 0 18px;
  font-size: clamp(21px, 2.5vw, 27px);
  line-height: 1.4;
  letter-spacing: -0.04em;
  font-weight: 800;
  padding-top: 26px;
  border-top: 1px solid var(--line-soft);
  scroll-margin-top: 92px;
}
.prose h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 8px; }

.prose h3 {
  margin: 40px 0 12px;
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.45;
  letter-spacing: -0.03em;
  font-weight: 750;
  scroll-margin-top: 92px;
}
.prose h4 { margin: 28px 0 10px; font-size: 17px; letter-spacing: -0.02em; }

.prose p { margin: 0 0 20px; color: var(--ink-2); }
.prose strong { color: var(--ink); font-weight: 750; }
.prose em {
  font-style: normal;
  color: var(--ink);
  font-weight: 500;
}
.prose p.dateline {
  font-size: 14px;
  line-height: 1.72;
  color: var(--ink-3);
  border-left: 2px solid var(--line);
  padding-left: 13px;
  margin: 0 0 26px;
}
.prose p.dateline em { color: var(--ink-3); font-weight: 400; }
.prose del { color: var(--ink-4); }
.prose a {
  color: var(--accent-ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent);
  transition: text-decoration-color 0.2s var(--ease), color 0.2s var(--ease);
  word-break: break-word;
}
.prose a:hover { color: var(--accent); text-decoration-color: currentColor; }

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

.prose ul,
.prose ol { margin: 0 0 22px; padding-left: 1.2em; }
.prose li { margin: 8px 0; color: var(--ink-2); padding-left: 4px; }
.prose li::marker { color: var(--accent); font-weight: 700; }
.prose ul li::marker { font-size: 0.85em; }

.prose blockquote {
  margin: 30px 0;
  padding: 18px 22px 18px 22px;
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
  background: var(--paper-2);
  background: color-mix(in srgb, var(--paper-2) 70%, var(--paper));
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.75;
}
.prose blockquote p { margin: 0; color: inherit; }
.prose blockquote p + p { margin-top: 10px; }
.prose blockquote strong { color: var(--ink); }
.prose blockquote ul { margin: 8px 0 0; font-size: 14.5px; }

.prose img {
  margin: 34px 0;
  border-radius: 12px;
  border: 1px solid var(--line-soft);
  background: var(--paper-2);
  width: 100%;
}

.prose code {
  word-break: break-all;
  font-family: var(--mono);
  font-size: 0.87em;
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
  color: var(--ink);
  word-break: break-word;
}

/* tables */
.table-wrap {
  margin: 30px 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  -webkit-overflow-scrolling: touch;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.6;
  min-width: 440px;
}
.prose thead th {
  background: color-mix(in srgb, var(--paper-2) 80%, var(--paper));
  text-align: left;
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.01em;
  color: var(--ink);
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.prose tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
  color: var(--ink-2);
}
.prose tbody tr:last-child td { border-bottom: 0; }
.prose tbody tr:nth-child(even) { background: color-mix(in srgb, var(--paper-2) 32%, transparent); }
.prose tbody td strong { color: var(--ink); }

/* CTA (from 👉 lines) */
.cta-line { margin: 30px 0 !important; }
.cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 22px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--paper) !important;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none !important;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}
.cta:hover { background: var(--accent); transform: translateY(-2px); }
.cta .cta-arrow { transition: transform 0.2s var(--ease); font-weight: 400; }
.cta:hover .cta-arrow { transform: translateX(4px); }
.cta-note { display: block; margin-top: 9px; font-size: 12px; color: var(--ink-4); }

/* link list (구매 링크 section) */
.prose ul.link-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.prose ul.link-list li {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  font-size: 14.5px;
  line-height: 1.6;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.prose ul.link-list li:hover { border-color: var(--paper-3); box-shadow: var(--shadow-sm); }
.prose ul.link-list .ll-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.prose ul.link-list .ll-label { font-weight: 700; color: var(--ink); }
.prose ul.link-list .ll-label code { font-size: 0.82em; }
.prose .ll-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper) !important;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background 0.18s var(--ease), transform 0.18s var(--ease);
}
.prose .ll-btn:hover { background: var(--accent); transform: translateY(-1px); }
.prose ul.link-list .ll-url {
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-4);
  word-break: break-all;
}

/* 접이식 메모 */
.prose details.note-details {
  margin: 26px 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--paper-2) 45%, var(--paper));
  font-size: 14px;
}
.prose details.note-details > summary {
  cursor: pointer;
  list-style: none;
  padding: 13px 16px;
  font-weight: 650;
  font-size: 13.5px;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  gap: 8px;
}
.prose details.note-details > summary::-webkit-details-marker { display: none; }
.prose details.note-details > summary::before {
  content: "+";
  font-family: var(--mono);
  color: var(--accent);
  font-weight: 700;
}
.prose details.note-details[open] > summary::before { content: "−"; }
.prose details.note-details .nd-caret { margin-left: auto; color: var(--ink-4); font-size: 11px; }
.prose details.note-details .note-details-body {
  padding: 0 16px 14px;
  border-top: 1px dashed var(--line);
  margin-top: 2px;
  padding-top: 12px;
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.7;
}
.prose details.note-details .note-details-body p { margin: 0 0 10px; color: inherit; font-size: inherit; }
.prose details.note-details .note-details-body ul { margin: 0; padding-left: 1.1em; }
.prose details.note-details .note-details-body li { font-size: inherit; margin: 5px 0; }

/* figure */
.prose figure { margin: 34px auto; max-width: 600px; }
.prose figure img { margin: 0; }
.prose figcaption {
  margin-top: 9px;
  font-size: 12.5px;
  color: var(--ink-4);
  text-align: center;
  letter-spacing: -0.01em;
}

/* 출처 구획 */
.prose h2.sources-h {
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  border-top: 1px solid var(--line);
  padding-top: 22px;
  margin-top: 56px;
}
.prose .sources { font-size: 13px; color: var(--ink-3); }
.prose .sources ul { padding-left: 1.1em; }
.prose .sources li { font-size: 13px; line-height: 1.65; margin: 4px 0; }
.prose .sources li::marker { color: var(--ink-4); }
.prose .sources p { font-size: 12.5px; color: var(--ink-4); line-height: 1.7; }
.prose .sources hr { display: none; }

/* 3줄 요약 */
.takeaways ol { padding-left: 1.05em; }
.takeaways li::marker { color: var(--accent); font-weight: 700; font-size: 0.9em; }
.takeaways b { color: var(--ink); font-weight: 750; }

/* article end */
.article-end {
  margin: 56px 0 0;
  padding: 26px 0 0;
  border-top: 1px solid var(--line);
}
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 26px; }
.tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
}
.share-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.share-row .label { font-size: 12.5px; color: var(--ink-3); margin-right: 2px; }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.18s var(--ease);
}
.btn-ghost:hover { border-color: var(--ink-4); color: var(--ink); background: var(--paper-2); }
.btn-ghost svg { width: 15px; height: 15px; }

/* toc */
.toc {
  position: sticky;
  top: 92px;
  font-size: 13px;
  border-left: 1px solid var(--line);
  padding-left: 18px;
}
.toc .toc-title {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-4);
  font-weight: 700;
  margin-bottom: 12px;
}
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.toc li { margin: 0; }
.toc a {
  display: block;
  padding: 6px 0 6px 10px;
  margin-left: -19px;
  border-left: 2px solid transparent;
  color: var(--ink-3);
  line-height: 1.45;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.toc a:hover { color: var(--ink); }
.toc a.active { color: var(--accent); border-left-color: var(--accent); font-weight: 650; }

/* mobile toc */
.mobile-toc { display: none; }
@media (max-width: 1000px) {
  .mobile-toc {
    display: block;
    margin: 0 0 22px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--paper-2);
    font-size: 14px;
  }
  .mobile-toc > summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 13px 16px;
    font-size: 13px;
    font-weight: 700;
    color: var(--ink-2);
    letter-spacing: 0.02em;
  }
  .mobile-toc > summary::-webkit-details-marker { display: none; }
  .mobile-toc ol {
    margin: 0;
    padding: 4px 16px 14px 2.1em;
    display: grid;
    gap: 6px;
    border-top: 1px dashed var(--line);
  }
  .mobile-toc a { color: var(--ink-2); font-size: 13.5px; line-height: 1.5; }
}

/* related */
.related {
  margin-top: 64px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}
.related h2 {
  margin: 0 0 20px;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 700;
}
.related-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  transition: all 0.2s var(--ease);
}
.related-card:hover { border-color: var(--paper-3); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.related-card .rc-thumb {
  width: 104px;
  aspect-ratio: 1;
  flex: none;
  border-radius: 9px;
  overflow: hidden;
  background: var(--paper-2);
}
.related-card .rc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.related-card .rc-body { min-width: 0; }
.related-card h3 { margin: 5px 0 0; font-size: 16.5px; line-height: 1.45; letter-spacing: -0.03em; }
@media (max-width: 560px) {
  .article-title { max-width: none; }
  .related-card .rc-thumb { width: 76px; }
}

/* ==========================================================================
   About page
   ========================================================================== */
.page-head {
  padding: 56px 0 34px;
  border-bottom: 1px solid var(--line-soft);
}
.page-head h1 {
  margin: 12px 0 0;
  font-size: clamp(30px, 5vw, 50px);
  letter-spacing: -0.045em;
  line-height: 1.15;
  font-weight: 800;
}
.page-head p { margin: 16px 0 0; color: var(--ink-2); max-width: 56ch; font-size: 16px; }

.about-body { max-width: 720px; padding: 44px 0 20px; }
.about-body h2 {
  margin: 40px 0 14px;
  font-size: 21px;
  letter-spacing: -0.035em;
}
.about-body p { color: var(--ink-2); margin: 0 0 18px; }
.about-body ul { padding-left: 1.2em; color: var(--ink-2); }
.about-body li { margin: 8px 0; }
.about-body li::marker { color: var(--accent); }
.about-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 28px 0;
}
.fact {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  background: var(--paper);
}
.fact .k { font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-4); font-weight: 700; }
.fact .v { margin-top: 6px; font-size: 15px; font-weight: 650; letter-spacing: -0.02em; }
@media (max-width: 560px) { .about-facts { grid-template-columns: 1fr; } }

/* ---------- utility ---------- */
.center { text-align: center; }
.stack-20 { margin-top: 20px; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
