@font-face {
  font-family: "asdf";
  src:
    url("/static/vg5000web.woff2") format("woff2");
}


a {
    color: inherit;
    text-decoration: inherit;
}

a.link {
    text-decoration: underline dotted;
}

html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: rgb(24, 24, 33);
    overflow: hidden;
    position: relative;
}

@keyframes rotate_bkg {
  from { transform: translate(-50%, -50%) rotate(0deg) scale(0.5); }
  to   { transform: translate(-50%, -50%) rotate(360deg) scale(0.5); }
}

img.star-image {
    position: absolute;
    top: 150vmax;
    left: 50%;
    transform-origin: center;
    animation: rotate_bkg 360s linear infinite;
    width: 750rem;
    height: auto;
}

.grad-filter {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse 200% 200% at 50% 150%,
        rgb(95, 68, 101) 10%,
        rgba(29, 29, 40, 0.6) 75%
    );
    z-index: 9;
    opacity: 0.7;
    transition: opacity 1s;
}

.grad-filter:hover {
    opacity: 1;
}

body:has(.footer-nav-wrap span:hover) .grad-filter {
    opacity: 1;
}

.mtn-wrap {
    position: absolute;
    height: 40vh;
    width: 110%;
    bottom: 0;
    z-index: 10;
    transform: translate(-5%, 0%);
    pointer-events: none;
}

svg.mt-nittany-svg {
    fill: rgb(30, 23, 36);
    width: 100rem;
    min-width: 100%;
    height: auto;
    pointer-events: none;
}

.main-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 5;
    width: 100%;
    height: 100vh;
}

.title-wrap {
    display: flex;
    align-items: left;
    z-index: 5;
    width: max(50rem, 50%);
    height: 100vh;
    flex-direction: column;
}

.spacer {
    height: 10rem;
}

span.title {
    color: white;
    font-family: "asdf";
    font-size: 5rem;
}

span.subtitle {
    color: white;
    font-family: "Manrope";
    font-weight: 200;
    font-size: 2rem;
}



.footer-wrap {
    display: flex;
    z-index: 100;
    gap: 1rem;
    padding: 10px;
}

.warning-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

span.warning {
    color: rgb(200, 149, 211);
    font-family: "Manrope";
    font-size: 1rem;
}

.footer-nav-wrap {
    display: flex;
    gap: 1rem;
}

.footer-nav-wrap span.footer-text {
    color: rgb(95, 68, 101);
    font-family: "Manrope";
    font-size: 2rem;
    transition: color 0.5s;
}

.footer-nav-wrap:hover span.footer-text {
    color: rgb(128, 87, 138);
    transition: color 0.5s;
}

.footer-nav-wrap span.footer-text:hover {
    color: rgb(235, 160, 252);
    transition: color 0.5s;
}

body:has(.grad-filter:hover) .footer-nav-wrap span {
    color: rgb(235, 160, 252);
    transition: color 0.5s;
}

.bio-overlay {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 200;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(0px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s, backdrop-filter 0.4s, visibility 0.4s;
}
.bio-overlay:target {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    backdrop-filter: blur(4px);
}

.bio-wrapper {
    background: rgb(30, 23, 36);
    border: 0.5px solid rgb(95, 68, 101);
    border-radius: 12px;
    padding: 2rem 2.5rem;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    position: relative;
    font-family: "Manrope";
}

.bio {
    color: rgb(200, 149, 211);
    font-weight: 200;
    font-size: 1.2rem;
    line-height: 1.7;
    font-family: newsreader;
    overflow: scroll;
    height: 80vh;
}


span.header {
    color: rgb(200, 149, 211);
    font-family: "Manrope";
    font-weight: 200;
    font-size: 2rem;
}

.modal-close {
    position: absolute;
    top: 1rem; right: 1.25rem;
    color: rgb(200, 149, 211);
    text-decoration: none;
    font-size: 1.2rem;
}
.modal-close:hover { color: rgb(235, 160, 252); }

.gate-overlay {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 200;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(0px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s, backdrop-filter 0.4s, visibility 0.4s;
}
.gate-overlay:target {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    backdrop-filter: blur(4px);
}
.gate-box {
    background: rgb(30, 23, 36);
    border: 0.5px solid rgb(95, 68, 101);
    border-radius: 12px;
    padding: 2rem 2.5rem;
    width: 320px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.gate-label {
    color: white;
    font-family: "Manrope";
    font-size: 1rem;
}

.gate-label-context {
    color: white;
    font-family: "Manrope";
    font-weight:100;
    font-size: 1rem;
}

.gate-input {
    background: rgba(95, 68, 101, 0.15);
    border: 0.5px solid rgb(95, 68, 101);
    border-radius: 8px;
    color: white;
    font-family: "Manrope";
    font-size: 1rem;
    padding: 0.6rem 0.9rem;
    outline: none;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.3s;
}
.gate-input:focus { border-color: rgb(200, 149, 211); }
.gate-btn {
    background: transparent;
    border: 0.5px solid rgb(95, 68, 101);
    border-radius: 8px;
    color: rgb(200, 149, 211);
    font-family: "Manrope";
    font-size: 1rem;
    padding: 0.5rem 1.2rem;
    cursor: pointer;
    transition: color 0.3s, border-color 0.3s;
}
.gate-btn:hover { color: rgb(235, 160, 252); border-color: rgb(235, 160, 252); }
.gate-error { color: rgb(240, 100, 120); font-family: "Manrope"; font-size: 0.85rem; margin-top: 0.25rem; }


.writing-page {
    position: fixed;
    inset: 0;
    z-index: 150;
    background: rgb(249, 250, 247);
    overflow-y: auto;
    padding: 4rem max(2rem, calc(50vw - 32rem));
    box-sizing: border-box;
}
.writing-back {
    font-family: "Manrope";
    font-size: 0.9rem;
    color: rgb(140, 160, 140);
    text-decoration: none;
    display: inline-block;
    margin-bottom: 2.5rem;
    transition: color 0.3s;
}
.writing-back:hover { color: rgb(80, 110, 80); }
.writing-title {
    font-family: "Newsreader";
    font-weight: 300;
    font-size: 3rem;
    margin: 0 0 3rem;
}
.writing-card {
    background: rgb(255, 255, 255);
    border-radius: 16px;
    padding: 1.75rem 2rem;
    margin-bottom: 1.25rem;
    overflow: hidden;
}
.writing-card-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    cursor: pointer;
}
.writing-card-title {
    font-family: "Newsreader";
    font-size: 1.4rem;
    font-weight: 400;
    margin: 0;
}
.writing-card-meta {
    font-family: "Manrope";
    font-size: 0.8rem;
    font-weight: 300;
    white-space: nowrap;
}
.writing-card-toggle {
    font-family: "Manrope";
    font-size: 0.85rem;
    transition: color 0.3s;
    user-select: none;
    flex-shrink: 0;
}
.writing-card-blurb {
    font-family: "Newsreader";
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.3;
    margin: 0.6rem 0 0;
}
.writing-card-body {
    display: none;
    border-top: 0.5px solid rgb(220, 230, 220);
    margin-top: 1.3rem;
    padding-top: 1.3rem;
    font-family: "Newsreader";
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.3;
}
.writing-card-body.open { display: block; }
.writing-card input[type="checkbox"] { display: none; }
.writing-card input:checked ~ .writing-card-body { display: block; }
.writing-card input:checked ~ label .writing-card-toggle::after { content: "↑ close"; }
.writing-card-toggle::after { content: "↓ read"; }

html:has(body.mobile) {
    overflow: auto;
    height: auto;
}
body.mobile {
    overflow-x: hidden;
    overflow-y: auto;
    height: auto;
    min-height: 100%;
}
body.mobile img.star-image,
body.mobile .grad-filter,
body.mobile .mtn-wrap {
    position: fixed;
}

body.mobile .main-wrap {
    justify-content: flex-start;
    height: auto;
    min-height: 100vh;
    padding-bottom: 28vh;
    box-sizing: border-box;
}
body.mobile .title-wrap {
    width: 90%;
    height: auto;
}
body.mobile .spacer {
    height: 6rem;
}
body.mobile span.title {
    font-size: 3rem;
}
body.mobile span.subtitle {
    font-size: 1.1rem;
}

body.mobile .footer-wrap {
    position: fixed;
    left: 5%;
    bottom: 1rem;
    width: 90%;
    box-sizing: border-box;
    margin-top: 0;
    z-index: 100;
}
body.mobile .footer-nav-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}
body.mobile .footer-nav-wrap span.footer-text {
    font-size: 1.4rem;
}
body.mobile .mtn-wrap {
    height: 25vh;
}
body.mobile svg.mt-nittany-svg {
    width: 60rem;
}
body.mobile .grad-filter {
    background: radial-gradient(
        ellipse 250% 200% at 50% 130%,
        rgb(95, 68, 101) 10%,
        rgba(29, 29, 40, 0.6) 75%
    );
}

@media (max-height: 600px) {
    body.mobile .spacer { height: 1rem; }
    body.mobile span.title { font-size: 2rem; }
    body.mobile span.subtitle { font-size: 0.95rem; }
    body.mobile .footer-nav-wrap { gap: 0.25rem; }
    body.mobile .footer-nav-wrap span.footer-text { font-size: 1.2rem; }
    body.mobile .mtn-wrap { height: 38vh; }
    body.mobile .main-wrap { padding-bottom: 40vh; }
}

body.mobile .bio-wrapper {
    padding: 1.5rem 1.5rem;
    width: 88%;
}
body.mobile .bio {
    font-size: 1rem;
    line-height: 1.55;
}
body.mobile span.header {
    font-size: 1.5rem;
}

body.mobile .gate-box {
    width: 85%;
    max-width: 320px;
    padding: 1.5rem 1.5rem;
}
body.mobile .gate-label {
    font-size: 0.95rem;
}

body.mobile .writing-page {
    padding: 2rem 1.25rem;
}
body.mobile .writing-back {
    margin-bottom: 1.5rem;
}
body.mobile .writing-title {
    font-size: 2rem;
    margin: 0 0 1.75rem;
}
body.mobile .writing-card {
    padding: 1.25rem 1.25rem;
    border-radius: 12px;
}
body.mobile .writing-card-header {
    gap: 0.75rem;
}
body.mobile .writing-card-title {
    font-size: 1.15rem;
}
body.mobile .writing-card-meta {
    font-size: 0.72rem;
    white-space: normal;
}
body.mobile .writing-card-blurb {
    font-size: 0.92rem;
}
body.mobile .writing-card-toggle {
    font-size: 0.78rem;
}
body.mobile .writing-card-body {
    font-size: 0.98rem;
}