@import url('./lib/normalize.css');
@import url('./lib/fonts.css');
@import url('./snippets/nav.css');
@import url('./snippets/footer.css');

:root {
  --color-primary: #111;
}

* {
  margin: 0;
  padding: 0;
}

html {
  -ms-overflow-style: none;
  font-size: 16px;
  height: 100%;
  min-height: 100%;
  scroll-behavior: smooth;
}

@media screen and (min-width: 768px) {
  html {
    font-size: 18px;
  }
}

html::-webkit-scrollbar {
  display: none;
}

body {
  font-family: 'cofo-gothic-variable', serif;
  /* font-variation-settings: 'wght' 400; */
  /* font-family: InterVar, serif; */
  /* font-family: 'General Sans', sans-serif, InterVar, HubotSans, MonaSans; */
  font-weight: 400;
  line-height: 1.4;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  font-size: clamp(16px, calc(13px + 0.4vw), 19px);
}

main {
  display: flex;
  flex-direction: column;
  flex: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
}

h1,
h2,
h3 {
  font-family: 'Sneaky Times', serif;
  font-weight: 400;
}

h1 {
  font-size: 2.5rem;
  /* font-weight: 600; */
  line-height: 1.1;
}

h2 {
  font-size: 1.75rem;
  /* font-weight: 500; */
  line-height: 1.3;
}

h3 {
  font-size: 1.25rem;
  /* font-weight: 500; */
  line-height: 1.4;
}

strong {
  font-weight: 500;
}

em {
  font-variation-settings: 'ital' 10;
  font-style: italic;
}

#reading-progress {
  position: absolute;
  width: 100%;
  height: 2px;
  z-index: 20;
  top: 0;
  left: 0;
}

#reading-progress-fill {
  height: 2px;
  width: 0;
  transition: width 0.1s ease;
  background-color: #000;
}

a[title] {
  scroll-margin-top: 120px;
}
