@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cascadia+Mono:ital,wght@0,200..700;1,200..700&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
@import url('./syntax.css');

:root {
    --color-background: #111111;
    --color-text: #eeeeee;
    --color-text-faded: #c0c0c0;
    --color-header-footer: #1e1e1e;
    --color-border: #383838;
}

* {
    padding: 0;
    margin: 0;
}

:root {
    font-size: 13pt;
}

h1,
h2,
h3,
h4,
p,
a,
li,
address {
    font-family: 'Inter', sans-serif;
    color: var(--color-text);
}

code {
    font-family: 'Cascadia Mono', monospace;
    color: var(--color-text);
}

body {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background-color: var(--color-background);
}

main {
    max-width: 640pt;
    padding: 0 16pt 48pt 16pt;
    min-height: calc(100vh - 96pt);
}

header,
footer {
    width: 100%;
    height: 48pt;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    background-color: var(--color-header-footer);
    padding: 0 20pt;
    box-sizing: border-box;
}

header {
    border-bottom: 1px solid var(--color-border);
}

header a {
    font-weight: bold;
    text-decoration: none;
}

header div {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 16pt;
}

.link-icon {
    width: 32px;
}

footer {
    border-top: 1px solid var(--color-border);
}

footer p,
footer a {
    font-size: 0.8rem;
    font-style: italic;
    color: var(--color-text-faded);
}

.highlight {
    max-width: calc(100vw - 64pt);
    padding: 12pt;
    border-radius: 4px;
    overflow-x: scroll;
}

p>code {
    padding: 3pt;
    border-radius: 4px;
}

p {
    line-height: 1.6;
}

li {
    line-height: 2.0;
}

code {
    font-size: 0.8rem;
}

h1,
h2,
h3,
h4 {
    margin-top: 1.8em;
}

p,
code {
    margin-top: 20pt;
    margin-bottom: 16pt;
}

ul,
li {
    margin-left: 16pt;
}

.date {
    margin-top: 8pt;
    color: var(--color-text-faded);
}

.bottom-note {
    margin-top: 32pt;
    font-size: 0.8rem;
    font-style: italic;
}