/*
Theme Name: Nullagi Minimal
Theme URI: https://blog.nullagilab.com/
Author: null_AGI
Description: Simple text-first WordPress theme. Centered wide-responsive article area, footer navigation, RSS, search, no comments, no SNS buttons, and no thumbnails.
Version: 1.6.3
License: GPL-2.0-or-later
Text Domain: nullagi-minimal
*/

:root {
  --bg: #ffffff;
  --fg: #222222;
  --muted: #666666;
  --line: #d8dee4;
  --soft: #f6f8fa;
  --code-bg: #f7f7f7;
  --content-width: clamp(720px, 42vw, 860px);
}

* { box-sizing: border-box; }
html { font-size: 16px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  line-height: 1.82;
  overflow-wrap: anywhere;
}
a { color: inherit; text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }
.site {
  min-height: 100vh;
  max-width: none;
  margin: 0;
  padding: 24px 18px 34px;
  display: flex;
  flex-direction: column;
}
.site-header,
.site-main,
.site-footer {
  width: min(100%, var(--content-width));
  margin-right: auto;
  margin-left: auto;
}
.site-header { margin-bottom: 30px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.site-main { padding-bottom: 56px; }
.site-title { margin: 0 0 8px; font-size: 1.55rem; font-weight: 700; line-height: 1.35; }
.site-description { margin: -3px 0 0; color: var(--muted); font-size: .94rem; }
.post-list { margin: 0; padding: 0; list-style: none; }
.post-card { margin: 0 0 27px; }
.entry-title { margin: 0 0 4px; font-size: 1.42rem; font-weight: 700; line-height: 1.46; }
.archive-title { margin: 0 0 24px; font-size: 1.42rem; }
.entry-meta { margin: 0 0 9px; color: var(--muted); font-size: .92rem; }
.entry-summary p {
  display: -webkit-box;
  margin: 0 0 8px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}
.entry-content h1, .entry-content h2, .entry-content h3,
.entry-content h4, .entry-content h5, .entry-content h6 {
  margin: 1.55em 0 .45em;
  font-weight: 700;
  line-height: 1.45;
}
.entry-content h1 { font-size: 1.55rem; }
.entry-content h2 { font-size: 1.34rem; }
.entry-content h3 { font-size: 1.16rem; }
.entry-content p, .entry-content ul, .entry-content ol,
.entry-content blockquote, .entry-content pre, .entry-content table { margin: 0 0 1.08em; }
.entry-content img { display: block; max-width: 100%; height: auto; margin: 1.15em auto; background: var(--soft); }
.entry-content figure { margin: 1.15em 0; }
.entry-content figcaption { color: var(--muted); font-size: .9rem; text-align: center; }
.entry-content pre { padding: 12px 14px; overflow-x: auto; background: var(--code-bg); border: 1px solid var(--line); }
.entry-content code { padding: .1em .28em; background: var(--code-bg); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; }
.entry-content pre code { padding: 0; background: transparent; }
.entry-content blockquote { padding-left: 1em; color: var(--muted); border-left: 3px solid var(--line); }
.entry-footer { margin-top: 24px; color: var(--muted); font-size: .92rem; }
.entry-footer a { margin-right: .45em; }
.pagination { display: flex; justify-content: space-between; gap: 16px; margin-top: 28px; }
.site-footer { margin-top: auto; padding-top: 16px; color: var(--muted); font-size: .92rem; border-top: 1px solid var(--line); }
.footer-nav { margin: 0 0 14px; }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 0 14px; margin: 0; padding: 0; list-style: none; }
.footer-nav .footer-feed-link { display: inline-flex; margin-left: 14px; }
.footer-search { max-width: 430px; margin-bottom: 12px; }
.site-footer p { margin: 0 0 12px; }
.search-form { display: flex; gap: 8px; max-width: 430px; }
.search-field { width: 100%; padding: 7px 9px; background: var(--bg); border: 1px solid var(--line); font: inherit; }
.search-submit { min-width: 4.5em; padding: 7px 12px; color: var(--bg); background: var(--fg); border: 1px solid var(--fg); font: inherit; white-space: nowrap; cursor: pointer; }
@media (max-width: 680px) {
  .site { padding: 20px 15px 32px; }
  .site-header { margin-bottom: 24px; }
  .site-main { padding-bottom: 38px; }
  .site-title { font-size: 1.35rem; }
  .entry-title { font-size: 1.25rem; }
}
