@import url("colors.css");

html {
  background-color: var(--background);
  line-height: 1.5;
  tab-size: 4;
  /* from tailwind */
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-feature-settings: normal;
  font-variation-settings: normal;
  font-size: 22px;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 100vw;
  min-height: 100vh;
  line-height: inherit;
  margin: 0;
  color: var(--primary);
}

#main-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 20px;
  max-width: 900px;
  width: 100%;
  /* https://frontendmasters.com/blog/container-queries-and-units/ */
  container-name: main-container;
  container-type: inline-size;
  line-height: 1.75;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--primary);
  text-align: center;
}

h1 {
  font-size: 1.6rem;
  margin-bottom: 20px;
  font-weight: 500;
}

h2 {
  font-size: 1.5rem;
  margin-bottom: 18px;
  font-weight: 500;
}

h3 {
  font-size: 1.4rem;
  margin-bottom: 16px;
  font-weight: 500;
}

h4 {
  font-size: 1.3rem;
  margin-bottom: 14px;
  font-weight: 500;
}

h5 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  font-weight: 500;
}

h6 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  font-weight: 500;
}

a {
  text-decoration: none;
  color: var(--link-primary);
  font-weight: 500;
}

a:hover {
  text-decoration: underline !important;
  text-decoration-thickness: 2px !important;
}

.site-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  border-bottom-width: 1px;
  padding-bottom: 20px;
  margin-bottom: 60px;
}

.site-header .site-header-home-link {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  align-items: center;
  text-underline-offset: 0.26rem;
}

.site-header .site-header-home-link:hover svg {
  outline: 2px solid var(--link-primary);
  outline-offset: 3px;
}

.site-header .site-header-home-link>span:first-of-type {
  margin-left: 4px;
}

.site-header .site-header-links-container {
  margin-left: 8px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.site-header .site-header-links-container a {
  margin-left: 10px;
}

.site-header .site-header-links-container a[title="projects"] {
  margin-right: 6px;
}

.site-header .site-header-links-container a:hover svg {
  outline: 2px solid var(--link-primary);
  outline-offset: 3px;
}