@font-face {
    font-family: "Montserrat";
    src: url("fonts/Montserrat/static/Montserrat-ExtraBold.ttf")
        format("truetype");
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("fonts/Inter/static/Inter_28pt-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Inter-LightItalic";
    src: url("fonts/Inter/static/Inter_18pt-LightItalic.ttf")
    format("truetype");
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

body {
    margin: 0;
    padding: 1.5rem;
}

h1 {
    font-family: "Montserrat", sans-serif;
}

h2 {
    font-family: "Montserrat", sans-serif;
}

h3 {
    font-family: "Montserrat", sans-serif;
}

h4 {
    font-family: "Montserrat", sans-serif;
}

p {
    font-family: "Inter", sans-serif;
    line-height: 1.6;
}

.italic {
    font-family: "Inter-LightItalic", sans-serif;
}

.quote {
    font-family: "Inter", sans-serif;
    font-style: italic;
    line-height: 1.6;
    border-style: solid;
    border-right: 0;
    border-top: 0;
    border-bottom: 0;
    padding-left: 20px;
}

header {
    margin-bottom: 50px;
}

main {
    margin-bottom: 50px;
}

article {
    margin-bottom: 50px;
}

footer ul {
    list-style: none;
    padding: 0;
}

footer li {
    margin-bottom: 0.5rem;
}

#warn {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    z-index: 10;
    max-width: 700px;
    margin: 0 auto;
    border: 1px solid #000;
    background: #fff;
    color: #000;
}

#warn-msg {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
}

#warn-msg p {
    flex: 1;
    margin: 0;
    font-size: 0.85rem;
}

#content {
    margin: 0 auto;
    max-width: 700px;
    width: 100%;
}


.syntax-table {
    display: grid;
    width: 100%;
    max-width: 286px;

    border-top: 1.5px solid #000;
    border-bottom: 1.5px solid #000;

    font-family: "Inter", sans-serif;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #000;
    background: #fff;
}

.syntax-row {
    display: grid;
    grid-template-columns: 10rem 1fr;
}

.syntax-row > div {
    padding: 0.55rem 0.75rem;
}

.syntax-header {
    border-bottom: 1px solid #000;
    font-weight: 700;
}

.syntax-row:not(.syntax-header) {
    border-bottom: 0.5px solid #b5b5b5;
}

.syntax-row:last-child {
    border-bottom: none;
}

.syntax-table code {
    font-family: "Inter", monospace;
    font-size: 0.95em;
}

@media (max-width: 480px) {
    .syntax-row {
        grid-template-columns: 6rem 1fr;
    }

    .syntax-row > div {
        padding: 0.5rem;
    }
}

.code-block {
    width: 100%;
    max-width: 760px;
    margin: 3.5rem 0;

    border-top: 1.5px solid #000;
    border-bottom: 1.5px solid #000;

    color: #000;
    background: #fff;
}

.code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0.55rem 0.75rem;
    border-bottom: 1px solid #000;

    font-family: "Inter", sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
}

.copy-button {
    padding: 0.2rem 0.5rem;

    border: 1px solid #000;
    border-radius: 0;

    color: #000;
    background: #fff;

    font-family: "Inter", sans-serif;
    font-size: 0.8rem;
    cursor: pointer;
}

.copy-button:hover,
.copy-button:focus-visible {
    color: #fff;
    background: #000;
}

.copy-button:focus-visible {
    outline: 2px solid #000;
    outline-offset: 2px;
}

.code-block pre {
    margin: 0;
    padding: 1rem 0.75rem;
    overflow-x: auto;

    font-family: "Inter", monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    white-space: pre;
    tab-size: 2;
}

.code-block code {
    font-family: inherit;
}


.paper-header {
    position: relative;
    padding-top: 3rem;
    text-align: center;
}

.paper-actions {
    position: absolute;
    top: 0;
    right: 0;

    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.paper-action {
    display: inline-block;
    padding: 0.2rem 0.5rem;

    border: 1px solid #000;
    border-radius: 0;

    color: #000;
    background: #fff;

    font-family: "Inter", sans-serif;
    font-size: 0.8rem;
    line-height: 1.4;
    text-decoration: none;
    cursor: pointer;
}

.paper-action:hover,
.paper-action:focus-visible {
    color: #fff;
    background: #000;
}

.paper-action:focus-visible {
    outline: 2px solid #000;
    outline-offset: 2px;
}

@media (max-width: 600px) {
    .paper-header {
        padding-top: 0;
        text-align: left;
    }

    .paper-actions {
        position: static;
        justify-content: flex-end;
        margin-bottom: 1.5rem;
    }
}

#warn {
    background-color: red;
    color: white;
    text-shadow: 1px 1px black;

}
