/* niam.gg — classic, plain HTML homepage. No frameworks, scripts, or trackers. */
:root {
  color-scheme: light;
  --background: #ffffff;
  --text: #111111;
  --muted: #555555;
  --rule: #cfcfcf;
  --link: #0000ee;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font: 16px/1.5 Georgia, "Times New Roman", Times, serif;
}
.page {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 24px 35px;
}
a {
  color: var(--link);
  text-decoration: underline;
}
a:visited { color: #551a8b; }
a:hover { color: #c00; }
a:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }
.masthead {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  align-items: baseline;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--rule);
}
.site-name {
  font: bold 19px/1.3 Georgia, "Times New Roman", Times, serif;
  color: var(--text);
}
.site-name:visited { color: var(--text); }
.dot { color: var(--text); }
.rss-link { font-size: 15px; }
.hero { padding: 27px 0 23px; }
.eyebrow {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 14px;
}
h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.25;
  font-weight: bold;
  letter-spacing: 0;
}
.tagline { margin: 10px 0 15px; font-size: 16px; }
nav { display: flex; gap: 7px 20px; flex-wrap: wrap; }
.section {
  border-top: 1px solid var(--rule);
  padding: 17px 0 19px;
  scroll-margin-top: 18px;
}
.section h2 {
  font-size: 19px;
  font-weight: bold;
  line-height: 1.35;
  margin: 0 0 10px;
}
.section p { margin: 0; }
#notes h2 a { font-size: 16px; font-weight: normal; }
.note { padding: 4px 0 13px; }
.note + .note { border-top: 1px dotted var(--rule); padding-top: 13px; }
.date, .empty { color: var(--muted); }
.date { font-size: 14px; }
.note h3 { font-size: 17px; margin: 2px 0 4px; font-weight: bold; }
.note h3 a { color: var(--link); }
.note h3 a:visited { color: #551a8b; }
.note p { font-size: 15px; }
.links { display: flex; gap: 7px 20px; flex-wrap: wrap; }
.footer {
  border-top: 1px solid var(--rule);
  padding-top: 15px;
  display: flex;
  justify-content: space-between;
  gap: 10px 18px;
  color: var(--muted);
  font-size: 13px;
}
.back { display: inline-block; margin-top: 20px; }
.post-date { margin: 25px 0 7px; }
.post-title { margin: 0; }
.post-body { margin: 25px 0 65px; }
.post-body p, .post-body ul, .post-body ol { margin: 0 0 18px; }
.post-body img { max-width: 100%; height: auto; }
@media (max-width: 600px) {
  .page { padding: 18px 20px 28px; }
  .hero { padding: 23px 0 19px; }
  h1 { font-size: 25px; }
  .footer { flex-direction: column; gap: 3px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
