@font-face {
    font-family: EBGaramond;
    src: url(EBGaramond.ttf);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
    height: 100%;
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    background-color: #141413;
    font-family: EBGaramond;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.page-fade {
    display: flex;
    flex-direction: column;
    flex: 1;
    transition: opacity 0.4s ease;
}

.page-fade.fade-out {
    opacity: 0;
}

.logo a {
    display: block;
    width: 30%;
    margin: 20px auto 0;
    padding-bottom: 30px;
}

.logo a img {
    display: block;
    width: 100%;
    height: auto;
}

@media (max-width: 1280px) {
    .logo a {
        width: 40%;
    }
}

@media (max-width: 750px) {
    .logo a {
        width: 90%;
    }
}

.separator {
    position: relative;
    width: 100%;
    height: 1px;
    background-color: #F5F3F0;
    opacity: 0.5;
}

/* top diamonds */
.vertical-separator::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 7px;
    height: 7px;
    background-color: #F5F3F0;
    transform: translate(-50%, -50%) rotate(45deg);
}

@media (max-width: 750px) {
    .vertical-separator::before {
        display: none;
    }

    .main > .separator::before,
    .main > .separator::after {
        display: none;
    }
}
/* bottom diamonds */
.main > .separator::before,
.main > .separator::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 7px;
    height: 7px;
    background-color: #F5F3F0;
    transform: translate(-50%, -50%) rotate(45deg);
}

.main > .separator::before {
    left: 0;
}

.main > .separator::after {
    left: 100%;
}



.main {
    color: #F5F3F0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.hero {
    letter-spacing: 2px;
    font-size: 12px;
    text-align: center;
    opacity: 0.85;
    padding: 5% 5%;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 1200px) {
    .hero {
        padding: 10% 5%;
    }
}

.page {
    display: flex;
    align-items: stretch;
    flex: 1;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 60px 40px;
    width: 220px;
    flex: 0 0 220px;
}

.sidebar a {
    color: #F5F3F0;
    text-decoration: none;
    font-size: 18px;
    letter-spacing: 1px;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.sidebar a:hover {
    opacity: 1;
    text-decoration: underline;
}

.vertical-separator {
    position: relative;
    width: 1px;
    background-color: #F5F3F0;
    opacity: 0.5;
}

.about-me {
    max-width: 600px;
    margin: 0 auto;
}

.about-me p {
    text-align: center;
    font-size: 20px;
    color: #F5F3F0;
    opacity: 0.85;
    font-family: EBGaramond;
}

.about-divider {
    display: block;
    margin: 40px auto 40px;
    width: 100%;
    max-width: 700px;
    height: auto;
    opacity: 0.9;
}

@media (max-width: 750px) {
    .about-divider {
        width: 70%;
    }
}
/* diary entries */
.content {
    padding: 40px 8% 40px;
}

.sort-toggle {
    display: block;
    margin: 0 0 40px auto;
    background-color: transparent;
    border: 1px solid #F5F3F0;
    color: #F5F3F0;
    font-family: EBGaramond;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 13px;
    padding: 8px 18px;
    cursor: pointer;
    opacity: 0.85;
    transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.sort-toggle:hover {
    opacity: 1;
    background-color: #F5F3F0;
    color: #141413;
}

.entry {
    margin-bottom: 50px;
    padding-bottom: 45px;
    border-bottom: 1px dashed #F5F3F0;
    opacity: 0.95;
}

.entry:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.entry-date {
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #a2a6e2;
    opacity: 1;
    margin-bottom: 8px;
}

.entry-title {
    font-size: 26px;
    font-weight: normal;
    color: #F5F3F0;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.entry-body {
    font-size: 17px;
    color: #F5F3F0;
    line-height: 1.8;
}

.entry-body p {
    margin-bottom: 14px;
}

.entry-body p:last-child {
    margin-bottom: 0;
}

.entry-body a {
    color: #F5F3F0;
    text-decoration: underline;
    opacity: 0.85;
}

.entry-body a:hover {
    opacity: 1;
}

.entry-body img {
    display: block;
    margin: 20px auto;
    max-width: 100%;
    height: auto;
}

.entry-mood {
    font-size: 14px;
    font-style: italic;
    opacity: 0.6;
    margin: 18px 0 10px;
}

.typewriter-cursor {
    display: inline-block;
    margin-left: 2px;
    animation: typewriter-blink 0.9s steps(1) infinite;
    transition: opacity 0.4s ease;
}

.typewriter-cursor-done {
    animation: none;
    opacity: 0;
}

@keyframes typewriter-blink {
    0%, 50% { opacity: 1; }
    50.01%, 100% { opacity: 0; }
}

/* splash page */
.splash-body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-image: linear-gradient(to bottom, rgba(20, 20, 19, 0.9) 0%, rgba(20, 20, 19, 0.25) 800px, rgba(20, 20, 19, 0.25) 100%), url('images/seabg.gif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.splash-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.splash {
    text-align: center;
    color: #F5F3F0;
    padding: 20px;
}

.splash h1 {
    letter-spacing: 2px;
    font-size: 22px;
    opacity: 0.85;
    font-weight: normal;
    max-width: 650px;
    margin: 0 auto;
}

.gate {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
}

.gate.gate-visible {
    opacity: 1;
    pointer-events: auto;
}

.continue-btn {
    background-color: transparent;
    border: 1px solid #F5F3F0;
    color: #F5F3F0;
    font-family: EBGaramond;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 14px;
    padding: 10px 28px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.continue-btn:hover {
    background-color: #F5F3F0;
    color: #141413;
}

/* home page */
.home-content {
    max-width: 720px;
    margin: 0 auto;
}

.section-label {
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #a2a6e2;
    opacity: 1;
    margin-bottom: 16px;
    text-align: center;
}

.intro p {
    font-size: 17px;
    color: #F5F3F0;
    line-height: 1.8;
    opacity: 0.95;
}

.latest-entry {
    max-width: 600px;
    margin: 0 auto;
}

.latest-entry .entry-date {
    margin-top: 0;
}

.latest-entry .read-more {
    display: inline-block;
    margin-top: 10px;
    font-size: 14px;
    letter-spacing: 1px;
    color: #F5F3F0;
    text-decoration: underline;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.latest-entry .read-more:hover {
    opacity: 1;
}

.now-list {
    list-style: none;
    font-size: 17px;
    color: #F5F3F0;
    line-height: 2;
    opacity: 0.95;
}

.now-list li::before {
    content: "— ";
    color: #a2a6e2;
    opacity: 1;
}

@media (max-width: 750px) {
    .home-content {
        max-width: 100%;
    }
}

/* gallery */
.gallery-content {
    padding: 40px 6% 80px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border: 1px solid #F5F3F0;
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.gallery-item:hover {
    opacity: 1;
}

.gallery-item img {
    display: block;
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.gallery-item figcaption {
    font-size: 13px;
    letter-spacing: 0.5px;
    color: #F5F3F0;
    text-align: center;
    padding: 10px 12px;
    background-color: #141413;
    border-top: 1px dashed #F5F3F0;
}

@media (max-width: 1300px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item img {
        height: 400px;
    }
}

@media (max-width: 750px) {
    .page {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 14px 26px;
        padding: 20px 8% 0;
    }

    .sidebar-left,
    .sidebar-right {
        display: contents;
    }

    .sidebar-left a,
    .sidebar-right a {
        font-size: 16px;
    }

    .divider-left {
        order: 2;
        width: 100%;
        height: 1px;
        margin-top: 20px;
    }

    .divider-right {
        display: none;
    }

    .main {
        order: 3;
        width: 100%;
    }

    .content {
        padding: 30px 6% 30px;
    }

    .entry-title {
        font-size: 22px;
    }

    .entry-body {
        font-size: 16px;
    }
}
/* footer */
.footer {
    color: #F5F3F0;
    text-align: center;
}

.footer-content {
    padding: 30px 5% 25px;
}

.footer-links {
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.footer-links a {
    color: #F5F3F0;
    text-decoration: none;
    opacity: 0.85;
    transition: opacity 0.2s ease;
    margin: 0 12px;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-text {
    font-size: 13px;
    letter-spacing: 0.5px;
    opacity: 0.6;
    margin-bottom: 6px;
}

.footer-updated {
    font-size: 12px;
    letter-spacing: 0.5px;
    opacity: 0.45;
    font-style: italic;
}

@media (max-width: 750px) {
    .footer-content {
        padding: 25px 6% 20px;
    }
}
/* sources */
.sources-content {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px 8% 60px;
}

.sources-section {
    margin-bottom: 45px;
}

.sources-section:last-child {
    margin-bottom: 0;
}

.sources-list {
    list-style: none;
}

.sources-list li {
    font-size: 17px;
    color: #F5F3F0;
    line-height: 1.9;
    opacity: 0.9;
    text-align: center;
}

.sources-list a {
    color: #F5F3F0;
    text-decoration: underline;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.sources-list a:hover {
    opacity: 1;
}

@media (max-width: 750px) {
    .sources-content {
        padding: 30px 6% 40px;
    }
}

/* guestbook */
.guestbook-content {
    max-width: 700px;
    margin: 0 auto;
}

.guestbook-form-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 60px;
    padding-bottom: 45px;
    border-bottom: 1px dashed #F5F3F0;
}

.guestbook-form {
    flex: 1;
    min-width: 0;
}

.guestbook-flower {
    flex: 0 0 auto;
    width: 15%;
    height: auto;
    opacity: 0.9;
    align-self: center;
}

.guestbook-flower-right {
    transform: scaleX(-1);
}

@media (max-width: 750px) {
    .guestbook-flower {
        display: none;
    }
}

.form-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.form-row label {
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #a2a6e2;
    margin-bottom: 8px;
}

.guestbook-form input,
.guestbook-form textarea {
    background-color: transparent;
    border: 1px solid #F5F3F0;
    color: #F5F3F0;
    font-family: EBGaramond;
    font-size: 16px;
    padding: 10px 12px;
    resize: vertical;
}

.guestbook-form input:focus,
.guestbook-form textarea:focus {
    outline: none;
    border-color: #a2a6e2;
}

.guestbook-form button {
    background-color: transparent;
    border: 1px solid #F5F3F0;
    color: #F5F3F0;
    font-family: EBGaramond;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 14px;
    padding: 10px 24px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
    display: block;
    margin: 0 auto;
    
}

.guestbook-form button:hover {
    background-color: #F5F3F0;
    color: #141413;
}

.guestbook-form button:disabled {
    opacity: 0.5;
    cursor: default;
}

.gb-status {
    margin-top: 14px;
    font-size: 14px;
    font-style: italic;
    opacity: 0.75;
}

.gb-loading,
.gb-empty,
.gb-error {
    opacity: 0.7;
    font-style: italic;
}

.gb-entry .entry-title {
    font-size: 20px;
}