@font-face {
    font-family: "Squack";
    src: url("/fonts/squack.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Slashed";
    src: url("/fonts/slashed.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    color-scheme: dark;
    --black: #020202;
    --charcoal: #070604;
    --bone: #d8cfb7;
    --ash: rgba(228, 218, 193, .66);
    --dim: rgba(216, 207, 183, .48);
    --faint: rgba(228, 218, 193, .14);
    --red: rgba(112, 0, 13, .56);
    --blood: #6b0712;
}

* { box-sizing: border-box; }
html, body {
    min-height: 100%; 
    background: var(--black); 
}

body {
    margin: 0;
    min-height: 100vh;
    overflow: hidden;
    background: #000;
    color: var(--bone);
    font-family: "Slashed", Georgia, "Times New Roman", serif;
    cursor: crosshair;
}

video {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .61;
    filter: grayscale(.3) contrast(1) brightness(.77) saturate(1);
    transform: scale(1.018);
}

.blacksite {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
    radial-gradient(circle at 50% 48%, transparent 0 18rem, rgba(0,0,0,.48) 34rem, rgba(0,0,0,.96) 82%),
    linear-gradient(90deg, rgba(0,0,0,.94), transparent 37%, rgba(0,0,0,.95)),
    linear-gradient(0deg, rgba(0,0,0,.98), transparent 38%, rgba(0,0,0,.78));
}

.scan {
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .18;
    background:
    repeating-linear-gradient(0deg, transparent 0 6px, rgba(255,255,255,.09) 7px, transparent 8px),
    linear-gradient(90deg, transparent 0 48%, var(--red) 48.2% 48.28%, transparent 48.5%);
    mix-blend-mode: screen;
}

.dust {
    position: fixed;
    inset: -40%;
    pointer-events: none;
    opacity: .16;
    background-image: radial-gradient(circle, rgba(255,255,255,.95) 0 1px, transparent 1.4px);
    background-size: 11px 11px;
    animation: dust 12s steps(9) infinite;
}

@keyframes dust {
    0% { transform: translate(0,0); }
    17% { transform: translate(-3%,2%); }
    41% { transform: translate(4%,-5%); }
    68% { transform: translate(-1%,4%); }
    100% { transform: translate(0,0); }
}

main {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(1.2rem, 5vw) 1fr minmax(1.2rem, 5vw);
    grid-template-rows: minmax(1rem, 6vh) 1fr minmax(1rem, 7vh);
}

.specimen {
    grid-column: 2;
    grid-row: 2;
    align-self: end;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: clamp(1rem, 4vw, 4rem);
    align-items: end;
}

h1 {
    margin: 0;
    max-width: 7ch;
    font-family: "Squack", Georgia, "Times New Roman", serif;
    font-size: clamp(4.8rem, 8vw, 16rem);
    /* line-height: .76; */
    /* letter-spacing: .01em; */
    /* font-weight: 400; */
    /* text-transform: uppercase; */
    color: transparent;
    -webkit-text-stroke: 1px rgba(216,207,183,.78);
    /* text-shadow: 0 0 54px rgba(216,207,183,.08); */
}

h1 span {
    display: block;
    color: rgba(216,207,183,.95);
    -webkit-text-stroke: 0;
}

.margin-code {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font: 700 clamp(.66rem, .9vw, .78rem)/1.8 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    letter-spacing: .28em;
    color: var(--dim);
    text-transform: uppercase;
}

.lower {
    position: fixed;
    z-index: 3;
    left: min(5vw, 5rem);
    right: min(5vw, 5rem);
    bottom: min(5vh, 3.4rem);
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 2rem;
    color: var(--dim);
    font-family: "Slashed", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: clamp(.86rem, 1.35vw, 1.1rem);
    font-weight: 400;
    line-height: 1.35;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.phrase {
    margin: 0;
    max-width: 31rem;
}

.phrase::before { content: "// "; color: var(--faint); }

.seal {
    text-align: right;
    white-space: nowrap;
    color: rgba(216,207,183,.31);
}

.access {
    position: fixed;
    z-index: 5;
    top: 1.35rem;
    right: 1.35rem;
    color: rgba(216,207,183,.19);
    text-decoration: none;
    font: 700 .62rem/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    letter-spacing: .24em;
    text-transform: uppercase;
    transition: color .2s ease;
}

.access:hover { color: rgba(216,207,183,.68); }

.corner {
    position: fixed;
    z-index: 3;
    width: 7rem;
    height: 7rem;
    border-color: var(--faint);
    pointer-events: none;
}
.tl { top: 1.4rem; left: 1.4rem; border-top: 1px solid; border-left: 1px solid; }
.tr { top: 1.4rem; right: 1.4rem; border-top: 1px solid; border-right: 1px solid; }
.bl { bottom: 1.4rem; left: 1.4rem; border-bottom: 1px solid; border-left: 1px solid; }
.br { bottom: 1.4rem; right: 1.4rem; border-bottom: 1px solid; border-right: 1px solid; }

@media (prefers-reduced-motion: reduce) {
    video { display: none; }
    .dust { animation: none; }
}

@media (max-width: 720px) {
    body { overflow: auto; }
    video { opacity: .46; }
    .specimen { grid-template-columns: 1fr; align-self: center; }
    .margin-code { writing-mode: horizontal-tb; transform: none; }
    .lower { position: relative; left: auto; right: auto; bottom: auto; margin: -8vh 5vw 6vh; flex-direction: column; align-items: flex-start; }
    .seal { text-align: left; }
}
