/* Real Korea 101 - shared stylesheet (mobile first, no build tools) */
*, *::before, *::after { box-sizing: border-box; }

:root {
  --text: #1a1a1a;
  --muted: #555;
  --line: #e3e3e3;
  --accent: #0b5cad;
  --accent-dark: #083f78;
  --soft: #f4f7fb;
  --note: #fff8e6;
  --note-line: #f0c75e;
}

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

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 19px;
  line-height: 1.75;
}

@media (min-width: 700px) {
  body { font-size: 20px; }
}

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 18px;
}

/* Header and menu */
.site-header {
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 18px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.logo {
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}
.site-nav a {
  display: inline-block;
  padding: 6px 2px;
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
}
.site-nav a:hover, .site-nav a[aria-current="page"] {
  color: var(--accent);
  text-decoration: underline;
}

/* Main content */
main { padding: 28px 0 48px; }

h1 { font-size: 1.85rem; line-height: 1.25; margin: 0.2em 0 0.5em; letter-spacing: -0.01em; }
h2 { font-size: 1.4rem; line-height: 1.3; margin: 1.8em 0 0.5em; }
h3 { font-size: 1.15rem; line-height: 1.35; margin: 1.4em 0 0.4em; }
p, ul, ol { margin: 0 0 1em; }
li { margin-bottom: 0.35em; }

@media (min-width: 700px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.55rem; }
}

.meta { color: var(--muted); font-size: 0.9rem; margin-bottom: 1.2em; }
.lead { font-size: 1.05em; }

/* Boxes */
.tldr {
  background: var(--soft);
  border-left: 5px solid var(--accent);
  padding: 14px 18px;
  margin: 1.2em 0 1.6em;
  border-radius: 4px;
}
.tldr h2 { margin: 0 0 0.3em; font-size: 1.1rem; }
.tldr ul { margin: 0; padding-left: 1.2em; }

.easy-to-miss {
  background: var(--note);
  border: 1px solid var(--note-line);
  padding: 14px 18px;
  margin: 1.6em 0;
  border-radius: 6px;
}
.easy-to-miss h2, .easy-to-miss h3 { margin-top: 0; font-size: 1.1rem; }
.easy-to-miss ul { margin-bottom: 0; padding-left: 1.2em; }

.toc {
  border: 1px solid var(--line);
  padding: 12px 18px;
  border-radius: 6px;
  margin: 1.2em 0 1.6em;
}
.toc h2 { margin: 0 0 0.3em; font-size: 1.1rem; }
.toc ol { margin: 0; padding-left: 1.3em; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 1em 0 1.4em; }
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.92em;
  line-height: 1.5;
}
th, td {
  border: 1px solid var(--line);
  padding: 9px 10px;
  text-align: left;
  vertical-align: top;
}
th { background: var(--soft); }
caption { text-align: left; font-weight: 700; padding-bottom: 6px; }

/* FAQ */
.faq h3 { margin-top: 1.2em; }

/* Sources */
.sources { font-size: 0.9em; border-top: 1px solid var(--line); margin-top: 2.4em; padding-top: 0.6em; }
.sources li { word-break: break-word; }

/* Post lists */
.post-list { list-style: none; padding: 0; margin: 0; }
.post-list li {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  margin: 0;
}
.post-list a.title { font-size: 1.15em; font-weight: 700; text-decoration: none; }
.post-list a.title:hover { text-decoration: underline; }
.post-list .cat { display: inline-block; font-size: 0.8em; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.post-list p { margin: 0.3em 0 0; color: var(--muted); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 20px 0 32px;
  color: var(--muted);
  font-size: 0.9rem;
}
.site-footer a { margin-right: 16px; }

/* Ad slot placeholder (kept empty until AdSense is approved) */
.ad-slot:empty { display: none; }
