@import url("/assets/reset.css");


:root {
  --width: 720px;
  --background: #fdf6e3;
  --foreground: #073642;
  --highlight: rgba(255, 255, 0, 0.5);
}

html {
  font-family: 'Public Sans', sans-serif;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
  color-scheme: light dark;
  font-size: 16px;
  color: var(--foreground);
  background-color: var(--background);
}

.wrapper {
  max-width: 65ch;
  padding: 0 2ch;
  margin-left: auto;
  margin-right: auto;
}

a { color: inherit; text-decoration: none; }
main a { text-decoration: underline; }
main a:hover { background: var(--highlight); }

footer {
  font-size: 0.85rem;
  padding-bottom: 3rem;
  opacity: 0.7;
}

header {
  margin: 2rem 0;
}

/* Headings - vertical spacing for blog content */
h1, h2, h3, h4 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

/* First heading shouldn't have top margin */
/* h1:first-child, h2:first-child, h3:first-child, h4:first-child {
  margin-top: 0;
} */

/* Lists - proper spacing for blog content */
ul, ol {
  padding-left: 2ch;
}

/* Nested lists - less spacing */
li > ul, li > ol {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

p {
  margin-top: 1rem;
  margin-bottom: 1rem;
}


li > p + ul,
li > p + ol {
  margin-top: 0;
  padding-top: 0;
  padding-bottom: 0;
  margin-top: 0;
  margin-bottom: 0;
}

/* Code blocks */
pre {
  margin: 1.5rem 0;
  padding: 1rem;
  overflow-x: auto;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
}

code {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.9em;
}

/* Block code vs inline code */
pre code {
  font-size: 0.875rem;
}

/* Blockquotes */
blockquote {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
  border-left: 3px solid var(--foreground);
  opacity: 0.8;
}

/* Horizontal rule */
hr {
  margin: 2rem 0;
  border: none;
  border-top: 1px solid var(--foreground);
  opacity: 0.3;
}

header nav { display: flex; gap: 1ch; }
header a { padding: 0; }
header a::before { content: '[ '; }
header a::after { content: ' ]'; }
header a:hover { background: var(--highlight); }
h1 {
  font-weight: 400;
  position: relative;
}
h1::before {
  content: '# ';
  opacity: 0.4;
  font-family: 'IBM Plex Mono', monospace;
  position: absolute;
  right: 100%;
  padding-right: 0.5ch;
  font-weight: normal;
}
h2 {
  position: relative;
}
h2::before {
  content: '## ';
  opacity: 0.4;
  font-family: 'IBM Plex Mono', monospace;
  position: absolute;
  right: 100%;
  padding-right: 0.5ch;
  font-weight: normal;
}
h3 {
  position: relative;
}
h3::before {
  content: '### ';
  opacity: 0.4;
  font-family: 'IBM Plex Mono', monospace;
  position: absolute;
  right: 100%;
  padding-right: 0.5ch;
  font-weight: normal;
}
h4 {
  position: relative;
}
h4::before {
  content: '#### ';
  opacity: 0.4;
  font-family: 'IBM Plex Mono', monospace;
  position: absolute;
  right: 100%;
  padding-right: 0.5ch;
  font-weight: normal;
}

.links { margin: 1rem 0; }
.links a { display: inline-flex; align-items: center; gap: 0.3em; margin-right: 1.2ch;  }
.links .iconify { display: inline-block; vertical-align: middle; }


.lol {
  display: none;
}
