@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap");

:root {
  --ink: #101820;
  --paper: #fff;
  --blue: #1769e0;
  --line: rgba(16, 24, 32, 0.18);
  --muted: #4e5861;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 5.5rem;
  padding: 1rem clamp(1.25rem, 4vw, 4.5rem);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.brand img {
  width: 2.75rem;
  height: auto;
}

nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.nav-cta {
  padding: 0.75rem 1.25rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
}

.hero {
  display: grid;
  width: 100%;
  min-height: 100svh;
  place-items: start center;
  padding: clamp(8.5rem, 16vh, 11rem) 1.5rem 20rem;
  text-align: center;
  background-color: var(--paper);
  background-image: url("images/mooomooo-boston-work-loop.webp");
  background-position: center bottom;
  background-repeat: no-repeat;
  background-size: cover;
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(51rem, 100%);
}

.eyebrow {
  margin: 0 0 1.25rem;
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 1.5rem;
  font-size: clamp(2.65rem, 5.3vw, 5.4rem);
  font-weight: 500;
  line-height: 0.99;
  letter-spacing: -0.065em;
}

.hero-description {
  width: min(35rem, 100%);
  margin: 0 auto 2rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.55;
}

.primary-cta {
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.8rem 0.85rem 0.8rem 1.4rem;
  border-radius: 999px;
  color: white;
  background: var(--blue);
  font-size: 0.9rem;
  font-weight: 700;
}

.primary-cta span {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border-radius: 50%;
  color: var(--blue);
  background: white;
}

.products {
  padding: clamp(4rem, 8vw, 6rem) clamp(1.25rem, 5vw, 5rem);
  background: var(--paper);
}

.section-heading {
  width: min(65rem, 100%);
  margin: 0 auto 2.5rem;
  text-align: center;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.04em;
}

.section-heading > p:last-child {
  max-width: 43rem;
  margin: 1rem auto 0;
  color: var(--muted);
  line-height: 1.6;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  width: min(65rem, 100%);
  margin: 0 auto;
}

.product-card {
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 1.5rem;
  background: var(--paper);
}

a.product-card {
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

a.product-card:hover,
a.product-card:focus-visible {
  transform: translateY(-0.4rem);
  box-shadow: 0 1rem 2rem rgba(16, 24, 32, 0.12);
}

.product-copy {
  min-height: 13rem;
  padding: 2rem 2rem 1.5rem;
}

.product-card h3 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.04em;
}

.product-role {
  margin-bottom: 0.65rem !important;
  color: var(--blue) !important;
  font-size: 0.75rem !important;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-card p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.product-card img {
  display: block;
  width: 100%;
  height: 15rem;
  object-fit: cover;
}

.page-header {
  position: relative;
}

.blog-index,
.article {
  width: min(72rem, calc(100% - 2.5rem));
  margin: 0 auto;
}

.blog-index {
  min-height: calc(100svh - 5.5rem);
  padding: clamp(5rem, 10vw, 9rem) 0;
}

.blog-intro {
  max-width: 48rem;
  margin-bottom: clamp(4rem, 8vw, 7rem);
}

.blog-intro h1,
.article-header h1 {
  line-height: 1.02;
}

.blog-intro > p:last-child,
.article-deck {
  max-width: 42rem;
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.55;
}

.post-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: start;
  padding: clamp(1.5rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background-color 180ms ease;
}

.post-card:hover,
.post-card:focus-visible {
  background: #efede8;
}

.post-card h2 {
  max-width: 48rem;
  margin-bottom: 1rem;
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.post-card p:last-child {
  max-width: 42rem;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

.post-card > span {
  color: var(--blue);
  font-size: 2rem;
}

.post-meta {
  margin-bottom: 1rem;
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article {
  padding: clamp(4rem, 8vw, 7rem) 0 clamp(6rem, 12vw, 10rem);
}

.article-header {
  max-width: 61rem;
  margin-bottom: clamp(4rem, 8vw, 7rem);
}

.article-hero {
  margin: 0 0 clamp(4rem, 8vw, 7rem);
}

.article-hero img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1.5rem;
}

.article-header h1 {
  margin-bottom: 2rem;
}

.back-link {
  display: inline-block;
  margin-bottom: 3rem;
  color: var(--muted);
  font-weight: 600;
}

.article-body {
  width: min(43rem, 100%);
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.75;
}

.article-body .lede {
  margin-bottom: 3.5rem;
  color: var(--muted);
  font-size: 1.35rem;
  line-height: 1.55;
}

.article-body h2 {
  margin: 3.5rem 0 1rem;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.article-body p {
  margin-bottom: 1.5rem;
}

.article-body ul,
.article-body ol {
  margin: 0 0 2rem;
  padding-left: 1.25rem;
}

.article-body li {
  margin-bottom: 0.75rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: center;
  padding: 2rem clamp(1.25rem, 4vw, 4.5rem);
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
}

footer p {
  margin: 0;
  text-align: center;
}

footer nav {
  justify-self: end;
  gap: 1.25rem;
}

@media (max-width: 700px) {
  .site-header {
    min-height: 4.5rem;
  }

  .hero {
    min-height: 100svh;
    padding-top: 8rem;
    background-image: url("images/mooomooo-boston-work-loop.webp");
    background-position: center calc(100% - 2rem);
    background-size: min(32rem, 88vw) auto;
  }

  h1 br {
    display: none;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-copy {
    min-height: auto;
  }

  footer {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  footer p {
    text-align: left;
  }

  footer nav {
    justify-self: start;
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  a.product-card {
    transition: none;
  }

  .post-card {
    transition: none;
  }
}
