:root {
  --font-family-sans: system-ui, sans-serif;
  --font-family-mono:  'Courier New', monospace;
  --border-radius: 0.375rem;
  --boreal0: #2e3440;
  --boreal1: #3b4252;
  --boreal2: #434c5e;
  --boreal3: #4c566a;
  --boreal4: #d8dee9;
  --boreal5: #e5e9f0;
  --boreal6: #eceff4;
  --boreal7: #8fbcbb;
  --boreal8: #88c0d0;
  --boreal9: #81a1c1;
  --boreal10: #5e81ac;
  --boreal11: #bf616a;
  --boreal12: #d08770;
  --boreal13: #ebcb8b;
  --boreal14: #a3be8c;
  --boreal15: #b48ead;
}

* {
    box-sizing: inherit;
}

html {
    font-size: 100%;
}

body {
    box-sizing: border-box;
    margin: 0;
    background-color: var(--boreal0);
    color: var(--boreal4);
    font-family: var(--font-family-mono);
    font-size: 1rem;
    line-height: 1.5;
}

h1,
.h1,
h2,
.h2,
h3,
.h3,
h4,
.h4,
h5,
.h5,
h6,
.h6 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: var(--boreal5);
    font-weight: 800;
    line-height: 1.15;
    scroll-margin-top: 1rem;
}

h1,
.h1 {
    font-size: 3.052rem;
}

h2,
.h2 {
    font-size: 2.441rem;
}

h3,
.h3 {
    font-size: 1.953rem;
}

h4,
.h4 {
    font-size: 1.563rem;
}

h5,
.h5 {
    font-size: 1.25rem;
}

h6,
.h6 {
    font-size: 1rem;
}

a {
    color: var(--boreal10);
    outline: none;
    text-decoration: none;
}

h1 a,
h2 a,
h3 a,
h4 a,
h5 a,
h6 a,
.h1 a,
.h2 a,
.h3 a,
.h4 a,
.h5 a,
.h6 a {
    color: var(--boreal10);
}

a:hover {
    color: var(--boreal9);
    text-decoration: underline;
    text-decoration-color: var(--boreal8);
    text-decoration-thickness: 2px;
}

img {
    max-width: 100%;
}

hr {
    border: 1px solid var(--boreal15);
}

p {
    margin-top: 0;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

blockquote {
    margin: 1rem 2rem;
}

ol,
ul {
    padding: 0;
    margin-top: 0;
    margin-bottom: 0.5rem;
    margin-left: 1.25rem;
    list-style-position: outside;
}

ol ol,
ol ul,
ul ol,
ul ul {
    margin-bottom: 0;
}

ul li::marker {
    color: var(--boreal10);
}

ol li::marker {
    color: var(--boreal10);
    font-weight: 600;
}

code,
pre {
    border-radius: var(--border-radius);
    background-color: var(--boreal3);
    font-family: var(--font-family-mono);
}

kbd {
    border-radius: var(--border-radius);
    background-color: var(--boreal3);
    color: var(--color-gray-800);
    font-family: var(--font-family-mono);
}

code,
kbd {
    padding: 0.125rem 0.25rem;
    font-size: 0.875em;
}

code {
    color: var(--boreal15);
}

pre {
    padding: 1rem;
    font-size: 0.875rem;
    overflow-x: auto;
}

pre > code {
    padding: 0;
    background-color: transparent;
    color: inherit;
    font-size: inherit;
}

table {
    width: 100%;
    margin-bottom: 1.5rem;
    border-collapse: collapse;
    overflow-x: auto;
    table-layout: auto;
}

thead {
    border-bottom: 2px solid var(--boreal7);
}

td,
th {
    padding: 0.5rem;
    text-align: left;
    vertical-align: top;
}

tr {
    border-bottom: 1px solid var(--boreal8);
}

.small {
    font-size: 0.875rem;
}

.button {
    display: inline-block;
    min-width: 2rem;
    padding: 0.375rem 0.5rem;
    border: 1px solid var(--boreal7);
    border-radius: var(--border-radius);
    margin-right: 0.25rem;
    margin-bottom: 0.5rem;
    background-color: var(--boreal7);
    color: var(--color-gray-100);
    cursor: default;
    font-family: var(--font-family-sans);
    font-size: 0.875rem;
    line-height: 1.15;
    outline: none;
    vertical-align: middle;
    white-space: nowrap;
}

.button:hover {
    border-color: var(--boreal8);
    background-color: var(--boreal9);
    color: var(--color-gray-100);
}

.disabled,
.disabled:hover,
.disabled:focus {
    color: var(--boreal3);
    cursor: default;
}

.container {
    max-width: 1200px;
    padding-right: 1rem;
    padding-left: 1rem;
    margin: 0 auto;
}

.header {
    margin-bottom: 2rem;
}

.footer {
    padding: 2rem 0;
    margin-top: 2rem;
    background-color: var(--boreal0);
}

.menu {
    display: flex;
    overflow: auto;
    flex-wrap: wrap;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 2px solid var(--boreal10);
}

.menu-list {
    gap: 1rem;
}

.menu .button {
    padding: 0.375rem 0.5rem;
    margin: 0;
}

.menu-list a {
    color: inherit;
}

.menu-list a:hover {
    text-decoration: none;
}

.menu-item {
    position: relative;
    display: block;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.menu-header {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin-left: -1rem;
    color: inherit;
    font-size: 1.25rem;
    font-weight: 800;
}

.menu-header:hover {
    text-decoration: none;
}

.menu-item:hover {
    color: var(--boreal5);
}

.menu-item.active::after {
    position: absolute;
    bottom: 0;
    left: 20%;
    display: none;
    width: 60%;
    height: 3px;
    border-radius: var(--border-radius);
    background: var(--boreal11);
    content: " ";
}

.menu-toggle {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    border-color: transparent;
    margin-left: auto;
    background-color: transparent;
}

.menu-collapse {
    display: none;
}

.menu-expanded {
    display: block;
    flex: 1 0 100%;
    margin-bottom: 1rem;
}

@media (width >= 568px) {
    .menu-toggle {
        display: none;
    }

    .menu-collapse {
        display: flex;
        margin-bottom: 0;
    }

    .menu-expanded {
        flex: auto;
    }

    .menu-item.active::after {
        display: block;
    }
}

.article {
    margin-top: 3rem;
}

.article-cover-image {
    width: 100%;
    border-radius: var(--border-radius);
    margin-bottom: 0.5rem;
    aspect-ratio: 3;
    object-fit: cover;
}

.cover-image {
    width: 100%;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    aspect-ratio: 3;
    object-fit: cover;
}

.article-title {
    margin-top: 0.25rem;
}

.article-title a {
    color: inherit;
}

.article-time {
    color: var(--boreal4);
    font-size: 0.875rem;
}

.read-more {
    font-size: 0.875rem;
}

.pagination {
    overflow: auto;
    max-width: 20rem;
    margin: auto;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.pagination-previous {
    float: left;
}

.pagination-next {
    float: right;
}

.tags {
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.75rem;
}

.tag {
    padding: 0.25rem 0.375rem;
    border-radius: 3px;
    background-color: var(--boreal10);
    color: var(--boreal4);
    font-weight: bold;
}

.tag:hover {
    background-color: var(--boreal9);
    color: var(--boreal3);
    text-decoration: none;
    font-weight: bold;
}
