/* Seomyeon Press — site styles. System fonts only, no JavaScript. */
:root {
  --paper: #fbfaf7;
  --ink: #161514;
  --muted: #5b5751;
  --rule: #dcd6cc;
  --accent: #0d4f6a;
  --accent-dark: #083548;
  --highlight: #b23a22;
  --serif: Georgia, "Times New Roman", "Noto Serif", "DejaVu Serif", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "DejaVu Sans", sans-serif;
  --ko: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", "Noto Sans CJK KR", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
a:focus-visible, main:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
main:focus { outline: none; }
[lang="ko"] { font-family: var(--ko); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  background: var(--ink); color: #fff; padding: 10px 14px; text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.wrap-narrow { width: 100%; max-width: 720px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { background: var(--paper); }
.topbar {
  display: flex; justify-content: space-between; gap: 12px;
  font-size: 0.78rem; letter-spacing: 0.04em; color: var(--muted);
  padding-top: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--rule);
}
.masthead { text-align: center; padding-top: 26px; padding-bottom: 16px; }
.masthead-title { margin: 0; font-weight: 400; }
.masthead-title a { text-decoration: none; color: var(--ink); display: inline-block; }
.masthead-name {
  display: block; font-family: var(--serif); font-weight: 700;
  font-size: clamp(2.5rem, 8vw, 4.75rem); line-height: 1; letter-spacing: -0.015em;
}
.masthead-ko {
  display: block; margin-top: 10px; font-size: 0.95rem; letter-spacing: 0.35em;
  color: var(--muted); font-weight: 500; padding-left: 0.35em;
}
.tagline { margin: 10px 0 0; font-family: var(--serif); font-style: italic; color: var(--muted); }
.site-nav { border-top: 3px double var(--ink); border-bottom: 1px solid var(--ink); }
.site-nav ul {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 26px;
  list-style: none; margin: 0 auto; padding-top: 11px; padding-bottom: 11px;
}
.site-nav a {
  display: inline-block; padding: 4px 0; text-decoration: none;
  font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
}
.site-nav a[aria-current="page"] { color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent); }

/* Home */
.launch-note {
  margin: 0 auto; padding-top: 14px; padding-bottom: 14px; text-align: center;
  font-family: var(--serif); font-style: italic; color: var(--muted);
  border-bottom: 1px solid var(--rule);
}
.top {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 36px;
  padding: 30px 0 10px;
}
.secondary { display: flex; flex-direction: column; gap: 28px; border-left: 1px solid var(--rule); padding-left: 36px; }
.month-section { padding: 26px 0 14px; }
.section-head { border-top: 3px solid var(--ink); margin-bottom: 20px; }
.section-head h2 { font-family: var(--serif); font-size: 1.45rem; margin: 10px 0 0; }
.section-head h2 a { text-decoration: none; }
.section-head h2 a:hover { text-decoration: underline; }
.more-link { text-align: center; margin: 30px 0 46px; font-weight: 700; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.card { position: relative; display: flex; flex-direction: column; }
.card-image { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #e9e4da; margin-bottom: 12px; }
.kicker { margin: 0 0 6px; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.kicker a { color: var(--highlight); text-decoration: none; position: relative; z-index: 1; }
.kicker a:hover { text-decoration: underline; }
.card-title { font-family: var(--serif); font-size: 1.28rem; line-height: 1.22; margin: 0 0 8px; }
.card-link { text-decoration: none; }
.card-link::after { content: ""; position: absolute; inset: 0; }
.card:hover .card-link { text-decoration: underline; }
.card-summary { margin: 0 0 10px; color: #33312e; font-size: 0.96rem; }
.meta { margin: auto 0 0; font-size: 0.8rem; color: var(--muted); }
.card-lead .card-title { font-size: clamp(1.75rem, 3.2vw, 2.45rem); line-height: 1.12; }
.card-lead .card-summary { font-size: 1.08rem; }
.card-side .card-title { font-size: 1.2rem; }

/* Article */
.story { padding-top: 34px; }
.story-header { text-align: left; }
.story-title { font-family: var(--serif); font-size: clamp(2rem, 5vw, 2.9rem); line-height: 1.1; margin: 0 0 14px; letter-spacing: -0.01em; }
.dek { font-family: var(--serif); font-size: 1.2rem; line-height: 1.45; color: #3a3733; margin: 0 0 18px; }
.byline { margin: 0 0 6px; font-weight: 700; font-size: 0.92rem; }
.story-dates { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 0 0 26px; font-size: 0.86rem; color: var(--muted); }
.story-dates div { display: flex; gap: 6px; }
.story-dates dt { font-weight: 700; }
.story-dates dt::after { content: ":"; }
.story-dates dd { margin: 0; }
.story-figure { max-width: 980px; margin: 0 auto 30px; padding: 0 20px; }
.story-figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #e9e4da; }
.story-figure figcaption { font-size: 0.84rem; color: var(--muted); margin-top: 8px; }
.story-body { font-family: var(--serif); font-size: 1.14rem; line-height: 1.7; }
.story-body p { margin: 0 0 1.15em; }
.story-body h2 { font-family: var(--sans); font-size: 1.15rem; letter-spacing: 0.01em; margin: 1.8em 0 0.6em; }
.story-body ul, .story-body ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.story-body li { margin-bottom: 0.45em; }
.story-body a { color: var(--accent); }
.story-footer { margin-top: 30px; }
.story-footer::before { content: ""; display: block; border-top: 1px solid var(--rule); margin-bottom: 18px; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 22px; }
.tags li { font-size: 0.78rem; border: 1px solid var(--rule); border-radius: 999px; padding: 3px 11px; color: var(--muted); background: #fff; }
.sources h2 { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 10px; }
.sources ol { margin: 0; padding-left: 1.3em; font-size: 0.88rem; }
.sources li { margin-bottom: 8px; overflow-wrap: anywhere; }
.sources a { color: var(--accent); }
.source-pub { color: var(--muted); }
.source-pub::before { content: "— "; }
.prev-next { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 34px; margin-bottom: 10px; }
.prev-next a { display: block; text-decoration: none; border-top: 3px solid var(--ink); padding-top: 10px; }
.prev-next .next { text-align: right; grid-column: 2; }
.pn-label { display: block; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.pn-title { display: block; font-family: var(--serif); font-size: 1.05rem; line-height: 1.3; margin-top: 4px; }
.prev-next a:hover .pn-title { text-decoration: underline; }
.more-stories { padding-top: 26px; padding-bottom: 46px; }

/* Lists, archive, about */
.page-head { padding: 34px 0 22px; }
.page-head h1 { font-family: var(--serif); font-size: clamp(2rem, 5vw, 2.7rem); margin: 0 0 8px; line-height: 1.1; }
.page-intro { margin: 0; color: var(--muted); font-size: 1.05rem; }
.wrap > .cards { padding-bottom: 46px; }
.archive-month { border-top: 3px solid var(--ink); padding: 12px 0 22px; }
.archive-month h2 { font-family: var(--serif); font-size: 1.4rem; margin: 0 0 12px; }
.archive-month h2 a { text-decoration: none; }
.archive-month h2 a:hover { text-decoration: underline; }
.archive-month .count { font-family: var(--sans); font-size: 0.8rem; font-weight: 400; color: var(--muted); margin-left: 8px; }
.archive-list { list-style: none; margin: 0; padding: 0; }
.archive-list li { padding: 10px 0; border-bottom: 1px solid var(--rule); }
.archive-list a { font-family: var(--serif); font-size: 1.12rem; font-weight: 700; text-decoration: none; }
.archive-list a:hover { text-decoration: underline; }
.archive-meta { display: block; font-size: 0.82rem; color: var(--muted); margin-top: 2px; }
.prose { padding-bottom: 50px; font-size: 1.05rem; line-height: 1.7; }
.prose h2 { font-family: var(--serif); font-size: 1.35rem; margin: 1.7em 0 0.5em; }
.prose a { color: var(--accent); }
.prose li { margin-bottom: 0.5em; }
.empty { color: var(--muted); padding-bottom: 46px; }

/* Footer */
.site-footer { border-top: 3px double var(--ink); background: #f3f0ea; padding: 28px 0 34px; margin-top: 10px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 10px 20px; margin-bottom: 18px; }
.footer-name { font-family: var(--serif); font-weight: 700; font-size: 1.3rem; margin: 0; }
.footer-links { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; font-size: 0.88rem; font-weight: 700; }
.disclosure {
  white-space: pre-line; font-size: 0.86rem; line-height: 1.75; color: #3b3834;
  border-top: 1px solid var(--rule); padding-top: 16px; margin: 0 0 16px;
  word-break: keep-all; overflow-wrap: anywhere;
}
.copyright { margin: 0; font-size: 0.8rem; color: var(--muted); }

/* Responsive */
@media (max-width: 860px) {
  .top { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .secondary { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); padding-top: 24px;
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
}
@media (max-width: 560px) {
  .wrap, .wrap-narrow, .story-figure { padding-left: 16px; padding-right: 16px; }
  .topbar { font-size: 0.72rem; }
  .masthead { padding-top: 20px; }
  .site-nav ul { gap: 0 16px; padding-top: 8px; padding-bottom: 8px; }
  .site-nav a { font-size: 0.74rem; }
  .secondary, .cards { grid-template-columns: minmax(0, 1fr); }
  .story-body { font-size: 1.08rem; }
  .prev-next { grid-template-columns: 1fr; }
  .prev-next .next { grid-column: 1; text-align: left; }
}
@media print {
  .site-nav, .skip-link, .prev-next, .more-stories { display: none; }
  body { background: #fff; }
}
