
/* 1. Use a more-intuitive box-sizing model */
*, *::before, *::after {
  box-sizing: border-box;
}

/* 2. Remove default margin */
* {
  margin: 0;
}

body {
  /* 3. Add accessible line-height */
  line-height: 1.5;
  /* 4. Improve text rendering */
  -webkit-font-smoothing: antialiased;
}

/* 5. Improve media defaults */
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

/* 6. Inherit fonts for form controls */
input, button, textarea, select {
  font: inherit;
}

/* 7. Avoid text overflows */
p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

/* 8. Improve line wrapping */
p {
  text-wrap: pretty;
}
h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
}

/*
  9. Create a root stacking context
*/
#root, #__next {
  isolation: isolate;
}

/* latin */
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-style: italic;
  font-weight: 200 800;
  font-stretch: normal;
  src: url("/fonts/AtkinsonHyperlegibleNext[wght].woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  font-display: swap;
}
:root {
  --color-foreground: black;
  --color-foreground-dimmed: color-mix(in srgb, var(--color-foreground), transparent 40%);
  /* --color-accent: #0692aa; */
  --max-width: 900px;
  --font-base-size: 1.25rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-foreground: white;
  }

  body {
    background: #222;
  }
}

body {
  font-family: "Atkinson Hyperlegible Next";
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100svh;
  max-width: var(--max-width);
  width: 100%;
  color: var(--color-foreground);
  font-size: var(--font-base-size);
  margin: 0 auto;
  padding: 0 max(25px, 5vw);
}

header {
  padding: 1em 0;
  width: 100%;
}

.nav-menu {
  display: flex;
  gap: 1em;
}

.nav-menu> :nth-child(2) {
  margin-left: auto;
}

.nav-menu-item {
  text-decoration: none;
  color: var(--color-foreground);
}

.nav-menu-item:hover {
  text-decoration: underline;
}

main {
  margin: 0 auto;
  width: 100%;
}

h1,
h2,
h3 {
  margin: 0.5em 0;
}

footer {
  width: 100%;
  text-align: center;
  padding: 1em;
  font-size: smaller;
  color: var(--color-foreground-dimmed);
}

.card {
  border: 1px solid var(--color-foreground-dimmed);
  border-radius: 16px;
  padding: 0.5em 1em;
  margin: 1em 0;
}

.card hr {
  margin: 30px -1em 1em;
  border: 0;
  border-top: 1px solid var(--color-foreground-dimmed);
}

.pl-badge {
  --color: var(--color-foreground);
  border-radius: 8px;
  padding: 0em 0.5em;
  margin: 0em;
  display: inline-block;
  font-size: 0.9em;
  background: color-mix(in srgb, var(--color), transparent 60%);
  color: var(--color);
}

.pl-python3 {
  --color: goldenrod;
  background: color-mix(in srgb, gold, transparent 60%);
}

.pl-cpp {
  --color: blue;
}

.pl-csharp {
  --color: purple;
}

.pl-rust {
  --color: orangered;
}

/* An icon to be displayed within text, at the same size as the text */
.text-icon {
  height: 1em;
  width: 1em;
  display: inline;
  fill: var(--color-foreground);
  position: relative;
  top: .125em;
}