/* =========================================
   GENERAL
========================================= */

* {
    box-sizing: border-box;
}


body,
body * {
    -webkit-user-select: none;
    user-select: none;
}


img {
    -webkit-user-drag: none;
}


input,
textarea,
select,
[contenteditable="true"] {
    -webkit-user-select: text;
    user-select: text;
}

body {
    margin: 0;

    font-family: Verdana, Arial, sans-serif;
    font-size: 13px;

    color: #164f73;
    background-color: #dff7ff;

    background-image:
        radial-gradient(#ffffff 1px, transparent 1px);

    background-size: 14px 14px;
}


/* =========================================
   HEADER
========================================= */

.header {
    width: 900px;
    margin: 20px auto 0;

    padding: 18px;

    text-align: center;

    background:
        linear-gradient(
            #ffffff 0%,
            #e9fbff 20%,
            #b9eaff 55%,
            #69c8ef 100%
        );

    border: 4px ridge #ffffff;

    box-shadow:
        4px 4px 0 #65a8c5,
        0 0 12px rgba(70, 180, 225, 0.35);
}


.header::before,
.header::after {
    display: block;
    font-weight: bold;
    font-size: 12px;
    letter-spacing: 1px;
    word-spacing: 2px;
}


.header::before {
    content: "* . * <3 . * . <3 *";
    margin-bottom: 8px;
    color: #168dcc;
}


.header h1 {
    margin: 0;

    font-family:
        "Trebuchet MS",
        Arial,
        sans-serif;

    font-size: 36px;

    color: #0879bd;

    text-shadow:
        2px 2px #ffffff,
        3px 3px #8bdcff,
        5px 5px #ffffff;
}


.header p {
    margin: 8px 0;

    color: #075b91;

    font-style: italic;
}


.header::after {
    content: ". * <3 . . * <3 * .";
    margin-top: 10px;
    color: #ffffff;
}


/* =========================================
   NAVIGATION
========================================= */

.nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    margin-top: 15px;
}


.nav a {
    display: inline-block;

    padding: 6px 8px;
    margin: 0;

    color: #075582;

    text-decoration: none;

    font-weight: bold;
    font-size: 11px;

    background:
        linear-gradient(
            #ffffff,
            #d8f5ff,
            #91d9f8
        );

    border: 3px outset #ffffff;

    box-shadow:
        1px 1px 0 #5da7ca;
}


.nav a:hover {
    color: #ffffff;

    background:
        linear-gradient(
            #69c9f3,
            #168bc5
        );

    border-style: inset;
}


/* =========================================
   MAIN LAYOUT
========================================= */

.container {
     width: 900px;
    max-width: 900px;
     margin: 15px auto;
     display: grid;
     grid-template-columns: 190px minmax(0, 1fr);
     gap: 12px;
}

/* =========================================
   SIDEBAR
========================================= */

.sidebar {
    background:
        linear-gradient(
            #ffffff,
            #e8faff
        );

    border: 4px ridge #ffffff;

    padding: 10px;

    box-shadow:
        3px 3px 0 #75a9c4,
        0 0 10px rgba(70, 180, 225, 0.25);
}


/* =========================================
   SIDEBAR BOXES
========================================= */

.box {
    margin-bottom: 14px;

    border: 2px solid #62bce5;

    background: #eaf8ff;

    box-shadow:
        2px 2px 0 #b4dce9;
}


.box-title {
    padding: 6px;

    text-align: center;

    color: white;

    font-weight: bold;

    background:
        linear-gradient(
            #a8e8ff,
            #4fb8e6,
            #168bc5
        );

    border-bottom: 2px solid #ffffff;

    text-shadow:
        1px 1px #276b8e;
}


.box-content {
    padding: 9px;

    background:
        linear-gradient(
            135deg,
            #ffffff,
            #e8f9ff
        );
}


.site-shell-body {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    width: 100%;
    height: 100vh;
    min-height: 320px;
    overflow: hidden;
}


.site-content-frame {
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    border: 0;
    background: #dff7ff;
}


.site-shell-body.about-me-active .site-content-frame {
    background: #ffffff;
}


.site-shell-body.about-me-active .site-shell-player {
    display: none;
}


.site-shell-player {
    display: grid;
    grid-template-columns: minmax(190px, 250px) minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 10px 16px;
    padding: 10px 18px;
    background: linear-gradient(#ffffff, #d8f5ff, #91d9f8);
    border-top: 4px ridge #ffffff;
    box-shadow: 0 -3px 0 #75a9c4;
}


.site-shell-track-title {
    color: #075582;
    font-weight: bold;
}


.site-shell-track-name {
    margin: 4px 0 0;
    color: #28627f;
    font-size: 11px;
}


.site-shell-player audio {
    display: block;
    width: 100%;
    min-width: 0;
    height: 48px;
    padding: 4px;
    accent-color: #168bc5;
    background: linear-gradient(#ffffff, #e4f7ff);
    border: 2px solid #73c1e6;
    border-radius: 6px;
    box-shadow: 2px 2px 0 #b7dce9;
}


.site-shell-next-track {
    min-height: 38px;
    padding: 8px 14px;
    color: #075582;
    font-weight: bold;
    background: linear-gradient(#ffffff, #c9efff, #72c8ed);
    border: 3px outset #ffffff;
    box-shadow: 2px 2px 0 #72aeca;
    cursor: pointer;
}


.site-shell-next-track:hover,
.site-shell-next-track:focus-visible {
    color: #ffffff;
    background: linear-gradient(#69c9f3, #168bc5);
}


.site-shell-owner-button {
    position: fixed;
    z-index: 20;
    right: 18px;
    bottom: 88px;
    min-height: 38px;
    padding: 8px 14px;
    color: #075582;
    font-weight: bold;
    background: linear-gradient(#ffffff, #c9efff, #72c8ed);
    border: 3px outset #ffffff;
    box-shadow: 2px 2px 0 #72aeca;
    opacity: 0.08;
    cursor: pointer;
    transition: opacity 0.2s ease;
}


.site-shell-owner-button:hover,
.site-shell-owner-button:focus-visible {
    opacity: 1;
}


.site-shell-body.about-me-active .site-shell-owner-button {
    bottom: 18px;
}


.site-shell-owner-button:hover,
.site-shell-owner-button:focus-visible {
    color: #ffffff;
    background: linear-gradient(#69c9f3, #168bc5);
}


@media (max-width: 650px) {
    .site-shell-player {
        grid-template-columns: minmax(0, 1fr) auto auto;
        padding: 8px 10px;
    }

    .site-shell-player-copy {
        grid-column: 1 / -1;
    }

    .site-shell-owner-button {
        right: 10px;
        bottom: 112px;
    }
}


@media (max-width: 420px) {
    .site-shell-player {
        grid-template-columns: minmax(0, 1fr);
    }

    .site-shell-player-copy {
        grid-column: auto;
    }

    .site-shell-owner-button {
        bottom: 176px;
    }

    .site-shell-body.about-me-active .site-shell-owner-button {
        bottom: 12px;
    }
}


/* =========================================
   SIDEBAR LINKS
========================================= */

.box-content a,
.calendar-side-content a {
    display: block;

    margin: 6px 0;

    padding: 3px;

    color: #0066aa;

    text-decoration: none;

    font-weight: bold;
}


.box-content a:hover,
.calendar-side-content a:hover {
    color: #ffffff;

    background: #55bce8;

    text-decoration: none;
}


/* =========================================
   MAIN CONTENT
========================================= */

.content {
    padding: 15px;

    background:
        linear-gradient(
            #ffffff,
            #f1fcff
        );

    border: 4px ridge #ffffff;

    box-shadow:
        3px 3px 0 #75a9c4,
        0 0 10px rgba(70, 180, 225, 0.2);
}


.admin-content {
    display: block;
}


.admin-content > .post {
    margin-bottom: 25px;
}


.admin-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 14px;
}


.admin-field label {
    margin-top: 10px;
}


.admin-field-full {
    margin-top: 8px;
}


.photo-file-tools,
.gallery-photo-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}


.photo-file-status,
.gallery-photo-name {
    min-width: 0;
    color: #5184a0;
    font-size: 11px;
    overflow-wrap: anywhere;
}


.gallery-photo-list {
    display: grid;
    gap: 6px;
    margin-top: 8px;
}


.gallery-photo-row {
    justify-content: space-between;
    margin: 0;
    padding: 6px 8px;
    background: #f2fbff;
    border: 1px solid #b5dce9;
}


.photo-edit-button,
.photo-editor-cancel,
.photo-editor-save {
    min-height: 34px;
    padding: 6px 11px;
    font-weight: bold;
    color: #075582;
    background: linear-gradient(#ffffff, #d8f5ff, #91d9f8);
    border: 2px outset #ffffff;
    box-shadow: 1px 1px 0 #75a9c4;
    cursor: pointer;
}


.photo-edit-button:disabled {
    opacity: 0.55;
    cursor: default;
}


.photo-editor-dialog {
    width: min(760px, calc(100% - 20px));
    max-width: 760px;
    max-height: 92vh;
    padding: 0;
    color: #164f73;
    background: linear-gradient(135deg, #ffffff, #e8f9ff);
    border: 4px ridge #ffffff;
    border-radius: 4px;
    box-shadow: 4px 4px 0 #65a8c5;
}


.photo-editor-dialog::backdrop {
    background: rgba(13, 54, 78, 0.66);
}


.photo-editor-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    color: #ffffff;
    background: linear-gradient(#a8e8ff, #4fb8e6, #168bc5);
}


.photo-editor-header h2 {
    margin: 0;
    font-size: 18px;
}


.photo-editor-close {
    width: 34px;
    height: 34px;
    padding: 0;
    color: #075582;
    font-size: 22px;
    background: #ffffff;
    border: 2px outset #ffffff;
    cursor: pointer;
}


.photo-editor-filename {
    margin: 10px 14px;
    color: #5184a0;
    font-size: 12px;
    overflow-wrap: anywhere;
}


.photo-editor-canvas-wrap {
    margin: 0 14px;
    padding: 8px;
    background: #164f73;
    border: 2px solid #73c1e6;
}


#photoCropCanvas {
    display: block;
    width: 100%;
    height: auto;
    touch-action: none;
    cursor: crosshair;
}


.photo-editor-controls {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding: 0 14px;
}


.photo-editor-controls .admin-field input,
.photo-editor-controls .admin-field select {
    margin: 0;
}


.photo-editor-controls input[type="range"] {
    padding: 7px 0;
    accent-color: #168bc5;
}


.photo-editor-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 12px 14px 14px;
}


.photo-editor-save {
    color: #ffffff;
    background: linear-gradient(#73d4f9, #168bc5);
    border-color: #ffffff #65b6db #65b6db #ffffff;
}


.photo-editor-cancel:hover,
.photo-editor-close:hover,
.photo-edit-button:not(:disabled):hover,
.photo-editor-save:hover {
    filter: brightness(1.04);
}


@media (max-width: 650px) {
    .photo-editor-controls {
        grid-template-columns: minmax(0, 1fr);
        gap: 4px;
    }

    .photo-editor-canvas-wrap {
        margin: 0 8px;
        padding: 4px;
    }

    .photo-editor-actions {
        padding: 8px;
    }
}


/* =========================================
   BLOG POSTS
========================================= */

.post {
    margin-bottom: 25px;

    border: 2px solid #72bde5;

    background: #ffffff;

    box-shadow:
        3px 3px 0 #b5dce9;
}


.post-title {
    padding: 9px;

    font-family:
        "Trebuchet MS",
        Arial,
        sans-serif;

    font-size: 21px;

    font-weight: bold;

    text-align: center;

    color: #005c99;

    background:
        linear-gradient(
            #ffffff,
            #d8f5ff,
            #69c3ed
        );

    border-bottom: 2px solid #72bde5;

    text-shadow:
        1px 1px #ffffff;
}


.post-body {
    padding: 14px;

    background:
        linear-gradient(
            135deg,
            #ffffff,
            #f2fbff
        );
}


.post-body p {
    line-height: 1.7;
}


.post-preview-card {
    overflow: hidden;
}


.post-preview-body {
    padding: 18px;
}


.post-preview-layout {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 18px;
    align-items: center;
}


.post-preview-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
}


.preview-snippet {
    color: #3d7ea2;
    font-style: italic;
    margin-bottom: 18px;
}


.preview-image {
    width: 100%;
    max-height: 260px;
    object-fit: cover;
    margin: 0;
}


.read-more-button {
    display: inline-block;
    align-self: flex-start;
    padding: 10px 18px;
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    background: linear-gradient(#73d4f9, #168bc5);
    border: 3px outset #dff8ff;
    box-shadow: 2px 2px 0 #7fb8d4;
}


.read-more-button:hover {
    background: linear-gradient(#8fe1ff, #0d6ea6);
}


/* =========================================
   DATE
========================================= */

.date {
    display: inline-block;

    padding: 7px 14px;

    margin-bottom: 12px;

    color: #ffffff;

    background: linear-gradient(#73d4f9, #168bc5);

    border: 3px outset #dff8ff;

    border-radius: 999px;

    box-shadow: 2px 2px 0 #7fb8d4;

    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


.date a {
    color: #ffffff;
    text-decoration: none;
}


.date::before {
    content: "🩵 ";
}


/* =========================================
   IMAGES
========================================= */

.post img {
    display: block;

    max-width: 100%;

    margin: 18px auto;

    padding: 5px;

    background: white;

    border: 3px solid #68c5ed;

    outline: 2px dotted #b4eaff;

    box-shadow:
        5px 5px 0 #b5dce9,
        0 0 10px rgba(60, 180, 230, 0.25);
}


.post img:hover {
    transform: rotate(-1deg);

    box-shadow:
        5px 5px 0 #7fc6df;
}


.post .post-cover-photo {
    width: 100%;
    max-height: 420px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;
    margin: 0 auto 22px;
}


.post-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin: 24px 0;
}


.post .post-gallery img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    margin: 0;
}


.photo-month-box .post-title {
    text-align: left;
    padding-left: 14px;
}


.photo-album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 12px;
}


.photo-album-open {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 10px;
    padding: 10px;
    color: #075582;
    font-weight: bold;
    text-align: left;
    background: linear-gradient(135deg, #ffffff, #e5f8ff);
    border: 2px solid #75c3e7;
    box-shadow: 2px 2px 0 #b8dce8;
    cursor: pointer;
}


.photo-album-open img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    background: #e5f8ff;
}


.photo-album-count {
    font-size: 12px;
}


.photo-album-empty {
    margin: 12px 0 4px;
    color: #e5f8ff;
    text-align: center;
}


.photo-album-open:hover,
.photo-album-open:focus-visible {
    color: #ffffff;
    background: linear-gradient(#69c9f3, #168bc5);
}


.photo-viewer-title {
    flex: 1 1 auto;
    font-weight: bold;
}


.featured-video-container {
    width: 100%;
    min-height: 80px;
}


.featured-video-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #102c3d;
    border: 3px ridge #ffffff;
    box-shadow: 3px 3px 0 #75a9c4;
}


.featured-youtube-player {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}


.youtube-playlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
    gap: 12px;
}


.youtube-playlist-grid > p {
    grid-column: 1 / -1;
}


.youtube-playlist-card {
    min-width: 0;
    width: 100%;
    max-width: 640px;
    margin: 0;
}


.youtube-playlist-frame {
    position: relative;
    width: 100%;
    height: 440px;
    overflow: hidden;
    background: #102c3d;
    border: 2px solid #73c1e6;
}


.youtube-playlist-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}


.featured-video-form {
    display: grid;
    gap: 9px;
}


.featured-video-form input,
.featured-video-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 9px 10px;
    color: #003366;
    background: #ffffff;
    border: 2px inset #ffffff;
    box-shadow: inset 1px 1px 3px #c5e6f2;
    resize: vertical;
}


.featured-video-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
}


.featured-video-actions button {
    min-height: 36px;
    padding: 7px 12px;
    color: #075582;
    font-weight: bold;
    background: linear-gradient(#ffffff, #c9efff, #72c8ed);
    border: 3px outset #ffffff;
    box-shadow: 2px 2px 0 #72aeca;
    cursor: pointer;
}


.featured-video-actions button:hover,
.featured-video-actions button:focus-visible {
    color: #ffffff;
    background: linear-gradient(#69c9f3, #168bc5);
}


#featuredVideoStatus {
    color: #5184a0;
    font-size: 12px;
}


.post-popup-view .post .post-cover-photo {
    max-height: 420px;
}


.post .post-photo-clickable {
    cursor: zoom-in;
}


.photo-viewer-dialog {
    width: min(1100px, calc(100% - 24px));
    max-width: 1100px;
    max-height: calc(100% - 24px);
    padding: 10px;
    color: #ffffff;
    background: #103c56;
    border: 3px solid #ffffff;
    box-shadow: 4px 4px 0 #65a8c5;
}


.photo-viewer-dialog::backdrop {
    background: rgba(5, 24, 36, 0.88);
}


.photo-viewer-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 38px;
    margin-bottom: 8px;
    color: #e5f8ff;
    font-weight: bold;
}


.photo-viewer-close,
.photo-viewer-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #075582;
    background: linear-gradient(#ffffff, #c9efff, #72c8ed);
    border: 2px outset #ffffff;
    box-shadow: 2px 2px 0 #28627f;
    cursor: pointer;
}


.photo-viewer-close {
    width: 38px;
    height: 38px;
    font-size: 24px;
}


.photo-viewer-stage {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    align-items: center;
    gap: 10px;
}


.photo-viewer-arrow {
    width: 44px;
    height: 52px;
    font-size: 32px;
}


.photo-viewer-image {
    display: block;
    width: 100%;
    max-width: 100%;
    max-height: calc(100vh - 110px);
    margin: 0 auto;
    object-fit: contain;
    background: #08283a;
    border: 1px solid #73c1e6;
}


.photo-viewer-close:hover,
.photo-viewer-arrow:hover,
.photo-viewer-close:focus-visible,
.photo-viewer-arrow:focus-visible {
    color: #ffffff;
    background: linear-gradient(#69c9f3, #168bc5);
}


@media (max-width: 520px) {
    .photo-viewer-dialog {
        padding: 6px;
    }

    .photo-viewer-stage {
        grid-template-columns: 36px minmax(0, 1fr) 36px;
        gap: 5px;
    }

    .photo-viewer-arrow {
        width: 36px;
        height: 44px;
    }
}


/* =========================================
   VIDEOS
========================================= */

.post video {
    display: block;

    width: 90%;

    margin: 20px auto;

    padding: 4px;

    background: #063b5b;

    border: 3px solid #61c4ed;

    outline: 2px dotted #bcecff;

    box-shadow:
        5px 5px 0 #a8cedd;
}


/* =========================================
   CAPTIONS
========================================= */

.caption {
    text-align: center;

    color: #5f9ab5;

    font-size: 10px;

    font-style: italic;
}


.caption::before {
    content: "♡ ";
}


.caption::after {
    content: " ♡";
}


/* =========================================
   FOOTER
========================================= */

.footer {
    width: 900px;

    margin: 15px auto 30px;

    padding: 14px;

    text-align: center;

    background:
        linear-gradient(
            #ffffff,
            #e3faff,
            #b9eaff
        );

    border: 4px ridge #ffffff;

    color: #557788;

    font-size: 10px;

    box-shadow:
        3px 3px 0 #70a9c7;
}


.footer::before {
    content: "🦋 🩵 🫧 ✧ ☁️ ✧ 🫧 🩵 🦋";

    display: block;

    margin-bottom: 8px;

    font-size: 15px;
}


.instagram-footer-button {
    display: inline-block;
    min-height: 36px;
    padding: 8px 14px;
    color: #075582;
    font-size: 11px;
    font-weight: bold;
    text-decoration: none;
    background: linear-gradient(#ffffff, #d8f5ff, #91d9f8);
    border: 3px outset #ffffff;
    box-shadow: 2px 2px 0 #75a9c4;
}


.instagram-footer-button:hover,
.instagram-footer-button:focus-visible {
    color: #ffffff;
    background: linear-gradient(#69c9f3, #168bc5);
}


.owner-login-toggle {
    position: fixed;
    right: 18px;
    bottom: 18px;
    opacity: 0.08;
    font-size: 10px;
    padding: 4px 8px;
    border: 1px solid #7dbddc;
    background: #dff7ff;
    color: #2b749c;
    cursor: pointer;
    transition: opacity 0.2s ease;
}


.owner-login-toggle:hover,
.owner-login-toggle:focus {
    opacity: 1;
}


.owner-logout-button {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 7px 10px;
    color: #075582;
    background: linear-gradient(#ffffff, #d8f5ff, #91d9f8);
    border: 3px outset #ffffff;
    font-weight: bold;
    cursor: pointer;
}


.owner-admin-panel {
    position: fixed;
    right: 18px;
    bottom: 52px;
    max-width: 220px;
    padding: 10px 12px;
    background: #ffffff;
    border: 2px solid #63bfe6;
    box-shadow: 3px 3px 0 #b8dbeb;
    color: #0d5478;
    font-size: 12px;
}


/* =========================================
   SPARKLES
========================================= */

.sparkle {
    color: #0879bd;

    font-weight: bold;

    text-align: center;
}


/* =========================================
   GUESTBOOK
========================================= */

#guestbookForm {
    margin-top: 15px;

    padding: 13px;

    background:
        linear-gradient(
            #ffffff,
            #e3f8ff
        );

    border: 2px solid #78bce3;

    box-shadow:
        3px 3px 0 #b9dce9;
}


#guestbookForm label,
#blogPostForm label {
    display: block;

    margin-top: 12px;
    margin-bottom: 6px;

    font-weight: bold;

    color: #005c99;
}


#guestbookForm label::before,
#blogPostForm label::before {
    content: "🦋 ";
}


#guestbookForm input,
#guestbookForm textarea,
#blogPostForm input,
#blogPostForm textarea,
#blogPostForm select {
    width: 100%;

    padding: 9px 10px;

    font-family: Verdana, Arial, sans-serif;

    font-size: 12px;

    color: #003366;

    background: white;

    border: 2px inset #ffffff;

    box-shadow:
        inset 1px 1px 3px #c5e6f2;
}


#guestbookForm textarea,
#blogPostForm textarea {
    resize: vertical;
}


#blogPostForm select {
    font-family: Verdana, "Segoe UI Emoji", "Segoe UI Symbol", "Apple Color Emoji", "Noto Color Emoji", Arial, sans-serif;
}


#guestbookForm button,
#blogPostForm button {
    margin-top: 16px;

    padding: 9px 18px;

    font-weight: bold;

    color: #075582;

    background:
        linear-gradient(
            #ffffff,
            #c9efff,
            #72c8ed
        );

    border: 3px outset #ffffff;

    cursor: pointer;

    box-shadow:
        2px 2px 0 #72aeca;
}


#guestbookForm button::before,
#blogPostForm button::before {
    content: "🩵 ";
}


#guestbookForm button::after,
#blogPostForm button::after {
    content: " 🦋";
}


#guestbookForm button:hover,
#blogPostForm button:hover {
    color: white;

    background:
        linear-gradient(
            #69c9f3,
            #168bc5
        );

    border-style: inset;
}


/* =========================================
   GUESTBOOK ENTRIES
========================================= */

#blogPostForm {
    padding: 16px;
    background: linear-gradient(135deg, #ffffff, #ebfaff);
    border: 2px solid #73c1e6;
    box-shadow: 3px 3px 0 #b7dfe9;
}


#adminPostList {
    display: flex;
    flex-direction: column;
    gap: 12px;
}


.import-local-posts-button {
    margin-bottom: 12px;
    padding: 8px 12px;
    color: #075582;
    font-weight: bold;
    background: linear-gradient(#ffffff, #c9efff, #72c8ed);
    border: 3px outset #ffffff;
    box-shadow: 2px 2px 0 #72aeca;
    cursor: pointer;
}


.import-local-posts-button:hover,
.import-local-posts-button:focus-visible {
    color: #ffffff;
    background: linear-gradient(#69c9f3, #168bc5);
}


.import-local-posts-status:empty {
    display: none;
}


.published-post {
    cursor: default;
    user-select: none;
}


.guestbook-entry {
    margin-bottom: 15px;

    padding: 11px;

    background:
        linear-gradient(
            135deg,
            #ffffff,
            #e5f8ff
        );

    border: 2px solid #75c3e7;

    box-shadow:
        3px 3px 0 #b8dce8;
}


.guestbook-entry-new {
    position: relative;
    overflow: hidden;
    animation: guestbook-entry-glow 2s ease-out both;
}


.guestbook-entry-new::before {
    position: absolute;
    z-index: 2;
    top: 5px;
    right: 10px;
    content: "✦";
    color: #168bc5;
    font-size: 24px;
    line-height: 1;
    pointer-events: none;
    text-shadow: 0 0 5px #ffffff, 0 0 12px #73d4f9;
    animation: guestbook-star-twinkle 700ms ease-in-out 3;
}


.guestbook-entry-new::after {
    position: absolute;
    top: -10%;
    bottom: -10%;
    left: -60%;
    width: 42%;
    content: "";
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.9), transparent);
    transform: skewX(-18deg);
    animation: guestbook-sparkle-sweep 1.6s ease-out 1;
}


.guestbook-sparkle-shower {
    position: fixed;
    z-index: 9999;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}


.guestbook-dust-particle {
    position: absolute;
    top: -3vh;
    left: var(--sparkle-x);
    width: var(--sparkle-size);
    height: var(--sparkle-size);
    opacity: 0;
    background: var(--sparkle-color);
    filter: drop-shadow(0 0 5px var(--sparkle-color));
    animation: guestbook-dust-fall var(--sparkle-duration) ease-in var(--sparkle-delay) forwards;
}


.guestbook-dust-star {
    clip-path: polygon(50% 0%, 61% 37%, 100% 50%, 61% 63%, 50% 100%, 39% 63%, 0% 50%, 39% 37%);
}


.guestbook-dust-dot {
    border-radius: 50%;
}


@keyframes guestbook-dust-fall {
    0% { opacity: 0; transform: translate3d(0, -4vh, 0) rotate(0deg); }
    12% { opacity: 1; }
    78% { opacity: 0.9; }
    100% { opacity: 0; transform: translate3d(var(--sparkle-drift), 108vh, 0) rotate(var(--sparkle-turn)); }
}


@keyframes guestbook-entry-glow {
    0% { box-shadow: 3px 3px 0 #b8dce8, 0 0 0 rgba(22, 141, 204, 0); }
    35% { box-shadow: 3px 3px 0 #b8dce8, 0 0 22px rgba(22, 141, 204, 0.8); }
    100% { box-shadow: 3px 3px 0 #b8dce8, 0 0 0 rgba(22, 141, 204, 0); }
}


@keyframes guestbook-star-twinkle {
    0%, 100% { opacity: 0.35; transform: scale(0.7) rotate(-15deg); }
    50% { opacity: 1; transform: scale(1.35) rotate(15deg); }
}


@keyframes guestbook-sparkle-sweep {
    from { left: -60%; }
    to { left: 125%; }
}


@media (prefers-reduced-motion: reduce) {
    .guestbook-entry-new,
    .guestbook-entry-new::before,
    .guestbook-entry-new::after {
        animation: none;
    }

    .guestbook-sparkle-shower {
        display: none;
    }
}


.more-post-list {
    display: grid;
    gap: 8px;
}


.more-post-entry {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "title date"
        "excerpt read";
    align-items: center;
    column-gap: 12px;
    row-gap: 4px;
    margin: 0;
    padding: 8px 10px;
}


.more-post-entry .guestbook-name {
    grid-area: title;
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: 14px;
}


.more-post-entry .guestbook-date {
    grid-area: date;
    margin: 0;
    text-align: right;
    white-space: nowrap;
}


.more-post-excerpt {
    display: -webkit-box;
    grid-area: excerpt;
    overflow: hidden;
    margin: 0;
    color: #3d7ea2;
    font-size: 12px;
    line-height: 1.4;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}


.more-post-read-button {
    display: inline-flex;
    grid-area: read;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 5px 10px;
    color: #ffffff;
    font-size: 11px;
    font-weight: bold;
    text-decoration: none;
    white-space: nowrap;
    background: linear-gradient(#73d4f9, #168bc5);
    border: 2px outset #dff8ff;
    box-shadow: 2px 2px 0 #7fb8d4;
}


.more-post-read-button:hover,
.more-post-read-button:focus-visible {
    color: #ffffff;
    background: linear-gradient(#8fe1ff, #0d6ea6);
}


body.post-popup-view .header,
body.post-popup-view .sidebar,
body.post-popup-view .footer,
body.post-popup-view .owner-login-toggle {
    display: none;
}


body.post-popup-view .container {
    display: block;
    width: min(760px, calc(100% - 20px));
    max-width: 760px;
    margin: 0 auto;
}


body.post-popup-view .content {
    width: 100%;
    padding: 10px;
    border: 0;
    box-shadow: none;
}


body.post-popup-view .post {
    margin: 0;
}


body.post-popup-view .post-title {
    font-size: 18px;
}


body.post-popup-view .post img,
body.post-popup-view .post video {
    max-height: 240px;
    object-fit: contain;
}


.more-post-entry .guestbook-name::before {
    content: none;
}


.guestbook-name {
    display: inline;

    color: #0879bd;

    font-size: 15px;

    font-weight: bold;
}


.post-emoji,
#postEmoji {
    font-family: "Segoe UI Emoji", "Segoe UI Symbol", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
}


.guestbook-name::before {
    content: "♡ ";
}


.guestbook-date {
    margin-top: 4px;

    color: #8aabbc;

    font-size: 9px;
}


.guestbook-entry p {
    margin-bottom: 0;

    line-height: 1.6;
}


.admin-post-actions {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 12px;
}


.admin-post-actions .admin-view-button,
.admin-post-actions .delete-post-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 6px 12px;
    border: 2px solid transparent;
    font: bold 12px Verdana, Arial, sans-serif;
    text-decoration: none;
    cursor: pointer;
}


.admin-post-actions .admin-view-button {
    color: #075582;
    background: linear-gradient(#ffffff, #c9efff, #8bd9f5);
    border-color: #ffffff #65b6db #65b6db #ffffff;
    box-shadow: 2px 2px 0 #b7dce9;
}


.admin-post-actions .admin-view-button::before {
    content: "↗ ";
}


.admin-post-actions .delete-post-button {
    color: #8b3347;
    background: linear-gradient(#fffafa, #ffe4e9);
    border-color: #ffffff #e2a8b4 #e2a8b4 #ffffff;
    box-shadow: 2px 2px 0 #edc9d0;
}


.admin-post-actions .delete-post-button::before {
    content: "× ";
    font-size: 15px;
}


.admin-post-actions .admin-view-button:hover,
.admin-post-actions .admin-view-button:focus-visible {
    color: #ffffff;
    background: linear-gradient(#69c9f3, #168bc5);
}


.admin-post-actions .delete-post-button:hover,
.admin-post-actions .delete-post-button:focus-visible {
    color: #ffffff;
    background: linear-gradient(#e58b9e, #b94c66);
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 940px) {

    .header,
    .container,
    .footer {
        width: calc(100% - 20px);
    }

}


@media (max-width: 650px) {

    .container {
        display: block;
    }

    .admin-content {
        display: block;
    }

    .admin-field-grid {
        grid-template-columns: 1fr;
    }

    .more-post-entry {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "title"
            "date"
            "excerpt"
            "read";
    }

    .more-post-entry .guestbook-date {
        text-align: left;
    }

    .more-post-read-button {
        justify-self: start;
    }

    .sidebar {
        margin-bottom: 15px;
    }

    .header h1 {
        font-size: 28px;
    }

    .nav a {
        padding: 6px 9px;
    }

}
/* =========================================
   CALENDAR PAGE
========================================= */

.calendar-container {
    width: 900px;

    margin: 15px auto;

    display: grid;

    grid-template-columns: 190px 1fr;
    grid-template-areas: "sidebar content";

    gap: 12px;
}


/* =========================================
   CALENDAR MAIN BOX
========================================= */

.calendar-content {
    grid-area: content;

    padding: 15px;

    background:
        linear-gradient(
            #ffffff,
            #f0fbff
        );

    border: 4px ridge #ffffff;

    box-shadow:
        3px 3px 0 #75a9c4,
        0 0 10px rgba(70,180,225,0.25);
}


.calendar-box {
    margin-bottom: 15px;

    background: #ffffff;

    border: 2px solid #62bce5;

    box-shadow:
        3px 3px 0 #b7dce9;
}


/* =========================================
   MONTH HEADER
========================================= */

.calendar-month {
    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 10px;

    color: white;

    font-family:
        "Trebuchet MS",
        Arial,
        sans-serif;

    font-size: 22px;

    font-weight: bold;

    text-align: center;

    background:
        linear-gradient(
            #a8e8ff,
            #51bce7,
            #168bc5
        );

    text-shadow:
        1px 1px #286d91;
}


.month-button {
    width: 35px;
    height: 30px;

    color: #075582;

    font-weight: bold;

    background:
        linear-gradient(
            #ffffff,
            #bdeaff
        );

    border: 3px outset #ffffff;

    cursor: pointer;
}


.month-button:hover {
    color: #ffffff;

    background: #55bde8;

    border-style: inset;
}


/* =========================================
   WEEK DAYS
========================================= */

.weekdays {
    display: grid;

    grid-template-columns:
        repeat(7, 1fr);

    background: #d9f5ff;

    border-bottom: 2px solid #72bde5;
}


.weekdays div {
    padding: 8px 2px;

    text-align: center;

    color: #0875ad;

    font-size: 10px;

    font-weight: bold;

    border-right: 1px dotted #9bd6ec;
}


/* =========================================
   CALENDAR GRID
========================================= */

.calendar-grid {
    display: grid;

    grid-template-columns:
        repeat(7, 1fr);
}


.day {
    min-height: 75px;

    padding: 7px;

    position: relative;

    color: #24617e;

    background:
        linear-gradient(
            #ffffff,
            #f0fbff
        );

    border-right: 1px dotted #a9d8e9;

    border-bottom: 1px dotted #a9d8e9;

    cursor: pointer;

    transition:
        background 0.15s,
        transform 0.15s;
}


.day:hover {
    background: #d9f6ff;

    transform: scale(1.03);

    z-index: 2;

    box-shadow:
        0 0 8px rgba(70,180,225,0.5);
}


.day span {
    font-weight: bold;
}


.day small {
    display: block;

    margin-top: 7px;

    font-size: 20px;

    text-align: center;
}


/* Previous / next month */

.other-month {
    color: #a8c7d4;

    background: #f5fcff;

    cursor: default;
}


.other-month:hover {
    transform: none;

    background: #f5fcff;

    box-shadow: none;
}


/* =========================================
   BLOG POST DAY
========================================= */

.blog-day {
    background:
        linear-gradient(
            #ffffff,
            #c9f1ff,
            #82d5f5
        );

    border: 3px solid #38a9da;

    color: #005f91;

    box-shadow:
        inset 0 0 8px rgba(255,255,255,0.9),
        0 0 8px rgba(50,180,230,0.6);

    animation: calendarGlow 2s infinite;
}


.blog-day::after {
    content: "BLOG POST!";

    display: block;

    margin-top: 4px;

    color: #0879bd;

    font-size: 8px;

    font-weight: bold;

    text-align: center;
}


@keyframes calendarGlow {

    0% {
        box-shadow:
            0 0 5px rgba(50,180,230,0.4);
    }

    50% {
        box-shadow:
            0 0 14px rgba(50,180,230,0.8);
    }

    100% {
        box-shadow:
            0 0 5px rgba(50,180,230,0.4);
    }

}


/* =========================================
   OTHER EVENTS
========================================= */

.event-day {
    background:
        linear-gradient(
            #ffffff,
            #e5f8ff
        );
}


.event-day:hover {
    background: #ccefff;
}


/* =========================================
   LEGEND
========================================= */

.calendar-box-title {
    padding: 8px;

    text-align: center;

    color: white;

    font-weight: bold;

    background:
        linear-gradient(
            #a8e8ff,
            #51bce7,
            #168bc5
        );
}


/* =========================================
   CALENDAR SIDEBAR
========================================= */

.calendar-sidebar {
    grid-area: sidebar;

    background:
        linear-gradient(
            #ffffff,
            #e8faff
        );

    border: 4px ridge #ffffff;

    padding: 10px;

    box-shadow:
        3px 3px 0 #75a9c4;
}


.calendar-side-box {
    margin-bottom: 14px;

    border: 2px solid #62bce5;

    background: #eaf8ff;

    box-shadow:
        2px 2px 0 #b4dce9;
}


.calendar-side-title {
    padding: 6px;

    text-align: center;

    color: white;

    font-weight: bold;

    background:
        linear-gradient(
            #a8e8ff,
            #4fb8e6,
            #168bc5
        );

    text-shadow:
        1px 1px #276b8e;
}


.calendar-side-content {
    padding: 9px;

    background:
        linear-gradient(
            135deg,
            #ffffff,
            #e8f9ff
        );
}


.calendar-side-content p {
    line-height: 1.5;
}


.calendar-side-content hr {
    border: 0;

    border-top: 1px dotted #6ebddd;

    margin: 10px 0;
}


.online {
    color: #168bc5;

    font-weight: bold;

    text-align: center;

    background: #d9f6ff;

    border: 1px dotted #62bce5;

    padding: 4px;
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 940px) {

    .calendar-container {
        width: calc(100% - 20px);
    }

}


@media (max-width: 700px) {

    .calendar-container {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "sidebar"
            "content";
    }

    .calendar-sidebar {
        margin-bottom: 15px;
    }

    .day {
        min-height: 55px;

        padding: 4px;

        font-size: 11px;
    }

    .day small {
        font-size: 15px;
    }

    .calendar-month {
        font-size: 17px;
    }

}


@media (max-width: 500px) {

    .weekdays div {
        font-size: 8px;
    }

    .day {
        min-height: 45px;
    }

    .blog-day::after {
        content: "🦋";
        font-size: 12px;
    }

}

/* INSTRUCTIONS */

.cat-instructions {
    margin: 8px;

    color: #528ca8;

    text-align: center;

    font-size: 9px;

    line-height: 1.5;
}