:root { --dark-fg-color: #fff; --light-fg-color: #141414; --light-bg-color: var(--dark-fg-color); --dark-bg-color: var(--light-fg-color); --fg-color: var(--light-fg-color); --bg-color: var(--light-bg-color); --light-link-color: #c04828; --dark-link-color: #c04828; --link-color: var(--light-link-color); --light-highlight-bg-color: #ededed; --light-highlight-fg-color: #595959; --dark-highlight-bg-color: #27272a; --dark-highlight-fg-color: #ededed; --highlight-fg-color: var(--light-highlight-fg-color); --highlight-bg-color: var(--light-highlight-bg-color); --font-face: "Fira Sans", sans-serif; } *, ::after, ::before { border: 0 solid #e5e7eb; box-sizing: border-box; } html { font-feature-settings: normal; 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-variation-settings: normal; line-height: 1.5; tab-size: 4; } blockquote, dd, dl, figure, h1, h2, h3, h4, h5, h6, hr, p, pre { margin: 0; } a { color: var(--link-color); text-decoration: inherit; } /* PAGE LAYOUT */ html, body { font-family: var(--font-face); height: 100%; scroll-behavior: smooth; } body { line-height: inherit; margin: 0; display: flex; flex-direction: column; } .container { display: flex; flex-direction: column; min-height: 100%; } .page-body { flex-grow: 1; } /* HEADER */ header { display: grid; grid-template-columns: repeat(2, max-content) max-content 1fr max-content; column-gap: 1em; align-items: center; justify-items: center; padding: 0.5rem 2rem; width: 100%; border-bottom: 1px solid #ddd; font-size: 1.2rem; } header .home { color: black; font-size: 2rem; font-weight: bold; } header .home:first-child { display: flex; align-items: center; vertical-align: center; } header .home svg { height: 3rem; width: 3rem; } header a { color: black; border-bottom: 2px solid transparent; } header a:hover:not(.home) { color: black; border-bottom: 2px solid #c04828; } .navigation-block { display: flex; flex-direction: row; gap: 1rem; } header .icon { display: flex; align-items: center; } #mobile-open-navigation button { display: none; } #mobile-open-navigation { justify-self: right; } @media (max-width: 640px) { #mobile-open-navigation button { display: block; flex-direction: column; background-color: transparent; } #mobile-open-navigation button div { margin: 0.5em 0; width: 2em; border-bottom: 0.25em solid black; } header { grid-template-columns: max-content 1fr; } .spacer { display: none; } .navigation-block { margin-top: 0.5em; grid-column: auto / span 2; justify-self: left; } header:not(.open) .spacer, header:not(.open) .navigation-block { display: none; } } /* HERO */ .hero { margin: 2rem 0; } .hero img { display: block; height: 14em; margin: auto; } .hero div { font-size: 3.75rem; line-height: 1; text-align: center; padding-bottom: 0.5rem; font-weight: bold; } @media (min-width: 640px) { .hero div { font-size: 6rem; line-height: 1; } } /* MAIN */ main { margin: 1rem auto; width: 80%; flex: 1; } @media (min-width: 1024px) { main { max-width: 56rem; } } h1 { font-size: 1.5rem; font-weight: 900; line-height: 2.25rem; line-height: 1.25; margin-bottom: 2rem; } p { font-size: 1rem; line-height: 1.5rem; line-height: 1.625; margin-bottom: 2rem; } @media (min-width: 640px) { h1 { font-size: 3rem; line-height: 1; } p { font-size: 1.125rem; line-height: 1.75rem; } } h2 { font-size: 1.5rem; font-weight: 700; line-height: 2rem; line-height: 1.25; margin-bottom: 1.5rem; } @media (min-width: 640px) { h2 { font-size: 3rem; line-height: 1; } } h2, h3 { margin-top: 3rem; } @media (min-width: 640px) { li { font-size: 1.125rem; line-height: 1.75rem; } } ul { margin-top: 0; margin-bottom: 2rem; } /* FOOTER */ footer { align-items: center; background-color: var(--fg-color); color: var(--bg-color); display: flex; flex-grow: 0; flex-shrink: 1; font-size: 0.75rem; justify-content: space-between; line-height: 1rem; padding: 0.5rem 1rem; width: 100%; } .github-icon { background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12'/%3E%3C/svg%3E"); height: 1.25rem; width: 1.25rem; } .github-icon-black { background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='000' d='M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12'/%3E%3C/svg%3E"); height: 1em; width: 1em; } .projects { display: flex; flex-direction: column; flex-wrap: wrap; justify-content: space-between; width: 100%; gap: 2rem; margin-bottom: 1.5rem; } .project { border-left: 0.3em solid gray; padding: 1rem; text-decoration: none; color: var(--fg-color); transition: text-decoration 0.3s; transition: border-color 0.3s; } .project h2 { margin-top: 0; font-family: monospace; } .project p { margin-bottom: 0; } .project>span { color: transparent; transition: color 0.3s; } .project:hover>span { color: black; } .project:hover { border-color: #c04828; } .title { font-size: 3em; font-weight: 900; margin-bottom: 0.5em; } @media (min-width: 640px) { .title { font-size: 4rem; line-height: 1; } } .details { margin-bottom: 1.5em; color: #333; } .post-thingy { display: block; padding: 1em; color: black; background: #e5e5e5; border-radius: 0.3em; border: 0.2em solid #e5e5e5; margin-bottom: 0.5em; } .post-thingy:hover { border-color: #c04828; background: transparent; } .post-thingy h1 { margin-bottom: 0.2em; } blockquote { border-left: 0.2em solid gray; padding-left: 1em; } .links { display: flex; flex-wrap: wrap; justify-content: stretch; gap: 1em; margin-bottom: 2em; font-size: 1.2em; } .links > a { padding: 0.2em 1em; color: #c04828; border: 2px solid #c04828; flex: 1; text-align: center; }