@font-face {
	font-family: "Ioskeley Mono";
	src: url("ioskeley_mono-subset.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

:root {
    --bg: oklch(0.98 0 0);
    --txt: oklch(0.22 0 0);
    --hi: blue;

    --elevation:
		0 0 0 1px oklch(0% 0 0 / 6%),
		0 1px 2px oklch(0% 0 0 / 6%),
		0 2px 8px oklch(0% 0 0 / 4%);

	--ff: "Ioskeley Mono", monospace;
	--fw: 400;
	--fs-small: .875rem;
	--fs-tiny: .75rem;
}

*::selection {
    background: var(--txt);
    color: var(--bg);
}

*:focus-visible {
	outline: 4px solid var(--txt);
	outline-offset: 0;
	background: var(--txt);
	color: var(--bg);
	opacity: 1;
	transition: none;
}

html {
    font-family: var(--ff);
    font-size: 100%;
    block-size: 100%;
    overflow-y: auto;
    text-rendering: optimizeSpeed;
    text-size-adjust: none;
    -webkit-text-size-adjust: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    box-sizing: border-box;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: var(--_lh, 1.65);
}

svg {
    max-block-size: 100%;
    pointer-events: none;
}

img, picture {
    display: block;
    max-inline-size: 100%;
    block-size: auto;
    user-select: none;
    border-radius: .5rem;
    box-shadow: var(--elevation);
}

body {
    min-block-size: 100dvh;
    font-weight: var(--fw);
    background-color: var(--bg);
    color: var(--txt);
}

h1, h2, h3 {
    text-wrap: balance;
}

p, ul, ol, dl {
	text-wrap: pretty;
	max-inline-size: 65ch;
}

[role="list"] {
    list-style: none;
}

a {
    display: inline-block;
    text-decoration: none;
    color: var(--hi);
    transition: color .2s;
    &:hover {
        color: var(--txt);
    }
}

code {
  font-family: inherit;
  display: inline-flex;
  gap: 0.25rem;
  align-items: baseline;
  background-color: transparent;

  & svg {
    position: relative;
    top: 3px;
  }
}

main {
    max-inline-size: max-content;
    margin-inline: auto;
    padding-inline: 1rem;
    padding-block: 15vh;
    display: grid;
    gap: 15vh;
}

article > *:not(h2) {
    margin-inline-start: 2ch;
}

.text-small {
    --_lh: 1.4;
	font-size: var(--fs-small);
}

.text-tiny {
	font-size: var(--fs-tiny);
}

.text-mute {
    opacity: .5;
}

.stack > * + * {
    margin-block-start: var(--_stack-margin, 1em);
}
