@font-face {
    font-family: 'Cartridge-BoldRough';
    src: url('/assets/fonts/Cartridge-BoldRough.woff2 ') format('woff2');
    font-display: swap;
}

@font-face {
    font-family: 'Cartridge-Rough';
    src: url('/assets/fonts/Cartridge-Rough.woff2 ') format('woff2');
    font-display: swap;
}

* {
    box-sizing: border-box;
}

body {
    line-height: 1.6;
    padding: 0;
    margin: 0;
    font-family: system-ui, sans-serif;
    font-weight: normal;
    font-size: 1.2em;
    background-color: var(--nearblack);
    color: var(--offwhite);
}

p {
    margin-bottom: 1em;
    margin-top: 1em;
    word-break: break-word;
}

h1,
h2,
h3,
h4 {
    font-family: var(--cbr);
    color: var(--secondary);
}

h2 {
    font-size: 1.6em;
}

h3 {
    font-size: 1.4em;
    display: flex;
    align-items: center;
}

h4 {
    font-size: 1.3em;
    color: var(--tertiary);
    display: flex;
    align-items: center;
}

h3 svg {
    width: 35px;
    height: 35px;
    margin-right: 10px;
}

h4 svg {
    width: 30px;
    height: 30px;
    margin-right: 10px;
}

a {
    color: var(--primary-links);
}

a:hover {
    color: var(--offwhite);
}

hr {
    border: 1px solid var(--offwhite-subtle);
    width: 50%;
    margin: 20px auto;
}

code {
    white-space: break-spaces;
    margin: 0;
    color: var(--primary-subtle);
    background: var(--code-black);
    border-radius: 3px;
}

p code,
li code {
    padding: 0.2em;
}

kbd {
    margin: 0px 0.1em;
    padding: 0.1em 0.6em;
    border-radius: 3px;
    border: 1px solid rgb(204, 204, 204);
    color: black;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10px;
    display: inline-block;
    box-shadow: 0px 1px 0px rgba(0, 0, 0, 0.2), inset 0px 0px 0px 2px #ffffff;
    background-color: rgb(247, 247, 247);
    -moz-box-shadow: 0 1px 0px rgba(0, 0, 0, 0.2), 0 0 0 2px #ffffff inset;
    -webkit-box-shadow: 0 1px 0px rgba(0, 0, 0, 0.2), 0 0 0 2px #ffffff inset;
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
    text-shadow: 0 1px 0 #fff;
}

input,
textarea {
    border: 1px solid #4a4a4a;
}

input:focus,
textarea:focus {
    border: 1px solid #1d7484;
}

textarea {
    width: 100%;
}

.button,
button,
input[type="submit"],
input[type="reset"],
input[type="button"] {
    display: inline-block;
    padding: 15px 10px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    background-color: var(--secondary);
    border: none;
    color: var(--nav-text);
    border-radius: 1px;
    cursor: pointer;
    box-sizing: border-box;
}

.button[disabled],
button[disabled],
input[type="submit"][disabled],
input[type="reset"][disabled],
input[type="button"][disabled] {
    cursor: default;
    opacity: .5;
}

.button:focus:enabled,
.button:hover:enabled,
button:focus:enabled,
button:hover:enabled,
input[type="submit"]:focus:enabled,
input[type="submit"]:hover:enabled,
input[type="reset"]:focus:enabled,
input[type="reset"]:hover:enabled,
input[type="button"]:focus:enabled,
input[type="button"]:hover:enabled {
    background-color: var(--primary);
    color: var(--offwhite);
    outline: 0;
}

.button:hover {
    background-color: var(--primary);
}

textarea,
select,
input {
    color: #4a4a4a;
    padding: 6px 10px;
    /* The 6px vertically centers text on FF, ignored by Webkit */
    margin-bottom: 10px;
    background-color: var(--purewhite);
    border: none;
    border-radius: 4px;
    box-shadow: none;
    box-sizing: border-box;
}

textarea:focus,
select:focus,
input:focus {
    border: none;
    outline: 0;
}

input[type="checkbox"]:focus {
    outline: none;
}

label,
legend,
fieldset {
    display: block;
    margin-bottom: .5rem;
    font-weight: 600;
}

.details {
    margin: 10px 0;
}

.details:hover {
    cursor: pointer;
}

.details summary {
    font-family: var(--cbr);
    font-size: 1.4em;
    color: var(--tertiary);
    margin-bottom: 10px;
    margin-top: 10px;
}

img,
video {
    max-width: 100%;
}

blockquote {
    border-left: 2px solid var(--primary);
    margin: 0 0 15px;
    padding: 0 0 0 20px;
    font-style: italic;
    color: var(--offwhite-subtle);
}

table {
    margin-bottom: 10px;
    width: 100%;
}

table,
th,
td {
    border: 1px solid var(--purewhite);
    border-collapse: collapse;
}

td,
th {
    padding: 3px 10px;
}

.alert {
    position: relative;
    font-size: 0.8em;
    padding: 15px;
    margin-bottom: 20px;
    margin-top: 10px;
    border: 1px solid var(--secondary);
}

.alert p:first-child,
.alert p:last-child {
    margin: 0;
}

.alert .alert-icon {
    position: absolute;
    top: -15px;
    left: 10px;
    background: var(--nearblack);
    padding: 5px;
}

.alert svg {
    width: 15px;
    height: 15px;
}

.alert .alert-calendar {
    color: var(--color-warning);
}

.alert .alert-repost {
    color: var(--secondary);
}

.alert .alert-note {
    color: var(--tertiary);
}

.subscribe-icon {
    color: var(--color-rss);
}

.mastodon-icon {
    color: var(--color-mastodon);
}

.youtube-embed {
    /* center this? */
}