/* Inter, self-hosted (Latin subset) */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/inter-400-normal.woff") format("woff"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/inter-600-normal.woff") format("woff"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/inter-700-normal.woff") format("woff"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 800; font-display: swap; src: url("/fonts/inter-800-normal.woff") format("woff"); }
@font-face { font-family: "Inter"; font-style: italic; font-weight: 400; font-display: swap; src: url("/fonts/inter-400-italic.woff") format("woff"); }
@font-face { font-family: "Inter"; font-style: italic; font-weight: 700; font-display: swap; src: url("/fonts/inter-700-italic.woff") format("woff"); }

/* Theme: white + yellow highlighter + coral. Always light. */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #ffffff;
  --soft: #fff4d6;
  --text: #1c1c1e;
  --muted: #6b6b70;
  --line: #eeeeee;
  --accent: #ff5a3c;
  --accent-ink: #e0442a;
  --hl: #ffe45c;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Apple SD Gothic Neo", "Noto Sans KR", Arial, sans-serif;
  --display: var(--sans);
  --radius: 18px;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  --measure: 760px;
  --wide: 1040px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.65;
}

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

img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: var(--measure); margin: 0 auto; padding: 0 20px; }
.wrap-wide { max-width: var(--wide); margin: 0 auto; padding: 0 20px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--surface); padding: 8px 12px; z-index: 10; }

/* Shared display type */
.brand-name, .hero h1, .lead-title, .card-title, .section-title, .archive-header h1,
.post h1, .prose h2, .summary-title, .more h2 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.025em;
}

/* Sticker label */
.eyebrow, .tag {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--hl);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.4;
}

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; max-width: var(--wide); }
.brand { display: flex; align-items: center; color: var(--text); text-decoration: none; }
.brand-name { font-size: 21px; }
.brand-name em { font-style: normal; color: var(--accent); }
.site-nav { display: flex; gap: 22px; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 600; }
.site-nav a:hover { color: var(--text); }

/* Home */
.hero { padding-top: 56px; padding-bottom: 32px; }
.hero .eyebrow { margin: 0 0 16px; }
.hero h1 { margin: 0; max-width: 820px; font-size: clamp(36px, 6vw, 56px); line-height: 1.08; }
.hero .accent { background: linear-gradient(transparent 58%, var(--hl) 58%); padding: 0 4px; }
.hero-sub { margin: 18px 0 0; max-width: 720px; color: var(--muted); font-size: 19px; }

.lead { display: grid; grid-template-columns: 1.15fr 1fr; margin: 16px 0 48px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; color: var(--text); text-decoration: none; }
.lead-thumb { display: flex; align-items: center; background: var(--soft); }
.lead-thumb img { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; }
.lead-body { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 10px; padding: 28px 32px; }
.lead-title { display: block; font-size: 30px; line-height: 1.15; }
.lead:hover .lead-title { color: var(--accent-ink); }

.section-title { margin: 0 0 18px; font-size: 24px; }
.cards { list-style: none; margin: 0 0 40px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; }
.card a { display: block; color: var(--text); text-decoration: none; }
.card-thumb { display: block; margin-bottom: 14px; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.card-thumb img { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; }
.card-meta { display: block; font-size: 14px; color: var(--muted); }
.card-title { display: block; margin: 4px 0 6px; font-size: 20px; line-height: 1.25; }
.card-desc { display: block; color: var(--muted); font-size: 16px; }
.card a:hover .card-title, .row a:hover .card-title { color: var(--accent-ink); }
.all-link { margin: 0 0 24px; font-weight: 700; }
.all-link a { text-decoration: none; }

/* All stories */
.archive { padding-top: 48px; }
.archive-header h1 { margin: 0; font-size: clamp(34px, 5vw, 46px); }
.archive-header .hero-sub { margin-top: 10px; }
.month { margin: 40px 0 6px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.rows { list-style: none; margin: 0; padding: 0; }
.row a { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: center; padding: 20px 0; border-top: 1px solid var(--line); color: var(--text); text-decoration: none; }
.row-thumb { display: block; border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.row-thumb img { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; }
.row .card-title { font-size: 23px; }

/* Post */
.post { padding-top: 40px; padding-bottom: 24px; }
.post-header { margin-bottom: 28px; }
.post-meta { margin: 0 0 14px; font-size: 14px; color: var(--muted); }
.post-meta .tag { margin-right: 10px; }
.post h1 { margin: 0; font-size: clamp(32px, 5.4vw, 46px); line-height: 1.1; }
.dek { margin: 16px 0 0; font-size: 20px; color: var(--muted); }

.prose > * + * { margin-top: 1.1em; }
.prose p, .prose ul, .prose ol { margin-bottom: 0; }
.prose h2 { margin-top: 2em; margin-bottom: 0; font-size: 27px; line-height: 1.2; }
.prose h3 { margin-top: 1.6em; font-size: 20px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.35em; }
.prose strong { font-weight: 700; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; }
.prose th, .prose td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose th { background: var(--soft); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text); }
.prose tr:last-child td { border-bottom: 0; }
.prose td:last-child { white-space: nowrap; }

/* Embeds */
.embed { margin: 1.8em 0 0; }
.embed iframe { display: block; width: 100%; border: 0; border-radius: 14px; background: var(--line); }
.embed-video iframe { aspect-ratio: 16 / 9; }
.embed-short iframe { aspect-ratio: 9 / 16; max-width: 340px; margin: 0 auto; }
.embed-map iframe { aspect-ratio: 4 / 3; max-height: 380px; }
.embed-instagram .instagram-media { margin: 0 auto !important; }
.map-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.button { display: inline-block; padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); font-size: 15px; font-weight: 700; text-decoration: none; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04); }
.button:hover { background: var(--hl); border-color: var(--hl); color: var(--text); }

.summary { margin-top: 2.4em; padding: 24px 26px; background: var(--soft); border-radius: var(--radius); }
.summary-title { margin: 0 0 14px; font-size: 21px; }
.summary-title::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 10px; border-radius: 50%; background: var(--accent); vertical-align: 2px; }
.summary dl { display: grid; grid-template-columns: 120px 1fr; gap: 10px 18px; margin: 0; font-size: 16px; }
.summary dt { color: var(--accent-ink); font-weight: 700; }
.summary dd { margin: 0; }
@media (max-width: 520px) { .summary dl { grid-template-columns: 1fr; gap: 2px; } .summary dd { margin-bottom: 10px; } }

.ai-note { margin: 28px 0 0; font-size: 14px; color: var(--muted); }
.ai-note a { color: var(--muted); }

.follow { margin-top: 24px; padding: 18px 22px; background: var(--soft); border-radius: var(--radius); color: var(--text); font-size: 16px; }
.follow p { margin: 0; }

.more { padding-top: 24px; }
.more h2 { font-size: 24px; margin: 0 0 14px; }

/* Footer */
.site-footer { margin-top: 48px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.footer-inner { padding-top: 28px; padding-bottom: 36px; }
.footer-tag { margin: 0 0 14px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.site-footer nav a { color: var(--muted); text-decoration: none; font-weight: 600; }
.site-footer nav a:hover { color: var(--text); }
.footer-copy { margin: 18px 0 0; font-size: 13px; }

.more .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (max-width: 860px) {
  .lead { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .cards, .more .cards { grid-template-columns: 1fr; }
  .row a { grid-template-columns: 1fr; gap: 12px; }
}

@media (max-width: 520px) {
  body { font-size: 17px; }
  .brand-name { font-size: 19px; }
  .lead-title { font-size: 24px; }
  .prose td:last-child { white-space: normal; }
}
