/* KJHS — minimal static theme. No JS. No build tooling required to read this file. */

:root {
  --text: #232323;
  --muted: #6b6b6b;
  --bg: #fdfcfa;
  --accent: #8a4a2f;
  --border: #e6e1da;
  --max-width: 680px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #e8e4dd;
    --muted: #9c968c;
    --bg: #17140f;
    --accent: #e0a37e;
    --border: #2c2822;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  line-height: 1.65;
  font-size: 18px;
}

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

a { color: var(--accent); text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 2px; }
a:hover { text-decoration-color: currentColor; }

.site-header {
  border-bottom: 1px solid var(--border);
  padding: 28px 0 18px;
}

.site-title {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--text);
}

.tagline {
  margin: 2px 0 14px;
  color: var(--muted);
  font-size: 14px;
  font-style: italic;
}

nav {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}

nav a { text-decoration: none; color: var(--muted); padding: 4px 0; }
nav a:hover, nav a.active { color: var(--accent); }
nav a.lang-switch {
  margin-left: auto;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 12px;
  color: var(--text);
}
nav a.lang-switch:hover { border-color: var(--accent); color: var(--accent); }

main { padding: 36px 0 60px; min-height: 50vh; }

h1 { font-size: 30px; line-height: 1.25; margin: 0 0 8px; }
h2 { font-size: 22px; margin: 34px 0 10px; }
h3 { font-size: 18px; margin: 24px 0 8px; }

.post-meta {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 22px;
}

.post-body img { max-width: 100%; height: auto; border-radius: 4px; display: block; margin: 18px auto; }
.post-body figcaption, .post-body p em:only-child { color: var(--muted); font-size: 14px; text-align: center; }
.post-body p { margin: 0 0 1.1em; }
.post-body ul, .post-body ol { padding-left: 1.4em; }
.post-body blockquote {
  margin: 1.2em 0;
  padding: 2px 0 2px 16px;
  border-left: 3px solid var(--border);
  color: var(--muted);
}
.post-body hr { border: none; border-top: 1px solid var(--border); margin: 2em 0; }
.post-body code { background: var(--border); padding: 1px 5px; border-radius: 3px; font-size: 0.9em; }

/* index / post list */
.post-list { list-style: none; padding: 0; margin: 0; }
.post-list-item {
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}
.post-list-item:first-child { padding-top: 0; }
.post-list-title {
  font-size: 21px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
}
.post-list-title:hover { color: var(--accent); }
.post-excerpt { margin: 8px 0 6px; color: var(--text); }
.read-more {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  text-decoration: none;
}

/* post prev/next */
.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
}
.post-nav a { text-decoration: none; }
.post-nav .next { margin-left: auto; text-align: right; }

.site-footer {
  border-top: 1px solid var(--border);
  padding: 20px 0 40px;
  color: var(--muted);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
}

/* CV page tightening */
.page .post-body h2 { border-bottom: 1px solid var(--border); padding-bottom: 4px; }

@media (max-width: 480px) {
  body { font-size: 17px; }
  h1 { font-size: 26px; }
}
