/* Guest Book — Vesper */

.guest-book {
    max-width: 720px;
    margin: 0 auto;
    padding: 4rem 1.5rem 6rem;
    color: var(--v-text);
}

/* ============================================
   HERO
   ============================================ */

.gb-hero {
    text-align: center;
    margin-bottom: 2rem;
}

.gb-hero__title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 300;
    font-size: 2.6rem;
    letter-spacing: 0.02em;
    margin: 0 0 0.6rem;
    color: var(--v-text);
}

.gb-hero__subtitle {
    font-family: 'EB Garamond', Georgia, serif;
    font-style: italic;
    font-size: 1.05rem;
    color: var(--v-text-secondary);
    margin: 0;
    line-height: 1.5;
}

.gb-hero-image {
    margin: 0 0 2.5rem;
    border-radius: 4px;
    overflow: hidden;
    background: var(--v-bg-elevated);
}

.gb-hero-image img {
    display: block;
    width: 100%;
    height: auto;
}

.gb-intro {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--v-text-secondary);
    margin-bottom: 2.5rem;
    text-align: center;
}

.gb-intro p {
    margin: 0 0 1rem;
}

.gb-intro p:last-child {
    margin: 0;
}

/* ============================================
   FORM
   ============================================ */

.gb-form-section {
    margin-bottom: 4rem;
}

.gb-form {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.gb-form__field {
    display: flex;
    flex-direction: column;
}

.gb-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.4rem;
}

.gb-form__label {
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--v-text-muted);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.gb-form__hint {
    display: inline;
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 0.85rem;
    font-style: italic;
    text-transform: none;
    letter-spacing: 0;
    color: var(--v-text-muted);
    opacity: 0.75;
    margin-left: 0.3rem;
}

.gb-form__input,
.gb-form__textarea {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--v-text);
    background: rgba(240,230,210,0.04);
    border: 1px solid rgba(240,230,210,0.15);
    border-radius: 3px;
    padding: 0.8rem 1rem;
    box-sizing: border-box;
    width: 100%;
    transition: border-color 0.2s, background-color 0.2s;
}

.gb-form__input:focus,
.gb-form__textarea:focus {
    outline: none;
    border-color: rgba(208,139,85,0.5);
    background: rgba(240,230,210,0.06);
}

.gb-form__textarea {
    min-height: 180px;
    resize: vertical;
    font-size: 1.1rem;
    line-height: 1.7;
}

.gb-form__textarea::placeholder {
    color: var(--v-text-muted);
    opacity: 0.5;
    font-style: italic;
}

.gb-form__field--checkbox {
    margin-top: 0.2rem;
}

.gb-form__checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 0.95rem;
    color: var(--v-text-secondary);
    line-height: 1.4;
}

.gb-form__checkbox {
    accent-color: var(--v-accent);
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Honeypot — hidden from humans, visible to bots */
.gb-form__honey {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.gb-form__submit-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    margin-top: 0.8rem;
}

.gb-form__submit {
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--v-bg);
    background: var(--v-accent);
    border: none;
    border-radius: 3px;
    padding: 0.9rem 2.2rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.gb-form__submit:hover:not(:disabled) {
    background: var(--v-accent-hover);
}

.gb-form__submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.gb-form__note {
    font-family: 'EB Garamond', Georgia, serif;
    font-style: italic;
    font-size: 0.85rem;
    color: var(--v-text-muted);
    text-align: center;
    margin: 0;
    line-height: 1.5;
    max-width: 480px;
}

.gb-form__message {
    margin-top: 1rem;
    padding: 0.9rem 1.2rem;
    border-radius: 3px;
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1rem;
    line-height: 1.5;
    text-align: center;
    display: none;
}

.gb-form__message--success,
.gb-form__message--error {
    display: block;
}

.gb-form__message--success {
    background: rgba(208,139,85,0.1);
    border: 1px solid rgba(208,139,85,0.3);
    color: var(--v-text);
}

.gb-form__message--error {
    background: rgba(180,80,80,0.1);
    border: 1px solid rgba(180,80,80,0.3);
    color: var(--v-text);
}

/* Visually-hidden helper for screen readers */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* ============================================
   ENTRIES
   ============================================ */

.gb-entries {
    margin-top: 4rem;
}

.gb-entries__divider {
    position: relative;
    text-align: center;
    margin-bottom: 3rem;
}

.gb-entries__divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(240,230,210,0.15);
}

.gb-entries__divider span {
    position: relative;
    background: var(--v-bg);
    padding: 0 1.2rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.68rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(208,139,85,0.5);
}

.gb-entries__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.gb-entry {
    padding: 0;
}

.gb-entry__body {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1.2rem;
    line-height: 1.85;
    color: var(--v-text);
}

.gb-entry__body p {
    margin: 0 0 0.8rem;
}

.gb-entry__body p:last-child {
    margin: 0;
}

.gb-entry__attribution {
    margin-top: 0.8rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--v-text-muted);
}

.gb-entry__sep {
    margin: 0 0.5rem;
    opacity: 0.5;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 600px) {
    .guest-book {
        padding: 3rem 1.2rem 4rem;
    }

    .gb-hero__title {
        font-size: 2rem;
    }

    .gb-hero__subtitle {
        font-size: 0.95rem;
    }

    .gb-form__row {
        grid-template-columns: 1fr;
        gap: 1.4rem;
    }

    .gb-form__hint {
        display: block;
        margin-left: 0;
        margin-top: 0.15rem;
    }

    .gb-entry__body {
        font-size: 1.08rem;
    }
}
