/*variables*/
:root {
  --color-divider: rgb(114, 111, 131);
}

/*common styles*/
* {
  box-sizing: border-box;
}

h1,
h2,
h3,
h4,
h5,
h5 {
  font-size: initial;
  margin: 0;
}

h1 {
  text-align: center;
  font-size: 30pt;
  margin: 0 0 2rem;
  font-weight: normal;
}

h2 {
  font-size: 1.8rem;
  margin: 2.5rem 0;
}

h3 {
  font-size: 1.5rem;
  margin: 2rem 0;
}

h4 {
  font-size: 1.1rem;
  margin: 1.4rem 0;
}

p,
li {
  line-height: 1.7em;
}
p {
  margin: 1em 0;
}

a {
  color: rgb(160, 179, 233);
}
a:hover {
  color: rgb(196, 210, 250);
}

img {
  margin: auto;
  display: block;
  max-width: 100%;
}

#projects > *,
figure {
  background-color: #1c1f29;
  border: 2px solid #5a5a66;
  border-radius: 20px;
  padding: 20px;
  margin: 0;
  box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.2);
}

figure {
  margin-bottom: 3rem;
}

code:not(.highlight code) {
  background-color: #292d3b;
  border-radius: 0.5em;
  padding: 0.1em 0.5em;
}

/*{{<code-example>}}*/
.code-example {
  display: flex;
  justify-content: center;
}
.code-example > div {
  width: 1200px;
  max-width: 100vw;
  display: grid;
  grid-template-columns: repeat(2, 50%);
  column-gap: 1em;
}
.code-example > div > :first-child {
  display: initial;
}
.code-example > div > :nth-child(2) {
  display: initial;
  height: 100%;
  object-fit: contain;
}
.code-example > div > * {
  display: none;
  max-height: 500px;
}

/*{{<cta>}}*/
.cta {
  display: flex;
  justify-content: center;
  margin: 3rem 0;
  gap: 1rem;
}
.cta > * {
  padding: 0.6em 1.2em;
  border-radius: 1em;
  font-size: 1.3rem;
  cursor: pointer;
}
.cta > a {
  background-color: #454f5c;
  transition: background-color 0.1s, box-shadow 0.1s;
  outline-color: transparent;
}
.cta > a:hover {
  background-color: #545f6d;
  transition: background-color 0.1s, box-shadow 0.1s;
  box-shadow: 0 0 20px 5px rgba(255, 255, 255, 0.1);
}
.cta > strong {
  background-color: #37693b;
  transition: background-color 0.1s, box-shadow 0.1s;
  outline-color: transparent;
}
.cta > strong:hover {
  background-color: #457a48;
  transition: background-color 0.1s, box-shadow 0.1s;
  box-shadow: 0 0 20px 5px rgba(99, 255, 112, 0.1);
}
.cta a {
  text-decoration: none;
  font-weight: normal;
  color: white;
}

/*{{<highlight>}}*/
.highlight {
  margin: 2rem 0;
  font-size: 1rem;
}
.highlight > * {
  padding: 1.2rem;
  border-radius: 20px;
  box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.2);
  display: flex;
}
.highlight > * > * {
  overflow: scroll;
}

/*page layout*/
body {
  margin: 0;

  font-family: monospace;
  font-size: 14pt;
  background: #111218;
  background-size: 100%;
  color: rgb(225, 225, 238);
}

header {
  max-width: 1000px;
  margin: auto;
}
header img {
  margin: 4rem 0;
}

main {
  padding: 2rem;
  padding-top: 0;
  max-width: 1000px;
  margin: auto;
}

footer {
  max-width: 1000px;
  margin: auto;
  margin-top: 3rem;
  border-top: 1px solid var(--color-divider);
  padding: 3rem;
  text-align: center;
}
footer h2 {
  margin-top: 0;
}
#links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
#links > * {
  width: 3rem;
  height: 3rem;
  transition: filter 0.1s;
}
#links > *:hover {
  filter: brightness(0.8);
  transition: filter 0.1s;
}
