/*
    The year is 2005. Everything is possible. Skeuomorphism
    is alive. The future is glossy, transparent, and full of hope.
                                                                   */

:root {
    --luna-blue: #0055ea;
    --luna-blue-light: #4e96f7;
    --luna-blue-dark: #003399;

    --glass-bg: rgba(255, 255, 255, 0.62);
    --glass-bg-hover: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.82);
    --glass-shadow: 0 8px 32px rgba(0, 60, 150, 0.10);
    --glass-blur: 14px;

    --text: #1a1a2e;
    --text-secondary: #4a5568;
    --text-light: #718096;

    --link: #0055ea;
    --link-hover: #3380ff;

    --container-width: 780px;
    --panel-radius: 10px;
    --btn-radius: 6px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: Tahoma, "Segoe UI", Verdana, Geneva, sans-serif;
    font-size: 13px;
    line-height: 1.7;
    color: var(--text);

    background:
        linear-gradient(180deg,
            #4a9ae5 0%,
            #6db5ed 12%,
            #93cbf2 25%,
            #b5ddf0 40%,
            #c6e6d8 55%,
            #8ec87a 72%,
            #6bb54e 88%,
            #5aa640 100%
        );
    background-attachment: fixed;
    min-height: 100vh;
}


.construction {
    background: repeating-linear-gradient(
        -45deg,
        #f5c518, #f5c518 10px,
        #222 10px, #222 20px
    );
    padding: 4px 0;
    font-size: 11px;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 1px 1px rgba(0,0,0,0.6);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.construction marquee {
    padding: 2px 0;
}


nav {
    background: linear-gradient(180deg,
        #0997ff 0%,
        #0878e8 4%,
        #0560c7 25%,
        #044aae 50%,
        #0560c7 75%,
        #0878e8 96%,
        #0997ff 100%
    );
    border-bottom: 2px solid #003580;
    box-shadow:
        inset 0 1px 0 rgba(140, 200, 255, 0.45),
        0 3px 12px rgba(0, 30, 80, 0.35);
    padding: 6px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 4px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.site-title {
    color: #fff;
    text-decoration: none;
    font-size: 17px;
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.35);
    letter-spacing: 0.5px;
}

.site-title:hover {
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5),
                 0 0 10px rgba(255, 255, 255, 0.25);
}

.nav-links {
    display: flex;
    gap: 2px;
    flex-wrap: wrap;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    padding: 4px 12px;
    border-radius: 3px;
    font-size: 12px;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
    transition: background 0.15s;
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.22);
}

.nav-links a:active {
    background: rgba(0, 0, 0, 0.1);
}


.container {
    max-width: var(--container-width);
    margin: 20px auto;
    padding: 0 16px;
}


.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--panel-radius);
    padding: 24px 28px;
    margin-bottom: 18px;
    box-shadow: var(--glass-shadow);
    position: relative;
    overflow: hidden;
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 48%;
    background: linear-gradient(180deg,
        rgba(255, 255, 255, 0.30) 0%,
        rgba(255, 255, 255, 0.08) 60%,
        rgba(255, 255, 255, 0.00) 100%
    );
    pointer-events: none;
    border-radius: var(--panel-radius) var(--panel-radius) 0 0;
}

.glass-panel h2 {
    font-size: 17px;
    color: var(--luna-blue-dark);
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(0, 85, 234, 0.12);
    position: relative;
}


.hero {
    text-align: center;
    padding: 36px 28px;
}

.hero h1 {
    font-size: 24px;
    color: var(--luna-blue-dark);
    margin-bottom: 6px;
    text-shadow: 0 1px 2px rgba(0, 60, 150, 0.08);
}

.hero .subtitle {
    color: var(--text-secondary);
    font-size: 13px;
}

.duck-ascii {
    font-family: "Courier New", Courier, monospace;
    font-size: 13px;
    line-height: 1.2;
    color: #e67e22;
    margin-bottom: 14px;
    display: inline-block;
    text-align: left;
    text-shadow: 0 1px 0 rgba(0,0,0,0.06);
}


.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.project-card {
    background: rgba(255, 255, 255, 0.50);
    border: 1px solid rgba(255, 255, 255, 0.70);
    border-radius: 8px;
    padding: 16px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 40%;
    background: linear-gradient(180deg,
        rgba(255, 255, 255, 0.35) 0%,
        rgba(255, 255, 255, 0.00) 100%
    );
    pointer-events: none;
    border-radius: 8px 8px 0 0;
}

.project-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 60, 150, 0.12);
}

.project-card h3 {
    font-size: 14px;
    margin-bottom: 6px;
    color: var(--luna-blue);
    position: relative;
}

.project-card p {
    font-size: 12px;
    color: var(--text-secondary);
    position: relative;
}

.project-card a {
    font-size: 12px;
    display: inline-block;
    margin-top: 8px;
    position: relative;
}


.post-preview {
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 85, 234, 0.06);
}

.post-preview:last-child { border-bottom: none; }

.post-preview h3 {
    font-size: 14px;
    margin-bottom: 2px;
}

.post-preview h3 a {
    color: var(--link);
    text-decoration: none;
}

.post-preview h3 a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

.post-preview time {
    font-size: 11px;
    color: var(--text-light);
}

.post-preview .excerpt {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 3px;
}


/* sits above .glass-panel::before so content isn't washed out by the highlight */
.post-body {
    line-height: 1.85;
    position: relative;
    z-index: 1;
}
.post-body h1, .post-body h2, .post-body h3,
.post-body h4, .post-body h5, .post-body h6 {
    margin-top: 22px;
    margin-bottom: 8px;
    color: var(--luna-blue-dark);
}
.post-body h1 { font-size: 20px; }
.post-body h2 { font-size: 17px; }
.post-body h3 { font-size: 15px; }

.post-body p   { margin-bottom: 12px; }
.post-body a   { color: var(--link); }
.post-body a:hover { color: var(--link-hover); }

.post-body pre {
    background: rgba(0, 20, 60, 0.055);
    border: 1px solid rgba(0, 40, 100, 0.10);
    border-radius: 6px;
    padding: 14px;
    overflow-x: auto;
    margin: 14px 0;
    font-size: 12px;
}

.post-body code {
    font-family: "Courier New", Consolas, monospace;
    font-size: 12px;
}

.post-body p code,
.post-body li code {
    background: rgba(0, 20, 60, 0.06);
    padding: 1px 5px;
    border-radius: 3px;
}

/* cap the height too, otherwise portrait shots run the full column width
   and end up absurdly tall. width:auto keeps the aspect ratio. */
.post-body img {
    max-width: 100%;
    max-height: 600px;
    width: auto;
    height: auto;
    border-radius: 6px;
    margin: 12px auto;
    display: block;
}

/* .table-wrap lets wide tables scroll instead of blowing out the column */
.post-body .table-wrap {
    overflow-x: auto;
    margin: 14px 0;
}

.post-body table {
    border-collapse: collapse;
    width: 100%;
    font-size: 14px;
}

.post-body th,
.post-body td {
    padding: 7px 12px;
    text-align: left;
    border-bottom: 1px solid rgba(0, 85, 234, 0.12);
}

.post-body thead th {
    color: var(--luna-blue-dark);
    background: rgba(0, 85, 234, 0.06);
    border-bottom: 2px solid rgba(0, 85, 234, 0.22);
}

.post-body tbody tr:last-child td { border-bottom: none; }

.post-body blockquote {
    border-left: 3px solid var(--luna-blue-light);
    padding: 8px 16px;
    margin: 14px 0;
    background: rgba(0, 85, 234, 0.04);
    border-radius: 0 6px 6px 0;
    color: var(--text-secondary);
    font-style: italic;
}

.post-body ul, .post-body ol {
    margin: 10px 0 10px 24px;
}

.post-body li { margin-bottom: 4px; }

.post-body hr {
    border: none;
    border-top: 1px solid rgba(0, 85, 234, 0.10);
    margin: 22px 0;
}


.links-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}


.button {
    display: inline-block;
    padding: 6px 18px;
    background: linear-gradient(180deg,
        #5ba3f5 0%, #3380e0 45%, #2870d0 100%
    );
    color: #fff !important;
    text-decoration: none !important;
    border-radius: var(--btn-radius);
    font-size: 12px;
    font-weight: bold;
    border: 1px solid #2060b0;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.32),
        0 1px 3px rgba(0, 40, 100, 0.18);
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.20);
    transition: all 0.12s ease;
    position: relative;
}

.button::before {
    content: '';
    position: absolute;
    top: 1px; left: 1px; right: 1px;
    height: 44%;
    background: linear-gradient(180deg,
        rgba(255,255,255,0.38),
        rgba(255,255,255,0.05)
    );
    border-radius: var(--btn-radius) var(--btn-radius) 50% 50%;
    pointer-events: none;
}

.button:hover {
    background: linear-gradient(180deg,
        #6bb0ff 0%, #4490f0 45%, #3880e0 100%
    );
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.42),
        0 2px 6px rgba(0, 40, 100, 0.28);
}

.button:active {
    background: linear-gradient(180deg,
        #2870d0 0%, #2060b0 45%, #1850a0 100%
    );
    box-shadow: inset 0 2px 4px rgba(0, 40, 100, 0.30);
}

.button-green {
    background: linear-gradient(180deg,
        #60c060 0%, #42a842 45%, #389038 100%
    );
    border-color: #2a7a2a;
}

.button-green:hover {
    background: linear-gradient(180deg,
        #70d070 0%, #50b850 45%, #48a048 100%
    );
}

.button-green:active {
    background: linear-gradient(180deg,
        #389038 0%, #2a7a2a 45%, #206820 100%
    );
}

.button-blurple {
    background: linear-gradient(180deg,
        #6d78d4 0%, #5865F2 45%, #4752c4 100%
    );
    border-color: #3c45a5;
}

.button-blurple:hover {
    background: linear-gradient(180deg,
        #7d88e4 0%, #6875ff 45%, #5865F2 100%
    );
}

.button-blurple:active {
    background: linear-gradient(180deg,
        #4752c4 0%, #3c45a5 45%, #313a8c 100%
    );
}


.button-orange {
    background: linear-gradient(180deg,
        #f0a030 0%, #e08820 45%, #c87818 100%
    );
    border-color: #a06010;
}

.button-orange:hover {
    background: linear-gradient(180deg,
        #ffb040 0%, #f09830 45%, #e08820 100%
    );
}

.button-orange:active {
    background: linear-gradient(180deg,
        #c87818 0%, #a06010 45%, #885008 100%
    );
}

/* badge shelf. one flex row, wraps, left aligned. add badges as children. */
.badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 22px;
}

/* classic 88x31 buttons: keep them crisp, no link underline/colour bleed */
.badges a {
    display: inline-flex;
    line-height: 0;
    border: 0;
}

.badges img {
    display: block;
    image-rendering: pixelated;
}

/* the carbon badge ships its own centred styles, override them */
#wcb.carbonbadge {
    text-align: left !important;
    font-size: 13px !important;
}

.guestbook-entries {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gb-entry {
    display: flex;
    gap: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 8px;
}

.gb-avatar {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    flex-shrink: 0;
}

.gb-avatar-default {
    background: rgba(0, 85, 234, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--text-light);
}

.gb-content strong {
    font-size: 13px;
    color: var(--luna-blue-dark);
}

.gb-content time {
    font-size: 10px;
    color: var(--text-light);
    margin-left: 6px;
}

.gb-content p {
    margin-top: 3px;
    font-size: 12px;
    color: var(--text);
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px;
    margin-top: 12px;
    position: relative;
    z-index: 1;
}

.photo-grid img {
    width: 100%;
    border-radius: 6px;
    display: block;
    cursor: pointer;
    transition: transform 0.15s;
}

.photo-grid img:hover {
    transform: scale(1.02);
}



.photo-grid video {
    width: 100%;
    border-radius: 6px;
}

.easter-egg-hint {
    margin-top: 8px;
}

.secret-link {
    font-size: 9px;
    color: rgba(0, 0, 0, 0.08) !important;
    text-decoration: none !important;
    transition: color 0.3s;
    cursor: default;
}

.secret-link:hover {
    color: var(--link) !important;
    cursor: pointer;
    text-decoration: underline !important;
}


footer {
    max-width: var(--container-width);
    margin: 8px auto 30px;
    padding: 16px 20px;
    text-align: center;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.88);
    text-shadow: 0 1px 2px rgba(0, 40, 0, 0.35);
}

footer a { color: rgba(255, 255, 255, 0.95); }

.visitor-counter {
    display: inline-block;
    margin-top: 8px;
    padding: 3px 12px;
    background: rgba(0, 0, 0, 0.28);
    border-radius: 3px;
    font-family: "Courier New", monospace;
    font-size: 12px;
    letter-spacing: 2px;
    color: #90ee90;
}


a {
    color: var(--link);
    transition: color 0.12s;
}

a:hover { color: var(--link-hover); }

.back-link {
    display: inline-block;
    margin-bottom: 14px;
    font-size: 12px;
    color: var(--text-light);
    text-decoration: none;
}

.back-link:hover { color: var(--link); text-decoration: underline; }

.post-meta {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 18px;
}

.section-link {
    margin-top: 10px;
    font-size: 12px;
}


@media (max-width: 640px) {
    .nav-inner {
        justify-content: center;
        text-align: center;
    }
    .nav-links { justify-content: center; }

    .glass-panel { padding: 18px 16px; }
    .hero { padding: 28px 16px; }
    .hero h1 { font-size: 20px; }

    .project-grid { grid-template-columns: 1fr; }
}

@media (max-width: 400px) {
    .nav-links a { padding: 4px 8px; font-size: 11px; }
    body { font-size: 12px; }
}
