:root {
  --ink: #1d1d1f;
  --muted: #5f6368;
  --line: #e4e4e7;
  --bg: #fbfaf7;
  --card: #ffffff;
  --brand: #0a7d3b;
  --brand-ink: #075c2b;
  --sun: #ffd43b;
  --mark: #fff1a8;
  --radius: 12px;
  font-size: 18px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1rem/1.6 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
a { color: var(--brand); text-underline-offset: 2px; }
a:hover { color: var(--brand-ink); }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* header */
.top { background: var(--card); border-bottom: 1px solid var(--line); }
.top-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { font-weight: 800; font-size: 1.25rem; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { height: 34px; width: auto; display: block; }
.about h1 { margin-top: 0; }
.about h2 { font-size: 1.15rem; margin-top: 1.6em; }
.logo-sub { font-weight: 500; color: var(--muted); font-size: 0.95rem; }
.top-links a { margin-left: 18px; font-size: 0.9rem; font-weight: 600; text-decoration: none; }

/* search area */
.hero { padding: 36px 0 8px; }
.hero h1 { font-size: 1.9rem; line-height: 1.2; margin: 0 0 16px; letter-spacing: -0.02em; }
.search { position: relative; }
.search input {
  width: 100%; font: inherit; font-size: 1.15rem; padding: 14px 48px 14px 18px;
  border: 2px solid #cfd2d6; border-radius: var(--radius); background: var(--card); color: var(--ink);
  -webkit-appearance: none; appearance: none;
}
.search input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(10,125,59,.15); }
.search input::-webkit-search-cancel-button { display: none; }
.clear {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border: 0; border-radius: 50%; background: #eee; color: #444;
  font-size: 1.3rem; line-height: 1; cursor: pointer;
}
.filters { margin-top: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button {
  font: inherit; font-size: 0.9rem; font-weight: 600; padding: 6px 14px; border-radius: 999px;
  border: 1px solid #cfd2d6; background: var(--card); color: var(--ink); cursor: pointer;
}
.chips button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.row select {
  font: inherit; font-size: 0.9rem; padding: 7px 10px; border-radius: 8px;
  border: 1px solid #cfd2d6; background: var(--card); color: var(--ink); max-width: 100%;
}

.status { color: var(--muted); font-size: 0.95rem; margin: 18px 0 10px; font-weight: 500; }

/* posts */
.results { display: grid; gap: 14px; }
.post {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 22px 16px;
}
.post h2 { font-size: 1.2rem; line-height: 1.3; margin: 0 0 4px; letter-spacing: -0.01em; }
.post h2 a { color: var(--ink); text-decoration: none; }
.post h2 a:hover { text-decoration: underline; }
.meta { color: var(--muted); font-size: 0.85rem; margin-bottom: 8px; }
.body p { margin: 0 0 10px; }
.body img { max-width: 100%; height: auto; border-radius: 8px; }
.body blockquote { margin: 0 0 10px; padding-left: 14px; border-left: 3px solid var(--line); color: #333; }
.tags { margin-top: 4px; }
.tag {
  display: inline-block; font-size: 0.78rem; font-weight: 600; padding: 2px 10px; margin: 2px 4px 0 0;
  border-radius: 999px; background: #eef6f0; color: var(--brand-ink); text-decoration: none;
}
.tag:hover { background: #dcefe2; }
mark { background: var(--mark); color: inherit; border-radius: 3px; padding: 0 1px; }
.more {
  display: block; margin: 20px auto 0; font: inherit; font-weight: 700; padding: 12px 26px;
  border: 0; border-radius: 999px; background: var(--brand); color: #fff; cursor: pointer;
}
.more:hover { background: var(--brand-ink); }

/* single post */
.single { padding-top: 24px; }
.single .post { padding: 26px 28px; }
.single .post h2 { font-size: 1.6rem; }
.back { margin: 0 0 14px; font-weight: 600; }
.back a { text-decoration: none; }
.prevnext { display: flex; justify-content: space-between; gap: 16px; margin-top: 18px; font-size: 0.92rem; }
.prevnext a { text-decoration: none; max-width: 48%; }
.prevnext a:last-child { text-align: right; }

.foot { margin-top: 48px; padding: 26px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }

@media (max-width: 600px) {
  :root { font-size: 17px; }
  .hero { padding-top: 22px; }
  .hero h1 { font-size: 1.45rem; }
  .post { padding: 16px; }
  .single .post { padding: 18px; }
  .top-links a { margin-left: 12px; }
  .logo-sub { display: none; }
  .logo img { height: 26px; }
}
