@use "sass:math"; @use "colors"; @use "fonts"; @use "mixins" as *; /* VARIABLES =============================================================================== */ $gutter: 10px; $max-width: 600px; $max-height: 600px; $avatar-width: 256px; html { font: { size: 14pt; family: "Linux Libertine", "Times New Roman", Times, serif; } line-height: 1.5; } body { background-color: #{colors.$background}; display: flex; flex-direction: column; gap: $gutter; align-items: center; @include breakpoint("md") { flex-direction: row; justify-content: center; min-height: 100vh; } } main { width: 100%; gap: $gutter; color: #{colors.$text}; display: flex; flex-direction: column; @include breakpoint("md") { max-width: $max-width; } article { background: #{colors.$base-950}; border-top: solid #{colors.$base-900}; border-bottom: solid #{colors.$base-900}; padding: 1em; font-size: 1rem; &:first-child { margin-top: 0; } @include breakpoint("md") { border: solid #{colors.$base-900}; max-height: $max-height; overflow: scroll; padding: 2em; padding-bottom: 1em; } 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; } } a { color: #{colors.$link}; text-decoration: underline #{colors.$link} 2px; &:hover { color: #{colors.$link-hover}; } } } aside { margin-top: #{$gutter * 2}; margin-bottom: #{$gutter * 2}; width: #{$avatar-width}; @include breakpoint("md") { height: $max-height; margin-top: 0; margin-right: 2em; } img { width: 100%; image-rendering: pixelated; max-width: #{$avatar-width}; } } .entry-button { display: inline-block; height: 2em; margin: auto; margin-bottom: #{$gutter}; image-rendering: pixelated; font-size: 1.5em; font-weight: bold; &:hover { font-style: italic; } &::after { content: " >>"; color: #{colors.$muted}; font-style: normal; text-decoration: underline #{colors.$background} 2px; } @include breakpoint("md") { margin-right: 0; } }