/* Contact page - Personal Correspondence layout */
body.page-template-page-contact,
body.page-template-page-contact-php,
body.page-template-page-contact .site-main--offset,
body.page-template-page-contact-php .site-main--offset {
    background: #F4F1EA;
    color: #2D2D2D;
}

.contact-page-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 2.6rem 1.5rem 7.5rem;
}

.contact-split {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: clamp(2.4rem, 5vw, 6rem);
    align-items: start;
}

.contact-page-heading {
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.8rem, 6vw, 5rem);
    font-weight: 500;
    letter-spacing: 0.05em;
    line-height: 0.95;
    color: #2D2D2D;
}

.contact-kicker {
    margin: 1rem 0 0;
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.2rem, 2.1vw, 1.7rem);
    font-style: italic;
    line-height: 1.52;
    color: #3B342B;
}

.contact-intro {
    margin: 1.2rem 0 0;
    max-width: 40ch;
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.08rem, 1.25vw, 1.24rem);
    line-height: 1.84;
    color: #3F3A32;
}

.contact-details {
    margin-top: 2rem;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 1rem;
}

.contact-detail-icon {
    width: 30px;
    height: 30px;
    border: 1px solid rgba(45, 45, 45, 0.5);
    border-radius: 999px;
    color: #2D2D2D;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-detail-icon svg {
    width: 14px;
    height: 14px;
    display: block;
}

.contact-detail a {
    color: #2D2D2D;
    text-decoration: none;
    border-bottom: 1px solid rgba(45, 45, 45, 0.35);
    padding-bottom: 0.08rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    transition: color 0.25s ease, border-color 0.25s ease;
}

.contact-detail a:hover {
    color: #4F6354;
    border-color: rgba(79, 99, 84, 0.75);
}

.contact-social {
    margin-top: 1.2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem 1.2rem;
}

.contact-social a {
    color: #2D2D2D;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    border-bottom: 1px solid transparent;
    padding-bottom: 0.14rem;
    transition: color 0.25s ease, border-color 0.25s ease;
}

.contact-social a:hover {
    color: #4F6354;
    border-color: rgba(79, 99, 84, 0.75);
}

.contact-stationery {
    position: relative;
    padding: 3rem 0 0.6rem;
}

.contact-status {
    margin: 0 0 1.8rem;
    max-width: 42ch;
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.08rem, 1.35vw, 1.24rem);
    font-style: italic;
    line-height: 1.72;
    color: #3B342B;
}

.contact-status.is-error {
    color: #6B3B2E;
}

.contact-sent-state {
    min-height: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.contact-sent-message {
    margin: 0;
    max-width: 22ch;
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.35rem, 2.2vw, 2rem);
    font-style: italic;
    line-height: 1.58;
    color: #3B342B;
}

.contact-sent-signature {
    margin-top: 1.4rem;
    width: clamp(130px, 18vw, 190px);
    height: auto;
    opacity: 0.9;
}

.contact-sent-link {
    margin-top: 2.25rem;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #2D2D2D;
    text-decoration: none;
    border-bottom: 1px solid rgba(45, 45, 45, 0.35);
    padding-bottom: 0.14rem;
    transition: color 0.25s ease, border-color 0.25s ease;
}

.contact-sent-link:hover {
    color: #4F6354;
    border-color: rgba(79, 99, 84, 0.75);
}

.contact-form {
    position: relative;
    z-index: 2;
}

.form-row + .form-row {
    margin-top: 1.3rem;
}

.form-row--split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.4rem;
}

.form-field label {
    display: block;
    margin-bottom: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #6A675F;
}

.contact-input,
.contact-textarea {
    width: 100%;
    border: 0;
    border-bottom: 1px solid rgba(45, 45, 45, 0.55);
    background: transparent;
    border-radius: 0;
    padding: 0.2rem 0 0.65rem;
    font-family: 'Playfair Display', serif;
    font-size: 1.08rem;
    line-height: 1.5;
    color: #2D2D2D;
    box-sizing: border-box;
}

.contact-textarea {
    min-height: 220px;
    resize: vertical;
    line-height: 1.75;
}

.contact-input:focus,
.contact-textarea:focus {
    outline: none;
    border-bottom-color: #2D2D2D;
}

.form-submit {
    margin-top: 3rem;
    display: flex;
    justify-content: flex-start;
}

.contact-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.84rem 2.2rem;
    border: 2px solid #2D2D2D;
    border-radius: 999px;
    background: #2D2D2D;
    color: #F4F1EA;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease;
}

.contact-submit-btn:hover {
    background: transparent;
    color: #2D2D2D;
}

/* Screen reader only */
.screen-reader-text {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

@media (max-width: 960px) {
    .contact-page-container {
        padding-top: 2.2rem;
    }

    .contact-split {
        grid-template-columns: 1fr;
        gap: 3.2rem;
    }
}

@media (max-width: 680px) {
    .contact-page-container {
        padding: 2rem 1.1rem 6.1rem;
    }

    .form-row--split {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .contact-sent-state {
        min-height: 340px;
    }
}
