/* askora 공지사항 — 랜딩과 같은 색·글꼴을 쓴다. 글꼴 파일은 랜딩과 공유한다
   (tools/subset-fonts.py가 index.html과 blog-src/posts의 글자를 함께 넣는다). */
@font-face {
  font-family: 'MaruBuri';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/landing-assets/fonts/MaruBuri-Regular.woff2) format('woff2');
}
@font-face {
  font-family: 'MaruBuri';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/landing-assets/fonts/MaruBuri-Bold.woff2) format('woff2');
}
@font-face {
  font-family: 'Pretendard';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/landing-assets/fonts/Pretendard-Regular.woff2) format('woff2');
}
@font-face {
  font-family: 'Pretendard';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/landing-assets/fonts/Pretendard-SemiBold.woff2) format('woff2');
}

:root {
  --bg: #F7F4ED;
  --surface: #FFF;
  --ink: #242320;
  --muted: #6F6A61;
  --accent: #87651D;
  --quote: #EEE7D8;
  --border: #DED8CC;
  --serif: 'MaruBuri', Georgia, serif;
  --sans: 'Pretendard', system-ui, sans-serif;
  color-scheme: light;
}
:root[data-theme=dark] {
  --bg: #1C1D20;
  --surface: #25262A;
  --ink: #EEEAE2;
  --muted: #B8B1A5;
  --accent: #D4B46A;
  --quote: #363125;
  --border: #424248;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) {
    --bg: #1C1D20;
    --surface: #25262A;
    --ink: #EEEAE2;
    --muted: #B8B1A5;
    --accent: #D4B46A;
    --quote: #363125;
    --border: #424248;
    color-scheme: dark;
  }
}
:root:lang(en) { --serif: Georgia, serif; --sans: system-ui, sans-serif; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.wrap { max-width: 720px; margin: 0 auto; padding: 0 20px 80px; }
a { color: var(--accent); text-underline-offset: 4px; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-block: 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}
.brand {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--ink);
  text-decoration: none;
}
.header-links { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.header-links a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
}
.header-links a:hover { color: var(--accent); }
.header-links a[aria-current] { color: var(--accent); border: 1px solid var(--border); }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: 30px; line-height: 1.3; }
.page-title { margin-bottom: 8px; }
.page-intro { color: var(--muted); font-size: 15px; margin: 0 0 40px; }

.post-list { list-style: none; margin: 0; padding: 0; }
.post-list li { border-bottom: 1px solid var(--border); }
.post-link { display: block; padding: 20px 0; text-decoration: none; color: inherit; }
.post-link:hover h2 { color: var(--accent); }
.post-meta { font-size: 13px; color: var(--muted); letter-spacing: 0.02em; }
.post-list h2 { font-size: 21px; line-height: 1.4; margin: 6px 0; }
.post-summary { font-size: 15px; color: var(--muted); margin: 0; }
.empty { color: var(--muted); font-size: 15px; padding: 24px 0; }

article h1 { font-size: 30px; margin-bottom: 10px; }
article h2 { font-size: 22px; margin: 40px 0 12px; }
article h3 { font-size: 19px; margin: 32px 0 10px; }
article p { margin: 0 0 20px; }
article ul, article ol { margin: 0 0 20px; padding-left: 22px; }
article li { margin: 6px 0; }
article blockquote {
  margin: 0 0 20px;
  padding: 16px 18px;
  background: var(--quote);
  border-left: 3px solid var(--accent);
  font-family: var(--serif);
}
article hr { border: 0; border-top: 1px solid var(--border); margin: 40px 0; }
article img { max-width: 100%; height: auto; }
.post-head { margin-bottom: 32px; }
.post-head .post-meta { display: block; margin-bottom: 8px; }

.site-footer {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.site-footer a { color: var(--muted); }

@media (max-width: 520px) {
  body { font-size: 16px; }
  h1, article h1 { font-size: 25px; }
}

/* The askora wordmark takes the text colour. */
.brand { display: inline-flex; align-items: center; gap: .4em; white-space: nowrap; }
.brand-word { height: .95em; width: auto; flex-shrink: 0; }
