/* Paintframe — minimal, readable, accessible */

:root {
  --bg: #f7f4ee;
  --text: #2b2a27;
  --muted: #6b675f;
  --rule: #e2ddd2;
  --accent: #8a4b2a;
  --code-bg: #efeae0;
  --measure: 34rem;
  --serif: "Noto Serif Georgian", "Noto Serif", Georgia, serif;
  --sans: "Noto Sans Georgian", "Noto Sans", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1d1c1a;
    --text: #e6e1d7;
    --muted: #a39d92;
    --rule: #34322e;
    --accent: #e0a07c;
    --code-bg: #272522;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif);
  line-height: 1.7;
  font-feature-settings: "kern", "liga";
  text-rendering: optimizeLegibility;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  padding: .5rem .75rem;
  background: var(--text);
  color: var(--bg);
  font-family: var(--sans);
  font-size: .85rem;
  z-index: 10;
}
.skip-link:focus { top: 1rem; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.site-header { padding: 3rem 0 2.5rem; }
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .5rem 1.5rem;
}
.site-title {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: .02em;
  color: var(--text);
  text-decoration: none;
}
.site-nav {
  display: flex;
  gap: 1.25rem;
  font-family: var(--sans);
  font-size: .85rem;
}
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--text); }

/* Links & focus */
a { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Typography */
h1, h2, h3 {
  font-family: var(--sans);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.005em;
}
h1 { font-size: 1.6rem; margin: 0 0 .5rem; }
h2 { font-size: 1.15rem; margin: 2.5rem 0 .75rem; }
h3 { font-size: 1rem; margin: 2rem 0 .5rem; }
p, ul, ol, blockquote, pre { margin: 0 0 1.25rem; }
ul, ol { padding-left: 1.25rem; }
li + li { margin-top: .35rem; }

blockquote {
  margin-left: 0;
  padding-left: 1.25rem;
  border-left: 2px solid var(--rule);
  color: var(--muted);
}

code {
  font-family: var(--mono);
  font-size: .85em;
  background: var(--code-bg);
  padding: .1em .3em;
  border-radius: 3px;
}
pre {
  background: var(--code-bg);
  padding: 1rem 1.1rem;
  border-radius: 4px;
  overflow-x: auto;
  line-height: 1.55;
}
pre code { background: none; padding: 0; font-size: .8rem; }

hr { border: 0; border-top: 1px solid var(--rule); margin: 2.5rem 0; }

/* Intro */
.intro { color: var(--muted); margin-bottom: 3rem; }

/* Post list */
.post-list { list-style: none; padding: 0; margin: 0; }
.post-list li { margin: 0; padding: 1.25rem 0; border-top: 1px solid var(--rule); }
.post-list li:last-child { border-bottom: 1px solid var(--rule); }
.post-list a {
  font-family: var(--sans);
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}
.post-list a:hover { color: var(--accent); }
.post-list p { margin: .35rem 0 0; color: var(--muted); font-size: .95rem; }

.meta {
  display: block;
  font-family: var(--sans);
  font-size: .78rem;
  color: var(--muted);
  letter-spacing: .02em;
}

/* Article */
.post-header { margin-bottom: 2.5rem; }
.post-header .meta { margin-top: .25rem; }
.back { font-family: var(--sans); font-size: .85rem; }

/* Footer */
.site-footer {
  margin-top: 5rem;
  padding: 2rem 0 3rem;
  font-family: var(--sans);
  font-size: .8rem;
  color: var(--muted);
}
.site-footer .wrap { border-top: 1px solid var(--rule); padding-top: 1.5rem; }

@media (max-width: 30rem) {
  html { font-size: 106%; }
  .site-header { padding: 2rem 0 1.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

.empty { color: var(--muted); }

main.wrap { padding-bottom: 5rem; }
