/* Minimalist, accessible defaults */
:root {
  --bg: #0f0f0f;
  --fg: #eaeaea;
  --muted: #b3b3b3;
  --link: #4ADE80;
  --accent: #ffffff1a;
  /* Inform the browser we're using a dark color scheme (affects form controls, scrollbars, etc.) */
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: "JetBrains Mono", monospace;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  background: var(--bg);
  color: var(--fg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Site header */
.site-header {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: center;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 20px;
  width: 100%;
  max-width: 800px;
}


.site-nav .brand {
  margin-right: auto;
  letter-spacing: 0.2px;
}

.container {
  max-width: 800px;
  width: 100%;
  margin: 14vh auto 0;
  padding: 0 20px;
  flex: 1 0 auto;
  /* allow main to take available space so footer sits at bottom */
}

/* Footer */
.site-footer {
  margin-top: auto;
  /* push footer to bottom when content is short */
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 16px;
  color: var(--muted);
  text-align: center;
  gap: 8px;
}

.site-footer .flag {
  display: inline-block;
  height: 14px;
  width: auto;
  border-radius: 2px;
  box-shadow: 0 0 0 1px #00000033 inset;
}

/* Content lists */
.post-list,
.project-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 2rem;
}

.post-list li,
.project-list li {
  margin: 0.5rem 0;
}

.post-list a {
  /* color: #8cd3ff; */
  text-decoration: none;
}

.muted {
  color: #9aa0a6;
  margin-left: .5rem;
}

/* Simple prose styling */
.prose {
  line-height: 1.7;
}

.prose h1,
.prose h2,
.prose h3 {
  margin-top: 1.5rem;
}

.prose pre {
  background: #171717;
  padding: .75rem;
  border-radius: 6px;
  overflow-x: auto;
}

.prose code {
  color: #ffcf8c;
}

h1 {
  font-size: clamp(28px, 6vw, 44px);
  margin: 0 0 6px;
  letter-spacing: 0.2px;
}

.tagline {
  margin: 0 0 24px;
  color: var(--muted);
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
}

a {
  color: var(--link);
  text-decoration: none;
  border-bottom: 2px dashed rgba(30, 157, 136, 0.4);
}

a:hover,
a:focus-visible {
  background-color: #ffffff;
  color: var(--bg);
}