@import url('/fonts.css');
:root {
    --heading-fonts: "Cooper Hewitt", "Anek Kannada", "Anek Devanagari", sans-serif;
    --body-fonts: "CharisW", "Anek Kannada", "Anek Devanagari", serif;
    --mono-fonts: "Fira Mono", monospace;
}

* {
    box-sizing: border-box;
    text-rendering: optimizeLegibility;
    font-variant-ligatures: common-ligatures;
    font-kerning: auto;
}

body {
    font-size: 110%;
    font-family: var(--body-fonts);
    max-width: 80ch;
    padding-left: 20px;
    padding-right: 20px;
    line-height: 1.45 !important;
    text-align: justify;
    hyphens: auto;
}

strong {
    font-weight: 600;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-fonts);
    font-weight: normal;
    text-align: left;
}

code, pre, time {
    font-family: var(--mono-fonts);
    font-size: 90%;
}


header h1 {
    margin-bottom: 0;
}

nav {
    display: flex;
    gap: 0.5em;
}

.marquee {
    overflow: hidden;
    white-space: nowrap;
    background-color: #FBEC5D;
}

.alert {
    background-color: #FBEC5D;
    display: block;
    overflow: hidden;
    padding-inline: 0.75rem;
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 0;
    margin-inline-end: 0;
}

.marquee > :first-child {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 35s linear infinite;
    white-space: nowrap;
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}

.profile {
    float: left;
    margin-right: 20px;
}

aside {
    float: right;
    width: 30%;
    margin-left: 20px;
    font-size: 0.9em;
    background-color: #eee;
    padding-left: 10px;
    padding-right: 10px;
}

blockquote {
  margin-left: 0;
  margin-right: 0;
}

pre, blockquote {
  border-left: 3px groove;
  padding-left: 1rem;
}

pre {
  text-align: left;
  overflow-x: auto;
}

@media print {
    body {
        max-width: none;
    }

    header,
    footer {
        display: none;
    }
}

table {
    border-collapse: separate;
    border-spacing: 0.5rem 0.25rem;
    text-align: left;
}

th,
td {
    padding: 0;
}

dt {
    font-weight: bold;
}

table p {
    margin: 0;
    padding: 0;
}

kbd {
    position: relative;
    display: inline-block;
    border: 1px solid #e5e7eb;
    background-color: #ffffff;
    padding: 0.1rem 0.4rem;
    vertical-align: middle;
    box-shadow: inset 0 -2px 0 0 #e5e7eb;
}

kbd::before {
    content: none;
}

/* Pandoc default syntax highlighting */
code span.al { color: #ff0000; font-weight: bold; } /* Alert */
code span.an { color: #60a0b0; font-weight: bold; font-style: italic; } /* Annotation */
code span.at { color: #7d9029; } /* Attribute */
code span.bn { color: #40a070; } /* BaseN */
code span.bu { color: #008000; } /* BuiltIn */
code span.cf { color: #007020; font-weight: bold; } /* ControlFlow */
code span.ch { color: #4070a0; } /* Char */
code span.cn { color: #880000; } /* Constant */
code span.co { color: #60a0b0; font-style: italic; } /* Comment */
code span.cv { color: #60a0b0; font-weight: bold; font-style: italic; } /* CommentVar */
code span.do { color: #ba2121; font-style: italic; } /* Documentation */
code span.dt { color: #902000; } /* DataType */
code span.dv { color: #40a070; } /* DecVal */
code span.er { color: #ff0000; font-weight: bold; } /* Error */
code span.ex { } /* Extension */
code span.fl { color: #40a070; } /* Float */
code span.fu { color: #06287e; } /* Function */
code span.im { color: #008000; font-weight: bold; } /* Import */
code span.in { color: #60a0b0; font-weight: bold; font-style: italic; } /* Information */
code span.kw { color: #007020; font-weight: bold; } /* Keyword */
code span.op { color: #666666; } /* Operator */
code span.ot { color: #007020; } /* Other */
code span.pp { color: #bc7a00; } /* Preprocessor */
code span.sc { color: #4070a0; } /* SpecialChar */
code span.ss { color: #bb6688; } /* SpecialString */
code span.st { color: #4070a0; } /* String */
code span.va { color: #19177c; } /* Variable */
code span.vs { color: #4070a0; } /* VerbatimString */
code span.wa { color: #60a0b0; font-weight: bold; font-style: italic; } /* Warning */
