:root {
  --pico-font-family-sans-serif: "League Spartan", sans-serif;
}

code {
  --pico-font-family: var(--pico-font-family-sans-serif);
  background: var(--tint-5);
  box-shadow: 0 0 0 1px var(--tint-5);
  /* background: transparent; */
  color: var(--tint-100);
  /* line-height: 0.5; */
  padding-bottom: 0.25em;
}

:root {
  --tint-0: #ffffff; /* rgba( 0, 0, 0, 0 ) */
  --tint-5: #f2f2f2; /* rgba( 0, 0, 0, .05 ) */
  --tint-10: #e6e6e6; /* rgba( 0, 0, 0, .1 ) */
  --tint-25: #bfbfbf; /* rgba( 0, 0, 0, .25 ) */
  --tint-33: #aaaaaa; /* rgba( 0, 0, 0, .333 ) */
  --tint-50: #808080; /* rgba( 0, 0, 0, .5 ) */
  --tint-66: #555555; /* rgba( 0, 0, 0, .666 ) */
  --tint-75: #404040; /* rgba( 0, 0, 0, .75 ) */
  --tint-90: #1a1a1a; /* rgba( 0, 0, 0, .90 ) */
  --tint-95: #0d0d0d; /* rgba( 0, 0, 0, .95 ) */
  --tint-100: #000000; /* rgba( 0, 0, 0, 1 ) */
}

:root:not([data-theme="dark"]),
[data-theme="light"] {
  --pico-color: var(--tint-100);
  --pico-primary: var(--tint-100);

  --pico-h1-color: var(--tint-100);
  --pico-h2-color: var(--tint-100);
  --pico-h3-color: var(--tint-100);
  --pico-h4-color: var(--tint-100);
  --pico-h5-color: var(--tint-100);
  --pico-h6-color: var(--tint-100);

  --pico-muted-border-color: var(--tint-10);

  --pico-primary-underline: var(--tint-66);
}

@font-face {
  font-family: "League Spartan";
  font-style: normal;
  font-weight: 400;
  src: url("/assets/fonts/league-spartan-regular.woff2") format("woff2");
}

@font-face {
  font-family: "League Spartan";
  font-style: normal;
  font-weight: 700;
  src: url("/assets/fonts/league-spartan-bold.woff2") format("woff2");
}

@font-face {
  font-family: "Fanwood Text";
  font-style: italic;
  font-weight: 400;
  src: url("/assets/fonts/fanwood-text-italic.woff") format("woff");
}

i,
em {
  font-family: "Fanwood Text", serif;
  font-style: italic;
}

b,
strong {
  font-family: var(--pico-font-family-sans-serif);
  font-weight: 700;
}

body {
  /* color: var(--tint-100); */
  font-family: var(--pico-font-family-sans-serif);
  /* font-size: calc(var(--size-40) / var(--line-height-text)); */
  font-weight: 400;

  /* line-height: var(--line-height-text); */
}

a {
  text-underline-position: under;
}

ul,
ol {
  padding-inline-start: 1em;
}

h1,
h1 + p,
h1 + p + p {
  text-align: center;
}

body {
  letter-spacing: -0.005em;
  background: var(--tint-0);
}

h1 {
  letter-spacing: -0.02em;
  padding-top: 0.5em;
  --pico-font-size: 2rem;
  /* --pico-line-height: 1.125;
  --pico-typography-spacing-top: 3rem; */
}

h2 {
  border-bottom: 2px solid var(--pico-muted-border-color);
  font-size: 1rem;
  letter-spacing: 0.05em;
  padding-bottom: 0.3em;
  text-transform: uppercase;
  --pico-font-size: unset;
  --pico-typography-spacing-top: 1.5em;
  /* --pico-line-height: 1.15;
  --pico-typography-spacing-top: 2.625rem; */
}

h3 {
  --pico-font-size: 1.25rem;
  /* --pico-line-height: 1.175; */
  /* --pico-typography-spacing-top: 2.25rem; */
}

h4 {
  --pico-font-size: 1.125rem;
  /* --pico-line-height: 1.2; */
  /* --pico-typography-spacing-top: 1.874rem; */
}

h5 {
  --pico-font-size: 1rem;
  /* --pico-line-height: 1.225; */
  /* --pico-typography-spacing-top: 1.6875rem; */
}

h6 {
  --pico-font-size: 0.75rem;
  /* --pico-line-height: 1.25; */
  /* --pico-typography-spacing-top: 1.5rem; */
}

p,
li {
  /* text-wrap: pretty; */
  /* text-wrap: balance; */
}

li br + span {
  /* display: inline-block; */
  /* background: pink; */
  /* margin-bottom: 2em; */

  /* color: var(--tint-66); */
}

ul li code {
  margin-inline: 0.5em;
}

ul li {
  /* line-height: 1.25; */
  margin-bottom: calc(var(--pico-typography-spacing-vertical) * 0.66);
}

#experience + ul code {
  /* display: none; */
}

nav {
  left: 1em;
  position: fixed;
  top: 1em;

  & a {
    text-decoration: none;
  }
}

label:has(#edit) {
  position: fixed;
  right: 1em;
  top: 1em;
  user-select: none;
}

@media print {
  body > main {
    margin: 0;
    max-width: unset !important;
  }

  label:has(#edit),
  nav {
    display: none;
  }
}

@media (min-width: 1536px) {
  body > footer,
  body > header,
  body > main {
    max-width: 1280px;
  }
}
