:root {
  --bg: #f5f8f2;
  --ink: #1e2a22;
  --leaf: #2f5d3a;
  --lamp: #c0357f;
  --muted: #627066;
  --rule: #d8e0d4;
  --measure: 41rem;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "PT Serif", Georgia, "Times New Roman", serif;
  line-height: 1.7;
}

a { color: var(--leaf); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--lamp); }
a:focus-visible { outline: 2px solid var(--lamp); outline-offset: 3px; border-radius: 2px; }

.lamp {
  height: 10px;
  background:
    radial-gradient(circle at 50% 50%, #e0304a 0 2px, transparent 2.5px) 0 0 / 18px 10px,
    radial-gradient(circle at 50% 50%, #4a55e0 0 2px, transparent 2.5px) 9px 0 / 18px 10px,
    #2b2f2d;
}

.masthead {
  background: linear-gradient(180deg, rgba(192, 53, 127, 0.16), rgba(192, 53, 127, 0) 11rem);
  padding: 2.6rem 0 1.8rem;
}

.masthead-inner, main, .site-footer { max-width: var(--measure); margin: 0 auto; padding-left: 1.25rem; padding-right: 1.25rem; }

.site-title {
  margin: 0;
  font-size: 2.35rem;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.site-title a { color: var(--ink); text-decoration: none; }
.site-title a:hover { color: var(--ink); }

.tagline { margin: 0.35rem 0 0; color: var(--muted); font-style: italic; }

.site-nav { margin-top: 1.1rem; display: flex; gap: 1.4rem; font-size: 0.95rem; }

main { padding-top: 0.5rem; padding-bottom: 3rem; }

.posts { list-style: none; margin: 0; padding: 0; }
.posts li { padding: 1.4rem 0; border-top: 1px solid var(--rule); }
.posts li:first-child { border-top: 0; }
.posts time { color: var(--muted); font-size: 0.9rem; }
.posts h2 { margin: 0.15rem 0 0.35rem; font-size: 1.3rem; line-height: 1.3; }
.posts h2 a { text-decoration: none; }
.posts h2 a:hover { text-decoration: underline; }
.posts p { margin: 0; }

article h1 { font-size: 1.9rem; line-height: 1.2; margin: 0.6rem 0 0.3rem; }
article .meta { color: var(--muted); font-size: 0.9rem; margin: 0 0 1.6rem; }
article h2 { font-size: 1.25rem; margin: 2rem 0 0.4rem; }
article p, article ul { margin: 0 0 1rem; }
article li { margin-bottom: 0.35rem; }
article blockquote {
  margin: 1.4rem 0;
  padding: 0.2rem 0 0.2rem 1rem;
  border-left: 3px solid var(--lamp);
  color: var(--muted);
}

.back { font-size: 0.95rem; }

.site-footer {
  padding-top: 1.5rem;
  padding-bottom: 2.5rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.88rem;
}
.site-footer p { margin: 0 0 0.3rem; }

@media (max-width: 480px) {
  html { font-size: 100%; }
  .masthead { padding-top: 2rem; }
  .site-title { font-size: 1.95rem; }
  article h1 { font-size: 1.6rem; }
}
