:root {
  --paper: #edf0ea;
  --ink: #1f2c33;
  --muted: #5b6a70;
  --line: #c9d1c9;
  --code: #e2e7df;
  --tag: #f2c230;
  --tag-ink: #1f2c33;
  --link: #245f63;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #151c20;
    --ink: #dce3df;
    --muted: #93a19f;
    --line: #2c373b;
    --code: #1d262a;
    --tag: #e2b42a;
    --tag-ink: #151c20;
    --link: #7fc1be;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1.0625rem/1.7 "Iowan Old Style", "Charter", "PT Serif", Georgia, serif;
}
header.site, main, footer.site {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}
header.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}
/* бирка, как на кабеле */
.tag {
  position: relative;
  display: inline-block;
  padding: .35rem .9rem .35rem 1.9rem;
  background: var(--tag);
  color: var(--tag-ink);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .01em;
  text-decoration: none;
  border-radius: 3px 14px 14px 3px;
  transform: rotate(-2deg);
}
.tag::before {
  content: "";
  position: absolute;
  left: .7rem;
  top: 50%;
  width: .55rem;
  height: .55rem;
  margin-top: -.275rem;
  border-radius: 50%;
  background: var(--paper);
}
nav a {
  margin-left: 1.25rem;
  color: var(--ink);
  text-decoration: none;
}
nav a:hover { text-decoration: underline; text-decoration-color: var(--tag); text-decoration-thickness: 3px; }
a { color: var(--link); text-underline-offset: .18em; }
a:focus-visible { outline: 3px solid var(--tag); outline-offset: 3px; }
h1 { font-size: 2.1rem; line-height: 1.2; margin: 0 0 1rem; font-weight: 700; }
h2 { font-size: 1.35rem; line-height: 1.3; margin: 2.2rem 0 .6rem; }
p, ul, ol { margin: 0 0 1.1rem; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 36rem; }
.meta { color: var(--muted); font-size: .95rem; margin-bottom: 2rem; }
ul.notes { list-style: none; padding: 0; margin: 2.5rem 0 3rem; border-top: 1px solid var(--line); }
ul.notes li {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}
ul.notes time { color: var(--muted); font-size: .95rem; padding-top: .15rem; }
ul.notes a { font-size: 1.15rem; font-weight: 700; text-decoration: none; color: var(--ink); }
ul.notes a:hover { text-decoration: underline; text-decoration-color: var(--tag); text-decoration-thickness: 3px; }
ul.notes p { margin: .3rem 0 0; color: var(--muted); }
pre, code { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: .9rem; }
pre {
  background: var(--code);
  padding: 1rem 1.1rem;
  overflow-x: auto;
  border-left: 4px solid var(--tag);
  line-height: 1.5;
  margin: 0 0 1.3rem;
}
p code, li code { background: var(--code); padding: .05rem .3rem; }
footer.site {
  padding-top: 2rem;
  padding-bottom: 3rem;
  color: var(--muted);
  font-size: .9rem;
  border-top: 1px solid var(--line);
  margin-top: 3rem;
}
@media (max-width: 34rem) {
  ul.notes li { grid-template-columns: 1fr; gap: .2rem; }
  h1 { font-size: 1.7rem; }
  nav a { margin-left: 0; margin-right: 1.25rem; }
}
