/* GrapeGraph direction 1d "Bunch". Tokens from the brand handoff. */
:root {
  --jam: #9470cd;
  --jam-light: #b28fef;
  --eggplant: #2e2142;
  --mint: #3fbf86;
  --bloom: #f6f3fe;
  --surface: #f9f7ff;
  --border: #e0dbea;
  --body: #4b435a;
  --white: #ffffff;
  --jam-hover: oklch(0.56 0.14 300);
  --eggplant-hover: oklch(0.22 0.06 300);
  --mint-hover: oklch(0.66 0.14 160);
  --font: "Outfit", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bloom);
  color: var(--body);
  font-family: var(--font);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--jam);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease;
}

a:hover {
  color: var(--jam-hover);
}

:focus-visible {
  outline: 2px solid var(--jam);
  outline-offset: 2px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(960px, 100%);
  margin: 0 auto;
  padding: 16px 24px;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--eggplant);
  text-decoration: none;
  min-width: 0;
}

.brand:hover {
  color: var(--eggplant);
}

.brand img {
  display: block;
  height: 22px;
  width: auto;
  flex: none;
}

.brand span {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links a {
  color: var(--body);
  font-size: 13px;
  font-weight: 400;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--eggplant);
}

.nav-links a[aria-current="page"] {
  color: var(--eggplant);
  font-weight: 500;
}

.nav-links a.nav-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--eggplant);
  color: var(--white);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
}

.nav-links a.nav-pill:hover {
  background: var(--eggplant-hover);
  color: var(--white);
}

.nav-toggle {
  display: none;
  border: 0;
  border-radius: 999px;
  background: var(--eggplant);
  color: var(--white);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  padding: 8px 16px;
  cursor: pointer;
  transition: background-color 150ms ease;
}

.nav-toggle:hover {
  background: var(--eggplant-hover);
  color: var(--white);
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  width: min(960px, 100%);
  margin: 0 auto;
  padding: 36px 24px 28px;
}

.hero h1 {
  margin: 0;
  max-width: 560px;
  color: var(--eggplant);
  font-size: 44px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.lede {
  margin: 0;
  max-width: 520px;
  color: var(--body);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.55;
}

.lede-wide {
  max-width: 640px;
}

.where {
  margin: 4px 0 0;
  color: var(--eggplant);
  font-size: 17px;
  line-height: 1.55;
}

.region-picker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 2px;
}

.region-picker label {
  font-size: 14px;
  font-weight: 500;
  color: var(--eggplant);
}

select {
  appearance: none;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  color: var(--eggplant);
  background-color: var(--surface);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%232e2142' d='M1.2 1.4 6 6.2 10.8 1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 36px 8px 16px;
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease;
}

select:hover {
  border-color: var(--jam);
}

.library,
.sheet {
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 8px 24px 72px;
}

.sheet {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 24px 28px;
  margin-bottom: 72px;
}

.sheet h2,
.card h3 {
  margin: 0 0 8px;
  color: var(--eggplant);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.sheet h2 {
  font-size: 22px;
}

.sheet p {
  margin: 0 0 14px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 20px;
  margin: 12px 0;
  transition: border-color 150ms ease;
}

.card:hover {
  border-color: var(--jam);
}

.card h3 {
  font-size: 20px;
}

.card h3 a {
  color: var(--eggplant);
  text-decoration: none;
}

.card h3 a:hover {
  color: var(--jam);
}

.card p {
  margin: 0;
}

.muted {
  color: var(--body);
}

pre {
  margin: 0 0 16px;
  padding: 16px 18px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  color: var(--eggplant);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.note {
  margin: 0;
  color: var(--body);
  font-size: 16px;
  line-height: 1.55;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 11px 20px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease;
}

.btn-primary {
  background: var(--jam);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--jam-hover);
  color: var(--white);
}

.btn-secondary {
  background: var(--mint);
  color: var(--eggplant);
}

.btn-secondary:hover {
  background: var(--mint-hover);
  color: var(--eggplant);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.band,
.prose,
.values-wrap {
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 8px 24px 28px;
}

.band {
  width: min(900px, 100%);
}

.kicker,
.prose h2,
.values-wrap > h2,
.sheet h2 {
  color: var(--eggplant);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.kicker {
  margin: 28px 0 16px;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
}

.logo-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 22px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.logo-strip li {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-strip img {
  display: block;
  height: 30px;
  width: auto;
  max-width: none;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.72;
  transition: filter 150ms ease, opacity 150ms ease;
}

.logo-strip img.logo-ontario {
  height: 36px;
}

.logo-strip img.logo-mastercard {
  height: 40px;
}

.logo-strip img.logo-blueant {
  height: 40px;
}

.logo-strip img.logo-canadiantire {
  height: 48px;
}

.logo-strip li:hover img,
.logo-strip img:hover {
  filter: none;
  opacity: 1;
}

.prose h2,
.values-wrap > h2 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.2;
}

.prose p {
  margin: 0;
}

.values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.value {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 18px;
}

.value h3 {
  margin: 0 0 6px;
  color: var(--eggplant);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.value p {
  margin: 0;
}

a.card {
  display: block;
  color: var(--body);
  text-decoration: none;
}

a.card:hover {
  color: var(--body);
}

a.card h2 {
  margin: 0 0 8px;
  color: var(--eggplant);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

a.card:hover h2 {
  color: var(--jam);
}

.teaser {
  width: min(720px, calc(100% - 48px));
  margin: 8px auto 28px;
}

#contact {
  scroll-margin-top: 24px;
}

.site-footer {
  width: min(960px, 100%);
  margin: 0 auto;
  padding: 32px 24px 48px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  column-gap: 28px;
  row-gap: 14px;
  color: var(--body);
  font-size: 14px;
  line-height: 1.4;
}

.site-footer a {
  color: var(--body);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--jam);
}

.site-footer .brand,
.site-footer .brand:hover {
  color: var(--eggplant);
}

.site-footer .brand span {
  font-size: 15px;
}

.footer-links,
.footer-contact,
.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
}

.footer-meta {
  flex-basis: 100%;
  margin: 4px 0 0;
}

@media (min-width: 640px) {
  .logo-strip {
    flex-wrap: nowrap;
  }

  .logo-strip li {
    min-width: 0;
  }

  /* Widths at the optical heights above, so a narrow desktop row scales down instead of wrapping. */
  .logo-strip li:has(.logo-corus) {
    flex: 0 1 131px;
    max-width: 131px;
  }

  .logo-strip li:has(.logo-blueant) {
    flex: 0 1 119.47px;
    max-width: 119.47px;
  }

  .logo-strip li:has(.logo-canadiantire) {
    flex: 0 1 220.93px;
    max-width: 220.93px;
  }

  .logo-strip li:has(.logo-mastercard) {
    flex: 0 1 64.73px;
    max-width: 64.73px;
  }

  .logo-strip li:has(.logo-ontario) {
    flex: 0 1 143.68px;
    max-width: 143.68px;
  }

  .logo-strip img,
  .logo-strip img.logo-ontario,
  .logo-strip img.logo-mastercard,
  .logo-strip img.logo-blueant,
  .logo-strip img.logo-canadiantire {
    width: 100%;
    height: auto;
    max-width: 100%;
  }
}

@media (min-width: 960px) {
  .hero h1 {
    font-size: 64px;
  }
}

@media (max-width: 639px) {
  body {
    font-size: 16px;
  }

  .lede {
    font-size: 17px;
  }

  .where,
  pre {
    font-size: 16px;
  }

  .note {
    font-size: 15px;
  }

  .nav {
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 12px 2px;
    font-size: 15px;
  }

  .nav-links a.nav-pill {
    align-self: flex-start;
    margin-top: 8px;
    padding: 8px 16px;
    font-size: 14px;
  }

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

  .teaser,
  .band,
  .prose,
  .values-wrap {
    padding-left: 20px;
    padding-right: 20px;
  }

  .teaser {
    width: calc(100% - 40px);
  }

  .hero {
    padding: 28px 20px 20px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding-left: 20px;
    padding-right: 20px;
  }

  .footer-meta {
    flex-basis: auto;
  }

  .region-picker,
  .btn-row {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .region-picker select,
  .btn-row .btn {
    width: 100%;
  }

  .library,
  .hero {
    padding-left: 20px;
    padding-right: 20px;
  }

  .sheet {
    width: calc(100% - 40px);
    padding: 20px 18px 22px;
  }
}
