@font-face { font-family: "Red Hat Display"; src: url(/fonts/RedHatDisplay-Bold.otf) format("opentype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Red Hat Text"; src: url(/fonts/RedHatText-Regular.otf) format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Red Hat Text"; src: url(/fonts/RedHatText-Medium.otf) format("opentype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Red Hat Text"; src: url(/fonts/RedHatText-Italic.otf) format("opentype"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url(/fonts/JetBrainsMono-Regular.otf) format("opentype"); font-weight: 400; font-display: swap; }

:root {
  --paper: #eef1ec; --ink: #141a17; --muted: #56605a; --rule: #cfd6cf; --code: #e1e7e0; --card: #f7f9f6;
  --signal: #0f7a5c;
  --sans: "Red Hat Text", system-ui, sans-serif;
  --head: "Red Hat Display", "Red Hat Text", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #101413; --ink: #e4ebe6; --muted: #98a59d; --rule: #26302b; --code: #18201c; --card: #151b18; --signal: #4fd1a5; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 18px/1.65 var(--sans); }
.wrap { max-width: 44rem; margin: 0 auto; padding: 0 1rem; }
a { color: inherit; text-decoration-color: var(--signal); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--signal); }
a:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
.mono { font-family: var(--mono); font-size: .85rem; letter-spacing: .01em; }
.muted { color: var(--muted); }

nav { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1.5rem 0; border-bottom: 1px solid var(--rule); }
nav .me { font-family: var(--head); font-weight: 700; text-decoration: none; }

h1 { font-family: var(--head); font-size: clamp(1.9rem, 6vw, 2.6rem); line-height: 1.12; letter-spacing: -.015em; margin: 0 0 1rem; }
h2 { font-family: var(--head); font-size: 1.35rem; line-height: 1.25; margin: 2.5rem 0 .75rem; letter-spacing: -.01em; }
p { margin: 0 0 1rem; }
.label { display: block; color: var(--signal); margin-bottom: .75rem; }

.intro { padding: 3rem 0 2rem; }
.intro p { color: var(--muted); max-width: 34rem; }

.np { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: center; background: var(--card); border: 1px solid var(--rule); border-radius: 6px; padding: 1rem 1.1rem; margin: 0 0 2.5rem; }
.np[hidden] { display: none; }
.np .bars { display: flex; align-items: flex-end; gap: 3px; height: 22px; width: 22px; }
.np .bars i { display: block; width: 4px; height: 30%; background: var(--signal); border-radius: 1px; }
.np.live .bars i { animation: eq 1.1s ease-in-out infinite; }
.np.live .bars i:nth-child(2) { animation-delay: -.4s; }
.np.live .bars i:nth-child(3) { animation-delay: -.8s; }
.np.live .bars i:nth-child(4) { animation-delay: -.2s; }
@keyframes eq { 0%, 100% { height: 25%; } 50% { height: 100%; } }
@media (prefers-reduced-motion: reduce) { .np.live .bars i { animation: none; height: 70%; } }
.np .what { min-width: 0; }
.np .state { color: var(--signal); display: block; }
.np .title { font-weight: 500; display: block; overflow-wrap: anywhere; }
.np .artist { color: var(--muted); display: block; overflow-wrap: anywhere; }

.log { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.log li { border-bottom: 1px solid var(--rule); }
.log a { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; padding: 1rem 0; text-decoration: none; }
.log a:hover .t { color: var(--signal); }
.log .d { color: var(--muted); padding-top: .2rem; }
.log .t { font-weight: 500; display: block; }
.log .s { color: var(--muted); display: block; font-size: .95rem; }
.tag { color: var(--signal); }

article { padding: 2.5rem 0 1rem; }
article header { margin-bottom: 2rem; }
article header .mono { color: var(--muted); }
article li { margin-bottom: .4rem; }
code { font: .85em var(--mono); background: var(--code); padding: .1em .35em; border-radius: 3px; overflow-wrap: anywhere; }
pre { background: var(--code); border-radius: 4px; padding: 1rem 1.1rem; overflow-x: auto; margin: 1.25rem 0; font: .8rem/1.7 var(--mono); }
pre code { background: none; padding: 0; font-size: inherit; }
pre .dim { color: var(--muted); }
.note { color: var(--muted); font-size: .9rem; }
.back { display: inline-block; margin: 2rem 0 0; }

footer { padding: 2rem 0 3rem; margin-top: 3rem; color: var(--muted); border-top: 1px solid var(--rule); }

@media (max-width: 34rem) {
  .log a { grid-template-columns: 1fr; gap: .15rem; }
  body { font-size: 17px; }
}
