/* Contact: a warm sketchbook sheet with a clear, responsive form. */
body[data-page='contact'] .content-panel.info-page { display: block; min-width: 0; }
.contact-sheet { position: relative; isolation: isolate; padding: clamp(28px, 4.4vw, 60px); background: #f6f2e9; color: #141637; box-shadow: 0 8px 25px -18px #49382355; }
.contact-sheet::before { content: ''; position: absolute; inset: 0; z-index: -1; background: url('../../images/shared/postcard-paper-texture.jpg.webp') center / cover; mix-blend-mode: multiply; opacity: .22; pointer-events: none; }
.contact-sheet-intro { position: relative; margin-bottom: 36px; }
body[data-page='contact'] .contact-eyebrow { margin: 0 0 20px; font-size: 12px; line-height: 1.4; font-weight: 600; letter-spacing: .16em; color: #637e83; }
body[data-page='contact'] .contact-sheet h2 { margin: 0; font-family: 'Outfit', sans-serif; font-size: clamp(48px, 6.5vw, 88px); line-height: .98; font-weight: 800; letter-spacing: -.045em; color: #141637; }
.contact-sheet h2 span { position: relative; display: inline-block; isolation: isolate; }
.contact-sheet h2 span::before { content: ''; position: absolute; left: -1%; right: -2%; bottom: .04em; height: .17em; background: #f2dc4c; transform: rotate(-1.3deg); z-index: -1; border-radius: 35% 10% 30% 15%; }
body[data-page='contact'] .contact-invitation { margin: 24px 0 0; max-width: 49ch; font-size: 16px; line-height: 1.65; }
.contact-spark { position: absolute; width: clamp(45px, 5vw, 68px); height: auto; top: 30px; right: 0; color: #91b7c1; transform: rotate(10deg); }
.contact-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px 32px; }
.contact-field { min-width: 0; }
.contact-field-message, .contact-form-bottom { grid-column: 1 / -1; }
.contact-field label { display: block; margin: 0 0 8px; font-size: 14px; line-height: 1.5; font-weight: 600; }
.contact-field label span { color: #cf4b26; }
.contact-field input, .contact-field textarea { display: block; box-sizing: border-box; width: 100%; min-width: 0; border: 0; border-bottom: 1px solid #14163755; border-radius: 0; background: transparent; color: #141637; font: 16px/1.6 'Outfit', sans-serif; padding: 10px 0 12px; }
.contact-field input { min-height: 48px; }
.contact-field textarea { height: 130px; min-height: 100px; resize: vertical; }
.contact-field :is(input, textarea)::placeholder { color: #77766f; opacity: 1; }
.contact-field :is(input, textarea):focus { outline: none; border-bottom-color: #cf4b26; box-shadow: 0 1px 0 #cf4b26; }
.contact-form-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.contact-form-bottom small { font-size: 11px; color: #67665f; }
.contact-form button { min-height: 48px; margin: 0; padding: 13px 23px; border: 0; border-radius: 2px; background: #d94b25; color: #fff; font: 600 16px/1.4 'Outfit', sans-serif; cursor: pointer; transform: rotate(-1deg); transition: background .15s ease; }
.contact-form button:hover { background: #b93c1b; }
.contact-form button:focus-visible { outline: 2px solid #141637; outline-offset: 5px; }
.contact-form button:disabled { opacity: .65; cursor: wait; }
.contact-sheet-footer { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; border-top: 1px solid #14163720; margin-top: 32px; padding-top: 22px; font-size: 14px; line-height: 1.6; }
.contact-sheet-footer span { color: #67665f; }
body[data-page='contact'] .contact-sheet-footer a { font-size: inherit; color: #141637; text-decoration: none; border-bottom: 1px solid #14163750; overflow-wrap: anywhere; }
body[data-page='contact'] .contact-sheet-footer a:hover { color: #cf4b26; }
.postcard-honeypot { display: none !important; }
.postcard-status { font-size: 16px; line-height: 1.5; margin: 20px 0 0; }
.postcard-status[hidden] { display: none; }
.postcard-status[data-state='error'] { color: #a52a20; }
.postcard-status[data-state='success'] { color: #075747; }
@media (max-width: 650px) {
    .contact-sheet { padding: 30px 24px 26px; }
    .contact-sheet-intro { margin-bottom: 30px; }
    body[data-page='contact'] .contact-sheet h2 { font-size: clamp(42px, 12.5vw, 64px); }
    body[data-page='contact'] .contact-eyebrow { margin-bottom: 18px; }
    body[data-page='contact'] .contact-invitation { margin-top: 22px; font-size: 15px; }
    .contact-spark { top: -5px; right: 0; width: 34px; }
    .contact-desktop-break { display: none; }
    .contact-form { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .contact-field textarea { height: 130px; }
    .contact-form-bottom { gap: 12px; }
    .contact-form button { padding: 13px 16px; font-size: 15px; }
    .contact-sheet-footer { margin-top: 28px; padding-top: 20px; font-size: 13px; }
}

/* Postcard proportions with the warmer sketchbook identity. */
.contact-sheet { padding: clamp(26px, 3.3vw, 46px); }
.contact-sheet-intro { margin-bottom: 28px; padding-right: 120px; }
body[data-page='contact'] .contact-eyebrow { margin-bottom: 12px; }
body[data-page='contact'] .contact-sheet h2 { font-size: clamp(40px, 4.4vw, 64px); }
body[data-page='contact'] .contact-invitation { margin-top: 18px; font-size: 15px; }
.contact-spark { display: none; }
.contact-sheet-stamp { position: absolute; top: 0; right: 0; width: 88px; height: auto; transform: rotate(2deg); filter: drop-shadow(1px 3px 2px #49382325); }
.contact-form { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); grid-template-rows: auto auto auto; column-gap: 48px; row-gap: 20px; }
.contact-field-message { grid-column: 1; grid-row: 1 / 4; padding-right: 28px; border-right: 1px solid #14163730; }
.contact-field:nth-of-type(1) { grid-column: 2; grid-row: 1; }
.contact-field:nth-of-type(2) { grid-column: 2; grid-row: 2; }
.contact-field textarea { height: 220px; line-height: 32px; padding-top: 5px; background: repeating-linear-gradient(transparent 0 31px, #14163725 31px 32px); border-bottom: 0; }
.contact-form-bottom { grid-column: 2; grid-row: 3; align-self: end; flex-wrap: wrap; gap: 12px; }
.contact-sheet-footer { margin-top: 24px; padding-top: 16px; }
@media (max-width: 650px) {
    .contact-sheet { padding: 28px 24px 24px; }
    .contact-sheet-intro { padding-right: 0; padding-top: 0; margin-bottom: 28px; }
    body[data-page='contact'] .contact-eyebrow { min-height: 54px; padding-top: 8px; margin-bottom: 14px; }
    .contact-sheet-stamp { width: 58px; top: -4px; right: 0; }
    body[data-page='contact'] .contact-sheet h2 { font-size: clamp(40px, 12vw, 60px); }
    body[data-page='contact'] .contact-invitation { font-size: 15px; }
    .contact-form { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; gap: 24px; }
    .contact-field:nth-of-type(1), .contact-field:nth-of-type(2), .contact-field-message, .contact-form-bottom { grid-column: 1; grid-row: auto; }
    .contact-field-message { padding-right: 0; border-right: 0; }
    .contact-field textarea { height: 160px; }
    .contact-form-bottom { flex-wrap: nowrap; }
}

/* One postcard composition: correspondence on the left, addressee on the right. */
.contact-sheet { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); column-gap: 48px; padding: clamp(28px, 3.3vw, 46px); }
.contact-sheet-intro { grid-column: 1 / -1; min-height: 145px; margin: 0; padding: 14px 0 24px; }
body[data-page='contact'] .contact-sheet h2 { font-size: clamp(48px, 5.4vw, 76px); line-height: 1.05; }
.contact-sheet-stamp { width: 112px; top: -4px; right: 8px; }
.contact-form { grid-column: 1 / -1; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.contact-field-message { border-right: 1px solid #14163730; }
.contact-field textarea { height: 240px; }
.postcard-status { grid-column: 1 / -1; }
@media (max-width: 650px) {
    .contact-sheet { display: block; padding: 26px 24px 28px; }
    .contact-sheet-intro { min-height: 112px; padding: 20px 84px 24px 0; margin-bottom: 8px; }
    body[data-page='contact'] .contact-sheet h2 { font-size: clamp(38px, 10vw, 54px); line-height: 1.05; }
    .contact-sheet h2 span { white-space: nowrap; }
    .contact-sheet-stamp { width: 76px; top: 0; right: -2px; }
    .contact-form { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .contact-field-message { border-right: 0; }
    .contact-field textarea { height: 160px; }
}

body[data-page='contact'] .contact-page-heading { margin: 15px 0 60px; }
body[data-page='contact'] .contact-page-heading h1 { margin: 0; color: #141637; font-family: 'Outfit', sans-serif; font-size: 86px; font-weight: 800; line-height: 1; letter-spacing: -.045em; text-box-trim: trim-both; text-box-edge: cap alphabetic; }
@media (max-width: 1000px) {
 body[data-page='contact'] .contact-page-heading { margin: 14px 0 52px; }
 body[data-page='contact'] .contact-page-heading h1 { font-size: clamp(44px, 8vw, 70px); }
}

/* Separate the page title from the greeting written on the card. */
body[data-page='contact'] .contact-page-heading h1 { font-size: clamp(48px, 5.2vw, 86px); }
body[data-page='contact'] .contact-sheet h2 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 400;
    letter-spacing: -.02em;
    line-height: 1.2;
    color: #d34e24;
}
.contact-sheet h2 span::before { content: none; }
@media (max-width: 650px) {
    body[data-page='contact'] .contact-page-heading h1 { font-size: clamp(34px, 9.5vw, 54px); line-height: 1.05; }
    body[data-page='contact'] .contact-sheet h2 { font-size: 28px; }
}

/* A simple invitation, without postage artwork. */
.contact-sheet-intro { min-height: 0; padding: 0 0 28px; }
body[data-page='contact'] .contact-sheet h2 { font-size: clamp(24px, 2.5vw, 34px); line-height: 1.35; }
@media (max-width: 650px) {
    .contact-sheet-intro { min-height: 0; padding: 0; margin-bottom: 28px; }
    body[data-page='contact'] .contact-sheet h2 { font-size: 24px; }
}

/* Align the postcard top with the first sidebar navigation label. */
@media (min-width: 1001px) {
    body[data-page='contact'] .contact-page-heading { min-height: 82px; }
}
body[data-page='contact'] .contact-sheet-intro { text-align: center; }

/* A quiet postal cancellation mark, kept clear of the invitation. */
.contact-postmark { position: absolute; top: 22px; right: 22px; width: clamp(155px, 17vw, 235px); height: auto; color: #c25b3f; opacity: .68; transform: rotate(-9deg); pointer-events: none; }
body[data-page='contact'] .contact-sheet-intro { padding-inline: 140px; }
@media (max-width: 650px) {
    .contact-postmark { width: 140px; top: 12px; right: 14px; opacity: .68; }
    body[data-page='contact'] .contact-sheet-intro { padding-inline: 0; padding-top: 66px; }
}

/* Supplied artwork, cropped to the ink and blended into the paper. */
.contact-postmark { opacity: 1; mix-blend-mode: multiply; width: clamp(155px, 17vw, 235px); }
@media (max-width: 650px) {
 .contact-postmark { width: 140px; opacity: 1; }
 body[data-page='contact'] .contact-sheet-intro { padding-top: 88px; }
}

/* Keep the mobile greeting and postal mark together in one compact header. */
@media (max-width: 650px) {
    .contact-sheet { padding-top: 30px; }
    .contact-postmark { top: 25px; right: 18px; width: 120px; transform: rotate(-5deg); opacity: .85; }
    body[data-page='contact'] .contact-sheet-intro {
        min-height: 86px;
        padding: 0 126px 0 0;
        margin-bottom: 28px;
        text-align: left;
        display: flex;
        align-items: center;
    }
    body[data-page='contact'] .contact-sheet h2 {
        margin: 0;
        font-size: clamp(20px, 4.9vw, 23px);
        line-height: 1.35;
        letter-spacing: -.025em;
        text-wrap: balance;
    }
}
@media (max-width: 360px) {
    .contact-postmark { width: 96px; right: 16px; top: 30px; }
    body[data-page='contact'] .contact-sheet-intro { padding-right: 100px; }
}

/* Direct email and generous social links beneath the short contact page. */
body[data-page='contact'] .contact-footer {
    margin-top: 42px;
    padding: 0 0 36px;
    gap: 24px;
    color: #141637;
}
.contact-footer-email { margin: 0; font-size: 16px; line-height: 1.7; }
body[data-page='contact'] .contact-footer-email a {
    display: inline-block;
    text-decoration: underline;
    text-underline-offset: 4px;
    overflow-wrap: anywhere;
}
body[data-page='contact'] .contact-footer .site-footer-socials { gap: 24px; }
body[data-page='contact'] .contact-footer .footer-social { width: 44px; height: 44px; font-size: 30px; }
body[data-page='contact'] .contact-footer .instagram-mark svg { width: 30px; height: 30px; }
@media (max-width: 650px) {
    body[data-page='contact'] .contact-footer { margin-top: 30px; gap: 18px; }
    .contact-footer-email { font-size: 15px; }
    .contact-footer-email a { display: block; }
}

body[data-page='contact'] .contact-email-address {
    display: inline-block;
    color: #d34e24;
    text-decoration: none;
    overflow-wrap: anywhere;
}
@media (max-width: 650px) {
    body[data-page='contact'] .contact-email-address { display: block; }
}

body[data-page='contact'] .contact-email-address { font-weight: 700; }

body[data-page='contact'] .contact-sheet h2 .contact-invitation-secondary { font-size: .85em; white-space: normal; }

/* Short address-style fields aligned to the right on phones. */
@media (max-width: 650px) {
    .contact-form > .contact-field:not(.contact-field-message) { width: 75%; justify-self: start; }
}

@media (min-width: 361px) and (max-width: 650px) {
    .contact-postmark { width: 140px; }
}
@media (max-width: 360px) {
    .contact-postmark { width: 108px; }
}
