/* Adobe Jenson: create a Web Project at fonts.adobe.com, add Adobe Jenson Pro,
   then replace YOUR_KIT_ID below with your kit ID from the embed code. */
@import url("https://use.typekit.net/YOUR_KIT_ID.css");

html,
body {
    height: 100%;
    overflow: hidden;
}

body {
    margin: 0;
    font-family: "Adobe Jenson Pro", Georgia, "Times New Roman", serif;
    background-color: #1C1000;
    color: #fff;
}

.sidebar {
    width: 220px;
    background: #1C1000;
    padding: 20px 28px 20px 32px;
    display: flex;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
}

.sidebar-inner {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    overflow: hidden;
    min-height: 0;
    padding-bottom: 52px;
}

.nav-header {
    text-transform: none;
}

.nav-title-link {
    text-decoration: none;
    color: inherit;
    display: inline-block;
    transition: transform 160ms ease-out, text-shadow 220ms ease-out, color 160ms ease-out;
}

.nav-title-link:hover,
.nav-title-link:focus-visible {
    color: #e8f5e9;
    transform: translateY(-2px);
    text-shadow: 0 0 14px rgba(255, 255, 255, 0.5), 0 0 28px rgba(255, 255, 255, 0.25);
    outline: none;
}

.nav-title-link:focus-visible {
    outline: 2px solid rgba(66, 110, 78, 0.5);
    outline-offset: 4px;
}

.nav-eyebrow {
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

.nav-title {
    margin: 8px 0 0;
    font-size: 18px;
    font-weight: normal;
    line-height: 1.4;
}

.nav-groups {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.nav-group {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.nav-group-title {
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    padding-left: 0;
}

.nav-row {
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: flex-start;
    padding-left: 1.15em;
}

.nav-item {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    padding: 4px 8px 4px 6px;
    min-width: 0;
    border-radius: 6px;
    font-size: 11px;
    color: #fff;
    text-decoration: none;
    border: 1px solid transparent;
    background: transparent;
    cursor: pointer;
    transition:
        background-color 160ms ease-out,
        color 160ms ease-out,
        border-color 160ms ease-out,
        transform 160ms ease-out,
        box-shadow 160ms ease-out;
}

.nav-item::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: 0 0 0 0 rgba(66, 110, 78, 0.0);
    transition: box-shadow 220ms ease-out;
    pointer-events: none;
}

.nav-item:hover,
.nav-item:focus-visible {
    background-color: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.4);
    color: #e8f5e9;
    transform: translateX(1px);
    outline: none;
}

.nav-item:hover::after,
.nav-item:focus-visible::after {
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.08);
}

.nav-item.is-active,
.nav-item.is-active:hover,
.nav-item.is-active:focus-visible {
    background-color: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.4);
    color: #e8f5e9;
    transform: translateX(1px);
}

.nav-item.is-active::after,
.nav-item.is-active:hover::after,
.nav-item.is-active:focus-visible::after {
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.08);
}

.nav-number {
    font-variant-numeric: tabular-nums;
}

.nav-home {
    justify-content: flex-start;
    gap: 8px;
    padding-inline: 12px 14px;
    border-radius: 999px;
}

.nav-label {
    font-size: 12px;
}

.nav-home.is-active {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
    color: #e8f5e9;
}

/* About (?) at bottom right of sidebar; always visible, popup on hover */
.nav-about {
    position: fixed;
    left: 20px;
    bottom: 20px; /* overridden by nav-about-align.js for alignment with last nav item */
    display: flex;
    justify-content: flex-end;
    width: 180px;
    z-index: 9999;
    pointer-events: none;
}

.nav-about-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    pointer-events: auto;
    border-radius: 50%;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background-color: rgba(255, 255, 255, 0.12);
    cursor: default;
    transition: color 160ms ease-out, border-color 160ms ease-out, background-color 160ms ease-out;
}

.nav-about:hover .nav-about-trigger {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.6);
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-about-popup {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 100%;
    left: 100%;
    margin-bottom: 0;
    margin-left: 0;
    width: 280px;
    max-width: calc(100vw - 40px);
    padding: 14px 16px;
    font-size: 11px;
    line-height: 1.55;
    color: #1C1000;
    background: #fff;
    border: 1px solid rgba(28, 16, 0, 0.25);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    transition: visibility 160ms ease-out, opacity 160ms ease-out;
    pointer-events: none;
    z-index: 10000;
}

.nav-about-popup p {
    margin: 0 0 0.75em;
    font-size: inherit;
    line-height: inherit;
}

.nav-about-popup p:last-child {
    margin-bottom: 0;
}

.nav-about:hover .nav-about-popup {
    visibility: visible;
    opacity: 1;
}

/* No border/outline/gap on main content area on any page */
main {
    margin: 0;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.page-main .container,
.poem-main .container {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.poem-main,
.page-main {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 220px;
    margin: 0;
    padding: 48px 72px;
    width: auto;
    height: auto;
    box-sizing: border-box;
    overflow: auto;
    background-color: #FFFCFA;
    color: #260B00;
    border: none;
    outline: none;
}

.poem-main {
    display: flex;
    align-items: center;
    justify-content: center;
}
.poem {
    font-size: 19px;
    line-height: 1.7;
    margin: 0;
    animation: poemFadeIn 600ms ease-out both;
}

.poem-centered {
    max-width: 720px;
}

@keyframes poemFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
        filter: blur(1px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@media (max-width: 860px) {
    .sidebar {
        position: relative;
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

    .poem-main {
        margin-left: 0;
        padding: 32px 20px 40px;
    }

    .page-main {
        margin-left: 0;
        padding: 32px 20px 40px;
    }

    .poem-card {
        padding: 28px 24px 32px;
    }
}