:root {
    --arc: 16deg;
    --diameter: 224px;
    --deg: 227deg;
    --background: hsl(var(--deg), 22%, 4%);
    --color: hsl(var(--deg), 100%, 67%);
    --accent: #a601f4;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    font-size: 16px;
}

html {
    background: hsl(var(--deg), 22%, 4%);
}

body {
    background: var(--background);
}

a {
    text-decoration: none;
}

header {
    display: flex;
    justify-content: flex-end;
    padding: 1rem;
    margin-bottom: 3rem;
    z-index: 1;
    position: relative;
}

header a:hover h1 {
    -webkit-text-stroke: 1px var(--color);
    color: rgba(0, 0, 0, 0);
}

footer {
    margin-top: 8rem;
    padding: 4rem 2rem 8rem 2rem;
    display: flex;
    flex-direction: row;
    justify-content: center;
    background: hsl(var(--deg), 22%, 4%);
}

footer a {
    font-family: sans-serif;
    letter-spacing: 0.1ch;
    color: white;
    border-top: 1px solid;
    padding: 0.25rem;
    margin: 0 4rem;
}

footer a:hover {
    color: var(--accent);
}

h1 {
    font-weight: 800;
}

h1,
h2,
h3 {
    margin: 0;
}

h1 {
    font-size: 5rem;
    font-style: italic;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    color: var(--color);
}

header h2 {
    color: var(--color);
    font-family: sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    position: fixed;
    top: 2rem;
    right: 1rem;
}

header a {
    white-space: nowrap;
    position: fixed;
    top: 2rem;
    left: 1rem;
}

p,
h3,
form {
    font-weight: 400;
    font-family: sans-serif;
}

h3 {
    transform: skewX(14deg);
    letter-spacing: -0.02em;
    margin: 1rem 0.5rem 2rem 0.5rem;
    font-size: 2.5rem;
    word-spacing: 2.5rem;
    text-align: center;
    white-space: nowrap;
    line-height: 125%;
}

main {
    padding: 0 0 7rem 0;
    max-width: 1200px;
    margin: 0 auto;
    color: var(--color);
}

fieldset {
    border: 1px solid var(--color);
}

section {
    column-count: 2;
    text-align: center;
    padding: 0 1rem;
}

.contributor {
    background: var(--side-wall);
    border: 1px solid;
    display: inline-block;
    cursor: pointer;
    margin: 2rem auto 6vw auto;
    overflow: hidden;
    color: var(--color);
    position: relative;
}

.contributor:hover,
.contributor:focus,
.contributor[data-on="true"] {
    --floor: hsl(var(--deg), 88%, 40%);
    --side-wall: hsl(var(--deg), 88%, 45%);
    --back-wall: hsl(var(--deg), 88%, 55%);
}

.contributor:hover h3,
.contributor:hover .name,
.contributor:hover .description,
.contributor:focus h3,
.contributor:focus .name,
.contributor:focus .description,
.contributor[data-on="true"] h3,
.contributor[data-on="true"] .description,
.contributor[data-on="true"] .name {
    color: #fff;
    opacity: 1;
}

.contributor:hover .shadow,
.contributor:focus .shadow,
.contributor:hover .shadow-wall,
.contributor:focus .shadow-wall,
.contributor[data-on="true"] .shadow,
.contributor[data-on="true"] .shadow-wall {
    display: block;
}

.floor {
    position: absolute;
    bottom: -4rem;
    left: -2.5rem;
    width: calc(100% + 7rem);
    margin-bottom: -1px;
    background: var(--floor);
    height: 4rem;
    transform: skewX(309deg);
    overflow: hidden;
}

.shadow,
.shadow-wall {
    position: absolute;
    border-radius: 100%;
    background: black;
    opacity: 0.5;
    display: none;
}

.shadow {
    width: calc(var(--diameter) * 0.75);
    height: 1rem;
    bottom: 50%;
    transform: translate(0, 50%);
    z-index: 1;
}

.shadow-wall {
    height: calc(var(--diameter) * 0.75);
    transform: translate(-50%, 0);
    width: 1rem;
    left: 50%;
    top: calc(100% + 2rem);
}

.wall {
    height: 100%;
    width: 5rem;
    top: 0;
    left: -5rem;
    position: absolute;
}

.inner {
    position: relative;
    width: min-content;
    min-width: calc(var(--diameter) + 1rem);
    padding: 1rem 0.5rem calc(var(--diameter) - 1.5rem) 0.5rem;
    margin: 0 0 4rem 5rem;
    border-bottom: 1px solid;
    border-left: 1px solid;
    background: var(--back-wall);
}

.inner:after {
    width: 8rem;
    border-top: 1px solid;
    position: absolute;
    transform: rotate(141deg);
    content: '';
    bottom: 0;
    left: -1px;
    transform-origin: bottom left;
    color: var(--color);
}

.name {
    position: absolute;
    font-size: 1.25rem;
    height: 100%;
    width: 0;
    margin: 0;
    top: 1rem;
    left: calc(50% - 0.25rem);
}

.name>span {
    font-family: sans-serif;
    height: calc(var(--diameter) * 0.9);
    position: absolute;
    left: 0;
    top: calc(var(--diameter) * 0.05);
}

.type {
    position: absolute;
    height: calc(var(--diameter) * 0.6);
    width: calc(var(--diameter) * 0.6);
    left: calc(50% + 0.125rem);
    top: calc(1rem + var(--diameter) * 0.2);
    transform: translate(-50%, 0);
    font-size: calc(var(--diameter) * 0.09);
    font-family: serif;
    margin: 0;
    color: var(--background);
    font-style: italic;
    border-radius: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.description p {
    word-spacing: 0.5rem;
    font-weight: 100;
    text-align: left;
    display: inline;
}

.description+.description {
    margin-top: 2rem;
}

.about {
    position: absolute;
    bottom: calc(var(--diameter) - 2.25rem);
    left: calc(50% - 3.875rem);
    z-index: 1;
}

[data-contributor="Ivan Zhao"] {
    --arc: calc(360deg / 12);
}

[data-contributor="Alicia Guo"],
[data-contributor="Lucy Zhang"] {
    --arc: calc(360deg / 13);
}

[data-contributor="Reese Oxner"] {
    --arc: calc(360deg / 14);
}

[data-contributor="Betsy Kenyon"],
[data-contributor="Andy Wallace"],
[data-contributor="Chia Amisola"],
[data-contributor="AC Gillette"] {
    --arc: calc(360deg / 15);
}

[data-contributor="Nathan Mifsud"],
[data-contributor="Matthew Baker"],
[data-contributor="Spencer Chang"] {
    --arc: calc(360deg / 16);
}

[data-contributor="Katherine Yang"],
[data-contributor="Esther Bouquet"],
[data-contributor="Logan Williams"] {
    --arc: calc(360deg / 17);
}

[data-contributor="Daniel Lichtman"] {
    --arc: calc(360deg / 18);
}

[data-contributor="Alexander Miller"] {
    --arc: calc(360deg / 19);
}

[data-contributor="Katy Ilonka Gero"] {
    --arc: calc(360deg / 20);
}

[data-contributor="Maxwell Neely-Cohen"] {
    --arc: calc(360deg / 22);
}

.name>span:nth-child(1) {
    transform: rotate(0deg);
}

.name>span:nth-child(2) {
    transform: rotate(calc(1 * var(--arc)));
}

.name>span:nth-child(3) {
    transform: rotate(calc(2 * var(--arc)));
}

.name>span:nth-child(4) {
    transform: rotate(calc(3 * var(--arc)));
}

.name>span:nth-child(5) {
    transform: rotate(calc(4 * var(--arc)));
}

.name>span:nth-child(6) {
    transform: rotate(calc(5 * var(--arc)));
}

.name>span:nth-child(7) {
    transform: rotate(calc(6 * var(--arc)));
}

.name>span:nth-child(8) {
    transform: rotate(calc(7 * var(--arc)));
}

.name>span:nth-child(9) {
    transform: rotate(calc(8 * var(--arc)));
}

.name>span:nth-child(10) {
    transform: rotate(calc(9 * var(--arc)));
}

.name>span:nth-child(11) {
    transform: rotate(calc(10 * var(--arc)));
}

.name>span:nth-child(12) {
    transform: rotate(calc(11 * var(--arc)));
}

.name>span:nth-child(13) {
    transform: rotate(calc(12 * var(--arc)));
}

.name>span:nth-child(14) {
    transform: rotate(calc(13 * var(--arc)));
}

.name>span:nth-child(15) {
    transform: rotate(calc(14 * var(--arc)));
}

.name>span:nth-child(16) {
    transform: rotate(calc(15 * var(--arc)));
}

.name>span:nth-child(17) {
    transform: rotate(calc(16 * var(--arc)));
}

.name>span:nth-child(18) {
    transform: rotate(calc(17 * var(--arc)));
}

.name>span:nth-child(19) {
    transform: rotate(calc(18 * var(--arc)));
}

.name>span:nth-child(20) {
    transform: rotate(calc(19 * var(--arc)));
}

.name>span:nth-child(21) {
    transform: rotate(calc(20 * var(--arc)));
}

.name>span:nth-child(22) {
    transform: rotate(calc(21 * var(--arc)));
}

.name>span:nth-child(23) {
    transform: rotate(calc(23 * var(--arc)));
}

@media screen and (max-width: 767px) {
    html,
    body {
        font-size: 13px;
    }
    section {
        padding-left: 3rem;
        column-count: 1;
    }
    header h2 {
        position: relative;
    }
    .contributor {
        margin: 4rem auto 3rem auto;
        display: flex;
        width: min-content;
    }
    .contributor .inner {
        min-width: 0;
    }
    .description p {
        font-size: 1.125rem;
    }
    h1 {
        font-size: 3rem;
    }
    h3 {
        word-spacing: 2.5rem;
        font-size: 2.5rem;
    }
    footer a {
        margin: 0 1.5rem;
    }
}

@media screen and (max-width: 1180px) {
    section {
        column-count: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .contributor {
        margin: 4rem 10vw 3rem 10vw;
    }
    h3 {
        word-spacing: 2.25rem;
        font-size: 2.25rem;
    }
    footer {
        margin-top: 0;
    }
    [data-contributor="Maxwell Neely-Cohen"] {
        order: 1;
    }
    [data-contributor="Nathan Mifsud"] {
        order: 2;
    }
    [data-contributor="Katherine Yang"] {
        order: 3;
    }
    [data-contributor="Katy Ilonka Gero"] {
        order: 4;
    }
    [data-contributor="Chia Amisola"] {
        order: 5;
    }
    [data-contributor="Alexander Miller"] {
        order: 6;
    }
    [data-contributor="Esther Bouquet"] {
        order: 7;
    }
    [data-contributor="AC Gillette"] {
        order: 8;
    }
    [data-contributor="Matthew Baker"] {
        order: 9;
    }
    [data-contributor="Logan Williams"] {
        order: 10;
    }
    [data-contributor="Lucy Zhang"] {
        order: 11;
    }
    [data-contributor="Alicia Guo"] {
        order: 12;
    }
    [data-contributor="Ivan Zhao"] {
        order: 13;
    }
    [data-contributor="Daniel Lichtman"] {
        order: 15;
    }
    [data-contributor="Betsy Kenyon"] {
        order: 16;
    }
    [data-contributor="Andy Wallace"] {
        order: 17;
    }
    [data-contributor="Reese Oxner"] {
        order: 18;
    }
    [data-contributor="Spencer Chang"] {
        order: 19;
    }
}

@media screen and (min-width: 1800px) {
    main {
        max-width: 1800px;
    }
    section {
        column-count: 3;
    }
}