/* LaserCrafts Laboratory — individual archive entry */

.lab-entry-page {
    --entry-ink: #171613;
    --entry-soft: #24211d;
    --entry-paper: #f2eddf;
    --entry-paper-deep: #ddd4c2;
    --entry-ember: #ff6b35;
    --entry-chalk: #fffaf0;
    background: var(--entry-ink);
}

.lab-entry-page .navbar {
    background: rgba(23, 22, 19, .84);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    backdrop-filter: blur(16px);
}

.lab-entry-page .navbar .nav-link {
    color: rgba(255, 250, 240, .7);
}

.lab-entry-page .navbar .nav-link:hover,
.lab-entry-page .navbar .nav-link:focus {
    color: var(--entry-chalk);
}

.lab-entry-page .navbar.scrolled {
    background: rgba(23, 22, 19, .97) !important;
}

.lab-entry {
    overflow: hidden;
    color: var(--entry-ink);
}

.lab-entry h1,
.lab-entry h2,
.lab-entry h3 {
    font-family: Georgia, "Times New Roman", serif;
    letter-spacing: -.035em;
}

.entry-eyebrow {
    margin: 0 0 .9rem;
    color: var(--entry-ember);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.entry-hero {
    min-height: 720px;
    display: flex;
    align-items: center;
    position: relative;
    padding: 8.5rem 0 5rem;
    background:
        radial-gradient(circle at 72% 28%, rgba(255, 107, 53, .1), transparent 28rem),
        linear-gradient(120deg, #191714 0%, #242019 58%, #11100e 100%);
    color: var(--entry-chalk);
}

.entry-grain {
    position: absolute;
    inset: 0;
    opacity: .17;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.2'/%3E%3C/svg%3E");
}

.entry-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .55rem;
    margin-bottom: 2.2rem;
    color: rgba(255, 250, 240, .34);
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.entry-breadcrumb a {
    color: rgba(255, 250, 240, .62);
    text-decoration: none;
}

.entry-breadcrumb a:hover {
    color: var(--entry-ember);
}

.entry-hero-grid {
    display: grid;
    grid-template-columns: 1fr .72fr;
    align-items: center;
    gap: clamp(3rem, 8vw, 8rem);
}

.entry-title h1 {
    max-width: 880px;
    margin: 0;
    font-size: clamp(3.7rem, 7vw, 7rem);
    line-height: .88;
}

.entry-excerpt {
    max-width: 690px;
    margin: 1.8rem 0 0;
    color: rgba(255, 250, 240, .62);
    font-size: 1rem;
    line-height: 1.75;
}

.entry-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin-top: 1.6rem;
}

.entry-tags span {
    border: 1px solid rgba(255, 255, 255, .15);
    padding: .4rem .55rem;
    color: rgba(255, 250, 240, .56);
    font-size: .6rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.entry-cover {
    margin: 0;
    padding: 9px;
    background: var(--entry-paper);
    box-shadow: 0 35px 80px rgba(0, 0, 0, .38);
    transform: rotate(2deg);
}

.entry-cover img {
    width: 100%;
    max-height: 520px;
    display: block;
    object-fit: cover;
}

.entry-cover figcaption {
    padding: .7rem .25rem .1rem;
    color: #716758;
    font: italic .72rem/1.4 Georgia, serif;
}

.entry-type-card {
    min-height: 430px;
    display: grid;
    place-content: center;
    position: relative;
    padding: 2rem;
    background: var(--entry-paper);
    color: var(--entry-ink);
    box-shadow: 0 35px 80px rgba(0, 0, 0, .38);
    text-align: center;
    transform: rotate(2deg);
}

.entry-type-card::before {
    content: "";
    width: 80px;
    height: 17px;
    position: absolute;
    top: -8px;
    left: 50%;
    background: rgba(220, 204, 168, .75);
    transform: translateX(-50%) rotate(-2deg);
}

.entry-type-card > span {
    color: #7c7162;
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .13em;
}

.entry-type-card strong {
    color: rgba(23, 22, 19, .11);
    font: 700 clamp(6rem, 13vw, 10rem)/.9 Georgia, serif;
    letter-spacing: -.09em;
}

.entry-type-card small {
    color: #716758;
    font: italic .82rem/1.5 Georgia, serif;
}

.entry-paper {
    padding: clamp(5rem, 9vw, 8rem) 0;
    background:
        linear-gradient(rgba(99, 83, 59, .025) 1px, transparent 1px),
        var(--entry-paper);
    background-size: 100% 34px;
}

.entry-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 760px);
    justify-content: center;
    gap: clamp(3rem, 7vw, 7rem);
}

.entry-margin {
    align-self: start;
    position: sticky;
    top: 7rem;
}

.entry-back {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    border-bottom: 1px solid currentColor;
    padding-bottom: .2rem;
    color: var(--entry-ink);
    font-size: .63rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-decoration: none;
    text-transform: uppercase;
}

.entry-back:hover {
    color: var(--entry-ember);
}

.entry-file {
    display: grid;
    margin-top: 2rem;
    border-top: 2px solid var(--entry-ink);
}

.entry-file span {
    margin-top: .9rem;
    color: #8a7f70;
    font-size: .56rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.entry-file strong {
    border-bottom: 1px solid #c9bead;
    padding: .2rem 0 .75rem;
    font-family: Georgia, "Times New Roman", serif;
    font-size: .82rem;
    font-weight: 400;
}

.entry-content {
    min-width: 0;
    color: #302c26;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.02rem, 1.8vw, 1.12rem);
    line-height: 1.86;
}

.entry-content > *:first-child {
    margin-top: 0;
}

.entry-content h2 {
    margin: 2.7rem 0 1rem;
    color: var(--entry-ink);
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    line-height: 1.05;
}

.entry-content h3 {
    margin: 2.2rem 0 .8rem;
    font-size: 1.5rem;
}

.entry-content p {
    margin: 0 0 1.35rem;
}

.entry-content ul,
.entry-content ol {
    margin: 0 0 1.5rem;
    padding-left: 1.5rem;
}

.entry-content li {
    margin-bottom: .5rem;
}

.entry-content blockquote {
    position: relative;
    margin: 2.4rem 0;
    border-left: 3px solid var(--entry-ember);
    padding: .4rem 0 .4rem 1.5rem;
    color: #4f473c;
    font-size: 1.25rem;
    font-style: italic;
}

.entry-content blockquote p:last-child {
    margin-bottom: 0;
}

.entry-content a {
    color: #bc4822;
    text-decoration-thickness: 1px;
    text-underline-offset: .18em;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    margin: 1rem 0 1.5rem;
}

.entry-content table {
    width: 100%;
    margin: 1.5rem 0;
    border-collapse: collapse;
    font-family: Arial, sans-serif;
    font-size: .85rem;
}

.entry-content th,
.entry-content td {
    border-bottom: 1px solid #c8bcaa;
    padding: .7rem .5rem;
    text-align: left;
}

.entry-content code {
    padding: .12em .32em;
    background: #ddd3c1;
    font-size: .86em;
}

.entry-content pre {
    overflow-x: auto;
    padding: 1.1rem;
    background: var(--entry-ink);
    color: var(--entry-chalk);
}

.entry-content pre code {
    padding: 0;
    background: none;
}

.entry-content hr {
    margin: 2.5rem 0;
    border: 0;
    border-top: 1px solid #c8bcaa;
    opacity: 1;
}

.entry-end {
    margin-top: 4rem;
    border-top: 2px solid var(--entry-ink);
    padding-top: 1rem;
}

.entry-end span {
    color: var(--entry-ember);
    font: 800 .58rem/1 Arial, sans-serif;
    letter-spacing: .12em;
}

.entry-end p {
    margin: .5rem 0 0;
    color: #796f61;
    font-size: .82rem;
    font-style: italic;
}

.entry-next {
    padding: clamp(4rem, 8vw, 7rem) 0;
    background: var(--entry-ink);
    color: var(--entry-chalk);
    text-align: center;
}

.entry-next-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: .7rem;
}

.entry-next-actions a {
    min-width: 180px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border: 1px solid rgba(255, 255, 255, .17);
    padding: .9rem 1rem;
    color: rgba(255, 250, 240, .72);
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .07em;
    text-decoration: none;
    text-transform: uppercase;
}

.entry-next-actions a:hover {
    border-color: var(--entry-ember);
    color: var(--entry-ember);
}

/* Footer continuity */
.lab-entry-page .footer {
    border-top: 1px solid rgba(255, 255, 255, .09);
    background: #11100e;
    color: rgba(255, 250, 240, .58);
}

.lab-entry-page .footer h5,
.lab-entry-page .footer h6 {
    color: var(--entry-chalk);
}

.lab-entry-page .footer h5.text-laser {
    color: var(--entry-ember);
}

.lab-entry-page .footer p,
.lab-entry-page .footer em {
    color: rgba(255, 250, 240, .5);
}

.lab-entry-page .footer a {
    color: rgba(255, 250, 240, .65);
}

.lab-entry-page .footer a:hover {
    color: var(--entry-ember);
}

.lab-entry-page .footer hr {
    border-color: rgba(255, 255, 255, .12);
    opacity: 1;
}

@media (max-width: 991.98px) {
    .lab-entry-page .navbar {
        background: rgba(23, 22, 19, .98) !important;
    }

    .lab-entry-page .navbar-toggler {
        border-color: rgba(255, 255, 255, .2);
        filter: invert(1);
    }

    .entry-hero-grid {
        grid-template-columns: 1fr;
    }

    .entry-cover,
    .entry-type-card {
        width: min(82%, 560px);
        margin: 0 auto;
    }

    .entry-layout {
        grid-template-columns: minmax(0, 760px);
    }

    .entry-margin {
        position: static;
    }

    .entry-file {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .entry-hero {
        min-height: auto;
        padding-top: 8rem;
    }

    .entry-title h1 {
        font-size: clamp(3.4rem, 16vw, 5rem);
    }

    .entry-cover,
    .entry-type-card {
        width: 100%;
    }

    .entry-type-card {
        min-height: 330px;
    }

    .entry-content {
        font-size: 1rem;
        line-height: 1.78;
    }
}
