@use "sass:math"; @use "colors"; @use "fonts"; @use "mixins" as *; /* VARIABLES =============================================================================== */ $gutter: 10px; $padding: $gutter; $max-width: 500px; $max-height: math.div($max-width, 2); $avatar-width: 256px; /* COLORS =============================================================================== */ $fg: white; $link-color: colors.$green-600; $link-color-hover: colors.$green-400; :root { font: { size: 14pt; family: "Linux Libertine", "Times New Roman", Times, serif; } line-height: 1.5; } body { background-color: #{colors.$bg}; display: flex; flex-direction: column; gap: $gutter; align-items: center; @include breakpoint("md") { flex-direction: row; justify-content: center; height: 100vh; } } main { width: 100%; max-width: $max-width; gap: $gutter; color: #{$fg}; display: flex; flex-direction: column; article { background: #{colors.$base-950}; padding: $gutter; padding-top: 0; font-size: 1rem; :first-child { margin-top: 0; } h1 { font-size: 2em; a { font-size: 0.5em; } } h2 { font-weight: bold; } *:not(li) + *:not(li) { margin-top: 1em; } ol, ul { all: revert; margin: #{$gutter} 0; padding-left: 1em; } @include breakpoint("md") { border: solid #{colors.$base-900}; max-height: 400px; overflow: scroll; } } a { color: #{$link-color}; text-decoration: underline #{$link-color} 2px; &:hover { color: #{$link-color-hover}; } } } aside { margin-top: #{$gutter * 2}; width: #{$avatar-width}; @include breakpoint("md") { margin-top: 0; margin-left: #{$gutter}; } img { width: 100%; image-rendering: pixelated; max-width: #{$avatar-width}; } } .spacer { height: 2em; } .entry-button { margin: auto; margin-bottom: #{$gutter}; image-rendering: pixelated; font-size: 1.5em; font-weight: bold; &:hover { font-style: italic; } &::after { content: " >>"; color: #525252; font-style: normal; text-decoration: underline #{colors.$bg} 2px; } @include breakpoint("md") { margin-right: 0; } } .entry-button:hover { font-style: italic; }