/* 1. Use a more-intuitive box-sizing model */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* 2. Remove default margin */
* {
  margin: 0px;
}

/* 3. Enable keyword animations */
@media (prefers-reduced-motion: no-preference) {
  html {
    interpolate-size: allow-keywords;
  }
}

body {
  /* 4. Add accessible line-height */
  line-height: 1.5;
  /* 5. Improve text rendering */
  -webkit-font-smoothing: antialiased;
}

/* 6. Improve media defaults */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

/* 7. Inherit fonts for form controls */
input,
button,
textarea,
select {
  font: inherit;
}

/* 8. Avoid text overflows */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

/* 9. Improve line wrapping */
p {
  text-wrap: pretty;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
}

/*
  10. Create a root stacking context
*/
#root,
#__next {
  isolation: isolate;
}

* {
  font-family: Arial, Helvetica, sans-serif;
}

*::selection {
  background-color: #7cbd6b;
  color: white;
}

body {
  margin: auto;
  width: 100%;
  max-width: 720px;
  padding: 12px;
  margin-block: 2rem;
}

hr {
  border: 0.5px solid #cccccc;
  margin-block: 1rem;
}

img {
  width: 100%;
  height: auto;
  margin-block: 1rem;
}

header {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

header a {
  color: black;
  text-decoration: none;
}

header a:visited {
  color: black;
}

header a:hover {
  color: gray;
}

.header-items {
  display: flex;
  flex-direction: row;
  gap: 1rem;
}

.post-title {
  margin-block: 1rem;
}

p {
  margin-block: 1rem;
}

a,
a:visited {
  color: black;
}

a:hover {
  color: gray;
}

code {
  font-family: monospace;
  background-color: #eeeeee;
}

.post-nav {
  display: flex;
  flex-direction: row;
  width: 100%;
  justify-content: space-between;
}

.post-nav a {
  color: black;
  text-decoration: none;
}

.post-nav a:hover {
  color: gray;
}

.post-nav-hr {
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.nav-previous {
  text-align: left;
  flex: 1;
}
.nav-next {
  text-align: right;
  flex: 1;
}

.prev-post {
  text-align: left;
}

.next-post {
  text-align: right;
}

.post-index {
  width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1rem;

  text-decoration: none;
}

.post-index p {
  margin-block: unset;
}

.post-date {
  color: #AAAAAA;
}

iframe {
  aspect-ratio: 16/9;
  width: 100%;
  height: auto;
  border: 0;
}