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