/* Blog pages (/blog/). Colors and type follow the home page (index.html). */
:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --surface: #f5f5f7;
  --text: #0b0b0c;
  --muted: #6b6b73;
  --line: rgba(0, 0, 0, .1);
  --button: #ffffff;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 12px 32px rgba(0, 0, 0, .06);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0c;
    --surface: #17171a;
    --text: #f5f5f7;
    --muted: #9a9aa3;
    --line: rgba(255, 255, 255, .14);
    --button: #232327;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px rgba(0, 0, 0, .4);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
/* Korean breaks lines between words, not inside them. */
:lang(ko) { word-break: keep-all; overflow-wrap: anywhere; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

.top { display: flex; align-items: center; justify-content: space-between; padding: 24px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 1.15rem; letter-spacing: -.01em; text-decoration: none; }
.brand img { width: 40px; height: 40px; padding: 5px; border-radius: 10px; background: #fff; }
.top nav { display: flex; gap: 4px; }
.top nav a { padding: 8px 14px; border-radius: 999px; color: var(--muted); font-size: .95rem; text-decoration: none; transition: color .15s, background-color .15s; }
.top nav a:hover { color: var(--text); background: var(--surface); }

.kicker { margin: 0 0 14px; color: var(--muted); font-size: .8rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; }
.deck { margin: 20px 0 0; color: var(--muted); font-size: clamp(1.1rem, 2.2vw, 1.3rem); line-height: 1.45; }

.langs { display: flex; flex-wrap: wrap; gap: 6px; margin: 24px 0 0; font-size: .9rem; }
.langs a, .langs span { padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; }
.langs a { color: var(--muted); }
.langs a:hover { color: var(--text); border-color: var(--text); }
.langs span { background: var(--text); border-color: var(--text); color: var(--bg); }

/* Article */
.post, .press, .back { max-width: 720px; margin-left: auto; margin-right: auto; }
.post { padding-top: clamp(32px, 7vw, 72px); }
.post h1, .list h1 { margin: 0; font-size: clamp(2rem, 5.4vw, 3.1rem); font-weight: 700; line-height: 1.1; letter-spacing: -.03em; text-wrap: balance; }
.hero { margin: 36px 0 0; }
.hero img { width: 100%; border-radius: 20px; }
.body { margin-top: 36px; font-size: 1.09rem; line-height: 1.7; }
.body h2, .facts h2, .about h2, .press h2 { margin: 2em 0 .5em; font-size: 1.35rem; font-weight: 650; line-height: 1.25; letter-spacing: -.02em; }
.body p { margin: 0 0 1.1em; }
.body ul { margin: 0 0 1.1em; padding-left: 1.2em; }
.body li { margin-bottom: .45em; }
.body a, .facts a, .about a, .press p a { text-decoration: underline; text-decoration-thickness: .06em; text-underline-offset: .18em; text-decoration-color: var(--line); overflow-wrap: anywhere; }
.body a:hover, .facts a:hover, .about a:hover, .press p a:hover { text-decoration-color: currentColor; }

.button, .press button { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--button); color: var(--text); font: inherit; font-size: .95rem; font-weight: 550; text-decoration: none; cursor: pointer; transition: border-color .15s; }
.button:hover, .press button:hover { border-color: var(--text); }
.button svg { width: 13px; height: 13px; flex: none; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 0; }
.cta .button { padding: 14px 24px; border-color: var(--text); background: var(--text); color: var(--bg); font-size: 1.02rem; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 20px 14px; margin: 44px 0 0; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; border-radius: 14px; box-shadow: 0 0 0 1px var(--line); }
.gallery figcaption { margin-top: 8px; color: var(--muted); font-size: .82rem; line-height: 1.4; }

.facts dl { margin: 0; border-top: 1px solid var(--line); }
.facts dl div { display: grid; grid-template-columns: 9.5em 1fr; gap: 4px 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.about p { margin: 0; color: var(--muted); }

.press { margin-top: 48px; padding: clamp(22px, 4vw, 32px); border-radius: 24px; background: var(--surface); }
.press h2 { margin-top: 0; }
.press p { margin: 0; color: var(--muted); }
.press .actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }

.back { margin-top: 36px; margin-bottom: clamp(56px, 10vw, 104px); }
.back a { color: var(--muted); text-decoration: none; }
.back a:hover { color: var(--text); }

/* List */
.list { padding: clamp(40px, 9vw, 96px) 0 clamp(56px, 10vw, 104px); }
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 20px; margin: 44px 0 0; padding: 0; list-style: none; }
.card { display: block; height: 100%; padding: 16px 16px 26px; border-radius: 28px; background: var(--surface); text-decoration: none; transition: transform .25s ease, box-shadow .25s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card img { width: 100%; margin-bottom: 20px; border-radius: 16px; }
.card .kicker, .card h2, .card .deck { padding: 0 8px; }
.card h2 { margin: 0; font-size: 1.35rem; font-weight: 650; line-height: 1.25; letter-spacing: -.02em; }
.card .deck { margin-top: 10px; font-size: 1rem; }

.bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 40px; padding: 28px 0 44px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.bottom p { margin: 0; }
.bottom ul { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 8px 0 0; padding: 0; list-style: none; }
.bottom a { text-decoration: none; transition: color .15s; }
.bottom a:hover { color: var(--text); }

@media (max-width: 480px) {
  .facts dl div { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
