:root {
  --sidebar: #252525;
  --content: #363636;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.82);
  --quiet: rgba(255, 255, 255, 0.66);
  --rail: #d9d9d9;
  --sidebar-width: clamp(300px, 29.48vw, 566px);
  --sidebar-x: clamp(32px, 3.125vw, 60px);
  --rail-width: clamp(10px, 0.94vw, 18px);
  --title-size: clamp(48px, 5vw, 96px);
  --timeline-title-size: clamp(26px, 2.5vw, 48px);
  --entry-title-size: clamp(21px, 2.08vw, 40px);
  --entry-date-size: clamp(13px, 1.25vw, 24px);
  --small-entry-size: clamp(13px, 1.25vw, 24px);
  --small-date-size: clamp(9px, 0.83vw, 16px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow: hidden;
  background: var(--content);
  color: var(--text);
  font-family: "Red Hat Mono", monospace;
  letter-spacing: 0;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.site-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  height: 100dvh;
  min-height: 0;
}

.sidebar {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  background: var(--sidebar);
}

.sidebar-heading {
  flex: 0 0 clamp(134px, 13.07vw, 251px);
  padding: clamp(28px, 3.125vw, 60px) 24px 0 var(--sidebar-x);
}

.site-name {
  display: block;
  width: min(100%, 552px);
  color: var(--text);
  font-family: "Jersey 15", system-ui, sans-serif;
  font-size: var(--title-size);
  line-height: 1;
  text-decoration: none;
}

.timeline-wrap {
  position: relative;
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  padding: 0 0 clamp(38px, 3.8vw, 73px);
}

.timeline-wrap::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--sidebar-x);
  width: var(--rail-width);
  background: var(--rail);
  content: "";
}

.timeline-wrap h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: clamp(2px, 0.35vw, 7px) 0 clamp(14px, 1.45vw, 28px);
  padding-left: calc(var(--sidebar-x) + var(--rail-width) + clamp(8px, 0.68vw, 13px));
  color: var(--text);
  font-family: "Jersey 15", system-ui, sans-serif;
  font-size: var(--timeline-title-size);
  font-weight: 400;
  line-height: 1;
}

.timeline {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: start;
  gap: clamp(18px, 1.7vw, 33px);
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  padding: 0 22px 0 calc(var(--sidebar-x) + var(--rail-width) + clamp(8px, 0.68vw, 13px));
  scrollbar-color: var(--rail) transparent;
  scrollbar-width: thin;
}

.timeline a {
  position: relative;
  display: grid;
  gap: 0;
  color: var(--quiet);
  font-family: "Red Hat Mono", monospace;
  font-style: italic;
  line-height: 1.12;
  text-decoration: none;
}

.timeline a::before {
  position: absolute;
  top: 50%;
  left: calc(-1 * (var(--sidebar-x) + var(--rail-width) + clamp(8px, 0.68vw, 13px)) + clamp(10px, 0.94vw, 18px));
  width: 0;
  height: 0;
  border-top: clamp(7px, 0.68vw, 13px) solid transparent;
  border-bottom: clamp(7px, 0.68vw, 13px) solid transparent;
  border-left: clamp(14px, 1.3vw, 25px) solid var(--text);
  content: "";
  opacity: 0;
  transform: translateY(-50%);
}

.timeline a.is-active {
  color: var(--text);
}

.timeline a.is-active::before {
  opacity: 1;
}

.timeline a:hover,
.timeline a:focus-visible {
  color: var(--text);
  outline: none;
}

.timeline span {
  font-size: var(--small-entry-size);
  font-weight: 300;
}

.timeline time {
  color: inherit;
  font-size: var(--small-date-size);
  font-weight: 300;
}

.timeline a.is-active span {
  font-size: var(--entry-title-size);
  font-weight: 600;
}

.timeline a.is-active time {
  font-size: var(--entry-date-size);
  font-weight: 600;
}

.content-pane {
  min-width: 0;
  height: 100dvh;
  min-height: 0;
  overflow-y: auto;
  background: var(--content);
  scrollbar-color: rgba(255, 255, 255, 0.26) transparent;
  scrollbar-width: thin;
}

.entries {
  display: grid;
  align-content: center;
  gap: 72px;
  width: min(930px, calc(100% - 80px));
  min-height: 100%;
  margin: 0 auto;
  padding: 72px 0;
}

.entry {
  color: var(--text);
  font-family: "Red Hat Mono", monospace;
  font-size: 15px;
  line-height: 1.65;
  scroll-margin-top: 72px;
}

.entry-header {
  margin: 0 0 18px;
}

.entry-title {
  margin: 0;
  color: var(--text);
  font-family: "Jersey 15", system-ui, sans-serif;
  font-size: clamp(40px, 3.75vw, 72px);
  font-weight: 400;
  line-height: 1;
}

.entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 8px;
  color: var(--quiet);
  font-size: 14px;
  font-style: italic;
}

.tag {
  color: var(--muted);
}

.tag::before {
  content: "#";
}

.entry-summary {
  margin: 16px 0 0;
  color: var(--muted);
  font-style: italic;
}

.entry-body {
  color: var(--muted);
}

.entry-body h2,
.entry-body h3 {
  margin: 32px 0 10px;
  color: var(--text);
  font-family: "Jersey 15", system-ui, sans-serif;
  font-weight: 400;
  line-height: 1;
}

.entry-body h2 {
  font-size: 38px;
}

.entry-body h3 {
  font-size: 30px;
}

.entry-body p,
.entry-body ul,
.entry-body blockquote,
.entry-body pre,
.entry-body figure {
  margin: 18px 0 0;
}

.entry-body ul {
  padding-left: 24px;
}

.entry-body blockquote {
  padding-left: 18px;
  color: var(--text);
  border-left: 4px solid var(--rail);
}

.entry-body a {
  color: var(--text);
  font-weight: 600;
}

.entry-body code {
  padding: 2px 5px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.22);
  border-radius: 4px;
}

.entry-body pre {
  overflow-x: auto;
  padding: 16px;
  background: rgba(0, 0, 0, 0.22);
  border-radius: 4px;
}

.entry-body pre code {
  padding: 0;
  background: transparent;
}

.entry-body figure {
  overflow: hidden;
  border-radius: 0;
}

.entry-body figure img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

.entry-body figcaption {
  padding-top: 8px;
  color: var(--quiet);
  font-size: 13px;
  font-style: italic;
}

.muted,
.error {
  color: var(--muted);
}

.error {
  padding: 18px;
  background: rgba(0, 0, 0, 0.16);
}

@media (max-width: 760px) {
  .site-shell {
    grid-template-rows: 40dvh minmax(0, 1fr);
    grid-template-columns: 1fr;
  }

  .sidebar-heading {
    flex-basis: 128px;
  }

  .timeline-wrap {
    padding-bottom: 18px;
  }

  .content-pane {
    height: auto;
  }

  .entries {
    align-content: start;
    width: calc(100% - 36px);
    padding: 36px 0 56px;
  }
}
