:root {
  --paper: #fffefa;
  --ink: #1d1d1b;
  --muted: #65635d;
  --soft: #8f8e89;
  --border: #22221f;
  --blue: #49a9ff;
  --pink: #ec6bb5;
  --focus: #1f7edb;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
}

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

.page {
  min-height: 100vh;
  padding: clamp(42px, 7vw, 82px) clamp(24px, 5.2vw, 64px) 36px;
}

.intro {
  width: min(100%, 895px);
}

.hello {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0 0 28px;
  color: var(--muted);
  font-family:
    "SFMono-Regular", Consolas, "Liberation Mono", Menlo, ui-monospace,
    monospace;
  font-size: clamp(13px, 1.5vw, 17px);
  letter-spacing: 0.24em;
  line-height: 1.2;
  text-transform: uppercase;
}

.hello span {
  font-family: inherit;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(68px, 7.1vw, 92px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 0.92;
}

.lede {
  max-width: 675px;
  margin: 28px 0 58px;
  color: var(--muted);
  font-size: clamp(24px, 2.6vw, 28px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.42;
}

.lede strong {
  color: var(--ink);
  font-weight: 800;
}

.work-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 28px;
  margin-bottom: 56px;
}

.company-entry {
  display: grid;
  gap: 15px;
}

.company-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  height: 124px;
  padding: 28px 30px 30px;
  overflow: hidden;
  border: 3px solid var(--border);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: inset 0 -8px 0 var(--accent);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.company-card::after {
  content: "";
  position: absolute;
  right: 24px;
  bottom: 0;
  left: 24px;
  height: 8px;
  border-radius: 999px 999px 0 0;
  background: var(--accent);
  opacity: 0;
  transition: opacity 180ms ease;
}

.company-card-blue {
  --accent: var(--blue);
}

.company-card-pink {
  --accent: var(--pink);
}

.company-card:hover,
.company-card:focus-visible {
  outline: 0;
  transform: translateY(-4px);
  background: #ffffff;
  box-shadow: inset 0 -8px 0 var(--accent), 0 16px 34px rgba(29, 29, 27, 0.1);
}

.company-card:focus-visible {
  border-color: var(--focus);
}

.company-card:hover::after,
.company-card:focus-visible::after {
  opacity: 1;
}

.company-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-right: 18px;
  overflow: hidden;
  border-radius: 14px;
  background: #f2f1ec;
}

.company-mark-lupai {
  background: #202020;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.company-mark-youknow {
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(29, 29, 27, 0.08);
}

.company-mark img {
  display: block;
  max-width: 78%;
  max-height: 78%;
  object-fit: contain;
}

.company-mark-youknow img {
  max-width: 100%;
  max-height: 100%;
}

.company-copy {
  display: grid;
  min-width: 0;
  gap: 9px;
}

.company-copy strong {
  color: #45443f;
  font-size: clamp(24px, 2.5vw, 28px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
}

.company-copy em {
  width: min(100%, 280px);
  color: var(--soft);
  font-size: 15px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.25;
}

.company-description {
  max-width: 390px;
  min-height: 96px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
}

.company-arrow {
  align-self: start;
  color: var(--ink);
  font-size: 30px;
  line-height: 1;
  transition: transform 180ms ease;
}

.company-card:hover .company-arrow,
.company-card:focus-visible .company-arrow {
  transform: translate(3px, -3px);
}

.contact {
  display: grid;
  gap: 12px;
}

.contact-heading {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.socials a {
  position: relative;
  color: var(--muted);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  transition: color 160ms ease;
}

.socials a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 3px;
  background: var(--blue);
  transform: scaleX(1);
  transform-origin: left;
  transition:
    background-color 160ms ease,
    transform 160ms ease;
}

.socials a:hover,
.socials a:focus-visible {
  color: var(--ink);
  outline: 0;
}

.socials a:hover::after,
.socials a:focus-visible::after {
  background: var(--pink);
  transform: scaleX(0.72);
}

@media (max-width: 760px) {
  .page {
    padding: 34px 22px 32px;
  }

  .hello {
    gap: 18px;
    margin-bottom: 22px;
  }

  h1 {
    font-size: clamp(54px, 16vw, 76px);
  }

  .lede {
    margin: 24px 0 42px;
    font-size: clamp(21px, 6vw, 26px);
  }

  .work-links {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 44px;
  }

  .company-card {
    height: 120px;
    padding: 23px 22px 25px;
    border-width: 3px;
    border-radius: 16px;
  }

  .company-mark {
    width: 52px;
    height: 52px;
    margin-right: 14px;
  }

  .company-arrow {
    font-size: 26px;
  }

  .socials {
    gap: 18px;
  }

  .socials a {
    font-size: 20px;
  }
}

@media (max-width: 430px) {
  .company-card {
    grid-template-columns: 1fr auto;
  }

  .company-mark {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
