*,
::after,
::before {
    box-sizing: border-box
}

* {
    outline: 1px solid rgba(127, 127, 127, .1);
    margin: 0;
    padding: 0
}

body {
    font-family: "Open Sans", sans-serif;
    font-size: var(--step-0);
    color: var(--Black);
    background-color: var(--White);
    position: relative;
}

body.dark-mode {
    color: var(--White);
    background-color: var(--Black)
}

.full-page-grid {
background-color: inherit;
  min-height: 100vh;
  display: grid;
  grid-template-rows: min-content 1fr min-content;
}

.full-page-grid>* {
    padding: var(--space-3xs);
    position: relative;
}

.flow > * + * {
  padding-block: var(--space-xs);
}

header {
    padding: 0 var(--gap);
    border: 10px solid;
    border-image-slice: 1;
    border-width: 8px;
    border-top: 0;
    border-right: 0;
    border-left: 0;
    border-image-source: var(--gradient);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    position: sticky!important;
    top: 0;
    background-color: inherit;
    transition: transform .5s ease;
    transform: translateY(0);
    z-index: 1
}

header .ls2 {
  font-family: 'Fira Code', monospace;
    letter-spacing: -.17ch
}

.hide-header {
    transform: translateY(-100%)
}

#back-to-top {
    position: fixed;
    bottom: 0;
    right: 0;
    margin: 1rem;
    padding: 1rem;
    transform: translateY(calc(100% + 1rem));
    opacity: 0;
    transition: .218s ease;
    z-index: 1;
    background: inherit;
    border: 1px solid
}

#back-to-top.visible {
    transform: translateY(0);
    opacity: 1
}

.logo-text {
  display: flex;
  max-height: 64px;
  justify-content: space-between;
  align-items: center;
    gap: var(--space-xs)
}
.logo-text > img {
  max-width: 64px;
}

.fira-code-300 {
    font-family: "Fira Code", monospace;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: thin
}

.fira-code-400 {
    font-family: "Fira Code", monospace;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal
}

.fira-code-600 {
    font-family: "Fira Code", monospace;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: bold
}

h1 {
    font-size: var(--step-5)
}

h2 {
    font-size: var(--step-4)
}

h3 {
    font-size: var(--step-3)
}

h4 {
    font-size: var(--step-2)
}

h5 {
    font-size: var(--step-1)
}

h6,
p {
    font-size: var(--step-0)
}

img {
    max-width: 100%;
    height: auto
}

.dark-light-toggle {

}

.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 24px;
    margin-right: 4px;
    pointer-events: all
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--Black);
    -webkit-transition: .4s;
    transition: .4s
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background-color: #fff;
    -webkit-transition: .4s;
    transition: .4s
}

input:checked+.slider {
    background-color: var(--accent-a)
}

input:focus+.slider {
    box-shadow: 0 0 1px var(--accent-a)
}

input:checked+.slider:before {
    -webkit-transform: translateX(16px);
    -ms-transform: translateX(16px);
    transform: translateX(16px)
}

.slider.round {
    border-radius: 34px
}

.slider.round:before {
    border-radius: 50%
}

pre:has(code) {
    aspect-ratio: 3;
    overflow: scroll;
    font-family: 'Fira Code', monospace;
}

.pixelcount {
	position: absolute;
	top: var(--space-3xs);
  right: var(--space-3xs);
	z-index: 1;
	background: rgba(0, 0, 0, 0.3);
	width: max-content;
	margin-left: auto;
	padding: 2px 6px;
	color: #eee;
  font-family: "Bitcount Prop Single", system-ui;
	font-size: 10px;
}
.pixelcount:hover {
  background: rgba(0, 0, 0, 0.9);
}


.main-content.flow {
  max-width: var(--grid-max-width);
  margin: auto;
  display: grid;
  grid-template-columns: 1fr;
  margin-block-start: var(--space-xl-2xl);
  container: main-content / inline-size;
  gap: var(--space-s);
}

@container main-content (width > 720px) {
  .main-content.flow {
    grid-template-columns: 1fr 2fr;
  }
}

.main-content .left-head {
  text-align: right;
}
.main-content > :not(.left-head) {
  line-height: var(--space-m);
}

