/* kameikeの文章たち */
:root {
  --bg: #faf8f4;
  --bg-soft: #f1ede5;
  --ink: #2b2722;
  --ink-soft: #6f675c;
  --line: #e3ddd2;
  --accent: #9a4a3d;      /* 弁柄色 */
  --accent-soft: #f3e6e2;
  --indigo: #3c5a78;      /* 藍 */
  --indigo-soft: #e5ecf2;
  --green: #5d7052;       /* 松葉 */
  --green-soft: #e9eee4;
  --sans: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1a17;
    --bg-soft: #262320;
    --ink: #e8e3da;
    --ink-soft: #a39a8d;
    --line: #3a352f;
    --accent: #d08a7c;
    --accent-soft: #3a2a26;
    --indigo: #8fb0cc;
    --indigo-soft: #26313c;
    --green: #a3b894;
    --green-soft: #2b3226;
  }
}

* { 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: 16px;
  line-height: 1.95;
  font-feature-settings: "palt";
  letter-spacing: 0.02em;
}
a { color: var(--indigo); text-decoration-color: color-mix(in srgb, var(--indigo) 40%, transparent); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; }

/* header */
.site-header {
  max-width: 44rem;
  margin: 0 auto;
  padding: 1.1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  text-decoration: none;
}
.site-logo img { border-radius: 50%; }
.site-header nav a {
  font-size: 0.85rem;
  color: var(--ink-soft);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.25rem 0.85rem;
}
.site-header nav a:hover { color: var(--accent); border-color: var(--accent); }

main {
  max-width: 44rem;
  margin: 0 auto;
  padding: 1rem 1.25rem 3rem;
}

/* hero */
.hero { text-align: center; padding: 2.2rem 0 1.4rem; }
.hero-icon { border-radius: 50%; box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px var(--line); }
.hero h1 {
  font-family: var(--sans);
  font-size: 1.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin: 1.1rem 0 1.4rem;
}
.intro {
  text-align: left;
  color: var(--ink);
  font-size: 0.95rem;
  background: var(--bg-soft);
  border-radius: 12px;
  padding: 1.4rem 1.6rem;
}
.intro p { margin: 0 0 0.9em; }
.intro p:last-child { margin-bottom: 0; }
.hero-about { margin: 1.2rem 0 0; font-size: 0.9rem; }
.hero-about a { text-decoration: none; }

/* post list */
.posts { margin-top: 2.5rem; }
.posts-heading {
  font-family: var(--sans);
  font-size: 1.15rem;
  letter-spacing: 0.1em;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.6rem;
  margin: 0 0 0.4rem;
}
.post-list { list-style: none; margin: 0; padding: 0; }
.post-item { border-bottom: 1px solid var(--line); }
.post-item a { display: block; padding: 1.15rem 0.35rem; text-decoration: none; color: inherit; }
.post-item a:hover { background: var(--bg-soft); }
.post-item a:hover .post-item-title { color: var(--accent); }
.post-item-meta, .post-meta {
  display: flex; align-items: center; gap: 0.6rem;
  margin: 0 0 0.3rem;
  font-size: 0.78rem;
  color: var(--ink-soft);
  letter-spacing: 0.05em;
}
.post-item-title {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.6;
}
.post-item-summary {
  margin: 0.3rem 0 0;
  font-size: 0.82rem;
  color: var(--ink-soft);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.kind {
  font-size: 0.72rem;
  border-radius: 999px;
  padding: 0.1rem 0.7rem;
  letter-spacing: 0.04em;
}
.kind.serious { background: var(--indigo-soft); color: var(--indigo); }
.kind.zakki { background: var(--green-soft); color: var(--green); }

/* article */
.post-header { margin: 1.8rem 0 0; }
.post-header h1 {
  font-family: var(--sans);
  font-size: 1.65rem;
  font-weight: 600;
  line-height: 1.65;
  letter-spacing: 0.02em;
  margin: 0.4rem 0 0;
}
.post-body { margin-top: 2rem; font-size: 1rem; }
.post-body p { margin: 0 0 1.15em; }
.post-body h2, .post-body h3, .post-body h4 {
  font-family: var(--sans);
  font-weight: 600;
  line-height: 1.6;
  margin: 2.2em 0 0.8em;
}
.post-body h2 {
  font-size: 1.35rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.45rem;
}
.post-body h3 { font-size: 1.18rem; }
.post-body h4 {
  font-size: 1.02rem;
  padding-left: 0.7rem;
  border-left: 3px solid var(--accent);
}
.post-body ul { margin: 0 0 1.15em; padding-left: 1.5em; }
.post-body li { margin: 0.25em 0; }
.post-body blockquote {
  margin: 1.4em 0;
  padding: 0.2em 1.3em;
  border-left: 3px solid var(--line);
  color: var(--ink-soft);
  font-family: var(--sans);
}
.post-body pre {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1em 1.2em;
  overflow-x: auto;
  font-size: 0.85rem;
  line-height: 1.7;
}
.post-body code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.88em;
  background: var(--bg-soft);
  border-radius: 4px;
  padding: 0.1em 0.35em;
}
.post-body pre code { background: none; padding: 0; }
.post-body figure { margin: 1.6em 0; text-align: center; }
.post-body figure img {
  border-radius: 8px;
  border: 1px solid var(--line);
}
.post-body figcaption { font-size: 0.8rem; color: var(--ink-soft); margin-top: 0.5em; }

/* bookmark & tweet cards */
.bookmark, .tweet {
  display: block;
  margin: 1.2em 0;
  padding: 0.85em 1.1em;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-decoration: none;
  background: var(--bg);
  transition: border-color 0.15s;
}
.bookmark:hover, .tweet:hover { border-color: var(--accent); }
.bm-title { display: block; color: var(--ink); font-weight: 600; font-size: 0.92rem; line-height: 1.6; }
.bm-desc { display: block; color: var(--ink-soft); font-size: 0.8rem; }
.bm-host { display: block; color: var(--ink-soft); font-size: 0.76rem; margin-top: 0.15em; }
.tweet { display: flex; gap: 0.8em; align-items: center; }
.tw-icon { font-size: 1.3rem; color: var(--ink); }
.tw-body { color: var(--ink); font-size: 0.9rem; line-height: 1.6; }
.tw-url { display: block; color: var(--ink-soft); font-size: 0.76rem; word-break: break-all; }

/* about */
.profile { display: flex; gap: 1.1rem; align-items: center; margin-bottom: 2rem; }
.profile img { border-radius: 50%; }
.profile-name { font-family: var(--sans); font-weight: 600; font-size: 1.1rem; margin: 0; }
.profile-sub { margin: 0.2rem 0 0; font-size: 0.85rem; color: var(--ink-soft); }
.about-body h2 {
  font-size: 1.2rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.4rem;
}

/* footers */
.post-footer {
  margin-top: 3rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.88rem;
}
.post-footer a { text-decoration: none; }
.site-footer {
  max-width: 44rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 5rem;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--ink-soft);
  text-align: center;
}
.site-footer a { color: var(--ink-soft); }

@media (max-width: 480px) {
  body { font-size: 15px; }
  .hero h1 { font-size: 1.55rem; }
  .post-header h1 { font-size: 1.4rem; }
}
