/* ツギコイ — 疲れた人の休憩所
   設計方針: 低彩度・余白多め・モバイル最優先・1画面の情報量を絞る */

:root {
  --bg:        #faf8f5;
  --panel:     #ffffff;
  --ink:       #2c2a29;
  --ink-soft:  #4a4642;
  --muted:     #726c66;
  --line:      #e8e2db;
  --accent:    #8c6a5d;
  --accent-bg: #f2ebe6;
  --sage:      #6f7f72;
  --radius:    14px;
  --measure:   42rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:        #16181a;
    --panel:     #1d2023;
    --ink:       #e7e3de;
    --ink-soft:  #cfc9c2;
    --muted:     #9c968f;
    --line:      #2e3236;
    --accent:    #c8a396;
    --accent-bg: #262223;
    --sage:      #93a698;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", "Yu Gothic", sans-serif;
  font-size: 17px;
  line-height: 1.95;
  letter-spacing: .02em;
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- header ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.site-header .wrap {
  display: flex; align-items: baseline; gap: 12px;
  padding-top: 18px; padding-bottom: 18px; flex-wrap: wrap;
}
.logo {
  font-size: 19px; font-weight: 700; letter-spacing: .08em;
  color: var(--ink); text-decoration: none;
}
.logo-sub { font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.site-nav { margin-left: auto; display: flex; gap: 16px; }
.site-nav a { font-size: 13px; color: var(--muted); text-decoration: none; }
.site-nav a:hover { color: var(--accent); }

/* ---------- hero ---------- */
.hero { padding: 56px 0 44px; }
.hero h1 {
  font-size: 25px; line-height: 1.65; font-weight: 700;
  letter-spacing: .01em; margin-bottom: 20px;
}
.hero p { color: var(--ink-soft); font-size: 16px; }
.hero .lede + .lede { margin-top: 14px; }

/* ---------- sections ---------- */
main { padding-bottom: 72px; }
.section { padding: 40px 0; border-top: 1px solid var(--line); }
.section-title {
  font-size: 13px; font-weight: 700; letter-spacing: .16em;
  color: var(--muted); margin-bottom: 24px;
}

/* ---------- article list ---------- */
.post-list { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.post-list li { border-bottom: 1px solid var(--line); }
.post-list li:last-child { border-bottom: 0; }
.post-list a {
  display: block; padding: 20px 0; text-decoration: none; color: var(--ink);
}
.post-list a > span { display: block; }
.post-list a:hover .post-title { color: var(--accent); }
.post-meta { font-size: 12px; color: var(--muted); letter-spacing: .06em; }
.post-title { font-size: 18px; font-weight: 700; line-height: 1.6; margin: 6px 0 8px; }
.post-excerpt { font-size: 14px; color: var(--muted); line-height: 1.8; }

.coming { color: var(--muted); font-size: 14px; padding: 18px 0; }
.coming ul { list-style: none; margin-top: 10px; }
.coming li { padding: 5px 0 5px 18px; position: relative; }
.coming li::before {
  content: ""; position: absolute; left: 0; top: 15px;
  width: 6px; height: 1px; background: var(--muted);
}

/* ---------- author card ---------- */
.author-card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
}
.author-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.avatar {
  width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0;
  background: var(--accent-bg); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-size: 20px; font-weight: 700;
}
.author-name { font-size: 16px; font-weight: 700; }
.author-role { font-size: 12px; color: var(--muted); }
.author-card p { font-size: 14.5px; color: var(--ink-soft); }
.author-card p + p { margin-top: 10px; }
.author-card .more { display: inline-block; margin-top: 14px; font-size: 13px; }

/* ---------- article body ---------- */
.breadcrumb { font-size: 12px; color: var(--muted); padding: 18px 0 0; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb li + li::before { content: "› "; color: var(--line); margin-right: 6px; }

.article-header { padding: 24px 0 8px; }
.article-header h1 { font-size: 24px; line-height: 1.62; font-weight: 700; margin: 10px 0 14px; }
.article-header .post-meta { display: block; }
.tag {
  display: inline-block; font-size: 11px; letter-spacing: .08em;
  color: var(--accent); background: var(--accent-bg);
  padding: 3px 10px; border-radius: 99px;
}

.toc {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 20px; margin: 28px 0 8px;
}
.toc h2 { font-size: 12px; letter-spacing: .14em; color: var(--muted); margin-bottom: 10px; }
.toc ol { list-style: none; counter-reset: toc; }
.toc li { counter-increment: toc; font-size: 14px; padding: 4px 0; }
.toc li::before { content: counter(toc) ". "; color: var(--muted); }

.article-body { padding: 8px 0 40px; }
.article-body h2 {
  font-size: 19px; font-weight: 700; line-height: 1.6;
  margin: 48px 0 18px; padding-top: 8px; border-top: 1px solid var(--line);
}
.article-body h3 { font-size: 16.5px; font-weight: 700; margin: 32px 0 12px; }
.article-body p { margin: 18px 0; color: var(--ink-soft); }
.article-body strong { color: var(--ink); font-weight: 700; }
.article-body ul { margin: 18px 0 18px 1.2em; }
.article-body li { margin: 8px 0; color: var(--ink-soft); }
.article-body blockquote {
  margin: 26px 0; padding: 4px 0 4px 18px;
  border-left: 3px solid var(--accent-bg); color: var(--muted); font-size: 15.5px;
}
.callout {
  background: var(--panel); border: 1px solid var(--line);
  border-left: 3px solid var(--sage);
  border-radius: 4px var(--radius) var(--radius) 4px;
  padding: 20px 22px; margin: 32px 0;
}
.callout h2, .callout h3 { margin-top: 0; border: 0; padding-top: 0; }
.note {
  font-size: 13px; color: var(--muted); line-height: 1.8;
  border-top: 1px solid var(--line); padding-top: 18px; margin-top: 40px;
}

.post-nav {
  display: flex; flex-wrap: wrap; gap: 14px 24px;
  justify-content: space-between;
  margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--line);
  font-size: 14px;
}
.post-nav a { text-decoration: none; }

/* ---------- static pages ---------- */
.page-body { padding: 8px 0 48px; }
.page-body h1 { font-size: 23px; line-height: 1.6; margin: 18px 0 22px; }
.page-body h2 {
  font-size: 17px; font-weight: 700; margin: 40px 0 14px;
  padding-top: 8px; border-top: 1px solid var(--line);
}
.page-body p { margin: 16px 0; color: var(--ink-soft); font-size: 15.5px; }
.page-body ul { margin: 16px 0 16px 1.2em; }
.page-body li { margin: 7px 0; color: var(--ink-soft); font-size: 15.5px; }
.page-body dl { margin: 16px 0; }
.page-body dt { font-weight: 700; font-size: 14.5px; margin-top: 16px; }
.page-body dd { font-size: 15px; color: var(--ink-soft); margin-left: 0; }

a { color: var(--accent); }
a:hover { opacity: .8; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line); padding: 32px 0 48px;
  font-size: 13px; color: var(--muted);
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 16px; }
.footer-nav a { color: var(--muted); text-decoration: none; }
.footer-nav a:hover { color: var(--accent); }
.copyright { font-size: 12px; letter-spacing: .04em; }

/* ---------- desktop ---------- */
@media (min-width: 768px) {
  body { font-size: 17.5px; }
  .hero { padding: 76px 0 56px; }
  .hero h1 { font-size: 31px; }
  .article-header h1 { font-size: 29px; }
  .article-body h2 { font-size: 21px; }
  .page-body h1 { font-size: 27px; }
}
