* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: "Torus";
    src: url("/static/Torus-Regular.otf") format("opentype");
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: "Torus";
    src: url("/static/Torus-SemiBold.otf") format("opentype");
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: "Torus";
    src: url("/static/Torus-Bold.otf") format("opentype");
    font-weight: 700;
    font-style: normal;
}

html {
    font-size: 20px;
}

body {
    font-family: "Torus", "JetBrains Mono", monospace;
    background: #11111b;
    color: #cdd6f4;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.container {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
}

nav {
    margin-bottom: 2rem;
}

nav a {
    font-size: 0.8125rem;
    color: #7f849c;
    text-decoration: none;
    transition: color 0.2s;
}

nav a:hover {
    color: #cdd6f4;
}

h1 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 2rem;
}

.post-view h1 {
    margin-bottom: 0.35rem;
}

.aka {
    font-size: 0.45em;
    font-weight: 300;
    color: #585b70;
}

/* about page */

.handle {
    font-size: 0.875rem;
    font-weight: 300;
    color: #7f849c;
    margin-bottom: 2rem;
}

section {
    margin-bottom: 2rem;
}

h2 {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #6c7086;
    margin-bottom: 0.75rem;
}

p {
    font-size: 0.9375rem;
    font-weight: 300;
    line-height: 1.7;
    color: #bac2de;
}

.links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.woag a {
    font-weight: 400;
    color: #cba6f7;
    text-decoration: none;
    border-bottom: 1px solid #45475a;
    padding-bottom: 0.1rem;
    transition: border-color 0.2s;
}

.woag a:hover {
    border-color: #cdd6f4;
}

.links a {
    font-size: 0.8125rem;
    font-weight: 400;
    color: #cba6f7;
    text-decoration: none;
    border-bottom: 1px solid #45475a;
    padding-bottom: 0.15rem;
    transition: border-color 0.2s;
}

.links a:hover {
    border-color: #cdd6f4;
}

.buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    width: fit-content;
    max-width: 600px;
    margin-top: 1.5rem;
}

.button-break {
    flex-basis: 100%;
    height: 0;
}

.buttons-centered {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    max-width: 600px;
    margin: 2rem auto;
}

.buttons img {
    display: block;
    image-rendering: auto;
    image-rendering: optimizeSpeed;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
    image-rendering: -webkit-optimize-contrast;
    transition: transform 0.2s ease;
}

.buttons img:hover {
    transform: scale(2);
}

/* blog list */

.post-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.post-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.post-date {
    font-size: 0.65rem;
    font-weight: 400;
    color: #585b70;
    margin-bottom: 0.35rem;
}

.container > .post-date {
    margin-bottom: 1.25rem;
}

.post-item .post-date {
    margin-bottom: 0;
    margin-right: 0.5rem;
}

.post-title {
    font-size: 1rem;
    font-weight: 500;
    color: #cdd6f4;
    margin-bottom: 0.35rem;
    transition: color 0.2s;
}

.post-item a:hover .post-title {
    color: #9399b2;
}

.post-excerpt {
    font-size: 0.8125rem;
    font-weight: 300;
    color: #6c7086;
    line-height: 1.6;
}

/* blog post content */

.content p {
    font-size: 0.9375rem;
    font-weight: 300;
    line-height: 1.7;
    color: #bac2de;
    margin-bottom: 1rem;
}

.content p strong {
    font-weight: 500;
}

.content h2 {
    font-size: 1.5rem;
    font-weight: 500;
    color: #cdd6f4;
    margin: 2.5rem 0 1.25rem;
    text-transform: none;
    letter-spacing: normal;
}

.content h3 {
    font-size: 0.9375rem;
    font-weight: 500;
    color: #bac2de;
    margin: 2rem 0 0.5rem;
}

.content pre {
    background: #181825;
    color: #a6adc8;
    padding: 1rem;
    border-radius: 4px;
    overflow-x: auto;
    font-size: 0.75rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.content code {
    font-family: "JetBrains Mono", monospace;
    background: #181825;
    padding: 0.15em 0.3em;
    border-radius: 3px;
    font-size: 0.75rem;
}

.content pre code {
    background: none;
    padding: 0;
    border-radius: 0;
    font-size: inherit;
}

.content a {
    color: #cdd6f4;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: #585b70;
}

.content a:hover {
    text-decoration-color: #cdd6f4;
}

.content ul,
.content ol {
    font-size: 0.9375rem;
    font-weight: 300;
    line-height: 1.7;
    color: #bac2de;
    margin-bottom: 1.5rem;
    padding-left: 2.5rem;
}

.content ol ::marker {
    font-weight: 500;
    color: #cdd6f4;
}

.content li {
    margin-bottom: 0.15rem;
}

.content li > ul,
.content li > ol {
    margin-bottom: 0;
    margin-top: 0.15rem;
}

.content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    font-weight: 300;
    color: #bac2de;
    margin-bottom: 1.5rem;
}

.content th {
    font-weight: 500;
    color: #cdd6f4;
    text-align: left;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #45475a;
}

.content td {
    padding: 0.4rem 0.75rem;
    border-bottom: 1px solid #181825;
}

.content hr {
    width: 100%;
    margin: 2rem 0;
    border: none;
    border-top: 1px solid #45475a;
}
