@font-face {
    font-family: 'BGVC Sans';
    font-weight: 500;
    src:
        local('BGVC Sans'),
        url('bs-m.ttf') format('truetype');
}

@font-face {
    font-family: 'BGVC Sans';
    font-weight: 900;
    src:
        local('BGVC Sans'),
        url('bs-b.ttf') format('truetype');
}

/*
*,*:before,*:after {
    outline: 1px solid rgba(255,0,0,.1);
}
*/

html {
    box-sizing: border-box;
    --roundedness: 8px;
}

*, *:before, *:after {
    box-sizing: inherit;
}

body {
    color: #fff;
    background: #1f1f1f;
    background-image: radial-gradient(#1f1f1f 80%, #0f0f0f);
    background-attachment: fixed;
    font-family: 'BGVC Sans', 'Helvetica', Arial, sans-serif;
    font-weight: 500;
    letter-spacing: .05em;
}

b, strong {
    font-weight: 900;
}

#top {
    margin: auto;
    max-width: 48em;
    padding: 1em;
}

h1#sitename {
    background-image: url('logo.svg');
    background-repeat: no-repeat;
    background-size: auto 100%;
    width: 1.2em;
    text-indent: -999em;
    margin: 0 auto;
    font-size: 6.5em;
}

h1,h2,h3,h4,h5,h6 {
    letter-spacing: 0;
}

a {
    color: #FF9D47;
}

a:hover, a:focus {
    color: #fff;
}

#navmenu ul {
    padding: 0;
    list-style: none;
    display: flex;
    gap: 1em;
    flex-wrap: wrap;
    text-transform: lowercase;
    justify-content: center;
}

#navmenu a {
    text-decoration: none;
    padding: .25em;
    min-width: 6em;
    display: inline-block;
    text-align: center;
}

#navmenu a:hover, #navmenu a:focus {
    font-weight: bold;
}

p {
    line-height: 1.5em;
}

#tat-hell {
    background-image: url('tathell_logo.svg');
    background-repeat: no-repeat;
    background-size: auto 100%;
    width: 6.5em;
    text-indent: -999em;
    margin: 0;
    display: inline-block;
}

#works-content {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

#works-content > div {
    background-color: #777;
    background-image: var(--image);
    position: relative;
    background-repeat: repeat-y;
    background-size: 100% auto;
    background-position: center;
    background-attachment: fixed;
    padding: 1em;
    overflow: hidden;
    border-radius: var(--roundedness);
}

#works-content > div:before {
    background-color: #000;
    opacity: .74;
    position: absolute;
    top: 0;
    left: 0;
    content: '';
    width: 100%;
    height: 100%;
    z-index: 0;
}

#works-content > div > div {
    display: flex;
    flex-direction: column;
    gap: 2em;
    z-index: 1;
    position: relative;
}

#works-content dt {
    font-size: 2em;
    line-height: 1;
    font-weight: bold;
}

#works-content dd {
    margin: 0;
    text-align: right;
}

#works-content a {
    color: #fff;
}

#works-content a:hover, #works-content a:focus {
    color: #8ff;
}

.software-content {
    display: flex;
    gap: 1em;
}

.software-content:before {
    content: '';
    display: block;
    width: 6em;
    height: 6em;
    border-radius: var(--roundedness);
    background-color: #000;
    background-image: var(--image);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

.software-content h3 {
    margin-top: 0;
    margin-bottom: 0;
    display: inline-block;
}

.avail {
    display: flex;
    display: inline-block;
}

.avail > span{
    text-indent: -999em;
    display: inline-block;
}

.avail > span.avail-windows,
.avail > span.avail-linux,
.avail > span.avail-famicom {
    background-size: auto 100%;
    background-repeat: no-repeat;
    width: 1.25em;
    height: 1.25em;
}

.avail > span.avail-windows {
    background-image: url('windows_icon.svg');
}

.avail > span.avail-linux {
    background-image: url('linux_icon.svg');
}

.avail > span.avail-famicom {
    background-image: url('famicom_icon.svg');
}

.software-content ul {
    padding: 0;
    list-style: none;
}

h2, hr {
    border: 0;
    padding-top: 1rem;
}

section:target {
    border-radius: var(--roundedness);
    animation: flash .25s .5s linear backwards;
}

@keyframes flash {
    0% {
        box-shadow: 0 0 10px rgba(255,255,255,.6);
    }
    100% {
        box-shadow: 0 0 0 rgba(255,255,255,.6);
    }
}

footer {
    display: flex;
}

footer > div {
    flex-grow: 1;
}

footer > address {
    padding: 0;
    font-style: normal;
    text-align: right;
}

footer > address ul {
    padding: 0;
    margin: 0;
    list-style: none;
    line-height: 1.5;
}

.youtube {
    max-width: 100%;
    border-radius: 10px;
}

object {
    max-width: 100%;
    border-radius: 10px;
}

.grid-of-figures {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-gap: .5em;
}

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

.font-preview {
	text-align: center;
	font-size: 4em;
	padding: 1em .2em;
	background-color: #181818;
	background-image:
        linear-gradient(to bottom, rgba(0,0,0,.6), rgba(0,0,0,.6)),
        var(--image);
	overflow-wrap: break-word;
	word-break: break-word;
	hyphens: auto;
    background-size: 100% auto;
    background-position: center;
    position: relative;
    border-radius: 5px 5px 5px 0;
    margin-bottom: .75em;
}

.font-preview::after {
    content: "Edit me!";
    font-family:  'Libre Franklin', 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    position: absolute;
    bottom: -2.1rem;
    left: 0;
    display: block;
    font-size: 1rem;
    background: #000;
    padding: .5em;
    border-radius: 0 0 5px 5px;
}

figure {
  margin: 0;
}

figure.two-column {
    display:flex;
    gap: 1em;
    margin-bottom: 1em;
    flex-direction: row;
}

figure img, figure video {
    height: auto;
    border-radius: 10px;
    object-fit: contain;
}

.font-section h2 {
    font-weight: normal;
    font-size: 3em;
    margin: 0;
}

td, th {
    border: 1px solid grey;
    padding: .5em;
}

table {
    border-collapse: collapse;
    width: 100%;
}

blockquote {
    border-left: 2px solid grey;
    margin-left: 0;
    padding-left: 1em;
}

@media screen and (max-width: 48em) {
    .grid-of-figures {
        grid-template-columns: 1fr 1fr;
    }
    figure.two-column {
        flex-direction: column;
    }
    body {
	background-image: none; /* prevents scrolling issues on mobile */
    }
}

@media screen and (max-width: 36em) {
	.font-preview {
		padding: 1.5em .25em;
		font-size: 3em;
	}
	#top {
		padding: 1em .3em;
	}
	.software-content {
		flex-direction: column;
	}
    .grid-of-figures {
        grid-template-columns: 1fr;
    }
}
