/* base */

html {
    zoom: 0.9;
    /* zoom: 1.0; */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    /* font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif; */
    /* font-family: 'Courier Prime', serif; */
    font-family: 'Inconsolata', monospace;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    opacity: 1;
    transition: opacity 0.3s ease;
}

@starting-style {
    body {
        opacity: 0;
    }
}

/* footer */

footer {
    margin-top: 20px;
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    padding: 20px 0;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

footer a {
    color: #333;
    text-decoration: none;
}

footer a:hover {
    color: #000;
}

/* index */

.container {
    max-width: 900px;
    margin: 60px auto 20px;
    padding: 0 20px;
    display: flex;
    align-items: flex-start;
    gap: 30px;
}

.profile-sidebar {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
    width: 180px;
}

.blinkies {
    display: grid;
    grid-template-columns: repeat(2, 88px);
    gap: 4px;
    margin-top: 10px;
    justify-content: flex-end;
}

.blinkies a {
    line-height: 0;
}

.profile-image {
    flex-shrink: 0;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    overflow: hidden;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.info h1 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 8px;
}

.info p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 10px;
}

.info a {
    color: #0066cc;
    text-decoration: none;
}

.info a:hover {
    text-decoration: underline;
}


.info .disclaimer {
    font-size: 0.9rem;
    color: #888;
}

.contact {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
}

.contact-label {
    font-weight: 600;
    margin-bottom: 8px;
}

.contact-details {
    font-size: 0.95rem;
    line-height: 1.5;
}

.view-counter {
    font-size: 0.75rem;
    color: #aaa;
    text-align: right;
    margin-top: 4px;
    letter-spacing: 0.02em;
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: stretch;
        margin-top: 30px;
        gap: 25px;
    }

    .container .info {
        text-align: left;
    }

    .container .info h1 {
        text-align: center;
    }

    .container .info .links {
        text-align: center;
    }

    .profile-sidebar {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 14px;
        width: fit-content;
        margin: 0 auto;
        /* margin: 0; */
    }

    .profile-image {
        width: 140px;
        height: 140px;
        flex-shrink: 0;
    }

    .sidebar-right {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .blinkies {
        display: grid;
        grid-template-columns: repeat(2, 88px); /* set the column count here */
        gap: 4px;
        margin-top: 0;
        align-items: start;
    }

    .view-counter {
        text-align: left;
        margin-top: 0;
    }
}

@property --wave {
    syntax: '<number>';
    initial-value: 0;
    inherits: false;
}

@keyframes wave-roll {
    to { --wave: 6.283185; }
}

.wavy-trident {
    display: inline-block;
    animation: wave-roll 1.4s linear infinite;
    translate: 0 calc(sin(var(--nth) * 1.2 - var(--wave)) * 2px); /* I like this style already */
}

.showcase {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.showcase h2 {
    font-size: 1.6rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 10px;
    /* border-bottom: 1px solid #e5e5e5; */
    /* padding-bottom: 5px; */
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.showcase-grid a {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 6px;
}

.showcase-grid a:hover .showcase-img {
    transform: scale(1.03);
}

.showcase-grid a::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0) url('resources/link.png') center / 24px no-repeat;
    /* background: rgba(0, 0, 0, 0); */
    border-radius: 6px;
    transition: background-color 0.3s ease;
    pointer-events: none;
    opacity: 0;
}

.showcase-grid a:hover::after {
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 1;
}

.showcase-img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 6px;
    transition: transform 0.3s ease, opacity 0.5s ease;
}

/* overlay images - cycled by gallery.js */
.showcase-img:not(:first-child) {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

@media (max-width: 768px) {
    .showcase-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .showcase-img {
        height: 160px;
    }
}

@media (max-width: 480px) {
    .showcase-grid {
        grid-template-columns: 1fr;
    }

    .showcase-img {
        height: 180px;
    }

    .extras-images {
        height: 200px;
    }

    .poser img,
    .extras-img {
        width: 130px;
    }
}

.extras {
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 0 20px;
    text-align: center;
}

.extras-images {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 10px;
    height: 320px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.poser {
    display: flex;
}

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

.extras-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.extras-img {
    flex: 1;
    min-height: 0;
    width: 240px;
    max-width: 100%;
    object-fit: cover;
    display: block;
}

.eye {
    max-width: 1200px;
    margin: 20px auto 20px;
    padding: 0 20px;
}

.eye summary {
    display: block;
    list-style: none;
    cursor: pointer;
    border-bottom: 1px solid #333;
    font-size: 1.0rem;
    line-height: 1.4;
}

.eye summary::before {
    content: "↠ Click Me!";
}

.eye summary::-webkit-details-marker {
    display: none;
}

details[open].eye summary::before {
    content: "↡ UnClick Me!";
}

.eye img {
    display: block;
    width: 100%;
    border: 1px solid #333;
    margin-top: 10px;
    padding: 10px;
}

.extras > a img {
    margin-top: 10px;
}

.goodies-link {
    text-align: center;
    margin-top: 20px;
}

.goodies-link a {
    color: #0066cc;
    text-decoration: none;
}

.goodies-link a:hover {
    text-decoration: underline;
}

.wwf-section {
    max-width: 1200px;
    margin: 30px auto 0;
    padding: 0 20px;
    text-align: center;
}

.wwf-section img {
    width: 440px;
    max-width: 100%;
    object-fit: cover;
}

/* goodies */

.back-link {
    display: inline-block;
    margin-bottom: 30px;
    color: #0066cc;
    text-decoration: none;
    font-size: 0.95rem;
}

.back-link:hover {
    text-decoration: underline;
}

.section h1 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 20px;
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 8px;
}

.section {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.section + .section {
    margin-top: 40px;
}

.section h2 {
    font-size: 1.6rem;
    font-weight: 600;
    color: #000;
    /* margin-bottom: 15px; */
    /* border-bottom: 1px solid #e5e5e5; */
    /* padding-bottom: 5px; */
}

.section img {
    max-width: 100%;
}

.section-desc {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 10px;
}

.construction {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px 0;
}

.construction-images {
    display: flex;
    gap: 4px;
    /* justify-content: center; */
}

.construction-images img {
    flex: 1;
    min-width: 0;
    height: 200px;
    object-fit: cover;
}