@import 'fonts.css';
@import 'variables.css';

html {
  font-family: 'ABC Oracle Greek Plus Variable Unlicensed Trial';
  font-weight: 400;
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: 0em;
  text-rendering: optimizeSpeed;
  color: black;
  background-color: white;
  padding: 1rem;
  box-sizing: border-box;
}

body {
  max-width: 1200px;
  margin: auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

main {
  flex: 1;
}

h1 {
  font-size: 1.75rem;
}

h2 {
  font-size: 1.5rem;
  line-height: 1.1;
  max-width: 37em;
  hyphens: auto;
}

h3 {
  font-size: 1.25rem;
  line-height: 1.1;
}

.intro {
  margin-bottom: 3rem;
}

.intro p {
  font-size: 1.25rem;
  max-width: 40em;
}

.date {
  font-feature-settings: "tnum";
}

nav {
  padding: 1.5rem 0 2rem 0;
}

nav ul {
  display: flex;
  flex-direction: row;
  gap: 2rem;
}

nav a {
  display: inline-block;
  padding: 0.5em 0;
}

a.active {
  border-bottom: 2px solid light-dark(black, white);
}

.list {
  display: flex;
  flex-direction: column;
  padding: 2rem 0;
  gap: 0.5rem;
}

article {
  background-color: rgb(236, 236, 236);
  border-radius: 1rem;
}

.list article a {
  display: flex;
  flex-direction: row;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  box-sizing: border-box;
}

section.title {
  margin-bottom: 2rem;
}

section.title h2 {
  font-size: 3rem;
}

.blocks {
  display: flex;
  flex-direction: column;
  gap: 1rem
}

.block-type-text p {
  max-width: 42em;
  line-height: 1.35;
}

.block-type-list ul {
  margin-left: 1em;
}

.block-type-list li {
  list-style: disc;
}

img {
  width: 100%;
}

.lazy {
  opacity: 0;
  transform: translateY(0.5rem);
}

.loaded {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s;
}

.block a {
  text-decoration: underline;
}

footer {
  padding-top: 5rem;
}

hr {
  background-color: transparent;
  border-bottom: 3px dotted black;
  max-width: 42rem;
}

.title .tags {
  padding: 0.25rem 0 0.5rem 0;

}

.tags ul {
  display: flex;
  flex-direction: row;
  gap: 0.5rem
}

.tags li {
  font-size: 0.85rem;
  padding: 0.1em 0.35em;
  background-color: rgb(220, 220, 220);
  border-radius: 0.25em;
}

.info {
  display: flex;
  flex-direction: row;
  gap: 1.5rem
}

.current {
  animation-name: current;
  animation-duration: 0.5s;
  animation-iteration-count: infinite;
  background-color: yellow;
}

@keyframes current {
  0% {transform: rotate(-1deg);}
  50% {transform: rotate(1deg);}
  100% {transform: rotate(-1deg);}
}

pre {
  font-size: 0.75rem;
  padding: 1rem;
  box-sizing: border-box;
  overflow-x: auto;
  border-radius: 0.5rem;

}