:root {
    --bg: #292a56d0;
    --hair: #885fa4;
    --text: hsl(239, 35%, 90%);
    --acc: #ffff43;
}

@font-face {
    font-family: 'OSTitle';
    src: url('display.ttf');
    font-display: swap;
}

@font-face {
    font-family: 'jp';
    src: url('web_dos-v_re_jpn19.woff');
    font-display: swap;
}

body {
    margin: 0;
    min-height: 100vh;
    display: grid;
    align-content: center;
}

bayer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

#bayer-canvas {
    display: block;
    width: 100%;
    height: 100%;
    image-rendering: pixelated;
}

container {
    width: 1100px;
    justify-self: center;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 24px;
    align-items: start;
    background-color: var(--bg);
    padding: 32px;
    color: var(--text);
    font-family: jp;
    backdrop-filter: blur(3px);
    margin-top: 20%;
}

h1 {
    color: var(--acc);
    font-family: OSTitle;
    font-weight: lighter;
}

h2 {
    font-family: jp;
    font-weight: bolder;
}

a {
    color: var(--acc);
}

p {
    font-size: large;
}

video {
    width: 100%;
}

.project-card {
    padding: 16px;
    border: 2px solid var(--hair);
    image-rendering: pixelated;
    font-family: jp;
    color: var(--text);
    break-inside: avoid;
    margin-top: 24px;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: top;
    padding-bottom: 6px;
    margin-bottom: 10px;
}

.project-header h3 {
    margin: 0;
    font-family: OSTitle;
    color: var(--acc);
    font-weight: lighter;
    letter-spacing: 1px;
    flex: 1;
    margin-right: 8px;
}

.project-date {
    font-size: 12px;
    opacity: 0.8;
    flex-shrink: 0;
}

.project-role {
    font-size: 14px;
    margin-bottom: 8px;
    opacity: 0.9;
}

.project-desc {
    margin: 8px 0 12px 0;
    font-size: 15px;
    line-height: 1.4;
}

.project-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.project-tags span {
    font-size: 12px;
    padding: 2px 6px;
    border: 1px solid var(--hair);
    image-rendering: pixelated;
}

.project-media {
    width: 100%;
    margin-top: 10px;
    border: 2px solid var(--hair);
    overflow: hidden;
}

.project-media video,
.project-media img {
    width: 100%;
    display: block;
    image-rendering: pixelated;
}

.project-links {
    margin-top: 10px;
    display: flex;
    gap: 12px;
}

.project-links a {
    color: var(--acc);
    text-decoration: none;
    font-size: 14px;
    border-bottom: 1px solid transparent;
}

.project-links a:hover {
    border-bottom: 1px solid var(--acc);
}

linkportion {
    height: 100%;
    display: flex;
    gap: 16px;
    align-items: center;

}

linkportion a {
    text-decoration: none;
}

linkportion a:hover {
    text-decoration: dotted underline 1px;
}

container > h1,
container > h2,
container > p,
container > div:not(.card-grid) {
    grid-column: 1 / -1;
}

.card-grid {
    columns: 2;
    column-gap: 16px;
    grid-column: 1 / -1;
    margin-top: 8px;
}

.card-grid .project-card {
    break-inside: avoid;
    margin-top: 0;
    margin-bottom: 16px;
}