@font-face{font-family:'Archivo';font-style:normal;font-weight:400 700;font-stretch:100%;font-display:swap;src:url(fonts/archivo-latin.woff2) format('woff2')}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:500;font-display:swap;src:url(fonts/ibm-plex-mono-500-latin.woff2) format('woff2')}

body{margin:0;background:#F4F1EA}
html{scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
a{color:#3E6E78}a:hover{color:#1E2326}

/* skip link: shown only when reached with the keyboard */
.skip{position:absolute;left:-10000px;top:8px;z-index:10;background:#1E2326;color:#FFFFFF;padding:10px 16px;border-radius:4px;font:600 15px/20px 'Archivo',system-ui,sans-serif;text-decoration:none}
.skip:focus{left:8px;color:#FFFFFF}

/* hover feedback; !important because the resting colours are inline in index.html */
.hdr-cta:hover,.btn-p:hover{background:#1E2326 !important}
.btn-s:hover{background:#1E2326 !important;color:#F4F1EA !important}
.hdr-links a:hover{color:#3E6E78 !important}

/* four-up grids (data questions, how we work): 4 columns, then 2, then 1 */
.grid-4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}
@media (max-width:1100px){.grid-4{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:600px){.grid-4{grid-template-columns:minmax(0,1fr)}}

/* header */
.hdr{max-width:1200px;margin:0 auto;padding:16px 24px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px 32px}
.hdr-logo{display:flex;align-items:center;min-height:44px;min-width:0}
.hdr-logo img{height:80px;width:auto;max-width:100%;display:block}
.hdr-nav{display:flex;flex-wrap:wrap;align-items:center;gap:8px 28px}
.hdr-links{display:contents}
.hdr-cta{white-space:nowrap}
/* phones: logo and button on the first row, text links on the second */
@media (max-width:640px){
.hdr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 16px;padding:12px 24px 8px}
.hdr-nav{display:contents}
.hdr-logo img{height:48px}
.hdr-cta{grid-row:1;grid-column:2}
.hdr-links{grid-row:2;grid-column:1 / -1;display:flex;flex-wrap:wrap;gap:0 24px}
}

/* contact form */
.cf-field{display:flex;flex-direction:column;gap:6px}
.cf-label{font-size:15px;line-height:20px;font-weight:600;color:#1E2326}
.cf-input{font:inherit;font-size:16px;line-height:24px;color:#1E2326;background:#FFFFFF;border:1px solid #8A8F94;border-radius:4px;padding:11px 12px;width:100%;box-sizing:border-box}
.cf-input:focus-visible{outline:2px solid #3E6E78;outline-offset:1px;border-color:#3E6E78}
.cf-submit{font:inherit;font-weight:600;min-height:52px;padding:0 24px;background:#3E6E78;color:#FFFFFF;border:0;border-radius:4px;cursor:pointer}
.cf-submit:hover{background:#1E2326}
.cf-submit:focus-visible{outline:2px solid #1E2326;outline-offset:2px}
.cf-hp{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}

/* pages returned by the contact handler (thanks / error) */
.msg-page{color:#1E2326;font:16px/24px 'Archivo',system-ui,-apple-system,'Segoe UI',sans-serif}
.msg-main{max-width:560px;margin:15vh auto 0;padding:0 16px}
.msg-card{background:#FFFFFF;border:1px solid #DCD5C7;border-radius:4px;padding:32px 28px}
.msg-kicker{margin:0 0 8px;font:500 12px/16px 'IBM Plex Mono',ui-monospace,Menlo,monospace;letter-spacing:.14em;text-transform:uppercase;color:#A4532A}
.msg-card h1{margin:0 0 12px;font-size:28px;line-height:1.15;font-weight:600}
.msg-card p{margin:0 0 16px;color:#5C6168}
.msg-btn{display:inline-flex;align-items:center;min-height:48px;padding:0 20px;background:#3E6E78;color:#FFFFFF;text-decoration:none;font-weight:600;border-radius:4px}
.msg-btn:hover{background:#1E2326;color:#FFFFFF}
