/* moBle News (blog.moble.co.kr) v1
   Production stylesheet for the approved moBle News design (2026-10-10).
   Tokens follow moble.co.kr; the header stays on paper in both themes. */

@font-face {
  font-family: Pretendard;
  src: url(/assets/fonts/PretendardVariable.woff2) format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #f6f5ef; --surface: #fbfaf5; --raised: #efeee6;
  --ink: #16180f; --soft: #454a43; --muted: #5a5d52;
  --line: #d8dad2; --strong: #a9ada1;
  --accent: #1b743c; --accent-text: #14572d; --accent-soft: #1b743c12;
  --header: #f6f5eff2; --header-ink: #16180f;
  --footer: #10120ff2; --footer-ink: #f6f5ef; --footer-muted: #b8bcb4;
  --max: 920px;
}
:root[data-theme=dark] {
  color-scheme: dark;
  --bg: #0c0d0c; --surface: #111311; --raised: #1c1f1c;
  --ink: #f4f5f0; --soft: #d5d8d1; --muted: #a8ada5;
  --line: #30342f; --strong: #555b53;
  --accent: #1b743c; --accent-text: #43a161; --accent-soft: #1b743c22;
  --header: #dfe0d9f2; --header-ink: #111310;
  --footer: #080a08f2; --footer-ink: #f4f5f0; --footer-muted: #aeb3aa;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; scrollbar-color: var(--strong) var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 15px/1.65 Pretendard, -apple-system, BlinkMacSystemFont, 'Malgun Gothic', sans-serif;
  letter-spacing: -.018em;
}
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 4px; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: #fff; }
h1, h2, h3, p { margin: 0; }
img { max-width: 100%; }

.skip { position: fixed; top: -100px; left: 0; z-index: 100; background: var(--bg); color: var(--ink); padding: 14px; }
.skip:focus { top: 0; }

/* ---------------------------------------------------------------- brand wordmark */
.brand-wordmark {
  display: block; width: 92px; height: 24px; background: currentColor;
  -webkit-mask: url(/logo/moble-wordmark.svg) center / contain no-repeat;
  mask: url(/logo/moble-wordmark.svg) center / contain no-repeat;
}

/* ---------------------------------------------------------------- header */
.site-header {
  position: fixed; z-index: 20; inset: 0 0 auto; height: 74px;
  background: var(--header); border-bottom: 1px solid #cfd1c7; color: var(--header-ink);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
}
.header-inner {
  max-width: 1200px; height: 100%; margin: auto; padding: 0 32px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
}
.brand { display: flex; gap: 12px; align-items: center; width: max-content; }
.brand-symbol-wrap { width: 48px; height: 48px; flex: 0 0 48px; display: grid; place-items: center; overflow: hidden; }
.brand-symbol { width: 100%; height: 100%; display: block; object-fit: contain; transform: translateY(-2px) scale(1.35); }
.brand-words { display: flex; flex-direction: column; gap: 4px; }
.brand-from { font-size: 9px; letter-spacing: .035em; color: #555a52; line-height: 1; }
.header-title { font: 600 11px/1.3 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .32em; }
.header-right { display: flex; align-items: center; justify-content: flex-end; gap: 20px; }
.theme-toggle {
  display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 10px;
  border: 1px solid #b9bcb3; background: transparent; color: inherit; font-size: 11px;
}
.theme-toggle:hover { border-color: var(--header-ink); }
.theme-toggle svg { width: 14px; height: 14px; }
.languages { display: flex; gap: 12px; }
.languages a {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; min-height: 34px; padding: 4px 0;
  font-size: 10px; font-weight: 650; letter-spacing: .06em; color: #6a6d63;
}
.languages a:hover { color: #16180f; }
.languages a[aria-current=page] { color: #16180f; }
.languages a[aria-current=page]::after {
  content: ''; position: absolute; bottom: 3px; left: 0; right: 0; height: 2px; background: var(--accent);
}

/* ---------------------------------------------------------------- page rail */
main { max-width: var(--max); margin: auto; padding: 126px 0 140px; min-height: 100vh; }

.intro { margin-bottom: 32px; }
.intro-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 11px; }
.eyebrow { color: var(--accent-text); font-size: 10px; letter-spacing: .13em; font-weight: 600; }
.intro h1 { font-size: 35px; line-height: 45px; letter-spacing: -.055em; font-weight: 450; word-break: keep-all; text-wrap: balance; }
.intro p { color: var(--muted); font-size: 13px; line-height: 23.1px; margin-top: 13px; word-break: keep-all; text-wrap: pretty; }

/* ---------------------------------------------------------------- date strip */
.cal {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 12px 0; display: flex; align-items: center; gap: 22px; position: relative;
}
.month { display: flex; gap: 7px; align-items: center; flex-shrink: 0; }
.month button { border: 0; background: transparent; color: var(--muted); min-width: 28px; height: 32px; padding: 0 4px; }
.month button:hover { color: var(--accent-text); }
.month .month-label { font: 600 12px/1.3 ui-monospace, SFMono-Regular, Consolas, monospace; color: var(--ink); min-width: 71px; }
.days { display: flex; align-items: center; overflow: auto; scrollbar-width: none; flex: 1; min-width: 0; padding: 3px 0; user-select: none; }
.days::-webkit-scrollbar { display: none; }
.days button, .days span {
  min-width: 24px; flex: 0 0 24px; text-align: center;
  font: 400 10px/24px ui-monospace, SFMono-Regular, Consolas, monospace;
  color: var(--muted); background: none; border: 0; padding: 0; position: relative;
}
.days button { color: var(--ink); font-weight: 700; }
.days button::after {
  content: ''; position: absolute; bottom: 0; left: calc(50% - 1px); width: 3px; height: 3px; background: var(--accent-text);
}
.days button[aria-pressed=true] { color: #fff; background: var(--accent); }
.days button[aria-pressed=true]::after { display: none; }
.day-rule { height: 8px; width: 1px; min-width: 1px; background: var(--line); flex: 0 0 1px; }
.month-picker {
  position: absolute; z-index: 8; top: 60px; left: 0; width: 266px;
  background: var(--surface); border: 1px solid var(--strong); padding: 17px;
}
.picker-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; font-size: 13px; }
.picker-head button { border: 0; background: var(--raised); color: var(--ink); width: 28px; height: 28px; }
.month-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.month-grid button { background: transparent; color: var(--muted); border: 1px solid var(--line); padding: 8px; font-size: 12px; }
.month-grid button.has { color: var(--ink); font-weight: 600; }
.month-grid button:hover { border-color: var(--accent); }
.month-grid button.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ---------------------------------------------------------------- categories */
.filters { display: flex; align-items: center; gap: 7px; padding: 23px 0 26px; flex-wrap: wrap; }
.filters button {
  border: 1px solid var(--line); background: transparent; color: var(--muted);
  padding: 7px 14px; font-size: 12px; line-height: 1.5; display: flex; gap: 9px; align-items: center;
}
.filters button small { font: 400 10px/1 ui-monospace, SFMono-Regular, Consolas, monospace; opacity: .75; }
.filters button[aria-pressed=true] { border-color: var(--accent); background: var(--accent); color: #fff; }
.filters button:hover { border-color: var(--accent); }
.cal[hidden] + .filters[hidden] + .list-heading { margin-top: 32px; }

/* ---------------------------------------------------------------- list */
.list-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 0 16px; }
.list-heading h2 { font-size: 11px; letter-spacing: .12em; color: var(--accent-text); font-weight: 600; }
.list-meta { display: flex; gap: 15px; align-items: center; color: var(--muted); font-size: 11px; }
.reset { background: none; border: 0; padding: 0; color: var(--accent-text); text-decoration: underline; text-underline-offset: 4px; font-size: 11px; }

.post-card {
  display: grid; grid-template-columns: 44% 56%;
  border: 1px solid var(--line); background: var(--surface); margin-bottom: 16px;
  transition: border-color .16s ease;
}
.post-card:hover { border-color: var(--accent-text); }
.cover { min-height: 242px; border-right: 1px solid var(--line); overflow: hidden; position: relative; background: #171b17; }
.cover::before, .cover::after { content: ''; z-index: 2; position: absolute; width: 8px; height: 8px; pointer-events: none; }
.cover::before { top: 10px; left: 10px; border-left: 1px solid #ffffff70; border-top: 1px solid #ffffff70; }
.cover::after { bottom: 10px; right: 10px; border-right: 1px solid #ffffff70; border-bottom: 1px solid #ffffff70; }
.cover-photo { width: 100%; height: 100%; object-fit: cover; display: block; position: absolute; inset: 0; object-position: 45% 45%; }
.capture-tag {
  position: absolute; z-index: 3; bottom: 17px; left: 18px;
  background: #0c0d0ce8; border: 1px solid #ffffff30; padding: 5px 7px; color: #d5d8d1;
  font: 400 8px/1.25 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .06em;
}
.pc-text { padding: 28px 29px 25px; display: flex; flex-direction: column; }
.pc-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 10px; color: var(--muted); }
.pc-cat { color: var(--accent-text); font-size: 11px; font-weight: 550; }
.pc-date { font: 400 10px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .045em; }
.pc-text h3 { font-size: 25px; font-weight: 400; line-height: 34.58px; letter-spacing: -.04em; margin: 15px 0 10px; word-break: keep-all; }
.pc-text p { font-size: 12px; line-height: 22.75px; color: var(--muted); word-break: keep-all; }
.readmore { margin-top: auto; padding-top: 19px; color: var(--soft); display: flex; justify-content: space-between; align-items: center; font-size: 10px; letter-spacing: .035em; }
.readmore span:last-child { font-size: 17px; font-weight: 300; }

.text-cover { padding: 30px; display: flex; height: 100%; flex-direction: column; justify-content: center; color: #f4f5f0; min-height: 242px; }
.art-label { font: 400 9px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .12em; color: #adc4b1; }
.art-sub { font-size: 11px; color: #a9c0b0; line-height: 1.6; }
.note-art { background: var(--accent); color: #fff; }
.note-art .art-label, .note-art .art-sub { color: #d1e7d6; }
.note-art .brand-wordmark { width: 182px; height: 50px; margin: 25px 0 17px; }

.empty { border: 1px solid var(--line); padding: 60px 24px; text-align: center; color: var(--muted); font-size: 13px; line-height: 23.1px; }
.list-end { text-align: center; font-size: 11px; color: var(--muted); padding: 25px 0 0; }

/* ---------------------------------------------------------------- footer */
.site-footer {
  position: fixed; inset: auto 0 0; z-index: 20; height: 74px;
  background: var(--footer); border-top: 1px solid #30342f; color: var(--footer-ink);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
}
.footer-inner { max-width: 1200px; padding: 0 32px; margin: auto; height: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.footer-brand { display: flex; align-items: center; gap: 12px; font-size: 10px; color: var(--footer-muted); }
.footer-brand .brand-wordmark { width: 65px; height: 17px; color: var(--footer-ink); }
.footer-copy { font-size: 9px; letter-spacing: .04em; color: var(--footer-muted); }
.footer-links { display: flex; align-items: center; gap: 20px; color: var(--footer-muted); font-size: 10px; }
.footer-links a:hover { color: #fff; }
.footer-links b { font-weight: 650; letter-spacing: .05em; color: var(--footer-ink); }
.footer-links a:last-child { margin-left: 10px; }

/* ---------------------------------------------------------------- post page */
.article-shell { max-width: 760px; margin: auto; }
.detail-back { color: var(--muted); font-size: 12px; margin-bottom: 33px; display: inline-flex; gap: 10px; align-items: center; }
.detail-back:hover { color: var(--accent-text); }
.detail-meta { display: flex; gap: 15px; align-items: center; font-size: 11px; color: var(--muted); }
.detail-meta .category { color: var(--accent-text); font-weight: 550; }
.detail-header h1 { font-size: 45px; line-height: 57.04px; font-weight: 350; letter-spacing: -.055em; margin: 20px 0 16px; word-break: keep-all; text-wrap: balance; }
.detail-header .lead { font-size: 16px; color: var(--muted); line-height: 31.45px; word-break: keep-all; }
.detail-rule { width: 48px; height: 2px; background: var(--accent); margin: 27px 0 31px; }
.detail-cover { height: 360px; position: relative; border: 1px solid var(--line); margin: 0; overflow: hidden; background: #171b17; }
.detail-cover .cover-photo { object-position: 50% 40%; }
.detail-cover .text-cover { height: 100%; padding: 50px; }
.caption { color: var(--muted); font-size: 11px; margin: 10px 0 32px; }
.caption-gap { height: 32px; }
.article-body { max-width: 680px; margin: auto; color: var(--soft); font-size: 15px; line-height: 31.2px; }
.article-body h2 { font-weight: 450; letter-spacing: -.03em; font-size: 24px; line-height: 35px; color: var(--ink); margin: 38px 0 14px; word-break: keep-all; }
.article-body p { margin-bottom: 18px; word-break: keep-all; }
.article-body strong, .article-body b { color: var(--ink); font-weight: 600; }
.article-body blockquote {
  border-left: 2px solid var(--accent); margin: 31px 0; padding: 9px 0 9px 23px;
  color: var(--ink); font-size: 20px; font-weight: 350; line-height: 34.65px; word-break: keep-all;
}
.article-body a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 5px; }
.article-body figure { margin: 32px 0; }
.article-body figure img { display: block; width: 100%; height: auto; border: 1px solid var(--line); background: #171b17; }
.article-body figure.is-portrait img { width: auto; max-width: 100%; max-height: 720px; margin: 0 auto; }
.article-body figcaption { color: var(--muted); font-size: 11px; line-height: 1.6; margin-top: 10px; }
.divider { border: 0; margin: 40px auto; }
.divider-line { height: 1px; background: var(--line); }
.divider-dots, .divider-diamond { height: auto; text-align: center; line-height: 1; }
.divider-dots::before { content: '· · ·'; color: var(--muted); letter-spacing: .6em; }
.divider-diamond::before { content: '◆'; color: var(--accent); font-size: 8px; }
.article-foot {
  display: flex; justify-content: space-between; gap: 20px; padding: 23px 0;
  border-top: 1px solid var(--line); margin-top: 46px; font-size: 12px; color: var(--muted);
}
.article-foot a { color: var(--accent-text); }
.machine-note { font-size: 11px; text-align: right; }

/* ---------------------------------------------------------------- reading type tracking
   Sean 2026-10-10: reading type 1px smaller with the previous line spacing kept as
   absolute px values, and Korean tracking -5%. Latin and number runs are wrapped in
   .lat (tools/build.py, news-app-1.js) and keep each element's previous tracking, so
   English words inside Korean sentences stay as they were (sean.context.md: Korean
   negative tracking, Latin untouched). EN/VI pages keep their previous tracking. */
:root { --lat-track: -.27px; } /* body -.018em at 15px, inherited as a fixed length */
.intro h1, .detail-header h1 { --lat-track: -.055em; }
.pc-text h3 { --lat-track: -.04em; }
.article-body h2 { --lat-track: -.03em; }
html:lang(ko) :is(.intro h1, .intro p, .pc-text h3, .pc-text p, .empty, .detail-header h1, .detail-header .lead, .article-body p, .article-body h2, .article-body blockquote) { letter-spacing: -.05em; }
html:lang(ko) :is(.intro h1, .intro p, .pc-text h3, .pc-text p, .empty, .detail-header h1, .detail-header .lead, .article-body p, .article-body h2, .article-body blockquote) .lat { letter-spacing: var(--lat-track); }

.not-found { min-height: 46vh; }
.not-found-links { display: flex; gap: 18px; margin-top: 26px !important; font-size: 13px; }
.not-found-links a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 5px; }

/* ---------------------------------------------------------------- responsive */
@media (min-width: 1600px) { :root { --max: 1000px; } }

@media (max-width: 1000px) {
  main { margin: 0 36px; }
  .footer-brand > span:last-child { display: none; }
  .footer-links { gap: 16px; }
  .header-inner, .footer-inner { padding: 0 30px; }
  .pc-text { padding: 24px; }
  .pc-text h3 { font-size: 23px; line-height: 31.92px; }
  .days button, .days span { min-width: 23px; flex-basis: 23px; }
}

@media (max-width: 700px) {
  main { padding-top: 109px; margin: 0 22px; padding-bottom: 117px; }
  .header-inner { padding: 0 20px; gap: 12px; grid-template-columns: 1fr auto auto; }
  .brand { gap: 8px; }
  .brand-symbol-wrap { width: 40px; height: 40px; flex-basis: 40px; }
  .site-header .brand-wordmark { width: 78px; height: 20px; }
  .brand-from { font-size: 8px; }
  .header-title { font-size: 10px; letter-spacing: .18em; }
  .header-right { gap: 14px; }
  .theme-toggle { width: 31px; height: 31px; padding: 0; justify-content: center; }
  .theme-toggle span { display: none; }
  .languages { gap: 9px; }
  .languages a { font-size: 9px; min-width: 17px; }
  .intro h1 { font-size: 30px; line-height: 38.75px; }
  .intro p { font-size: 12px; line-height: 21.45px; margin-top: 11px; max-width: 310px; }
  .intro { margin-bottom: 25px; }
  .cal { gap: 13px; padding: 9px 0; flex-wrap: wrap; }
  .month { width: 100%; justify-content: space-between; }
  .month button { min-width: 30px; }
  .days { flex-basis: 100%; padding-top: 0; }
  .days button, .days span { min-width: 24px; flex-basis: 24px; }
  .month-picker { top: 48px; }
  .filters { gap: 6px; padding: 20px 0; }
  .filters button { padding: 7px 10px; font-size: 11px; gap: 7px; }
  .post-card { grid-template-columns: 1fr; }
  .cover { min-height: 220px; height: 220px; border-right: 0; border-bottom: 1px solid var(--line); }
  .pc-text { padding: 23px 24px; }
  .pc-text h3 { font-size: 24px; line-height: 33.25px; margin: 13px 0 9px; }
  .readmore { padding-top: 16px; }
  .text-cover { min-height: 220px; padding: 26px; }
  .list-heading { margin-bottom: 15px; }
  .list-meta { font-size: 10px; }
  .site-footer { height: 64px; }
  .footer-inner { padding: 0 20px; gap: 12px; }
  .footer-brand { display: none; }
  .footer-copy { font-size: 8px; }
  .copyright-long { display: none; }
  .footer-links { gap: 13px; font-size: 9px; }
  .footer-links a:last-child { display: none; }
  .detail-back { margin-bottom: 29px; }
  .detail-header h1 { font-size: 34px; line-height: 43.4px; margin-top: 17px; }
  .detail-header .lead { font-size: 14px; line-height: 27.75px; }
  .detail-cover { height: 230px; }
  .detail-cover .text-cover { padding: 28px; }
  .caption { font-size: 10px; }
  .article-body { font-size: 14px; line-height: 29.25px; }
  .article-body h2 { font-size: 22px; line-height: 32.2px; }
  .article-body blockquote { font-size: 18px; line-height: 31.35px; padding-left: 18px; }
  .article-foot { font-size: 11px; flex-direction: column; gap: 8px; }
  .machine-note { text-align: left; }
  .detail-meta { font-size: 10px; }
}

@media (max-width: 380px) {
  .header-inner { padding: 0 15px; gap: 10px; }
  .header-right { gap: 10px; }
  .languages { gap: 8px; }
  .header-title { letter-spacing: .1em; }
  .footer-inner { padding: 0 15px; }
  .footer-links { gap: 10px; }
  main { margin: 0 18px; }
  .filters button { padding: 6px 8px; }
  .detail-header h1 { font-size: 31px; line-height: 39.68px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

@media print {
  .site-header, .site-footer, .cal, .filters { display: none !important; }
  main { padding: 25px; margin: auto; }
  .post-card { break-inside: avoid; }
  body { background: #fff; color: #000; }
}
