@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/bricolage-grotesque-latin-opsz.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --paper: #f3f4f1;
  --ink: #16211c;
  --soft: #4a5750;
  --rule: #d3d8d2;
  --amber: #e8a63a;
  --amber-hover: #f0b556;
  --on-amber: #16211c;
  --edge: #16211c;
  --star: #9a5b08;
  --pass: #1d7a52;
  --font: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --gutter: 1.25rem;
  --max: 72rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #101a16;
    --ink: #e9eeea;
    --soft: #a9b6ae;
    --rule: #2a3830;
    --edge: #e8a63a;
    --star: #e8a63a;
    --pass: #5bc796;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--font);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}

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

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 10;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: 3px;
}

.skip:focus {
  top: 1rem;
}

.wrap {
  width: min(100% - var(--gutter) * 2, var(--max));
  margin-inline: auto;
}

/* Header */

.bar {
  border-bottom: 1px solid var(--rule);
}

.bar__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.625rem;
}

.bar__name {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: inherit;
  font-weight: 650;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.bar__nav {
  display: none;
  gap: 1.75rem;
  margin-left: auto;
  margin-right: 1.5rem;
}

.bar__link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--soft);
  text-decoration: none;
}

.bar__link:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

.lang {
  display: inline-flex;
  border: 1.5px solid var(--ink);
  border-radius: 3px;
}

.lang__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding-inline: 0.5rem;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.lang__item:hover {
  background: var(--rule);
}

.lang__item[aria-current="true"] {
  background: var(--ink);
  color: var(--paper);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.25rem;
  padding: 0.75rem 1.25rem;
  border: 2px solid var(--ink);
  border-radius: 3px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.btn:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn--primary {
  background: var(--amber);
  border-color: var(--edge);
  color: var(--on-amber);
}

.btn--primary:hover {
  background: var(--amber-hover);
  color: var(--on-amber);
}

.btn--wide {
  flex: 1 1 100%;
}

.btn--half {
  flex: 1 1 calc(50% - 0.375rem);
}

.btn__icon {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  padding-block: 2.25rem 3rem;
}

.hero__title {
  margin: 0;
  font-size: clamp(3rem, 14.5vw, 5.25rem);
  font-weight: 720;
  line-height: 0.92;
  letter-spacing: -0.035em;
}

.hero__first,
.hero__last {
  display: block;
}

.hero__role {
  max-width: 26ch;
  margin: 1.25rem 0 0;
  font-size: clamp(1.25rem, 1.05rem + 1vw, 1.75rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.hero__lead {
  max-width: 44ch;
  margin: 1rem 0 0;
  color: var(--soft);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.portrait {
  margin: 0;
}

.portrait__img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: 50% 18%;
  border-radius: 4px;
  background: var(--rule);
}

/* Sections */

.section {
  padding-block: 3rem;
  border-top: 1px solid var(--rule);
  scroll-margin-top: 0.5rem;
}

.section__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
}

.section__title {
  margin: 0;
  font-size: clamp(1.75rem, 1.3rem + 2vw, 2.75rem);
  font-weight: 680;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.section__text {
  max-width: 60ch;
  margin: 1rem 0 0;
  color: var(--soft);
}

.section__cta {
  margin: 1.5rem 0 0;
}

.accolade {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  max-width: 34ch;
  margin: 1.25rem 0 0;
  font-weight: 600;
  line-height: 1.35;
}

.accolade__icon {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.1rem;
  color: var(--star);
}

/* Testimonials (PT) */

.proof__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.proof__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.proof__controls {
  display: none;
  gap: 0.5rem;
}

.proof__btn {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 2px solid var(--ink);
  border-radius: 3px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.proof__btn:hover:not(:disabled) {
  background: var(--ink);
  color: var(--paper);
}

.proof__btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.proof__btn svg {
  width: 1.25rem;
  height: 1.25rem;
}

.proof__track {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 0.75rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--soft) transparent;
  transition: height 0.2s ease;
}

.proof__item {
  display: block;
  flex: none;
  width: min(78vw, 19rem);
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
  scroll-snap-align: start;
}

.proof__card {
  display: block;
  width: 100%;
  height: auto;
}

/* About */

.about__text {
  max-width: 62ch;
  margin: 0;
}

.nowrap {
  white-space: nowrap;
}

.creds__title {
  margin: 2.5rem 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.creds {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}

.creds__item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--rule);
}

.creds__check {
  flex: none;
  width: 1.4rem;
  height: 1.4rem;
  margin-top: 0.1rem;
  color: var(--pass);
}

.creds__name {
  display: block;
  font-weight: 650;
}

.creds__desc {
  display: block;
  color: var(--soft);
}

/* Footer */

.foot {
  padding-block: 1.5rem 2.5rem;
  border-top: 1px solid var(--rule);
  color: var(--soft);
  font-size: 0.9375rem;
}

.foot__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 2rem;
}

.foot__copy {
  margin: 0;
}

.foot__links {
  display: flex;
  gap: 1.5rem;
}

.foot__link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: inherit;
  text-underline-offset: 0.3em;
}

.foot__link:hover {
  color: var(--ink);
}

/* Tablet and up */

@media (min-width: 48rem) {
  :root {
    --gutter: 2rem;
  }

  .bar__nav {
    display: flex;
  }

  .hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 3rem;
    align-items: center;
    padding-block: 3.5rem 4.5rem;
  }

  .hero__title {
    font-size: clamp(3.25rem, 7.2vw, 6.5rem);
  }

  .portrait__img {
    aspect-ratio: 3 / 4;
    object-position: 50% 50%;
  }

  .section {
    padding-block: 4.5rem;
  }

  .proof__controls {
    display: flex;
  }

  .proof__item {
    width: min(100%, 30rem);
  }
}

/* Desktop */

@media (min-width: 64rem) {
  .btn--wide,
  .btn--half {
    flex: 0 0 auto;
  }

  .section__grid {
    grid-template-columns: minmax(0, 22rem) minmax(0, 1fr);
    gap: 4rem;
  }
}

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

  .btn,
  .proof__btn,
  .proof__track {
    transition: none;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
