/* Pop In Tech: design B ("fridge magnet") in lake teal. Phone first, wide layout from 56.25em (900px). */

@font-face { font-family: "Bricolage Grotesque"; src: url(/fonts/bricolage-grotesque.woff2) format("woff2"); font-weight: 400 800; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url(/fonts/atkinson-hyperlegible-next.woff2) format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Kalam"; src: url(/fonts/kalam-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Kalam"; src: url(/fonts/kalam-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --main: #12606A;
  --shadow: #073A40;
  --on-main: #D3EEF0;
  --on-main-small: #AED9DD;
  --yellow: #FFD43B;
  --ink: #151A2E;
  --muted: #3B4260;
  --note-bg: #EAF5F6;
  --display: "Bricolage Grotesque", "Arial Narrow", sans-serif;
  --body: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, sans-serif;
  --hand: "Kalam", "Comic Sans MS", cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.5;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
h1, h2, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
.num { white-space: nowrap; }

h1, h2, .logo, .m-num {
  font-family: var(--display);
  font-weight: 800;
}

.wrap { max-width: 72rem; margin: 0 auto; padding-inline: min(1.25rem, 5vw); }

/* Keyboard focus: yellow on teal, teal on light backgrounds */
:focus-visible { outline: 3px solid var(--main); outline-offset: 3px; }
.bar :focus-visible, .hero :focus-visible { outline-color: var(--yellow); }
.promise :focus-visible { outline-color: var(--yellow); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .wave.go { animation: none; }
}

/* Top bar */
.bar { position: sticky; top: 0; z-index: 10; background: var(--shadow); }
.bar-in { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 0.625rem; }
.logo { display: flex; align-items: center; gap: min(0.625rem, 2.5vw); color: #fff; font-size: min(1.3125rem, 6vw); font-variation-settings: "wdth" 80; line-height: 1.1; }
.logo-mark { flex: none; width: min(2.125rem, 9vw); height: min(2.125rem, 9vw); }
.call {
  display: inline-flex; align-items: center; min-height: 3rem;
  background: var(--yellow); color: var(--ink);
  font-weight: 700; font-size: min(1.0625rem, 5vw);
  padding: 0 min(1.25rem, 4vw); border-radius: 0.625rem;
}

/* Hero */
.hero { background: var(--main); color: #fff; }
.hero-in { padding-block: 1.375rem 2.375rem; }
.hero h1 {
  font-size: min(3rem, 12.5vw);
  line-height: 0.98;
  letter-spacing: -0.02em;
  font-variation-settings: "wdth" 78;
  margin-bottom: 0.875rem;
}
.sub { font-size: 1.1875rem; color: var(--on-main); }
.magnet {
  display: block;
  background: var(--yellow); color: var(--ink);
  border-radius: 1.375rem;
  padding: min(1.25rem, 5vw) min(1.375rem, 5vw);
  margin: 1.625rem min(0.5rem, 2vw) 1rem;
  transform: rotate(-2.5deg);
  box-shadow: 0.4375rem 0.5625rem 0 var(--shadow);
}
.m-name { display: block; font-weight: 700; font-size: 1.0625rem; }
.m-num {
  display: block;
  font-size: min(2.875rem, 11vw);
  line-height: 1.05;
  letter-spacing: -0.01em;
  font-variation-settings: "wdth" 84;
}
.m-line { display: block; font-size: 1.0625rem; }
.tip { font-size: 1rem; color: var(--on-main-small); }

/* Section headings */
.sec h2, .note-sec h2, .promise h2 {
  font-size: min(1.9375rem, 9vw);
  line-height: 1.05;
  font-variation-settings: "wdth" 84;
  margin-bottom: 1rem;
}

/* What I fix */
.sec { padding-block: 1.875rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 9.5rem), 1fr)); column-gap: 1rem; }
.grid li { border-top: 4px solid var(--main); padding: 0.625rem 0 1.125rem; }
.grid .ic-wrap { display: flex; width: 3rem; height: 3rem; border-radius: 50%; background: var(--note-bg); align-items: center; justify-content: center; margin-bottom: 0.625rem; }
.ic { width: 1.625rem; height: 1.625rem; fill: none; stroke: var(--main); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ic .dot { fill: var(--main); stroke: none; }
.grid b { display: block; font-size: 1.125rem; line-height: 1.25; margin-bottom: 0.25rem; }
.grid span { display: block; font-size: 1rem; line-height: 1.4; color: var(--muted); }

/* Before I leave, you get a note */
.note-sec { background: var(--note-bg); }
.note-in { padding-block: 2.125rem 2.5rem; }
.lead { margin-bottom: 1.875rem; }
.note {
  position: relative;
  background: #FFFEF8;
  color: #22303A;
  border-radius: 6px;
  padding: min(1.875rem, 8vw) min(1.5rem, 5vw) min(1.375rem, 6vw);
  transform: rotate(1.5deg);
  box-shadow: 0 14px 24px -14px rgba(7, 58, 64, 0.55), 0 1px 0 rgba(0, 0, 0, 0.06);
  font-family: var(--hand);
}
.note::before {
  content: "";
  position: absolute; top: -0.875rem; left: 50%;
  width: 1.875rem; height: 1.875rem; margin-left: -0.9375rem;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 2px 3px 0 var(--shadow);
}
.note p { font-size: 1.25rem; line-height: 1.35; margin-bottom: 0.5rem; }
.note .note-title { font-weight: 700; font-size: 1.5625rem; line-height: 1.2; }
.note .last { margin: 0.75rem 0 0; padding-top: 0.625rem; border-top: 2px dashed #CFE3E6; }
.note-fig figcaption { font-size: 0.9375rem; color: #4B5A63; margin-top: 1rem; }

/* About */
.about-in { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; padding-block: 1.875rem; }
.about-in p { flex: 1 1 12rem; min-width: 0; }
.face-wrap { position: relative; flex: 0 0 min(8.5rem, 38vw); }
.face {
  display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover;
  border-radius: 1.375rem;
  background: #CFE7EA;
  box-shadow: 6px 7px 0 var(--yellow);
}
.wave {
  position: absolute; right: -0.5rem; bottom: -0.5rem;
  width: min(3rem, 13vw); height: min(3rem, 13vw); border-radius: 50%;
  background: var(--yellow); box-shadow: 3px 4px 0 var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-size: min(1.5rem, 6.5vw); transform-origin: 65% 75%;
}
.wave.go { animation: wave 1.6s ease-in-out 1; }
@keyframes wave { 0%, 100% { transform: rotate(0); } 15% { transform: rotate(16deg); } 30% { transform: rotate(-10deg); } 45% { transform: rotate(16deg); } 60% { transform: rotate(-6deg); } 75% { transform: rotate(10deg); } }
.about p b { display: block; font-size: 1.25em; margin-bottom: 0.25rem; }

/* Promises */
.promise { background: var(--ink); color: #fff; padding-block: 1.875rem; }
.promise h2 { color: var(--yellow); }
.badges { display: grid; grid-template-columns: 1fr; gap: 0.875rem; }
.badge {
  display: grid; grid-template-columns: min(3rem, 12vw) 1fr; column-gap: 0.875rem; align-items: start;
  background: #20263F; border-radius: 1rem; padding: 1rem min(1.125rem, 4vw) 1.125rem;
}
.b-ic { grid-row: span 2; width: min(3rem, 12vw); height: min(3rem, 12vw); border-radius: 50%; background: var(--yellow); display: flex; align-items: center; justify-content: center; }
.b-ic .ic { stroke: var(--ink); width: 60%; height: 60%; }
.b-ic .ic .dot { fill: var(--ink); }
.badge b { color: #fff; font-size: 1.125rem; }
.b-text { color: #C9CEE0; font-size: 1rem; }

/* Contact */
.contact-in { padding-block: 1.875rem 2.5rem; display: flex; flex-direction: column; gap: 0.875rem; }
.btn, .btn2 {
  display: flex; align-items: center; justify-content: center;
  min-height: 3rem; text-align: center; font-weight: 700; border-radius: 0.75rem; cursor: pointer;
}
.btn {
  background: var(--yellow); color: var(--ink);
  font-size: min(1.25rem, 6vw); padding: 1.125rem; flex-wrap: wrap;
  box-shadow: 4px 5px 0 var(--ink);
}
.btn .num { margin-left: 0.3em; }
.btn2 {
  border: 3px solid var(--main); color: var(--main);
  font-size: 1.1875rem; padding: 0.9375rem;
  list-style: none;
}
.btn2::-webkit-details-marker { display: none; }

/* Wide screens */
@media (min-width: 56.25em) {
  .wrap { padding-inline: 3.5rem; }
  .bar-in { padding-block: 0.875rem; }
  .logo { font-size: 1.5rem; }
  .call { font-size: 1.125rem; padding: 0 1.625rem; }

  .hero-in { display: grid; grid-template-columns: 1.1fr 1fr; gap: 4rem; align-items: center; padding-block: 4rem 5rem; }
  .hero h1 { font-size: min(5rem, 6.4vw); line-height: 0.95; letter-spacing: -0.025em; margin-bottom: 1.375rem; }
  .sub { font-size: 1.4375rem; }
  .magnet { padding: 1.625rem 2rem; margin: 0; border-radius: 1.5rem; box-shadow: 0.5625rem 0.6875rem 0 var(--shadow); }
  .m-name { font-size: 1.1875rem; }
  .m-num { font-size: min(3.875rem, 4.8vw); line-height: 1.04; }
  .m-line { font-size: 1.1875rem; }
  .tip { font-size: 1.125rem; margin-top: 1.625rem; max-width: 34ch; }

  .sec h2, .note-sec h2, .promise h2 { font-size: 2.875rem; line-height: 1.02; letter-spacing: -0.015em; margin-bottom: 1.625rem; }
  .sec { padding-block: 4.5rem 1.5rem; }
  .grid { grid-template-columns: repeat(3, 1fr); column-gap: 2.25rem; }
  .grid li { border-top-width: 5px; padding: 0.875rem 0 1.875rem; }
  .grid b { font-size: 1.375rem; }
  .grid span { font-size: 1.125rem; }

  .note-sec { margin-top: 3rem; }
  .note-in { display: grid; grid-template-columns: 1.1fr 1fr; gap: 4rem; align-items: center; padding-block: 4rem 4.5rem; }
  .lead { font-size: 1.3125rem; max-width: 34ch; margin-bottom: 0; }
  .note { max-width: 23.75rem; }

  .about-in { gap: 1.5rem; padding-block: 3.5rem 4rem; }
  .face-wrap { flex-basis: 11rem; }
  .about p { font-size: 1.3125rem; max-width: 46ch; }

  .promise { padding-block: 4rem; }
  .badges { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
  .badge { padding: 1.375rem 1.5rem; }
  .badge b { font-size: 1.3125rem; }
  .b-text { font-size: 1.125rem; }

  .contact-in { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 1.25rem; padding-block: 3.5rem 4.5rem; }
  .btn { font-size: 1.375rem; padding: 1.125rem 2.125rem; box-shadow: 5px 6px 0 var(--ink); }
  .btn2 { font-size: 1.3125rem; padding: 0.9375rem 1.875rem; }
  #message[open] { flex-basis: 100%; }
}

/* Message form */
#message-form { margin-top: 1.25rem; max-width: 36rem; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 700; margin-bottom: 0.375rem; }
.field input, .field textarea {
  display: block; width: 100%; min-height: 3rem;
  font: inherit; color: var(--ink); background: #fff;
  border: 2px solid #5E8A90; border-radius: 0.625rem; padding: 0.625rem 0.875rem;
}
.field textarea { min-height: 7.5rem; resize: vertical; }
.field input[aria-invalid], .field textarea[aria-invalid] { border-color: #B3261E; }
.err { color: #B3261E; font-weight: 700; margin-top: 0.375rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.ts { margin: 0.25rem 0 1rem; }
.send {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 3rem;
  font: inherit; font-weight: 700; font-size: 1.1875rem;
  color: #fff; background: var(--ink); border: 0; border-radius: 0.75rem; padding: 0.875rem 1.5rem; cursor: pointer;
}
.send:disabled { opacity: 0.7; cursor: progress; }
.status:empty { margin: 0; }
#message-form [hidden] { display: none !important; }
.status { margin-top: 0.875rem; font-weight: 700; }
.status.bad { color: #B3261E; }
.status a { text-decoration: underline; }
.privacy { margin-top: 0.75rem; font-size: 1rem; color: var(--muted); }
.status.sent { font-size: 1.25rem; color: var(--main); padding: 0.5rem 0; }
@media (min-width: 56.25em) { .send { width: auto; } }
