
@font-face {
  font-family: "DM Serif Display";
  src: url("fonts/dm-serif-display-v17-latin-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

* { 
  font-weight: 300;
  box-sizing: border-box; 
  margin: 0; }

body {
  min-height: 100dvh;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  background: #EDF6FF;
  color: #001999;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body.home {
  height: 100dvh;
  overflow: hidden;
  justify-content: space-between;
}

body:not(.home) main {
  flex: 1;   
  margin: 3rem 0;
  max-width: 42rem;
}

.logo {
  display: block;
  width: 4rem;
  height: 4rem;
}

h1 {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 4rem;
  line-height: .8;
  white-space: nowrap;
}

h3 {
  font-size: 1rem;
}

article {
  margin-top: 12rem;
  width: 700px;
}

article p, article ul, article h2, article h3 {
  margin-bottom: 1rem; 
  line-height: 1.6;
}

article h3 {
  margin-top: 4rem;
}

footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2.5rem;
}

nav {
  display: flex;
  gap: 2.5rem;
  font-size: 1rem;
  white-space: nowrap;
}

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

.space {
  height: 2rem;
}

/* mobile */
@media (max-width: 1000px) {
  footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
  }
  nav {
    flex-direction: column;
    gap: 1rem;
    font-size: 1rem;
  }
}
