/* decorative line borders */
.line-border {
    position: absolute;
    border-width: 0;
    border-style: dashed;
    border-color: #000;
    z-index: 0;
    pointer-events: none;
}

.line-left {
    top: 0;
    left: 0;
    bottom: 0;
    border-left-width: 1px;
    margin-left: var(--device-corner-radius);
}

/*@media (orientation: portrait) {
    .line-left {
        bottom: var(--padding);
    }
}*/

.line-right {
    top: 0;
    bottom: 0;
    right: 0;
    border-right-width: 1px;
    margin-right: var(--device-corner-radius);
}

.line-top {
    top: 0;
    left: 0;
    right: 0;
    border-top-width: 1px;
    margin-top: var(--device-corner-radius);
}

.line-bottom {
    bottom: 0;
    right: 0;
    left: 0;
    border-bottom-width: 1px;
    margin-bottom: var(--device-corner-radius);
}

/*@media (orientation: portrait) {
    .line-bottom {
        left: var(--padding);
    }
}*/

/* screen border and corner mask */
.screen-border {
    position: absolute;
    inset: 0;
    border: 1px dashed #0010ff;
    z-index: 0;
    pointer-events: none;
    margin: var(--padding);
    border-radius: var(--layer-corner-radius);
    --layer: 1;
}

.screen-border-mask {
    display: none;
}

/*@media (orientation: portrait) {
    .screen-border-mask {
        display: block;
        position: absolute;
        background-color: #fff;
        bottom: -4px;
        left: -4px;
        width: calc(var(--layer-height) + 4px);
        height: calc(var(--layer-height) + 4px);
        border-radius: var(--layer-corner-radius);
    }
}*/

/* brand column layout */
#brand {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
    gap: 2rem;
    padding: calc(var(--device-corner-radius) + var(--padding));
}

/* logo frame stack */
#logo {
    position: relative;
    width: 6.25rem;
    height: 6.25rem;
    pointer-events: none;
    z-index: 0;
}

#logo img,
.logo-frame {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    opacity: 0;
}

#logo img.active,
.logo-frame.active {
    opacity: 1;
}

/* title styling */
#name {
    z-index: 10;
    font-size: 2em;
    text-align: center;
    font-family: "Instrument Serif", serif;
    font-weight: 900;
    line-height: 1.25;
}

.nowrap {
    display: inline-block;
    white-space: nowrap;
}

/* navigation links */
#nav {
    position: relative;
    z-index: 10;
    font-size: 1em;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 400;
    gap: var(--device-corner-radius);
    margin-top: 1rem;
}

.nav-links {
    display: flex;
    gap: calc(var(--padding) * 4);
    flex-direction: row;
    align-items: center;
}

.nav-item {
    color: #000;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    border-bottom: 1px dashed currentColor;
    padding-bottom: 3px;
    transition: opacity 200ms;
}

.nav-item:hover {
    opacity: 0.7;
}

.nav-icon {
    height: 1em;
    width: auto;
    object-fit: contain;
}
