/* mattlemay.com: shared styles. Each page keeps only what is specific to it,
   in its own <style>, which loads after this file and can override it. */

:root {
  --bg: #0b0b0b; --fg: #fff; --muted: #8a8a8a; --soft: #cfcfcf; --rule: #262626;
  --accent: #ff2a1f;
  --navy: #121731; --navy-em: #ef5525; --navy-cap: #9aa0b8;
  --ease: cubic-bezier(.2,.7,.2,1);
  --sec: 128px; /* vertical padding of a major section */
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--fg); font-family: "Manrope", sans-serif; font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1760px; margin: 0 auto; padding: 0 48px; }
.disp { font-family: "Archivo", sans-serif; font-variation-settings: "wdth" 68; font-weight: 800; text-transform: uppercase; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 12px; z-index: 100; background: #fff; color: #000; font-weight: 700; font-size: 14px; padding: 10px 14px; }
.skip:focus { left: 16px; }

/* keyboard focus: always visible */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: none; }

/* header and nav */
header { position: absolute; top: 0; left: 0; right: 0; z-index: 5; }
header .wrap { display: flex; justify-content: space-between; align-items: center; height: 72px; }
.name { font-family: "Archivo"; font-variation-settings: "wdth" 68; font-weight: 800; font-size: 24px; text-transform: uppercase; letter-spacing: .01em; }
nav { display: flex; align-items: center; gap: 30px; font-size: 14px; font-weight: 500; }
nav a { background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 2px no-repeat; transition: background-size .45s var(--ease); padding-bottom: 3px; }
nav a:hover, nav a.here { background-size: 100% 2px; }
nav a.go { background: var(--accent); color: #000; font-weight: 700; padding: 8px 14px; transition: background .35s var(--ease), color .35s var(--ease); }
nav a.go:hover, nav a.go.here { background: #fff; color: #000; }

/* buttons */
.talk { display: inline-flex; gap: 12px; align-items: center; font-weight: 700; font-size: 16px; padding: 14px 22px; border: 2px solid #fff; background: #fff; color: #000; transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease); }
.talk:hover { background: var(--accent); border-color: var(--accent); color: #000; }
.talk .arr { transition: transform .45s var(--ease); }
.talk:hover .arr { transform: translateX(5px); }
.cta .mail { font-size: 15px; color: var(--soft); border-bottom: 1px solid var(--rule); }
.cta .mail:hover { color: var(--fg); border-color: var(--accent); }

/* forms (the navy contact bands) */
label { display: block; font-size: 13px; color: var(--navy-cap); }
input, textarea, select { width: 100%; background: transparent; border: 0; border-bottom: 1px solid rgba(255,255,255,.4); color: var(--fg); font: inherit; padding: 10px 0; outline: none; transition: border-color .35s var(--ease); }
input:focus, textarea:focus, select:focus { border-color: var(--navy-em); box-shadow: 0 1px 0 var(--navy-em); }
textarea { resize: vertical; }
select { appearance: none; cursor: pointer; padding-right: 28px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%239aa0b8' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 4px center; }
select option { color: #000; }
form .talk { justify-self: start; margin-top: 10px; cursor: pointer; font-family: inherit; }

/* the navy contact band (Work with me, Speaking, Contact) */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 120px; }
.contact h1, .contact h2 { font-size: clamp(48px, 6.4vw, 112px); line-height: .86; }
.contact .em { color: var(--navy-em); }
.contact .side p { color: #c9cde0; max-width: 42ch; margin-top: 28px; font-size: clamp(18px, 1.4vw, 21px); line-height: 1.5; }
.contact .side p.small { font-size: 15px; color: var(--navy-cap); }
.contact .side a { color: var(--fg); border-bottom: 1px solid var(--navy-em); }
.contact form { display: grid; gap: 14px; align-content: start; }

/* form states */
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-done { font-size: clamp(19px, 1.5vw, 24px); line-height: 1.4; font-weight: 600; color: var(--fg); }
.form-err { margin-top: 12px; font-size: 14px; color: #ffb0a6; }
.form-err a { color: var(--fg); border-bottom: 1px solid currentColor; }
button[disabled] { opacity: .6; cursor: wait; }

/* footer, with the newsletter sign-up */
footer { padding: 48px 0 56px; font-size: 14px; color: var(--muted); }
footer a:hover { color: var(--accent); }
footer .wrap > span a { border-bottom: 1px solid var(--rule); }
footer .wrap { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.news { width: min(100%, 460px); }
.nl { display: flex; gap: 12px; align-items: flex-end; }
.news .past { margin-top: 12px; font-size: 13px; }
.news .past a { color: var(--muted); border-bottom: 1px solid var(--rule); transition: color .3s var(--ease); }
.news .past a:hover { color: var(--fg); }
.nl input { flex: 1; min-width: 0; background: transparent; border: 0; border-bottom: 1px solid rgba(255,255,255,.4); color: var(--fg); font: inherit; font-size: 15px; padding: 9px 0; outline: none; transition: border-color .35s var(--ease); }
.nl input::placeholder { color: var(--muted); }
.nl input:focus { border-color: var(--accent); box-shadow: 0 1px 0 var(--accent); }
.nl button { flex: none; display: inline-flex; gap: 8px; align-items: center; font: inherit; font-weight: 700; font-size: 14px; padding: 10px 16px; border: 0; background: #fff; color: #000; cursor: pointer; transition: background .35s var(--ease), color .35s var(--ease); }
.nl button:hover { background: var(--accent); color: #000; }

@media (max-width: 860px) {
  header .wrap { flex-direction: column; align-items: flex-start; justify-content: center; height: auto; padding-top: 14px; padding-bottom: 12px; gap: 8px; }
  nav { gap: 12px; row-gap: 8px; flex-wrap: wrap; font-size: 13px; }
  nav a { white-space: nowrap; }
  nav a.go { padding: 6px 10px; }
  :root { --sec: 80px; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .contact { grid-template-columns: 1fr; gap: 48px; }
  footer .wrap { flex-direction: column; align-items: flex-start; gap: 28px; }
}
@media (max-width: 480px) {
  .nl { flex-direction: column; align-items: flex-start; }
  .nl input { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
