:root {
  color-scheme: light;
  --ink: #111111;
  --paper: #ffffff;
  --muted: #666666;
  --line: #222222;
  --font: "Helvetica Neue", Helvetica, Arial, "Hiragino Sans", "Yu Gothic UI", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 14px/1.5 var(--font);
}

body {
  display: flex;
  flex-direction: column;
  max-width: 1100px;
  margin: 0 auto;
  min-height: 100vh;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.shell {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 14.5rem;
  width: 100%;
  align-items: start;
}

.shell.no-sidebar {
  grid-template-columns: 1fr;
}

a:focus-visible,
button:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 2px;
}

a {
  color: var(--ink);
}

header {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
}

header .brand {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
  color: var(--ink);
  text-decoration: none;
}

header .mark {
  font: 700 14px/1.2 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink);
}

header .tagline {
  font: 13px/1.4 var(--font);
}

main {
  padding: 28px 24px 72px;
  overflow-x: auto;
  min-width: 0;
}

aside {
  padding: 28px 20px 72px 24px;
  border-left: 1px solid var(--line);
  font: 13px/1.6 var(--mono);
}

aside .block {
  margin: 0 0 28px;
}

aside .block h2 {
  margin: 0 0 10px;
  font: 12px/1 var(--mono);
  letter-spacing: .14em;
}

aside ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

aside li {
  padding: 4px 0;
}

aside .cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
}

aside .cloud li {
  padding: 0;
}

aside .cloud .more {
  flex-basis: 100%;
  margin-top: 4px;
}

aside a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

aside a.on,
aside a:hover {
  background: var(--ink);
  color: var(--paper);
}

@media (max-width: 720px) {
  .shell {
    grid-template-columns: 1fr;
  }

  aside {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 24px;
  }

  body {
    border-left: 0;
    border-right: 0;
  }
}

h1 {
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 16px;
  letter-spacing: .01em;
}

h2 {
  font-size: 14px;
  font-weight: 600;
  margin: 28px 0 12px;
}

h1,
.intro,
.feed a,
article p {
  overflow-wrap: break-word;
  word-break: auto-phrase;
}

.feed {
  list-style: none;
  margin: 0;
  padding: 0;
}

.feed li {
  display: flex;
  gap: 8px;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.feed time {
  font: 13px/1.5 var(--mono);
  flex: 0 0 10ch;
  color: var(--muted);
}

.feed a {
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.feed a:hover {
  background: var(--ink);
  color: var(--paper);
}

.feed .headline {
  flex: 1 1 0;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.tag {
  display: inline-block;
  font: 700 11px/1.2 var(--mono);
  letter-spacing: .06em;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
  padding: 1px 5px;
  vertical-align: 1px;
  margin-right: 4px;
  white-space: nowrap;
}

.tag.is-empty {
  visibility: hidden;
}

.index-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 8px 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.index-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.index-list span {
  font: 12px/1.75 var(--mono);
  white-space: nowrap;
}

@media (max-width: 720px) {
  .feed li {
    flex-direction: column;
    gap: 4px;
  }

  .feed time {
    flex: none;
  }

  .feed a {
    flex-wrap: wrap;
  }

  .feed .headline {
    flex: 1 1 100%;
  }
}

.pages {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  font: 13px/1 var(--mono);
}

.pages a {
  color: var(--ink);
  text-decoration: none;
}

.pages a:hover {
  background: var(--ink);
  color: var(--paper);
}

.meta,
.source,
footer {
  font: 13px/1.5 var(--mono);
}

.meta {
  margin: 0 0 8px;
}

article h1 {
  margin-bottom: 16px;
}

.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0 0 1.25em;
  background: var(--ink);
  border: 1px solid var(--line);
  overflow: hidden;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.no-sidebar article,
.no-sidebar .adjacent {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

article p,
article li {
  font-size: 15px;
  line-height: 1.85;
}

article p {
  margin: 0 0 1em;
}

article .meta,
article .source {
  font-size: 13px;
  line-height: 1.5;
}

article a {
  color: var(--ink);
}

article a:hover {
  background: var(--ink);
  color: var(--paper);
}

article img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 0 1em;
}

.affiliate {
  margin: 28px 0 0;
}

.ad-note {
  margin: 6px 0 0;
  font: 12px/1.5 var(--mono);
}

.source {
  margin-top: 28px;
}

.tags {
  margin-top: 8px;
  font: 13px/1.5 var(--mono);
}

.tags a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.adjacent {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 40px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font: 13px/1.5 var(--mono);
}

.adjacent a {
  color: var(--ink);
  text-decoration: none;
  min-width: 0;
  overflow-wrap: anywhere;
}

.adjacent a:hover {
  background: var(--ink);
  color: var(--paper);
}

.adjacent .older {
  margin-left: auto;
  text-align: right;
}

@media (max-width: 720px) {
  .adjacent a {
    width: 100%;
  }

  .adjacent .older {
    margin-left: 0;
    text-align: left;
  }
}

.source a {
  color: var(--ink);
  text-decoration: underline;
}

table {
  border-collapse: collapse;
  width: 100%;
  margin: 0 0 1em;
}

th, td {
  border: 1px solid var(--line);
  padding: 6px 8px;
  text-align: left;
  font-size: 13px;
}

th {
  background: var(--ink);
  color: var(--paper);
  font: 13px/1.5 var(--mono);
}

footer {
  margin: 0;
  padding: 16px 24px;
  border-top: 1px solid var(--line);
}

footer p {
  margin: 0;
}

footer .copyright {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

footer a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

footer a:hover {
  background: var(--ink);
  color: var(--paper);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
