* {
  box-sizing: border-box;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  background: #fff;
  color: #222;
  font-family: Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

header {
  border-bottom: 1px solid #eee;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  width: min(960px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0;
}

nav a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 5px;
}

nav a:hover,
nav a[aria-current="page"] {
  text-decoration: underline;
}

nav a:focus-visible {
  outline: 2px solid #555;
  outline-offset: 5px;
}

main {
  display: grid;
  flex: 1;
  place-items: center;
  padding: 32px 24px;
  text-align: center;
}

h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.5;
}

@media (max-width: 480px) {
  nav {
    column-gap: 20px;
  }

  h1 {
    font-size: 20px;
  }
}
