@use "sass:math"; @use "colors"; @use "fonts"; @use "mixins" as *; /* VARIABLES =============================================================================== */ $gutter: 10px; $max-width: 750px; $max-height: 500px; $avatar-width: 256px; * { line-height: 1.7; border: dotted red 1px; } html { font: { size: 12pt; family: sans-serif; } } body { display: grid; margin: auto; padding: 2em 0; @include breakpoint("lg") { grid-template-columns: 1fr 2fr 1fr; gap: 1em; height: 100%; } } a { color: #{colors.$link}; text-decoration: underline #{colors.$link} 2px; &:hover { color: #{colors.$link-hover}; } } nav { grid-row: 1; grid-column: 1; justify-self: right; align-self: end; a { font-size: 1.5em; font-weight: bold; image-rendering: pixelated; &:hover { font-style: italic; } &::after { content: " >>"; font-style: normal; } } @include breakpoint("lg") { grid-column: 2; } } main { @include breakpoint("lg") { grid-row: 2; grid-column: 2; justify-self: center; } article { font-size: 1rem; @include markup; padding: 0; h1 { margin-top: 0; } } } aside { grid-row: 1; grid-column: 1; justify-self: left; max-width: 192px; img { image-rendering: pixelated; } @include breakpoint("lg") { grid-column: 2; justify-self: start; } }