/* ── Guestbook ── */

.gb-page {
    max-width: 54em;
    margin: 0 auto;
    padding: 1.5em 2em 4em;
    font-family: "TimesOrTinos", "Amiri", "Arial", serif;
    color: var(--darkbrown);
    background: var(--white);
}

.gb-header {
    text-align: center;
    padding: 0.8em 0 0.6em;
    margin-bottom: 2.5em;
    border-bottom: 1px dotted var(--darkbrown);
}

.gb-site-title {
    font-size: 1.5em;
    font-variant: small-caps;
    letter-spacing: 0.18em;
    text-decoration: none;
    color: var(--darkbrown);
    display: block;
    margin-bottom: 0.2em;
}

.gb-nav {
    font-size: 0.82em;
    letter-spacing: 0.06em;
    white-space: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
}
.gb-nav::-webkit-scrollbar { display: none; }
.gb-nav a {
    text-decoration: none;
    color: var(--darkbrown);
    display: inline !important;
    width: auto !important;
    padding: 0 !important;
    font-size: inherit !important;
}
.gb-nav a:hover { opacity: 0.6; }
.gb-sep { margin: 0 0.5em; opacity: 0.25; }
.gb-current {
    text-decoration: underline !important;
    text-decoration-style: dotted !important;
    text-underline-offset: 3px;
}

.gb-intro {
    max-width: 36em;
    margin: 0 0 2.5em;
    font-size: 0.9em;
    line-height: 1.7;
    opacity: 0.65;
}
.gb-intro p { margin: 0; }

.gb-entries {
    margin-bottom: 3em;
    border-top: 1px dotted rgba(25, 5, 3, 0.2);
}

.gb-entry {
    padding: 1.1em 0;
    border-bottom: 1px dotted rgba(25, 5, 3, 0.12);
    display: grid;
    grid-template-columns: 13em 1fr;
    gap: 0 2em;
    align-items: start;
}

.gb-entry-meta {
    display: flex;
    flex-direction: column;
    gap: 0.15em;
    padding-top: 0.1em;
}

.gb-entry-name {
    font-size: 0.88em;
}

.gb-entry-loc {
    font-size: 0.75em;
    opacity: 0.45;
    font-style: italic;
}

.gb-entry-date {
    font-size: 0.72em;
    opacity: 0.3;
    letter-spacing: 0.03em;
    margin-top: 0.2em;
}

.gb-entry-msg {
    font-size: 0.9em;
    line-height: 1.7;
}

.gb-form-wrap {
    border-top: 1px dotted rgba(25, 5, 3, 0.2);
    padding-top: 1.8em;
    max-width: 38em;
}

.gb-form-label {
    font-size: 0.75em;
    letter-spacing: 0.12em;
    opacity: 0.4;
    margin-bottom: 1.1em;
}

.gb-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8em;
    margin-bottom: 0.8em;
}

.gb-field {
    display: flex;
    flex-direction: column;
    gap: 0.3em;
}

.gb-field-full { margin-bottom: 0.8em; }

.gb-field label {
    font-size: 0.75em;
    opacity: 0.5;
    letter-spacing: 0.05em;
}

.gb-required { opacity: 0.4; }

.gb-field input,
.gb-field textarea {
    font-family: "TimesOrTinos", "Amiri", serif;
    font-size: 0.9em;
    color: var(--darkbrown);
    background: transparent;
    border: none;
    border-bottom: 1px dotted rgba(25, 5, 3, 0.35);
    padding: 0.3em 0;
    outline: none;
    width: 100%;
    transition: border-color 0.2s;
}

.gb-field input:focus,
.gb-field textarea:focus {
    border-bottom-color: var(--darkbrown);
}

.gb-field textarea {
    resize: vertical;
    min-height: 5em;
    line-height: 1.6;
}

.gb-field input::placeholder,
.gb-field textarea::placeholder {
    opacity: 0.25;
    font-style: italic;
}

.gb-form-footer {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-top: 0.8em;
}

.gb-note {
    font-size: 0.72em;
    opacity: 0.3;
    font-style: italic;
}

.gb-submit {
    font-family: "TimesOrTinos", "Amiri", serif;
    font-size: 0.85em;
    letter-spacing: 0.08em;
    color: var(--darkbrown);
    background: transparent;
    border: 1px dotted var(--darkbrown);
    padding: 0.35em 1.2em;
    cursor: pointer;
    transition: 0.2s;
}

.gb-submit:hover {
    background: var(--darkbrown);
    color: var(--white);
}

.gb-success {
    font-size: 0.9em;
    opacity: 0.55;
    font-style: italic;
    padding: 1em 0;
}

@media (max-width: 640px) {
    .gb-page { padding: 1em 1em 3em; }
    .gb-entry {
        grid-template-columns: 1fr;
        gap: 0.4em;
    }
    .gb-entry-meta {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.3em 0.8em;
        align-items: baseline;
    }
    .gb-entry-date { margin-top: 0; }
    .gb-fields { grid-template-columns: 1fr; }
}
