body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    color: #000;
    background: #fff;
    font-family: serif;
    background-image: url("pictures/background-tile.png");
    background-repeat: repeat-y;
    background-size: 100% auto;
}

.site-header {
    display: flex;
    justify-content: space-between;
    box-sizing: border-box;
    width: min(83vw, 700px);
    margin: 1.5rem auto 0;
    padding: .5rem 1rem;
    color: #000;
    font-weight: 300;
    font-size: 1.1rem;
    text-shadow: 0 0 1px currentColor;
    background: radial-gradient(
        ellipse at center,
        rgba(255, 255, 255, .96) 60%,
        rgba(255, 255, 255, 0) 100%
    );
}

.site-header nav {
    display: flex;
    gap: 1.5rem;
}

.site-header a {
    color: inherit;
    text-decoration: none;
}

.site-header a:hover,
.site-header a:focus-visible {
    text-decoration: underline;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    box-sizing: border-box;
    width: 100%;
    margin: auto 0 0;
    padding: .75rem max(8.5vw, 1.5rem) 1.5rem;
    border-top: 1px solid currentColor;
    color: #000;
    font-weight: 700;
    background: #fff;
}

.site-footer a {
    color: inherit;
}

h1 {
    margin: 5vh auto 0;
    font-size: 8.5rem;
    font-weight: 700;
    text-align: center;
    color: #fff;
    font-weight: 100;
    mix-blend-mode: difference;
    text-shadow: 0 0 1px currentColor;
}

.page-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    width: min(83vw, 700px);
    margin: 5rem auto;
    color: #fff;
    font-weight: 600;
    text-align: center;
    text-shadow: 0 0 1px currentColor;
}

.page-content h1 {
    margin: 0 0 2rem;
    text-align: center;
}

.page-content h2 {
    margin: 0 0 1rem;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 400;
}

.page-content p {
    margin: 0 auto;
    width: 100%;
    max-width: 38rem;
    padding: .75rem 1rem;
    text-align: left;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #000;
    background: radial-gradient(
        ellipse at center,
        #fff 0%,
        #fff 70%,
        rgba(255, 255, 255, 0) 100%
    );
    mix-blend-mode: normal;
    text-shadow: none;
}

.page-content a {
    color: inherit;
}

.page-content__back {
    display: inline-block;
    margin-top: 2rem;
    background: radial-gradient(
        ellipse at center,
        rgba(255, 255, 255, .96) 60%,
        rgba(255, 255, 255, 0) 100%
    );
}

.page-content__list {
    width: 100%;
    max-width: 38rem;
    margin: 0;
    padding: 1rem 2rem 1rem 3rem;
    box-sizing: border-box;
    color: #000;
    background: radial-gradient(
        ellipse at center,
        rgba(255, 255, 255, .96) 60%,
        rgba(255, 255, 255, 0) 100%
    );
    text-align: left;
    line-height: 1.8;
}

.patient {
    position: relative;
    width: min(30vw, 220px);
    aspect-ratio: 530 / 544;
    margin: 3rem auto 0;
    overflow: hidden;
}

.patient__body,
.patient__brain,
.patient__top,
.patient__damage {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.patient__body {
    bottom: 0;
    width: 100%;
}

.patient__brain {
    top: 3%;
    z-index: 1;
    left: 47.5%;
    width: 75%;
}

.patient__brain--hidden {
    visibility: hidden;
}

.patient__damage {
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transform: none;
}

.patient__damage--active {
    pointer-events: auto;
    opacity: 1;
    cursor: crosshair;
}

.patient__top {
    top: -2%;
    z-index: 2;
    width: 87%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    transform: translateX(-54%);
    transform-origin: top center;
    transition: opacity 420ms ease, transform 420ms ease;
}

.intro {
    box-sizing: border-box;
    position: relative;
    z-index: 3;
    width: min(83vw, 700px);
    margin: -1.5rem auto 0;
    padding: 2rem 2.5rem;
    border: 2px solid #000;
    background: #fff;
    text-align: center;
}

.download-card {
  box-sizing: border-box;
  width: min(83vw, 600px);
  margin: 0 auto 0;
  padding: 2rem 2.5rem;
  border: 2px solid #000;
  background: #fff;
  text-align: left;
}

.intro h2 {
    margin: 0 0 1rem;
    font-size: clamp(1.7rem, 4vw, 3rem);
    font-weight: 400;
}

.download-card h2 {
    margin: 0 0 0.5rem;
    font-size: 2rem;
    font-weight: 400;
    color: #000;
    padding: 0;
}

.download-card p {
    font-size: 1rem;
    color: #000;
    padding: 0;
    margin: 0 0 1rem;
}

.intro p:last-child {
    max-width: 38rem;
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.55;
}

.download-button {
    display: inline-block;
    padding: .65rem 1.5rem;
    border: 2px solid #000;
    border-radius: 999px;
    color: #000;
    background: #fff;
    font-weight: 700;
    text-decoration: none;
}

.download-file-button {
    display: inline-block;
    padding: .65rem 1.5rem;
    border: 2px solid #000;
    border-radius: 999px;
    color: #000000;
    background: #fff;
    font-weight: 700;
    text-decoration: none;
}

.download-button:hover,
.download-button:focus-visible,
.download-file-button:hover,
.download-file-button:focus-visible {
    color: #fff;
    background: #000;
}

.details {
    width: min(83vw, 700px);
    margin: .5rem auto 0;
}

.detail-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: .15rem 1.5rem;
    margin-bottom: .15rem;
    align-items: center;
}
.detail-section__image,
.detail-section__side-text,
.detail-section__under-text {
    min-width: 0;
}

.detail-section__image {
    display: flex;
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    max-width: none;
    max-height: none;
    min-height: 0;
    align-items: center;
    justify-content: center;
    justify-self: center;
    box-sizing: border-box;
    padding: 1rem;
    border-radius: 50%;
    background: radial-gradient(
        ellipse at center,
        rgba(255, 255, 255, .96) 55%,
        rgba(255, 255, 255, 0) 100%
    );
}

.detail-section__side-text {
    grid-column: 1;
    grid-row: 1;
}

.detail-section__under-text {
    grid-column: 1 / -1;
    grid-row: 2;
    padding: .25rem 1rem .75rem;
}

.detail-section__image img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: none;
    margin: auto;
    object-fit: contain;
    border: 0;
}

.detail-section:nth-child(2) .detail-section__image img {
    width: 85%;
}

.tool-section .detail-section__image {
    display: flex;
    width: 100%;
    aspect-ratio: 1;
    min-height: 0;
    margin: 0 auto;
    align-items: center;
    justify-content: center;
}

.tool-section .detail-section__image img {
    width: auto;
    height: auto;
    max-width: 85%;
    max-height: 85%;
}

.detail-section__side-text,
.detail-section__under-text {
    padding: .75rem 1rem;
    color: #fff;
    font-weight: 600;
    text-shadow: 0 0 1px currentColor;
}

.detail-section__side-text {
    background: radial-gradient(
        ellipse at center,
        rgba(255, 255, 255, .96) 60%,
        rgba(255, 255, 255, 0) 100%
    );
}

.detail-section__side-text h2 {
    margin: 0 0 1rem;
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 400;
    color: #000;
    text-shadow: none;
}

.detail-section__side-text p,
.detail-section__under-text p {
    margin: 0;
    padding: 0;
    font-size: 1.05rem;
    line-height: 1.55;
    color: #000;
    background: transparent;
    mix-blend-mode: normal;
    text-shadow: none;
}

.detail-section__under-text p {
    background: radial-gradient(
        ellipse at center,
        rgba(255, 255, 255, .96) 60%,
        rgba(255, 255, 255, 0) 100%
    );
}

.detail-section:nth-child(even) .detail-section__image {
    grid-column: 1;
}

.detail-section:nth-child(even) .detail-section__side-text {
    grid-column: 2;
}

.patient__top img {
    display: block;
    width: 100%;
}

.patient__top--hidden {
    opacity: 0;
    pointer-events: none;
    transform: translate(-53%, -18%);
}

@media (max-width: 600px) {
    .patient {
        width: min(42vw, 180px);
    }

    .intro {
        width: calc(100% - 3rem);
        padding: 1.5rem;
    }

    .details {
        width: calc(100% - 3rem);
    }

    .page-content {
        width: calc(100% - 3rem);
        margin: 3rem auto;
    }

    .detail-section {
        grid-template-rows: auto auto;
        gap: .25rem;
        margin-bottom: .5rem;
    }

    .detail-section__image {
        width: 100%;
        min-height: 0;
    }

    .tool-section .detail-section__image {
        width: 100%;
        aspect-ratio: 1;
        min-height: 0;
    }
}
