/* Stargate Korea — tokens follow blog.stargateedu.co.kr (bg #F7F9FC, ink #172033) with an English type stack. */
:root {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --ink: #172033;
  --ink-2: #4a5568;
  --line: #e3e8f0;
  --brand: #1f3a8a;
  --brand-ink: #ffffff;
  --accent: #f4c24d;
  --chip: #eef2fb;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(23, 32, 51, 0.04), 0 6px 20px rgba(23, 32, 51, 0.06);
  --font: 'Inter', 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1522;
    --surface: #161e2e;
    --ink: #e7ecf5;
    --ink-2: #a3aec2;
    --line: #26314a;
    --brand: #7b9cff;
    --brand-ink: #0f1522;
    --chip: #1d2840;
    --shadow: none;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.65 var(--font); }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(720px, 100% - 32px); }
.muted { color: var(--ink-2); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; z-index: 10; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; letter-spacing: 0.06em; font-size: 15px; }
.brand b { font-weight: 800; color: var(--brand); }
.brand:hover { text-decoration: none; }
.star { color: var(--accent); font-size: 20px; line-height: 1; }
.site-nav { display: flex; gap: 22px; }
.site-nav a { color: var(--ink-2); font-weight: 500; font-size: 15px; }
.site-nav a[aria-current] { color: var(--ink); font-weight: 700; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); color: var(--ink); border-radius: 10px; padding: 6px 12px; font: inherit; font-size: 14px; }
@media (max-width: 820px) {
  .menu-btn { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; gap: 0; background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 10px 0; border-bottom: 1px solid var(--line); }
}

/* Hero */
.hero { padding: 72px 0 48px; border-bottom: 1px solid var(--line); background: radial-gradient(900px 300px at 85% -10%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%); }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 12px; font-weight: 700; color: var(--brand); margin: 0 0 8px; }
.hero h1 { font-size: clamp(32px, 5.5vw, 56px); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 16px; max-width: 16ch; }
.lead { font-size: 18px; color: var(--ink-2); max-width: 60ch; margin: 0; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.btn { display: inline-block; background: var(--brand); color: var(--brand-ink); padding: 12px 18px; border-radius: 12px; font-weight: 600; }
.btn:hover { text-decoration: none; opacity: 0.92; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }

/* Sections */
.section { padding: 48px 0; }
.section-head { margin-bottom: 22px; }
.section-head h1, .section-head h2 { margin: 0; font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.01em; }
.section-head .lead { margin-top: 8px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card h3 { font-size: 19px; line-height: 1.35; margin: 10px 0 8px; }
.card h3 a { color: var(--ink); }
.card p { margin: 0 0 12px; color: var(--ink-2); font-size: 15px; }
.card .meta { margin-top: auto; margin-bottom: 0; font-size: 13px; }
.cat-chip { align-self: flex-start; background: var(--chip); color: var(--ink); font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.topic { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 4px; color: var(--ink); }
.topic:hover { text-decoration: none; border-color: var(--brand); }
.ti { font-size: 24px; }
.topic .muted { font-size: 14px; }
.count { font-size: 12px; color: var(--brand); font-weight: 600; margin-top: 6px; }
.channels { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.channel { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 44px 18px 18px; display: flex; flex-direction: column; color: var(--ink); }
.channel:hover { text-decoration: none; border-color: var(--brand); }
.channel .arrow { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--brand); }
.empty { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); padding: 24px; color: var(--ink-2); }

/* Post */
.post { padding: 40px 0 24px; }
.crumbs { font-size: 13px; color: var(--ink-2); margin-bottom: 14px; }
.post h1 { font-size: clamp(28px, 4.2vw, 42px); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 12px; }
.meta { color: var(--ink-2); font-size: 14px; }
.dek { font-size: 19px; color: var(--ink-2); border-left: 3px solid var(--accent); padding-left: 14px; margin: 20px 0 8px; }
.prose { font-size: 17px; }
.prose h2 { font-size: 24px; margin: 40px 0 10px; letter-spacing: -0.01em; }
.prose h3 { font-size: 19px; margin: 28px 0 8px; }
.prose p, .prose ul, .prose ol { margin: 0 0 18px; }
.prose li { margin-bottom: 6px; }
.prose blockquote { margin: 24px 0; padding: 14px 18px; background: var(--chip); border-radius: 12px; color: var(--ink); }
.prose blockquote p { margin: 0; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.tags span { background: var(--chip); border-radius: 999px; padding: 4px 10px; font-size: 13px; color: var(--ink-2); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 32px; padding: 40px 0 28px; background: var(--surface); }
.foot { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; }
.foot nav { display: flex; flex-direction: column; gap: 6px; }
.foot h2 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; margin: 0 0 6px; color: var(--ink-2); }
.foot nav a { color: var(--ink); font-size: 15px; }
.legal { font-size: 13px; margin-top: 28px; }
@media (max-width: 720px) { .foot { grid-template-columns: 1fr 1fr; } .foot > div:first-child { grid-column: 1 / -1; } }

/* Economy */
.hero.econ { background: radial-gradient(900px 300px at 85% -10%, color-mix(in srgb, var(--brand) 18%, transparent), transparent 70%); }
.scale { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.card-top { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
.verdict { display: inline-block; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; border: 1px solid transparent; white-space: nowrap; }
.v-good { background: color-mix(in srgb, #1f9d55 14%, transparent); color: #157a42; border-color: color-mix(in srgb, #1f9d55 35%, transparent); }
.v-mid { background: color-mix(in srgb, #d69e2e 16%, transparent); color: #946200; border-color: color-mix(in srgb, #d69e2e 40%, transparent); }
.v-neutral { background: var(--chip); color: var(--ink-2); border-color: var(--line); }
.v-bad { background: color-mix(in srgb, #e53e3e 12%, transparent); color: #b42323; border-color: color-mix(in srgb, #e53e3e 35%, transparent); }
@media (prefers-color-scheme: dark) { .v-good { color: #6fd39b; } .v-mid { color: #f1c35b; } .v-bad { color: #ff8f8f; } }
.verdict-row { margin: 10px 0 0; font-size: 14px; color: var(--ink-2); }
.figures { margin: 24px 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; overflow-x: auto; }
.figures h2, .sources h2 { font-size: 18px; margin: 0 0 10px; }
.figures table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.figures th, .figures td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.figures thead th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-2); }
.figures tbody tr:last-child th, .figures tbody tr:last-child td { border-bottom: 0; }
.conf { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; padding: 2px 8px; border-radius: 6px; background: var(--chip); color: var(--ink-2); }
.c-verified { color: #157a42; } .c-estimate { color: #946200; }
@media (prefers-color-scheme: dark) { .c-verified { color: #6fd39b; } .c-estimate { color: #f1c35b; } }
.sources { margin-top: 32px; font-size: 15px; }
.sources ol { padding-left: 20px; }
.small { font-size: 13px; }
