@charset "UTF-8";
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  --text: #444;
  --background: whitesmoke;
  --accent: #fad44f;
  --light-accent: rgba(250, 212, 79, 0.1);
  font-size: 120%;
  font-family: garamond-premier-pro, serif;
  line-height: 1.45rem;
  background-color: var(--background);
  color: var(--text);
}

main {
  margin: 0 auto;
}

article {
  max-width: 720px;
  margin: 5vh auto;
  padding: 2vw;
}
article header {
  margin-bottom: 2rem;
}
article h1, article h2, article p {
  padding: 0;
}
article h1 {
  margin: 4rem 0 2rem;
}
article h2 {
  margin: 2rem 0 1rem;
}

.hint {
  text-align: center;
}

.hint .flag {
  font-style: normal;
  color: var(--flag-color);
}

.dark {
  display: none;
  --flag-color:var(--accent);
}

.light {
  display: inline-block;
  --flag-color:var(--text);
}

h1.hide {
  animation: hide 220ms 1;
}

h1.show {
  animation: show 220ms 1;
}

@keyframes hide {
  0% {
    transform: rotate3d(1, 0, 0, 0deg);
  }
  100% {
    transform: rotate3d(1, 0, 0, 90deg);
  }
}
@keyframes show {
  0% {
    transform: rotate3d(1, 0, 0, -90deg);
  }
  100% {
    transform: rotate3d(1, 0, 0, 0deg);
  }
}
h1,
h2,
header {
  font-family: garamond-premier-pro-caption, serif;
  text-align: center;
  line-height: 2rem;
  margin: 0;
}

h1,
h2,
p {
  padding: 0.5rem;
}

p {
  text-align: justify;
}

mark {
  display: inline-block;
  background-color: var(--accent);
  padding: 0 0.25rem;
  color: var(--text);
}

nav ul {
  display: flex;
  list-style: none;
  justify-content: center;
  padding: 0;
  margin: 0;
}

nav li {
  display: block;
  padding: 0.25rem;
}

a {
  color: var(--text);
}

a:hover {
  text-decoration: none;
}

@media (prefers-color-scheme: dark) {
  body {
    --text: #e1e1e1;
    --background: #222;
    --accent: #1f7fc9;
    --light-accent: rgba(31, 127, 201, 0.1);
  }
  .dark {
    display: inline-block;
  }
  .light {
    display: none;
  }
}
.header-nav {
  text-align: right;
  padding: 0.5rem;
  display: flex;
  gap: 0.5rem;
  justify-content: right;
  margin-bottom: 2.5rem;
}
.header-nav a {
  display: inline-block;
  text-decoration: none;
}
.header-nav a:hover, .header-nav a.active {
  text-decoration: underline;
}

.note-list {
  list-style: none;
  margin: 0;
  padding: 0 0.5rem;
}
.note-list li {
  margin: 1rem 0;
}
.note-list a {
  display: inline-block;
  color: var(--text);
  text-decoration: underline;
}
.note-list a:hover {
  text-decoration: none;
}

.footer-nav {
  margin: 1rem 0 3rem;
}

pre, code {
  font-size: 1rem !important;
}

code {
  background-color: rgba(150, 150, 150, 0.5);
  color: white;
  padding: 0.25rem;
  border-radius: 0.25rem;
}

#main-content {
  max-width: 320px;
  margin: 0 auto;
}

hive-text {
  display: block;
  margin: 2rem 0;
}

#recents {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}
@media (min-width: 650px) {
  #recents {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}
#recents header {
  margin-bottom: 1.5rem;
}
#recents header a {
  display: inline-block;
  text-decoration: none;
  color: var(--text);
  padding: 0 0.5rem;
  font-weight: bold;
  transition: all 220ms;
  font-size: 1rem;
  border: 1px solid transparent;
  border-bottom: 1px solid var(--accent);
}
#recents header a:hover {
  background-color: var(--accent);
  border-bottom-color: transparent;
}
#recents div {
  padding: 1rem;
  box-sizing: border-box;
  border-radius: 0.5rem;
  display: grid;
  grid-template-rows: 4rem auto auto;
}
#recents div p {
  margin-bottom: 0.25rem;
}
#recents div .bottom {
  text-align: center;
  padding: 0;
  display: block;
}
#recents div .bottom a {
  display: inline-block;
  text-decoration: none;
  border-bottom: 1px solid var(--text);
  transition: all 220ms;
}
#recents div .bottom a::after {
  content: "→";
  display: inline-block;
  margin-left: 0.5rem;
}
#recents div .bottom a:hover {
  transform: translateX(0.5rem);
  border-color: transparent;
}

h3 {
  text-align: center;
  font-size: 1.5rem;
  line-height: 1.5rem;
  display: inline-block;
  margin: 0 auto 1.5rem;
  padding: 0.25rem;
  max-width: 75%;
}
@media (min-width: 650px) {
  h3 {
    max-width: 100%;
  }
}
h3 mark {
  padding: 0.25rem;
}

.eyecatcher {
  padding: 2rem 0;
  margin: 2rem 0 0;
  box-sizing: border-box;
}
.eyecatcher .focus {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.dark .eyecatcher {
  background-color: rgba(0, 0, 0, 0.2);
}

.demo-image {
  display: block;
  margin: 0 auto;
  width: 75%;
  aspect-ratio: 2/1;
  background: var(--image) black center/cover;
  border-radius: 0.5rem;
}
@media (min-width: 650px) {
  .demo-image {
    width: 100%;
  }
}