/*
Theme Name: Miniblog Minimal
Description: Minimalistinen blogiteema – uusin postaus kokonaan, arkisto alla otsikkoina. Ei navigointia, vain yksi CSS.
Author: Jari
Version: 1.0.0
Text Domain: miniblog-minimal
*/

:root {
  --bg: #fff;
  --fg: #0c0c0d;
  --muted: #5a5a5a;
  --link: #0a58ca;
  --link-visited: #6644aa;
  --border: #e7e7e9;
  --maxw: 68ch;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0c;
    --fg: #f2f2f3;
    --muted: #a3a3a8;
    --link: #7aa7ff;
    --link-visited: #b699ff;
    --border: #1f1f22;
  }
}

html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-family: ui-sans-serif, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  line-height: 1.6;
}

.wrap { max-width: var(--maxw); margin: 12vh auto 8rem; padding: 0 1.25rem; }

header.site { margin-bottom: 2rem; }
header.site h1 {
  font-size: clamp(28px, 5vw, 44px);
  letter-spacing: -0.02em;
  margin: 0 0 .25rem 0;
  font-weight: 800;
}
header.site p.tagline { margin: 0; color: var(--muted); font-size: 0.975rem; }

article.post { margin: 4rem 0 3rem; }
article.post h2.title {
  font-size: clamp(34px, 7vw, 60px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 .75rem 0;
  font-weight: 900;
}
.meta { color: var(--muted); font-size: 0.95rem; margin-bottom: 1.5rem; }

.content {
  font-family: Georgia, Cambria, "Times New Roman", Times, serif;
  font-size: clamp(18px, 2vw, 20px);
}
.content p { margin: 1em 0; }
.content h3 { font-family: inherit; font-size: 1.25em; margin: 2rem 0 .5rem; }
.content img { max-width: 100%; height: auto; border-radius: 10px; }

section.archive { margin-top: 4rem; border-top: 1px solid var(--border); padding-top: 2rem; }
section.archive h3 {
  margin: 0 0 1rem; font-size: 0.95rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted);
}

.list { list-style: none; padding: 0; margin: 0; }
.list li {
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: .4rem;
}
.list a.title {
  text-decoration: none;
  font-weight: 750;
  font-size: clamp(18px, 2vw, 20px);
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.list a.title:hover { text-decoration: underline; }
.list p.excerpt { margin: 0; color: var(--muted); font-size: 0.98rem; }

footer { color: var(--muted); font-size: .9rem; margin-top: 4rem; border-top: 1px solid var(--border); padding-top: 1.25rem; }

@media print {
  a { color: black; text-decoration: none; }
  .list li { border-bottom: none; }
  footer { border-top: none; }
}
