@font-face {
  font-family: "Merriweather";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/merriweather-regular.ttf") format("truetype");
}

@font-face {
  font-family: "Merriweather";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/merriweather-bold.ttf") format("truetype");
}

* { box-sizing: border-box; }

html { color-scheme: light; }

body {
  margin: 0;
  background: #fff;
  color: #333;
  font-family: "Merriweather", Georgia, serif;
  font-size: 15px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

.page {
  display: grid;
  grid-template-columns: 160px minmax(0, 560px);
  gap: 64px;
  max-width: 960px;
  margin: 64px auto;
  padding: 0 32px;
}

h1 {
  margin: 0;
  font-size: 1rem;
  font-weight: 400;
  line-height: inherit;
}

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

nav { display: grid; gap: 4px; margin-top: 20px; }

a {
  color: #0864c7;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

a:hover { text-decoration: underline; }

a:focus-visible { outline: 2px solid #0864c7; outline-offset: 4px; }

main { min-width: 0; overflow-wrap: anywhere; }

main > :first-child { margin-top: 0; }

p, ul, ol, blockquote { margin: 0 0 1.4em; }

h2, h3 { margin: 2em 0 0.6em; font-weight: 700; line-height: 1.4; }
h2 { font-size: 1.2em; }
h3 { font-size: 1em; }

ul, ol { padding-left: 1.4em; }
li + li { margin-top: 0.4em; }
blockquote { margin-left: 0; padding-left: 1em; border-left: 2px solid #ddd; }
img { display: block; max-width: 100%; height: auto; }

@media (max-width: 700px) {
  .page {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
    margin: 32px auto;
    padding: 0 24px;
  }
}
